blob: 3831e487380f8d02ed0787b9714df306f7d684b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
(function() {
'use strict';
angular
.module('moon')
.factory('securityPipelineService', securityPipelineService);
securityPipelineService.$inject = ['SECURITY_PIPELINE_CST','policyService'];
function securityPipelineService(SECURITY_PIPELINE_CST, policyService) {
var service = {};
service.findAll = findAll;
return service;
function findAll(type){
switch(type){
case SECURITY_PIPELINE_CST.TYPE.POLICY :
return policyService.findAll();
default :
return policyService.findAll();
}
}
}
})();
|