var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
var services;
(function (services) {
var APIEndPoint = (function () {
- function APIEndPoint($resource) {
+ function APIEndPoint($resource, $http) {
this.$resource = $resource;
+ this.$http = $http;
}
- APIEndPoint.prototype.resource = function (endPoint) {
+ APIEndPoint.prototype.resource = function (endPoint, data) {
var customAction = {
method: 'GET',
isArray: false
};
- return this.$resource(endPoint, {}, { customAction: customAction });
+ var execute = {
+ method: 'POST',
+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
+ };
+ return this.$resource(endPoint, {}, { execute: execute });
};
APIEndPoint.prototype.getOptionControlFile = function (command) {
var endPoint = '/api/optionControlFile/' + command;
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getFiles = function (fileId) {
var endPoint = '/api/v1/workspace';
if (fileId) {
endPoint += '/' + fileId;
}
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
};
APIEndPoint.prototype.getDirectories = function () {
var endPoint = '/api/v1/all/workspace/directory';
- return this.resource(endPoint).get();
+ return this.resource(endPoint, {}).get();
+ };
+ APIEndPoint.prototype.execute = function (data) {
+ var endPoint = '/api/v1/execution';
+ var fd = new FormData();
+ fd.append('data', data);
+ return this.$http.post(endPoint, fd, {
+ headers: { 'Content-Type': undefined },
+ transformRequest: angular.identity
+ });
};
return APIEndPoint;
})();
var execObj = {
command: this.name,
workspace: this.workspace.fileId,
- option: opt
+ options: opt
};
- console.log(JSON.stringify(execObj, null, '\t'));
+ this.APIEndPoint
+ .execute(JSON.stringify(execObj))
+ .then(function (result) {
+ console.log(result);
+ });
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);