PageSourceSearch

https://usssa.com/js/controllers/intercomCtrl.js

js usssa.com collected 2026-09-24 09:31:40 UTC 1,974 bytes, 47 lines download raw bytes

1
2usssa.controller('intercomCtrl', ['$scope', '$rootScope', '$filter', '$http', '$location', 'jsLib', 'API', function ($scope, $rootScope, $filter, $http, $location, jsLib, API) {
3
4    function init() {
5		$scope.sportID = jsLib.getSportID();
6
7		$scope.loading = false;
8		$scope.error = false;
9		$scope.errorMsg = 'There was an error. Please try again.';
10		$scope.success = false;
11		getAccountDetails();
12	};
13
14    function getAccountDetails() {
15		API.post({action: 'getIntercomUser'}).
16			then(function (data) {
17			    $scope.accountDetails = data;
18
19          if ($scope.accountDetails.Player) {
20            var user = $scope.accountDetails.Player[0];
21            var userJWT = $scope.accountDetails.UserJWT;
22
23            window.intercomSettings = {
24              api_base: "https://api-iam.intercom.io",
25              app_id: "rj0w5n0n",
26              name: `${user.PlaFirst} ${user.PlaLast}`,
27              email: user.PlaEmail1,
28              user_id: user.PlaID,
29              intercom_user_jwt: userJWT,
30              messenger_environment: "9e7o7yqzoo",
31            };
32          } else {
33            window.intercomSettings = {
34              api_base: "https://api-iam.intercom.io",
35              app_id: "rj0w5n0n",
36              messenger_environment: "9e7o7yqzoo",
37            };
38          }
39
40          (function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/rj0w5n0n';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};
40if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();
41
42			});
43	}
44
45    init()
46
47}]);

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.