1 define([], function () {
4 angular.module('app.gbp').service('SxpMappingService', SxpMappingService);
6 function SxpMappingService() {
8 this.createObject = createObject;
11 * EndpointSgt constructor
14 function EndpointSgt() {
19 this.setData = setData;
23 * fills EndpointSgt object with data
27 function setData(data) {
29 this.data.sgt = data.sgt;
30 this.data['endpoint-groups'] = data['endpoint-groups'];
31 this.data.conditions = data.conditions;
32 this.data.tenant = data.tenant;
37 * creates EndpointSgt object and fills it with data if available
39 * @returns {EndpointSgt}
41 function createObject(data) {
42 var obj = new EndpointSgt();
52 return SxpMappingService;