text: {"filter":false,"title":"authService.js","tooltip":"/public/js/services/authService.js","ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":0,"column":45},"end":{"row":0,"column":45},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"hash":"d0879ec194a654bfd3a6cf860df2d72eace57394","undoManager":{"mark":25,"position":25,"stack":[[{"group":"doc","deltas":[{"start":{"row":0,"column":0},"end":{"row":27,"column":3},"action":"remove","lines":["var login = angular.module('AuthSrvc',[]);","","login.factory('Login', function($http,$rootscope,SessionService) {","    ","    return {","        ","        auth:function(credentials) {","            var authUser = $http({method:'POST', url:'api/v1/login/auth', params:credentials});","            return authUser;","            ","        }","    }","    ","});","","login.factory('SessionService',function(){","    return{","    get:function(key){","    return sessionStorage.getItem(key);","    },","    set:function(key,val){","    return sessionStorage.setItem(key,val);","    },","    unset:function(key){","    return sessionStorage.removeItem(key);","    }","    }","});"]},{"start":{"row":0,"column":0},"end":{"row":4,"column":3},"action":"insert","lines":["var login = angular.module('AuthSrvc',[]);"," ","login.factory('Login',function($http,$rootscope,SessionService){"," ","});"]}]}],[{"group":"doc","deltas":[{"start":{"row":2,"column":0},"end":{"row":2,"column":4},"action":"insert","lines":["    "]}]}],[{"group":"doc","deltas":[{"start":{"row":2,"column":68},"end":{"row":3,"column":0},"action":"insert","lines":["",""]},{"start":{"row":3,"column":0},"end":{"row":3,"column":8},"action":"insert","lines":["        "]}]}],[{"group":"doc","deltas":[{"start":{"row":3,"column":8},"end":{"row":4,"column":0},"action":"insert","lines":["",""]},{"start":{"row":4,"column":0},"end":{"row":4,"column":8},"action":"insert","lines":["        "]}]}],[{"group":"doc","deltas":[{"start":{"row":4,"column":8},"end":{"row":4,"column":9},"action":"insert","lines":["}"]},{"start":{"row":4,"column":0},"end":{"row":4,"column":8},"action":"remove","lines":["        "]},{"start":{"row":4,"column":0},"end":{"row":4,"column":4},"action":"insert","lines":["    "]}]}],[{"group":"doc","deltas":[{"start":{"row":2,"column":68},"end":{"row":3,"column":0},"action":"insert","lines":["",""]},{"start":{"row":3,"column":0},"end":{"row":3,"column":8},"action":"insert","lines":["        "]}]}],[{"group":"doc","deltas":[{"start":{"row":2,"column":4},"end":{"row":7,"column":3},"action":"remove","lines":["login.factory('Login',function($http,$rootscope,SessionService){","        ","        ","    }"," ","});"]},{"start":{"row":2,"column":4},"end":{"row":9,"column":3},"action":"insert","lines":["login.factory('Login',function($http){","return{","auth:function(credentials){","var authUser = $http({method:'POST',url:'api/login/auth',params:credentials});","return authUser;","}","}","});"]}]}],[{"group":"doc","deltas":[{"start":{"row":3,"column":0},"end":{"row":3,"column":4},"action":"insert","lines":["    "]},{"start":{"row":4,"column":0},"end":{"row":4,"column":4},"action":"insert","lines":["    "]},{"start":{"row":5,"column":0},"end":{"row":5,"column":4},"action":"insert","lines":["    "]},{"start":{"row":6,"column":0},"end":{"row":6,"column":4},"action":"insert","lines":["    "]},{"start":{"row":7,"column":0},"end":{"row":7,"column":4},"action":"insert","lines":["    "]},{"start":{"row":8,"column":0},"end":{"row":8,"column":4},"action":"insert","lines":["    "]}]}],[{"group":"doc","deltas":[{"start":{"row":2,"column":0},"end":{"row":2,"column":4},"action":"remove","lines":["    "]}]}],[{"group":"doc","deltas":[{"start":{"row":5,"column":49},"end":{"row":5,"column":50},"action":"insert","lines":["v"]}]}],[{"group":"doc","deltas":[{"start":{"row":5,"column":50},"end":{"row":5,"column":51},"action":"insert","lines":["1"]}]}],[{"group":"doc","deltas":[{"start":{"row":5,"column":51},"end":{"row":5,"column":52},"action":"insert","lines":["/"]}]}],[{"group":"doc","deltas":[{"start":{"row":5,"column":0},"end":{"row":5,"column":4},"action":"insert","lines":["    "]},{"start":{"row":6,"column":0},"end":{"row":6,"column":4},"action":"insert","lines":["    "]}]}],[{"group":"doc","deltas":[{"start":{"row":4,"column":0},"end":{"row":4,"column":4},"action":"insert","lines":["    "]},{"start":{"row":5,"column":0},"end":{"row":5,"column":4},"action":"insert","lines":["    "]},{"start":{"row":6,"column":0},"end":{"row":6,"column":4},"action":"insert","lines":["    "]},{"start":{"row":7,"column":0},"end":{"row":7,"column":4},"action":"insert","lines":["    "]}]}],[{"group":"doc","deltas":[{"start":{"row":5,"column":59},"end":{"row":5,"column":60},"action":"insert","lines":["\\"]}]}],[{"group":"doc","deltas":[{"start":{"row":5,"column":59},"end":{"row":5,"column":60},"action":"remove","lines":["\\"]}]}],[{"group":"doc","deltas":[{"start":{"row":2,"column":0},"end":{"row":9,"column":3},"action":"remove","lines":["login.factory('Login',function($http){","    return{","        auth:function(credentials){","            var authUser = $http({method:'POST',url:'api/v1/login/auth',params:credentials});","            return authUser;","        }","    }","});"]},{"start":{"row":2,"column":0},"end":{"row":9,"column":3},"action":"insert","lines":["login.factory('Login',function($http){","return{","auth:function(credentials){","var authUser = $http({method:'POST',url:'api/login/auth',params:credentials});","return authUser;","}","}","});"]}]}],[{"group":"doc","deltas":[{"start":{"row":3,"column":0},"end":{"row":3,"column":4},"action":"insert","lines":["    "]},{"start":{"row":4,"column":0},"end":{"row":4,"column":4},"action":"insert","lines":["    "]},{"start":{"row":5,"column":0},"end":{"row":5,"column":4},"action":"insert","lines":["    "]},{"start":{"row":6,"column":0},"end":{"row":6,"column":4},"action":"insert","lines":["    "]},{"start":{"row":7,"column":0},"end":{"row":7,"column":4},"action":"insert","lines":["    "]}]}],[{"group":"doc","deltas":[{"start":{"row":5,"column":0},"end":{"row":5,"column":4},"action":"insert","lines":["    "]},{"start":{"row":6,"column":0},"end":{"row":6,"column":4},"action":"insert","lines":["    "]}]}],[{"group":"doc","deltas":[{"start":{"row":5,"column":53},"end":{"row":5,"column":54},"action":"insert","lines":["v"]}]}],[{"group":"doc","deltas":[{"start":{"row":5,"column":54},"end":{"row":5,"column":55},"action":"insert","lines":["1"]}]}],[{"group":"doc","deltas":[{"start":{"row":5,"column":55},"end":{"row":5,"column":56},"action":"insert","lines":["/"]}]}],[{"group":"doc","deltas":[{"start":{"row":9,"column":3},"end":{"row":10,"column":0},"action":"insert","lines":["",""]}]}],[{"group":"doc","deltas":[{"start":{"row":10,"column":0},"end":{"row":11,"column":0},"action":"insert","lines":["",""]}]}],[{"group":"doc","deltas":[{"start":{"row":11,"column":0},"end":{"row":23,"column":7},"action":"insert","lines":["login.factory('SessionService',function(){","       return{","           get:function(key){","               return sessionStorage.getItem(key);","           },","           set:function(key,val){","               return sessionStorage.setItem(key,val);","           },","           unset:function(key){","               return sessionStorage.removeItem(key);","           }","       }","    });"]}]}],[{"group":"doc","deltas":[{"start":{"row":0,"column":0},"end":{"row":0,"column":3},"action":"insert","lines":["// "]},{"start":{"row":2,"column":0},"end":{"row":2,"column":3},"action":"insert","lines":["// "]},{"start":{"row":3,"column":0},"end":{"row":3,"column":3},"action":"insert","lines":["// "]},{"start":{"row":4,"column":0},"end":{"row":4,"column":3},"action":"insert","lines":["// "]},{"start":{"row":5,"column":0},"end":{"row":5,"column":3},"action":"insert","lines":["// "]},{"start":{"row":6,"column":0},"end":{"row":6,"column":3},"action":"insert","lines":["// "]},{"start":{"row":7,"column":0},"end":{"row":7,"column":3},"action":"insert","lines":["// "]},{"start":{"row":8,"column":0},"end":{"row":8,"column":3},"action":"insert","lines":["// "]},{"start":{"row":9,"column":0},"end":{"row":9,"column":3},"action":"insert","lines":["// "]},{"start":{"row":11,"column":0},"end":{"row":11,"column":3},"action":"insert","lines":["// "]},{"start":{"row":12,"column":0},"end":{"row":12,"column":2},"action":"insert","lines":["//"]},{"start":{"row":13,"column":0},"end":{"row":13,"column":2},"action":"insert","lines":["//"]},{"start":{"row":14,"column":0},"end":{"row":14,"column":2},"action":"insert","lines":["//"]},{"start":{"row":15,"column":0},"end":{"row":15,"column":2},"action":"insert","lines":["//"]},{"start":{"row":16,"column":0},"end":{"row":16,"column":2},"action":"insert","lines":["//"]},{"start":{"row":17,"column":0},"end":{"row":17,"column":2},"action":"insert","lines":["//"]},{"start":{"row":18,"column":0},"end":{"row":18,"column":2},"action":"insert","lines":["//"]},{"start":{"row":19,"column":0},"end":{"row":19,"column":2},"action":"insert","lines":["//"]},{"start":{"row":20,"column":0},"end":{"row":20,"column":2},"action":"insert","lines":["//"]},{"start":{"row":21,"column":0},"end":{"row":21,"column":2},"action":"insert","lines":["//"]},{"start":{"row":22,"column":0},"end":{"row":22,"column":2},"action":"insert","lines":["//"]},{"start":{"row":23,"column":0},"end":{"row":23,"column":3},"action":"insert","lines":["// "]}]}]]},"timestamp":1422302892763}