{"version":3,"sources":["webpack:///auth_f61149ed4534c2438558.js","webpack:///webpack/bootstrap f61149ed4534c2438558","webpack:///./src/services/app.auth.service.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","41","authService","$timeout","$http","$sessionStorage","apiUrl","this","authorize","getInfo","then","info","authenticated","softship","helpers","AuthorizationError","retrieveEnvironment","post","responseType","resp","environment","data","login","userName","password","logonInfo","username","loggedInSince","isAnonymous","isAnonymousUser","security","loginUsingTicket","ticketId","user","logout","angular","service","$inject"],"mappings":"CAAS,SAAUA,GCIjB,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUE,OAGnC,IAAIC,GAASF,EAAiBD,IAC7BI,EAAGJ,EACHK,GAAG,EACHH,WAUD,OANAJ,GAAQE,GAAUM,KAAKH,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOE,GAAI,EAGJF,EAAOD,QAvBf,GAAID,KA4BJF,GAAoBQ,EAAIT,EAGxBC,EAAoBS,EAAIP,EAGxBF,EAAoBU,EAAI,SAASP,EAASQ,EAAMC,GAC3CZ,EAAoBa,EAAEV,EAASQ,IAClCG,OAAOC,eAAeZ,EAASQ,GAC9BK,cAAc,EACdC,YAAY,EACZC,IAAKN,KAMRZ,EAAoBmB,EAAI,SAASf,GAChC,GAAIQ,GAASR,GAAUA,EAAOgB,WAC7B,WAAwB,MAAOhB,GAAgB,SAC/C,WAA8B,MAAOA,GAEtC,OADAJ,GAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASQ,EAAQC,GAAY,MAAOR,QAAOS,UAAUC,eAAejB,KAAKc,EAAQC,IAGzGtB,EAAoByB,EAAI,UAGjBzB,EAAoBA,EAAoB0B,EAAI,MDM/CC,GACA,SAAUvB,EAAQD,EAASH,GAEjC,cEnEA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B","file":"auth_f61149ed4534c2438558.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"assets/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 41);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 41:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// var angular = require('angular');\n// var _ = require('lodash');\n\n(function () {\n 'use strict';\n\n angular.module('app').service('authService', authService);\n\n authService.$inject = ['$timeout', '$http', '$sessionStorage', 'apiBaseUrl'];\n\n function authService($timeout, $http, $sessionStorage, apiUrl) {\n this.authorize = function () {\n return this.getInfo().then(function (info) {\n if (info.authenticated === true) return true;\n // anonymous\n throw new softship.helpers.AuthorizationError();\n });\n };\n\n this.getInfo = function () {\n return $timeout(function () {\n return $sessionStorage;\n }, 100);\n };\n\n this.retrieveEnvironment = function () {\n return $http.post(apiUrl + 'api/authenticate/AuthenticationService.asmx/GetEnvironment', {}, { responseType: 'json' }).then(function (resp) {\n $sessionStorage.environment = resp.data.d.environment;\n return;\n });\n };\n\n this.login = function (userName, password) {\n return $http.post(apiUrl + 'api/authenticate/AuthenticationService.asmx/Authenticate', { userName: userName, password: password }, { responseType: 'json' }).then(function (resp) {\n $sessionStorage.authenticated = resp.data.d.authenticated;\n\n // put in session scope\n $sessionStorage.logonInfo = {\n username: userName,\n loggedInSince: resp.data.d.loggedInSince,\n isAnonymous: resp.data.d.isAnonymousUser,\n security: resp.data.d.security\n };\n return resp.data;\n });\n };\n\n this.loginUsingTicket = function (ticketId) {\n return $http.post(apiUrl + 'api/authenticate/AuthenticationService.asmx/AuthenticateUsingTicket', { ticketId: ticketId }, { responseType: 'json' }).then(function (resp) {\n $sessionStorage.authenticated = resp.data.d.authenticated;\n\n // put in session scope\n $sessionStorage.logonInfo = {\n username: resp.data.d.user,\n loggedInSince: resp.data.d.loggedInSince,\n isAnonymous: resp.data.d.isAnonymousUser,\n security: resp.data.d.security\n };\n return resp.data;\n });\n };\n\n this.logout = function () {\n $sessionStorage.authenticated = false;\n $sessionStorage.logonInfo = {};\n };\n }\n})();\n\n/***/ })\n\n/******/ });\n\n\n// WEBPACK FOOTER //\n// auth_f61149ed4534c2438558.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"assets/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 41);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap f61149ed4534c2438558","// var angular = require('angular');\r\n// var _ = require('lodash');\r\n\r\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app')\r\n .service('authService', authService);\r\n\r\n authService.$inject = ['$timeout', '$http', '$sessionStorage', 'apiBaseUrl'];\r\n\r\n function authService($timeout, $http, $sessionStorage, apiUrl) {\r\n this.authorize = function() {\r\n return this\r\n .getInfo()\r\n .then(function(info) {\r\n if (info.authenticated === true)\r\n return true;\r\n // anonymous\r\n throw new softship.helpers.AuthorizationError();\r\n });\r\n };\r\n\r\n this.getInfo = function () {\r\n return $timeout(function() {\r\n return $sessionStorage;\r\n },\r\n 100);\r\n };\r\n\r\n this.retrieveEnvironment = function () {\r\n return $http.post(apiUrl + 'api/authenticate/AuthenticationService.asmx/GetEnvironment',\r\n { },\r\n { responseType: 'json' })\r\n .then(function (resp) {\r\n $sessionStorage.environment = resp.data.d.environment;\r\n return;\r\n });\r\n };\r\n\r\n this.login = function (userName, password) {\r\n return $http.post(apiUrl + 'api/authenticate/AuthenticationService.asmx/Authenticate',\r\n { userName: userName, password: password },\r\n { responseType: 'json' })\r\n .then(function (resp) {\r\n $sessionStorage.authenticated = resp.data.d.authenticated;\r\n\r\n // put in session scope\r\n $sessionStorage.logonInfo = {\r\n username: userName,\r\n loggedInSince: resp.data.d.loggedInSince,\r\n isAnonymous: resp.data.d.isAnonymousUser,\r\n security: resp.data.d.security\r\n };\r\n return resp.data;\r\n });\r\n };\r\n\r\n this.loginUsingTicket = function (ticketId) {\r\n return $http.post(apiUrl + 'api/authenticate/AuthenticationService.asmx/AuthenticateUsingTicket',\r\n { ticketId: ticketId },\r\n { responseType: 'json' })\r\n .then(function (resp) {\r\n $sessionStorage.authenticated = resp.data.d.authenticated;\r\n\r\n // put in session scope\r\n $sessionStorage.logonInfo = {\r\n username: resp.data.d.user,\r\n loggedInSince: resp.data.d.loggedInSince,\r\n isAnonymous: resp.data.d.isAnonymousUser,\r\n security: resp.data.d.security\r\n };\r\n return resp.data;\r\n });\r\n };\r\n\r\n this.logout = function () {\r\n $sessionStorage.authenticated = false;\r\n $sessionStorage.logonInfo = {};\r\n };\r\n }\r\n})();\n\n\n// WEBPACK FOOTER //\n// ./src/services/app.auth.service.js"],"sourceRoot":""}