/*made by Miguel Rodrigues @ KBZ miguel.rodrigues@knowledgebiz.pt*/
angular.module('mainApp')
.factory('appService', function($http){
return {
getListByDevId: function(developerid){
return $http.get('/api/vf-os-enabler/v0/getApps/'+developerid)
},
postApp: function(data){
return $http.post('/api/vf-os-enabler/v0/register', JSON.stringify(data))
},
getAppNotifications: function(appid){
return $http.get('/api/vf-os-enabler/v0/getNotifications/'+appid)
},
getAppRules: function(appid){
return $http.get('/api/vf-os-enabler/v0/getRules/'+appid)
},
postAppRules: function(data){
return $http.post('/api/vf-os-enabler/v0/notification/rules/', JSON.stringify(data))
},
deleteApp: function(appid){
return $http.get('/api/vf-os-enabler/v0/delete/'+appid)
},
deleteRule: function(rulesid){
return $http.get('/api/vf-os-enabler/v0/deleteRule/'+rulesid)
},
postCreateApp: function(data){
return $http.post('/api/vf-os-enabler/v0/createApp/', JSON.stringify(data))
}
}
})