code: function sftpOperation() {
  		return _xhr.apply(null, Array.prototype.slice.call(arguments)).then(function(result) {
  			if (result.xhr && result.xhr.status === 202) {
  				var response = result.response ? JSON.parse(result.response) : null;
  				var d = new Deferred();
  				operation.handle(response.Location, function(operation) {
  					return operation.Result; // Final result of SFTP task is the operation's status.
  				}).then(d.resolve, d.reject, d.progress);
  				return d;
  			}
  			return result.response ? JSON.parse(result.response) : null;
  		});
  	}
docs: Wrap orion/xhr to handle long-running operations.