PageSourceSearch

https://fxboss.firstcitizens.com/app/assets/js/event_controller.js?v=31082026-1758

js firstcitizens.com collected 2026-09-24 21:52:02 UTC 2,141 bytes, 86 lines download raw bytes

1
2app.controller('EventCtrl', function($scope, Idle, Keepalive, $modal, $rootScope) {
3
4    /*ConfigService.getConfig_path().success(function(data) {
5        $scope.started = false;
6        $rootScope.bossTimerValue = parseFloat(data.UserIdleTimeout);
7        Idle.setIdle($rootScope.bossTimerValue * 60); 
8        Idle.setTimeout(30);
9        $rootScope.idleTimerTotalCount = 30;
10    });*/
11
12	//$scope.started = false;
13	$rootScope.initiateTimer = function(){
14		console.log("$rootScope.bossTimerValue===>>>"+$rootScope.bossTimerValue);
15		var _timerVal;
16		if(isNaN($rootScope.bossTimerValue)){
17			_timerVal=10;
18		}else{
19			_timerVal=$rootScope.bossTimerValue?$rootScope.bossTimerValue:10;
20		}
21		
22	    Idle.setIdle(_timerVal * 60); 
23	    Idle.setTimeout(30);
24	    $rootScope.idleTimerTotalCount = 30;
25	}
26    
27    function closeModals() {
28        if ($scope.warning) {
29            $scope.warning.close();
30            $scope.warning = null;
31        }
32    }
33
34    $scope.$on('IdleStart', function() {
35        if ($rootScope.hideWarningTimeOut) {
36			sessionStorage.clear();
37			if ($rootScope.isSSOUser && $rootScope.enabledSSOLogoutButton) {
38				$rootScope.ssoClientLogout();
39			} else {
40				$rootScope.logout();
41			}
42		} else {
43		    closeModals();
44			$scope.warning = $modal.open({
45				templateUrl: 'warning-dialog.html',
46				windowClass: 'modal-danger'
47			});
48		}
49    });
50
51    $scope.$on('IdleEnd', function() {
52        closeModals();
53    });
54
55    $scope.$on('IdleTimeout', function() {
56        closeModals();
57        sessionStorage.clear();
58        if($rootScope.isSSOUser && $rootScope.enabledSSOLogoutButton ){
59        	$rootScope.ssoClientLogout();
60        }else{
61        	$rootScope.logout();
62        }
63    });
64
65    $scope.start = function() {
66        //closeModals();
67        Idle.watch();
68        $scope.started = true;
69    };
70
71    $scope.stop = function() {
72        closeModals();
73        Idle.unwatch();
74        $scope.started = false;
75
76    };
77});
78
79app.config(['KeepaliveProvider', 'IdleProvider', function(KeepaliveProvider, IdleProvider) {
80  KeepaliveProvider.interval(10);
81}]);
82
83 app.run(['Idle', function(Idle) {
84  Idle.watch();
85}]);
86

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.