{"version":3,"names":[],"mappings":"","sources":["app-factory.js"],"sourcesContent":["(function() {\r\n 'use strict';\r\n\r\n /**\r\n * @ngdoc service\r\n * @name sliceApp.factory:App\r\n *\r\n * @description\r\n *\r\n */\r\n angular\r\n .module('sliceApp')\r\n .factory('App', App);\r\n\r\n function App($http, consts) {\r\n var AppBase = {};\r\n\r\n AppBase.getFranchiseGraphics = function() {\r\n return $http({\r\n method: \"GET\",\r\n url: consts.serverUrl + \"MetaData/GetFranchiseGraphics\",\r\n params: {\r\n franchiseId: consts.franchiseId\r\n }\r\n });\r\n };\r\n\r\n AppBase.verifyToken = function(token) {\r\n return $http({\r\n method: \"POST\",\r\n url: consts.serverUrl + \"Account/VerifyToken\",\r\n data: {\r\n token: token,\r\n franchiseId: consts.franchiseId\r\n }\r\n });\r\n }\r\n\r\n AppBase.updateUserDetails = function(user) {\r\n return $http({\r\n method: \"POST\",\r\n url: consts.serverUrl + \"Account/UpdateUserDetails\",\r\n data: {\r\n user: user\r\n }\r\n });\r\n }\r\n\r\n AppBase.getMenu = function() {\r\n return $http({\r\n method: \"GET\",\r\n url: consts.serverUrl + \"/Menu/GetMenu\",\r\n params: {\r\n franchiseId: consts.franchiseId\r\n }\r\n });\r\n };\r\n\r\n AppBase.getFranchise = function() {\r\n return $http({\r\n method: \"GET\",\r\n url: consts.serverUrl + \"/MetaData/GetFranchiseWithBranches\",\r\n params: {\r\n franchiseId: consts.franchiseId\r\n }\r\n });\r\n }\r\n\r\n AppBase.getCombos = function() {\r\n return $http({\r\n method: \"GET\",\r\n url: consts.serverUrl + \"/MetaData/GetCombos\",\r\n params: {\r\n franchiseId: consts.franchiseId\r\n }\r\n });\r\n }\r\n\r\n return AppBase;\r\n }\r\n}());\r\n"],"file":"app-factory.js"}