{"version":3,"names":[],"mappings":"","sources":["login/login-factory.js"],"sourcesContent":["(function() {\r\n 'use strict';\r\n\r\n /**\r\n * @ngdoc service\r\n * @name login.factory:Login\r\n *\r\n * @description\r\n *\r\n */\r\n angular\r\n .module('login')\r\n .factory('Login', Login);\r\n\r\n function Login($http, consts) {\r\n var LoginBase = {};\r\n\r\n LoginBase.createUserAndGetCode = function(phone) {\r\n return $http({\r\n method: \"POST\",\r\n url: consts.serverUrl + \"Account/CreateUserAndGetCode\",\r\n data: {\r\n franchiseId: consts.franchiseId,\r\n phone: phone\r\n }\r\n });\r\n };\r\n\r\n LoginBase.resendCode = function(phone) {\r\n return $http({\r\n method: \"POST\",\r\n url: consts.serverUrl + \"Account/ResendCode\",\r\n data: {\r\n franchiseId: consts.franchiseId,\r\n phone: phone\r\n }\r\n });\r\n }\r\n\r\n LoginBase.verifyLoginCode = function(phone, code) {\r\n return $http({\r\n method: \"POST\",\r\n url: consts.serverUrl + \"Account/VerifyLoginCode\",\r\n data: {\r\n franchiseId: consts.franchiseId,\r\n phone: phone,\r\n code: code\r\n }\r\n });\r\n }\r\n\r\n return LoginBase;\r\n }\r\n}());\r\n"],"file":"login-factory.js"}