return new Promise(function(resolve, reject) {
//If socket connection already exists, eat the request.
if(state.socket) {
return new Promise(function(resolve, reject) {
//If socket connection already exists, eat the request.
if(state.socket) {
},
success: function(data, textStatus, jqXHR) {
Utils.checkAndResolveSocketRequest(data, resolve, reject);
},
success: function(data, textStatus, jqXHR) {
Utils.checkAndResolveSocketRequest(data, resolve, reject);
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
Utils.checkAuthentication(xhr.status);
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
Utils.checkAuthentication(xhr.status);
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
Utils.checkAuthentication(xhr.status);
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
Utils.checkAuthentication(xhr.status);
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
Utils.checkAuthentication(xhr.status);
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
Utils.checkAuthentication(xhr.status);
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
Utils.checkAuthentication(xhr.status);
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
Utils.checkAuthentication(xhr.status);
beforeSend: Utils.addAuthorizationStub,
contentType: "application/json",
success: function(data) {
beforeSend: Utils.addAuthorizationStub,
contentType: "application/json",
success: function(data) {
'error': 'There was an error retrieving the resource orchestrator information.'
}),
success: Alt.actions.global.getResourceOrchestratorSuccess,
'error': 'There was an error retrieving the resource orchestrator information.'
}),
success: Alt.actions.global.getResourceOrchestratorSuccess,