PageSourceSearch

https://vagas.ciadetalentos.com.br/applicant/resources/js/ats/ats-controllers-a961babd30.js

js ciadetalentos.com.br collected 2026-09-24 10:24:16 UTC 2,650 bytes, 73 lines download raw bytes

1'use strict';
2
3var atsControllers = angular.module('ats-controllers', ['ats-services', 'ats-services-utils', 'ats-security-directives', 'ngCookies']);
4
5/* Navigation Controller */
6atsControllers.controller('NavController', ['$scope', '$rootScope', '$route', '$location', function ($scope, $rootScope, $route, $location) {
7    $rootScope.route = $route;
8    
9	$scope.redirectToLocation = function(locationPath) {
10		$location.path(locationPath);
11	};
12
13}]);
14
15/* Translate Controller */
16atsControllers.controller('LanguageController', ['$rootScope', '$scope', '$translate', '$cookies', '$route', 'AtsDateNumberFormatUtils', 'PersonalData', 'shareDataService', function($rootScope, $scope, $translate, $cookies, $route, AtsDateNumberFormatUtils, PersonalData, shareDataService) {	
17	$rootScope.showChangeLanguage = true;
18	
19	$scope.changeLanguage = function changeLanguage(language) {
20		$scope.applicantPersonalDataDto = {languageInitials: language};
21		$cookies.userLanguage = language;
22		$translate.use(language);
23			
24		AtsDateNumberFormatUtils.getPatternMap({userLanguageInitials: language}, function(data) {
25			$rootScope.patternMap = data;
26				
27			if (!$rootScope.isUserLogged){
28				$route.reload();
29			}
30		});
31		shareDataService.setValue('languageInitials', $scope.applicantPersonalDataDto.languageInitials);
32		if ($rootScope.isUserLogged){
33			PersonalData.updateApplicantLanguage($scope.applicantPersonalDataDto, function(data){
34				$route.reload();				
35			});
36		}
37	};
38 }]);
39
40/* Head Controller */
41atsControllers.controller('HeadController', ['$scope', 'BrowserUtils', function($scope, BrowserUtils) {
42	$scope.isFirefoxBrowser = BrowserUtils.isFirefoxBrowser();
43	
44	if (!BrowserUtils.isBrowserSupported()) {
45		$rootScope.doAlert('Alerta: O ATS Globe oferece suporte somente para versão 11 ou superior do Internet Explorer.');
46	}
47}]);
48
49/* Menu Controller */
50atsControllers.controller('MenuController', ['$rootScope', '$scope','$location', function($rootScope, $scope, $location) {
51	$scope.redirectTo = function(path, newSelectionProcess) {
52		if(newSelectionProcess){
53			$rootScope.selectionProcessId = undefined;
54		}
55		$location.path(path);
56	}
57}]);
58
59/* Footer Controller */
60atsControllers.controller('FooterController', ['$scope','$location', '$rootScope', function($scope, $location, $rootScope) {	
61	$scope.getYear = new Date().getFullYear();
62	
63	$scope.goToFaq = function() {
64		$location.path('/faq');
65	}
66	$scope.goToAcceptance = function() {
67		$rootScope.openModal('acceptanceDialog', $rootScope.calculateModalPercentage());
68		//$location.path("/acceptance");
69	}	
70	$scope.goOpportunities = function() {
71		$location.path("/opportunities-list");
72	}
73}]);

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.