2014-01-06 12:34:25 -08:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
//Global service for global variables
|
2014-01-17 06:46:12 -08:00
|
|
|
angular.module('insight.system').factory('Global', [
|
2014-01-06 12:54:32 -08:00
|
|
|
function() {
|
|
|
|
var _this = this;
|
|
|
|
_this._data = {
|
|
|
|
user: window.user,
|
|
|
|
authenticated: !! window.user
|
|
|
|
};
|
2014-01-06 12:34:25 -08:00
|
|
|
|
2014-01-06 12:54:32 -08:00
|
|
|
return _this._data;
|
|
|
|
}
|
2014-01-06 12:34:25 -08:00
|
|
|
]);
|