1var veritracks={};"undefined"!=typeof exports&&(module.exports=veritracks); 2if(isNullOrUndefined(veritracks))throw"System.js requires the veritracks namespace defined";isNullOrUndefined(veritracks.system)&&(veritracks.system={}),veritracks.system={},veritracks.system.redirectToLogin=function(e){"use strict";var e=isNullOrUndefined(e)?encodeURIComponent(window.location.pathname)+escape(window.location.hash):e,t=window.location.href.split("Account/Login.html");0<t.length?(t=t[0].split("#")[0],window.location.href=t+"Account/Login.html?ReturnUrl="+e):window.location.href="Account/Login.html?ReturnUrl="+e},veritracks.system.logout=function(){"use strict";veritracks.terminateLogging(),veritracks.security.controller.expireSession(function(){var e=$("#uSessionLogout").attr("href");window.location.href=e})},veritracks.system.raiseFailure=function(e){"use strict";top.name=e,window.location.href="Account/Fail.htm"}; 3function getKeys(e){"use strict";var n=null,t=[];if(!isNullOrUndefined(e))if(isNullOrUndefined(Object.keys))for(n in e)e.hasOwnProperty(n)&&t.push(n);else t=Object.keys(e);return t}function count(e){"use strict";var n=null,t=0;if(!isNullOrUndefined(e))if(isNullOrUndefined(Object.keys))for(n in e)e.hasOwnProperty(n)&&t++;else t=Object.keys(e).length;return t}"undefined"!=typeof exports&&(module.exports={getKeys:getKeys,count:count}); 4Array.isArray||(Array.isArray=function(r){return"[object Array]"===Object.prototype.toString.call(r)}),"undefined"!=typeof exports&&(module.exports={isNullOrUndefined:isNullOrUndefined}); 5if(!isNullOrUndefined(sumo))throw"SumoClass.js: Cannot create the sumo namespace. An object with this name already exists.";var sumo={Class:function(){"use strict";var a="sumo.";this.EventCallbacks={},this.functionName=function(t){return/(\w+)\(/.exec(t.toString())[1]},this.className=function(){return this.functionName(this.constructor)},this.isNothing=function(t){return null==t},this.bind=function(t,n,i){var t=a+t,s=this.EventCallbacks[t];if(null===n)throw"Programmer error: Cannot bind a null handler to an event.";this.isNothing(s)&&(this.EventCallbacks[t]=s=[]),s.push({handler:n,data:i})},this.unbind=function(t,n){var i,s=this.EventCallbacks[a+t];if(null===n)throw"Programmer error: Cannot bind a null handler to an event.";if(!this.isNothing(s))for(i=0;i<s.length;i++)if(s[i].handler===n){s[i]=null,s.splice(i,1);break}},this.trigger=function(t,n){var i,s=null,e=this.EventCallbacks[a+t],l=[];if(!this.isNothing(e)){for(i=0;i<e.length;i++)s=e[i],this.isNothing(s.handler)||l.push(s);for(i=0;i<l.length;i++)(s=l[i]).handler(this,n,s.data)}},this.dispose=function(){for(var t=null,n=null,i=!0,s=!0,e=null;i;)for(t in i=!1,this.EventCallbacks)if(this.EventCallbacks.hasOwnProperty(t)){for(e=this.EventCallbacks[t];s;)for(s=!1,n=0;n<e.length;n++)if(!this.isNothing(e[n])){e[n]=null,e.splice(n,1),s=!0;break}this.EventCallbacks[t]=null,delete this.EventCallbacks[t],i=!0;break}}}};"undefined"!=typeof exports&&(module.exports=sumo.Class); 6function CacheSettings(){"use strict";this.OrganizationsUpdateInterval=600,this.UserPreferenceUpdateInterval=600,this.SystemMessageUpdateInterval=300,this.DashboardReportUpdateInterval=3600,this.DashboardReportColumnsUpdateInterval=1200,this.EnrolleeReportUpdateInterval=60,this.EnrolleeReportColumnUpdateInterval=7200,this.FullEnrolleeReportUpdateInterval=60,this.EnrolleeTileUpdateInterval=120,this.EventTileUpdateInterval=30,this.ZoneTileUpdateInterval=1800,this.AnalysisTileUpdateInterval=180,this.ReportTileUpdateInterval=60,this.InventoryTileUpdateInterval=600,this.AgentTileUpdateInterval=600,this.UserTileUpdateInterval=600,this.EnrolleesUpdateInterval=60,this.CurrentDeviceAssignmentsUpdateInterval=600,this.EnrolleeEventSummaryUpdateInterval=60,this.OffenderSchedulesUpdateInterval=600,this.EnrolleeLastContactUpdateInterval=30,this.TagUpdateInterval=600,this.EidReservationUpdateInterval=120,this.RiskLevelUpdateInterval=300,this.EventsUpdateInterval=30,this.ZonesUpdateInterval=600,this.IncidentsUpdateInterval=60,this.ReportUpdateInterval=60,this.ReportInstanceUpdateInterval=60,this.ReportFilterUpdateInterval=60,this.ReportFilterInstanceUpdateInterval=60,this.ReportGroupReportUpdateInterval=60,this.ReportAgentUpdateInterval=60,this.DevicesUpdateInterval=60,this.DevicesContactUpdateInterval=60,this.DeviceClustersUpdateInterval=300,this.DeviceClusterDevicesUpdateInterval=600,this.DeviceLastContactUpdateInterval=30,this.AgentsUpdateInterval=600,this.StopAgentsUpdateInterval=1200,this.UsersUpdateInterval=600,this.EscalationPlanUpdateInterval=180,this.LiveMapUpdateInterval=60}function PaginationSettings(){"use strict";this.DashboardItems=40,this.DashboardEventsItems=7,this.EnrolleesOffendersItems=40,this.EnrolleesVictimsItems=7,this.EventsItems=7,this.EventsListItems=30,this.ZonesItems=7,this.AnalysisIncidentsItems=7,this.AnalysisIncidentsMat
6chItems=7,this.AnalysisSpatialItems=7,this.ReportsItems=7,this.InventoryDevicesItems=7,this.InventoryDeviceClustersItems=7,this.AgentsAgentsItems=7,this.AgentsEscalationPlansItems=7}function SystemSettings(){"use strict";this.IsDebug=!1,this.EventHistoryOffset=7} 7isNullOrUndefined(veritracks.security)&&(veritracks.security={}),veritracks.security.AuthenticationController=function(){"use strict";var n=this,r="",t=-1,i=3e5,e=-1,o=!0,s="";function c(){var e=GenerateButtonCommandBar(),i=window.setTimeout(n.systemTimeout,12e4);u(),window.clearTimeout(t),GenerateButton(localizeWrapper("cEnrolleeContinue"),"Continue","veritracks.security.onExtendClick("+i+")").appendTo(e),DisplayPopup(localizeWrapper("cDefaultExtendSession"),localizeText("cDefaultExtendSessionExpire"),e,!0)}function u(){0<e&&(window.clearTimeout(e),e=-1)}function a(){u(),ExtendServerSession(null),l()}function l(){u(),e=window.setTimeout(a,i)}this.EnableTimer=function(e){(o=e)||window.setInterval(ExtendServerSession,6e5)},this.SetTimer=function(e){i=1e3*e*60},this.getJWT=function(t){if(""===s){var e=n.getCookie("VeritracksAuthenticationToken");if(e)return callAjax("VeritracksAuthWithJWT",{aSecurityToken:e},function(e,i){t(s=i)},function(e){},{},!1)}t(s)},this.clearJWT=function(){s=""},this.setCookie=function(e,i,t){var n=new Date,o=50;isNullOrUndefined(t)||(o=t),n.setMinutes(n.getMinutes()+o),t=escape(i)+"; expires="+n.toUTCString(),r=e+"="+t+";path=/",top.name=r,$("#uSecurityToken").val(escape(i))},this.SetCustomCookie=function(e,i){$("#"+e).val(i)},this.getCookie=function(e){for(var i,t,n=r.split(";"),o=0;o<n.length;o++)if(i=n[o].substr(0,n[o].indexOf("=")),t=n[o].substr(n[o].indexOf("=")+1),(i=i.replace(/^\s+|\s+$/g,""))==e)return unescape(t)},this.clearCookie=function(e){n.setCookie(e,"",-1)},this.extendCookie=function(e){var i=!1,t=n.getCookie(e);return isNullOrUndefined(t)||""===t||(n.setCookie(e,t),i=!0),i},this.tryGetSecurityJWT=function(e,i){return s},this.tryGetSecurityToken=function(){var e=n.getCookie("VeritracksAuthenticationToken");return isNullOrUndefined(e)?(window.clearTimeout(t),e="",gSystemSettings.IsDebug?veritracks.system.raiseFailure("tryGetSecurityToken: security token lost"):veritracks.system.redirectToLogin()):"string"!=typeof e&&veritracks.system.raiseFailure("Cookie is not a string. "+e.toString()),e},this.extendSession=function(){window.clearTimeout(t),veritracks.security.controller.extendCookie("VeritracksAuthenticationToken")?n.startTimer():gSystemSettings.IsDebug?veritracks.system.raiseFailure("extendSession: security token lost"):veritracks.system.redirectToLogin()},this.startTimer=function(){o&&(t=window.setTimeout(c,288e4),e<0)&&l()},this.systemTimeout=function(){window.location.href=window.location.origin+"/Account/Timeout.html"},this.expireSession=function(e){var i=function(){};isNullOrUndefined(e)||(i=e),ExpireServerSession(i,function(e,i,t,n){},null)},isNullOrUndefined(top.name)||""===top.name||(r=top.name)},veritracks.security.onExtendClick=function(e){"use strict";window.clearTimeout(e),veritracks.security.controller.extendSession(),ClosePopup()},veritracks.security.controller=new veritracks.security.AuthenticationController,veritracks.security.sso=function clientKeyAuthentication(){"use strict";var e,n=gup("authenticationKey",window.location.search),o=gup("client",window.location.search);n&&o?window.callAjax("GetSSOService",{aKeyCredentials:{Key:n,Client:o}},function(e,i){var t;gServiceUrlList=i+VERITRACKS_SERVICE_ENDPOINT,sessionStorage.veritracksservice=gServiceUrlList,i=n,t=o,window.veritracks.security.controller.setCookie("VeritracksAuthenticationToken","invalidtoken"),window.callAjax("AuthenticateClient",{aKeyCredentials:{Key:i,Client:t}},function(e,i){window.veritracks.security.controller.setCookie("VeritracksAuthenticationToken",i);i=window.location.search,i=new URLSearchParams(i).get("SSOPath");window.veritracks.security.controller.SetCustomCookie("uReturnPath",i),window.location.href="../?uReturnPath="+i},function(){window.DisplayPopup("LOGIN ERROR","<div> Incorrect Key used.... Closing Session</div>",null,!1),window.setTimeout(function(){window.close()},3e3)},null).fail(function(e,i){window.DisplayPopup("LOGIN "+i.toUpperCase(),"<div> Incorrect Key or Client used.... Closing Session </div>",null,!1)})},function(e,i,t,n){window.DisplayPopup("LOGIN ERROR","<div> Incorrect Key used.... Closing Session</div>",null,!1),window.setTimeout(function(){window.close()},3e3)}).fail(function(e,i){window.DisplayPopup("LOGIN "+i.toUpperCase(),"<div> Incorrect Key or Client used.... Closing Session </div>",null,!1)}):(e=[],isNullOrUndefined(o)&&e.push("<b>Client</b>"),window.DisplayPopup("LOGIN ERROR","<div> Parameter Missing or Invalid: "+e.join(" ")+" </div>",null,!1))}; 8var gAjaxIsInitialized=!1,mIsInError=!1,mIsSystemBroken=!1;function initializeAjax(){"use strict";gAjaxIsInitialized||(document.domain.indexOf("veritracks"),$.ajaxSetup({contentType:"application/json;
8 charset=utf-8",cache:!1,timeout:6e6,crossDomain:!0,"async":!0}),$.support.cors=!0,gAjaxIsInitialized=!0)}function catastrophicErrorHandler(e,t,a){"use strict";var n=500===e.status&&!isNullOrUndefined(e.responseText)&&-1===e.responseText.search(/Authenticate Failed/)&&-1===e.responseText.search(/AssignConnectionString Failed/),r=!1;return!mIsInError&&n&&(mIsInError=!0,isNullOrUndefined(e.responseXML)?0:isNullOrUndefined(e.responseXML.text)?isNullOrUndefined(e.responseXML.childNodes)||isNullOrUndefined(e.responseXML.childNodes[0])||isNullOrUndefined(e.responseXML.childNodes[0].textContent)||(r=-1!==e.responseXML.childNodes[0].textContent.indexOf("InvalidToken"),-1!==e.responseXML.childNodes[0].textContent.indexOf("UserLoggedInElseWhere")?0:e.responseXML.childNodes[0].textContent):(r=-1!==e.responseXML.text.indexOf("InvalidToken"),-1!==e.responseXML.text.indexOf("UserLoggedInElseWhere")?0:e.responseXML.text),r?veritracks.system.redirectToLogin():n=!1,mIsInError=!1),n}function isPageStateStatic(e){"use strict";var t=!isNullOrUndefined(e.CallState)&&!isNullOrUndefined(e.ResponseState);return t=(t=(t=(t=t&&e.CallState.Tab===e.ResponseState.Tab)&&e.CallState.Layout===e.ResponseState.Layout)&&e.CallState.Primary===e.ResponseState.Primary)&&e.CallState.Secondary===e.ResponseState.Secondary}function getAPI(){return gServerList.API.MobileApi}function getServiceUrl(){return gServiceUrlList||gServerList.veritracks[0]}function callAjax(e,t,a,r,i,n){"use strict";var s,o,l,d=new Date,c=null,u=!1;return isNullOrUndefined(mStateManager)||(s=mStateManager.getSystemState()),initializeAjax(),l=getServiceUrl(),isNullOrUndefined(u)||(u=!n),$.ajax({type:"POST",url:l+"/"+e,headers:{"Cache-Control":"no cache","X-XSS-Protection":"1","X-Content-Type-Options":"nosniff","X-Frame-Options":"SAMEORIGIN"},dataType:"json",data:JSON.stringify(t),"async":!0,crossDomain:!0,success:function(e){c=new Date,c.getTime(),d.getTime(),isNullOrUndefined(mStateManager)||(o=mStateManager.getSystemState()),!u&&!isPageStateStatic({CallState:s,ResponseState:o})||isNullOrUndefined(a)||(isNullOrUndefined(e)?a(i,e):isNullOrUndefined(e.ExtraData)?isNullOrUndefined(e.Data)?a(i,e,{CallState:s,ResponseState:o}):a(i,e.Data,{CallState:s,ResponseState:o}):a(i,e.Data,e.ExtraData,{CallState:s,ResponseState:o}))},error:function(e,t,a){var n=catastrophicErrorHandler(e,t,a);n||mIsInError||"timeout"!==t||(mIsInError=!0,mActivityNotification.addNotification(localizeWrapper("cDefaultNetworkError")+t),mIsInError=!1),n||mIsInError||isNullOrUndefined(r)?n||mIsInError||!isNullOrUndefined(r)||(window.location.hash=encodeURIComponent(window.location.hash)):r(i,e,t,a,this)}})}function callAjaxAPI(e,t,a,n,r,i,s,o){"use strict";var l,d,c,u=new Date,S=null,f=!1,o=(isNullOrUndefined(mStateManager)||(l=mStateManager.getSystemState()),initializeAjax(),c=getAPI(),isNullOrUndefined(f)||(f=!o),{type:e||"POST",url:c+"/"+a,headers:{Authorization:"Bearer "+t,"Content-Type":"application/json","Cache-Control":"no cache","X-XSS-Protection":"1","X-Content-Type-Options":"nosniff","X-Frame-Options":"SAMEORIGIN"},"async":!0,crossDomain:!0,success:function(e){S=new Date,S.getTime(),u.getTime(),isNullOrUndefined(mStateManager)||(d=mStateManager.getSystemState()),!f&&!isPageStateStatic({CallState:l,ResponseState:d})||isNullOrUndefined(r)||(isNullOrUndefined(e)?r(s,e):isNullOrUndefined(e.ExtraData)?isNullOrUndefined(e.Data)?r(s,e,{CallState:l,ResponseState:d}):r(s,e.Data,{CallState:l,ResponseState:d}):r(s,e.Data,e.ExtraData,{CallState:l,ResponseState:d}))},error:function(e,t,a){var n=catastrophicErrorHandler(e,t,a);n||mIsInError||"timeout"!==t||(mIsInError=!0,mActivityNotification.addNotification(localizeWrapper("cDefaultNetworkError")+t),mIsInError=!1),n||mIsInError||isNullOrUndefined(i)?n||mIsInError||!isNullOrUndefined(i)||(window.location.hash=encodeURIComponent(window.location.hash)):i(s,e,t,a,this)}});return n&&(o=Object.assign({data:JSON.stringify(n)},o)),$.ajax(o)}function callAjaxTest(e,t,a,r,i,n){"use strict";var s,o,l=new Date,d=null,c=!1,n=(isNullOrUndefined(mStateManager)||(s=mStateManager.getSystemState()),initializeAjax(),u=getServiceUrl(),isNullOrUndefined(c)||(c=!n),window.location.origin+"/Veritracks.Service.Internal/Application.svc"),u=(-1!==u.indexOf("ds02")&&(n=u),gServerList.threads+"VeritracksThreadsApi/api/threads");return $.ajax({type:"POST",url:u,dataType:"json",headers:{token:veritracks.security.controller.tryGetSecurityToken(),authServer:n+"/"},data:t,"async":!0,crossDomain:!0,success:function(e){d=new Date,d.getTime(),l.getTime(),isNullOrUndefined(mStateManager)||(o=mStateManager.getSystemState()),!c&&!isPageStateStatic({CallState:s,ResponseState:o})||isNullOrUndefined(a)||(isNullOrUndefined(e)?a(i,e):isNullOrUndefined(e.ExtraData)?isNullOrUndefined(e.Data)?a(i,e,{CallState:s,ResponseState:o}):a(i,e.Data,{CallState:s,ResponseState:o}
8):a(i,e.Data,e.ExtraData,{CallState:s,ResponseState:o}))},error:function(e,t,a){var n=catastrophicErrorHandler(e,t,a);n||mIsInError||"timeout"!==t||(mIsInError=!0,mActivityNotification.addNotification(localizeWrapper("cDefaultNetworkError")+t),mIsInError=!1),n||mIsInError||isNullOrUndefined(r)?n||mIsInError||!isNullOrUndefined(r)||(window.location.hash=encodeURIComponent(window.location.hash)):r(i,e,t,a,this)}})}function simulateFault(){"use strict";callAjax("FaultTest")}function fetchDataContract(t,e){let a=Object.assign({aExpression:null,aVersion:0,aSortExpression:null,aRecordCount:null,aDoCheckState:null,aOutParams:null,aPageNumber:0,aPageSize:7,aPagination:!1},e);return new Promise((n,e)=>a.aPagination?ReadPaginated(t,a.aExpression,a.aVersion,(e,t,a)=>{n({OutParams:e,Data:t,ExtraData:a})},e,a.aOutParams,a.aSortExpression,a.aDoCheckState,a.aPageNumber,a.aPageSize):ReadMultiple(t,a.aExpression,a.aVersion,(e,t,a)=>{n({OutParams:e,Data:t,ExtraData:a})},e,a.aSortExpression,a.aRecordCount,a.aDoCheckState))}!function(){function r(e,t,a,n,r){var i,s,o=new Date,l=null,d=!1,c={},u=(isNullOrUndefined(mStateManager)||(i=mStateManager.getSystemState()),initializeAjax(),u=getServiceUrl(),isNullOrUndefined(d)||(d=!0),{type:e,url:u+t,"async":!0,crossDomain:!0,success:function(e){l=new Date,l.getTime(),o.getTime(),isNullOrUndefined(mStateManager)||(s=mStateManager.getSystemState()),!d&&!isPageStateStatic({CallState:i,ResponseState:s})||isNullOrUndefined(n)||(isNullOrUndefined(e)?n(c,e):isNullOrUndefined(e.ExtraData)?isNullOrUndefined(e.Data)?n(c,e,{CallState:i,ResponseState:s}):n(c,e.Data,{CallState:i,ResponseState:s}):n(c,e.Data,e.ExtraData,{CallState:i,ResponseState:s}))},error:function(e,t,a){var n=catastrophicErrorHandler(e,t,a);n||mIsInError||"timeout"!==t||(mIsInError=!0,mActivityNotification.addNotification(localizeWrapper("cDefaultNetworkError")+t),mIsInError=!1),n||mIsInError||isNullOrUndefined(r)?n||mIsInError||!isNullOrUndefined(r)||(window.location.hash=encodeURIComponent(window.location.hash)):r(c,e,t,a,this)}});u.headers={aSecurityToken:veritracks.security.controller.tryGetSecurityToken()},"GET"==e?u.contentType="application/json; charset=utf-8":a&&(u.dataType="json",u.data=JSON.stringify(a)),$.ajax(u)}var e={Get:function(e,t,a){r("GET",e,null,t,a)},Post:function(e,t,a,n){r("POST",e,t,a,n)},Put:function(e,t,a,n){r("PUT",e,t,a,n)}};window.Fetcher=e}(); 9var VeritracksTreeDisplayController=function(e,i){var S=[],b=e,C=!1;function x(e){"use strict";new SumoPredicateBuilder;var i,s,n=new SortExpression,r=(n.addAscendingColumn("Name"),[]);for(s in e=n.sort(e))e.hasOwnProperty(s)&&(i=e[s],r.push("<div>"),r.push('<input type="checkbox" id="uOrganizationSelect'),r.push(i.Id),r.push('" value="'),r.push(i.Id),r.push('" class="SuperUserOrganization" /> '),r.push('<label for="uOrganizationSelect'),r.push(i.Id),r.push('">'),r.push(""),r.push(""),r.push(i.Name),1==i.ParentOriFlag&&mEnabledSuperOri&&r.push("-- Parent Organization"),r.push("</label>"),r.push("</div>"));$("#uOrganizationHolder").html(r.join("")),$("#uOrganizationSearchHolder").css("display","none")}function y(){this.value=0,this.visited=!1,this.edges=0,this.vertices=[]}function z(){this.value=0,this.weight=0}i&&!isNullOrUndefined(i.Overflow)&&(C=i.Overflow),this.buildGraphTree=function(e,i){var s,n,r,a,t,u=[],h=[],l=99999999,p=99999999,o=!1,d=[],c=[],O=[],v=[],f=[],g=[];for(t in S)if(S.hasOwnProperty(t)){if(-1==(s=S[t]).OriPath.indexOf("+")){o=!0;break}1<(n=s.OriPath.split("+")).length&&(-1!=(a=f.indexOf(n[n.length-2]))?(r=g[a],(a=new z).weight=1,a.value=s.Name.trim(),r.vertices.push(a),(r=new y).value=s.Id,r.edges=n.length-2,p=n.length-2):((r=new y).value=s.Id,r.edges=n.length-2,p=n.length-2,d.push(n[n.length-2]),c.push(n.length-2),v.push(s.Id)),g.push(r),f.push(s.Name.toUpperCase().trim()),p<l)&&(l=p,O.push(l))}if(o)x(S);else{for(var m in d)d.hasOwnProperty(m)&&-1==f.indexOf(d[m])&&-1==O.indexOf(c[m])&&O.push(c[m]);for(var w in g)g.hasOwnProperty(w)&&-1!=O.indexOf(g[w].edges)&&-1!=v.indexOf(g[w].value)&&u.push(w);for(var I in h.push('<ul id="parentList" class="OriUlCommon">'),h.push("</ul>"),$("#"+b).html(""),$("#"+b).html(h.join("")),C&&$("#"+b).css("overflow",""),u)u.hasOwnProperty(I)&&!function P(e,i,s,n,r,a,t){"use strict";var u,h=[];if(!e[i].visited)for(var l in u=t.indexOf(e[i].value),u=a[u],0==e[i].vertices.length?h.push('<li id="'+u.Id+'" class="OriLiCommon"><a id="link'+u.Id+'" class="openOriParent notParentLink" href="javascript:void(0);" onClick="showHideOriChildren('+u.Id+');"></a> '):h.push('<li id="'+u.Id+'" class="OriLiCommon"><a id="link'+u.Id+'" class="openOriParent plusSignImage" href="javascript:void(0);" onClick="showHideOriChildren('+u.Id+');"></a> '),h.push('<input type="checkbox" id="uOrganizationSelect'),h.push(u.Id),h.push('" value="'),h.push(u.Id),h.push('" class="Super
9UserOrganization" /> '),h.push('<label for="uOrganizationSelect'),h.push(u.Id),h.push('">'),h.push(""),h.push(""),h.push(u.Name),1==u.ParentOriFlag&&mEnabledSuperOri&&h.push("-- Parent Organization"),h.push("</label>"),h.push('<ul id="ul'+u.Id+'" class="OriUlCommonHide">'),h.push("</ul>"),h.push("</li>"),$("#"+r).append(h.join("")),r="ul"+u.Id,e[i].visited=!0,e[i].vertices)e[i].vertices.hasOwnProperty(l)&&(l=e[i].vertices[l].value.toUpperCase(),-1==(l=n.indexOf(l))||e[l].visited||e[l].edges!=s+1||P(e,l,e[l].edges,n,r,a,t));return}(g,u[I],g[u[I]].edges,f,"parentList",e,i);$("#uOrganizationSearchHolder").css("display","block")}},this.buildFlatTree=function(e){"use strict";x(e)},this.setDataSource=function(e){e&&(S=e)}}; 10var locale={cFind:"Find",cReset:"Reset",cEnrolleeNoTimeline:"No Timeline data for requested timespan",cId:"Id",cEventId:"Event Id",cEnrolleeSearch:"Enrollee Search",cEnrolleeFindEnrollees:"Find Enrollees",cEnrolleeAdvanceSearch:"Advanced Enrollee Search",cEnrolleeFindVictims:"Find Victims",cEventFindEvents:"Find Events",cZoneFindZones:"Find Zones",cAnalysisFindIncidents:"Find Incidents",cAnalysisFindMatches:"Find Matches",cReportFindReports:"Find Reports",cInventoryFindDevices:"Find Devices",cInventoryFindBBG:"Find BLUbox Groups",cAgentFindAgents:"Find Agents",cAgentFindEscalationPlans:"Find Escalation Plans",cAgentFindEnrolleesCaseload:"Find Enrollees in Caseload",cAgentFindMyZones:"Find Zones",cEnrolleeGender:"Gender",cEnrolleeRace:"Race",cEnrolleeHairColor:"Hair Color",cEnrolleeEyeColor:"Eye Color",cEnrolleeMarksAndTattoos:"Marks and Tattoos",cEnrolleeVehicleYear:"Vehicle Year",cEnrolleeLicencePlateNumber:"Vehicle Plate Number",cEnrolleeVehicleColor:"Vehicle Color",cEnrolleeVehicle:"Vehicle Make",cEnrolleeVehicleModel:"Vehicle Model",cEnrolleeBLUtagInternational:"BLUtag International",cEnrollees:"Enrollees",cEnrollee:"Enrollee",cEvents:"Events",cEvent:"Event",cZones:"Zones",cZone:"Zone",cAnalysis:"Analysis",cReports:"Reports",cInventory:"Inventory",cAgents:"Agents",cAgent:"Agent",cUsers:"Users",cEnrolleeMyCaseload:"My Caseload",cEnrolleeCaseloadType:"Caseload Type",cEnrolleeOpenEvents:"Open Events",cEnrolleeHeight:"Height",cEnrolleeHeightCm:"Height(cm)",cEnrolleeName:"Name",cEnrolleeOrganization:"Organization",cEnrolleeAgency:"Agency",cEnrolleePrimaryId:"Primary Id",cEnrolleeSecondaryId:"Secondary Id",cAgentPrimaryAgent:"Primary Agent",cEventScope:"Scope",cEnrolleeStatus:"Status",cEventHits:"Hits",cEnrolleeIsEnrollink:"Is Enrollink",cEnrolleeIsAssigned:"Is Assigned",cEnrolleeRiskLevel:"Risk Level",cEnrolleeArchived:"Archived",cEventAllActionableEvents:"All Actionable Events",cEventType:"Event Type",cEventAgentOfRecord:"Agent of Record",cEventIsOpen:"Is Open",cEnrolleeActivelyAssigned:"Actively Assigned",cEventLongerThan:"Longer Than",cEventMethod:"Method",cEventFormat:"Format",cEventTime:"Time",cEventStartDate:"Start Date",cEventStopDate:"Stop Date",cEventStop:"Stop",cEventConfirmedDate:"Confirmed Date",cEventConfirmed:"Confirmed",cEventIsConfirmed:"Is Confirmed",cEventConfirmedBy:"Confirmed By",cEventConfirmedOn:"Confirmed On",cEventNewNote:"New Note...",cEventNotes:"Notes",cEventTotalPoints:"Total Points",cZonePoints:"Zone Points",cEventMENotes:"Monitored Event Notes",cEventMonitoredEvent:"Monitored Event Instant Report",cEnrolleeDescription:"Description",cEnrolleeResults:"Results",cAnalysisStart:"Start",cAnalysisEnd:"End",cSundayLetter:"S",cMondayLetter:"M",cTuesdayLetter:"T",cWednesdayLetter:"W",cThursdayLetter:"R",cFridayLetter:"F",cSaturdayLetter:"S",cAgentContactMethod:"Contact Method",cAgentContactInterval:"Contact Interval",cAgentEscalationPlan:"Escalation Plan",cType:"Type",cEnrolleePayTransactionDate:"Transaction Date",cEnrolleePayPaymentType:"Payment Type",cEnrolleePayRefNumber:"Reference Number",cEnrolleePayAmount:"Amount",cEnrolleePayTaxAmount:"Tax Amount",cEnrolleePayTotalAmount:"Total Amount",cEnrolleePayUpdate:"Updating Enrollee Pay program...",cEnrolleePayUpdateFailed:"Enrollee Pay failed...",cEnrolleeProduct:"Product",cEnrolleeSerialNumber:"Serial Number",cSerialNumber:"Serial Number",cEnrolleeStartDate:"Start Date",cEnrolleeEndDate:"End Date",cEnrolleeStopD
10ate:"Stop Date",cEnrolleeChangeReason:"Reason for Change",cEnrolleeChargerReturnStatus:"Charger Return Status",cEnrolleeZoneScheduleType:"Zone Category",cEnrolleeScheduleType:"Schedule Type",cEnrolleeScheduleTarget:"Schedule Target",cEnrolleeScheduleTargetType:"Target Type",cEnrolleeDateTime:"Date/Time",cEnrolleeCheckIn:"Check In",cEnrolleePoints:"Points",cInventoryRecords:"Records",cInventoryGPS:"GPS",cInventoryPercentGPS:"Percent GPS",cInventoryBatteryLevel:"Battery Level",cInventoryBatteryVoltage:"Voltage",cInventoryDeviceStatus:"Device Status",cInventoryDevice:"Device",cInventorySerialProduct:"Serial # /<br/> Product",cInventoryStatusOrganization:"Status /<br/>Organization",cReportIsRequired:"Is Required",cReportValue:"Value",cEnrolleeAddNewSchedule:"Add New Schedule",cEnrolleeEditSchedule:"Edit Schedule",cAnalysisCaseNumber:"Case Number",cAnalysisIncidentNumber:"Incident Number",cEnrolleePrimaryOffense:"Primary Offense",cAnalysisDisposition:"Disposition",cZoneIsMine:"My Zones",cZoneType:"Type",cZoneShape:"Shape",cZoneScope:"Scope",cDashboardColumn:"Column",cDashboardAbbr:"Abbr",cDashboardUpDown:"Up/Down",cDashboardSortOrder:"Sort Order",cEnrolleeFindMapObjects:"Find Map Objects",cEnrolleeDisplay:"Display",cZoneZonesSmallerThan:"Zones Smaller Than",cZone250:"250 ft",cZone500:"500 ft",cZone750:"750 ft",cZone1000:"1000 ft",cZone1500:"1500 ft",cZone5280:"1 mile",cDashboardLastTrack:"Last Track",cEnrolleeSave:"Save",cEnrolleeUpdate:"Update",cEnrolleeDisable:"Disable",cEnrolleeEdit:"Edit",cEnrolleeDelete:"Delete",cEnrolleeCancel:"Cancel",cEnrolleeRemove:"Remove",cEnrolleeClose:"Close",cEnrolleeContinue:"Continue",cEnrolleeRestart:"Restart",cEnrolleeChange:"Change",cEnrolleeAssignment:"Assignment",cEnrolleeAddToMap:"Add To Map",cEnrolleAddAllToMap:"Add All To Map",cEnrolleeRemoveFromMap:"Remove From Map",cEnrolleeAddSecondaryOffender:"Add Secondary Enrollee",cEventAddCaseNotes:"Add Case Note",cEventConfirm:"Confirm",cEventConfirmFor:"Confirm for",cEventConfirmEventsFor:"Confirm Events for",cEventConfirmEvent:"Confirm Event",cEventHasNotes:"Has Notes",cDashboardEditColFav:"Edit Column Favorites",cEnrolleeAddNewNote:"Add New Note",cEnrolleeMobileAppImage:"Image",cEnrolleeMobileAppCheckIn:"Location Verification",cEnrolleeMobileAppPassed:"Passed",cEnrolleeMobileAppCheckInTime:"Verification Time",cEnrolleeMobileAppCheckInId:"Id",cEnrolleeMobileAppLocation:"Location",cEnrolleeMobileAppConfirmOnDemand:"Location Verification On Demand Request",cEnrolleeMobileAppSelfReport:"Self Reported Profile Update Request",cEnrolleeMobileAppQuestionnaire:"Questionnaire",cEnrolleeMobileAppScheduleRequest:"Time Out Schedule Request",cEnrolleeMobileAppRequestQuestionnaire:"Request New answers",cEnrolleeMobileAppRequestAgentResponseTitle:"Approval/denial confirmation",cEnrolleeMobileAppVideoCall:"Video Call",cEnrolleeAddNote:"Add Note",cEnrolleeAddressStreet1:"Street 1",cEnrolleeAddressStreet2:"Street 2",cEnrolleeAddressCity:"City",cEnrolleeAddressState:"State",cEnrolleeAddressZipCode:"Zip Code",cEnrolleeAddressCountry:"Country",cEnrolleeAdditionalInfo:"Additional Info",cEnrolleePhone:"Phone",cEnrolleeAltPhone:"Alt Phone",cEnrolleeNotes:"Notes",cTitle:"Title",cEnrolleeSpeed:"Speed",cEnrolleeAddressDeleteContinue:"Click Continue to delete this address.",cEnrolleeAddress:"Address",cEnrolleeAddressAutoFill:"Auto Fill",cEnrolleeAddAddress:"Add Address",cEnrolleeEditAddress:"Edit Address",cEnrolleeDeleteAddress:"Delete Address",cEnrolleeDetails:"Details",cEnrolleeLatitude:"Latitude",cEnrolleeLongitude:"Longitude",cEnrolleeBluBoxNotification:"BLUBox Notification",cEnrolleeBluBoxMoveNotification:"The enrolleeâs home address has already been confirmed. Saving this updated address will automatically reassign your BLU+ resulting in the location of the BLUbox needing to be re-verified. ",cEnrolleeBluBoxMoveNotificationProceed:"Do you want to proceed with saving the updated home address?",cEnrolleeEditMode:"Edit Mode",cEnrolleeEditOffenderLabel:"Edit Label",cEnrolleeOffenderLabelName:"Label Name",cEnrolleeChangeDeviceAssignReason:"Change Device Assignment Reason",cEnrolleeRemoveDeviceAssign:"Remove Device Assignment",cReason:"Reason",cInventoryTrackChargerReturnStatus:"Track Charger Return Status",cInventoryChargerStatus:"Charger Status",cInventoryChargerBroken:"Returned - Broken",cInventoryChargerOk:"Returned - Ok",cInventoryChargerMissing:"Not Returned",cInventoryEditDevices:"Edit Devices",cEnrolleePaySummaryFor:"Enrollee Pay Summary for ",cIncidentsRunningSpatialQuery:"Running spatial query..... This may take a while.",cIncidentsSpatialQueryNoResults:"Spatial query did not return any results, try again.",cIncidentsSpatialSearch:"Spatial Search",cEnrolleeGoEnrollee:"Enrollee Maps",cEnrolleeNavigateSpatial:" Navigating away will not save your search. Are you sure you want to navigate to enrollee before saving?",cEnrolleeAreYouSure:"Are you sure?",cAgentContactAgent:"Contact Agent",cAgentSend:"Send",cAgentChangeSchema:"Change Schema",cAgentChange:"Change",cError:"Error",cErrorSavingEnrollee:"Error saving enrollee please review all fields and try again.",cZoneGlobalAssignedScopeError:"Scope cannot be set to global while the zone is assigned to Enrollees",cOk:"OK",cAgentAddNotifications:"Add Notifications",cAgentEditNotification:"Edit Notification",cEnrolleeNotificationSetup:"Notification Setup",cEnrolleeVictimNotFinished:" Victim creation has not yet finished, please wait a few more minutes.",cEnrolleeMasterScheduleName:"Master Schedule Name: ",cEnrolleeSaveAbsenceSchedulesFor:"Save Absence Schedule for",cEnrolleeEditAbsence:"Edit Absence",cEnrolleeLegend:"Legend",cEnrolleeTimeline:"Timeline",cEnrolleeFRP:"Financial Responsible Party",cEnrolleeFRPByPassGeocode:"Bypass Geocoding",cEnrolleeCurrentFRP:"Current FRP",cEnrolleeFirstName:"First Name",cEnrolleeLastName:"Last Name",cAgentEmail:"Email",cEnrolleeEidSett
10ings:"EID Settings",cEnrolleeBluPlusConfiguration:"BLU+ Configuration",cEnrolleeBluHomeConfiguration:"BLUhome Configuration",cEnrolleeLoading:"Loading",cEnrolleeLatestAssociations:"Latest Associations",cEnrolleeAssociations:"Associations",cInventoryPostMessage:"Post Message",cInventoryClearMessage:"Clear Message",cInventoryBluHomeMessageManager:"BLUhome Message Manager",cInventoryBluHomeSendTopLabel:"Top Line (16 Chars Max):",cInventoryBluHomeSendBottomLabel:"Bottom Line (16 Chars Max):",cInventoryBluHomeSendMessage:"This tool will allow ou to post a short message on the front of Enrollee's BLUhome. It will be displayed in two 16 character lines which you can define below. Click the Post Message button to send the message to the BLUhome. Click the Clear Message button to clear any previous message that may be on the BLUhome.",cEnrolleeCalendarSchedule:"Enrollee Calendar Schedule",cEnrolleeViewAbsenceSchedules:"View Absence Schedules",cEnrolleeReoccurring:"Recurring",cAgentChangeLogonDetails:"Change logon details",cAgentParentOrganizationWarning:"You are logging into a Parent Organization. Veritracks is going to attempt to load all ",cAgentParentOrganizationChildLoadWarning:" Child Organizations under this Parent Organization. This may be time consuming and could result in degraded system performance.",cAgentWarning:"Warning",cAgentContactUs:"contact us",cAgentContactSolutionsCenter:"<p>Contact our Solutions Center for technical support.</p><p> E-mail: [email protected] </p><p> Toll-Free: 1-866-703-7867 </p>",cAgentSubmit:"Submit",cAgentProvideFeedback:"Provide Feedback",cEnrolleeRetrieveArchive:"Retrieve from Archive",cEnrolleeSearchArchive:"Search Enrollee Archive",cAgentLoginIncorrectInfo:"Incorrect Information",cAgentNewPassword:"New Password",cAgentConfirmPassword:"Confirm Password",cAgentSecurityQuestion:"Security Question",cAgentSecurityAnswer:"Security Answer",cAgentLoginRequiredInformation:"Please fill in the required information",cInventoryDeviceActionFailed:"Device Action Read Failed",cEnrolleeComplete:"Complete",cAgentSessionExpiredMessage:"The session has expired. You are being redirected to the login page.",cDefaultCacheErrorRetry:"Error retrieving cachable items. System will retry.",cDefaultServerErrorRetry:"Server not ready. System will retry.<br />Initializing items.",cAgentFeedbackReceived:"Your feedback has been received. Thank you.",cAgentSavingFeedback:"Saving feedback...",cEnrolleeSuccessRetrievedArchive:"Succesfully retrieved archived enrollees.",cInventoryDeviceActionSent:"Device Action Sent.",cAgentChangeSMSError:"Changing SMS option requires a phone number to be provided.....",cAgentSMSMessageSuccess:"Did you get a message?",cAgentZoneMoveSuccess:"Zones moved successfully!!",cAgentZoneMoveFailed:"Zones move failed....",cAgentBluBoxGroupMoveSuccess:"BLUbox group moved successfully!!",cAgentBluBoxGroupMoveFailed:"BLUbox group moved failed.....",cAgentCaseloadMoveSuccess:"Caseload moved successfully.",cAgentCaseloadMoving:"Moving Caseload to: ",cAgentEnrolleeAdditionalSuccess:"Additional enrollees added successfully.",cAgentEnrolleeAdditionalAdding:"Adding additional enrollees. This may take a few minutes.",cAgentEnrolleesRemovedAdditionalSuccess:"Additional enrollees removed successfully.",cAgentEnrolleeAdditionalRemoving:"Removing additional enrollees. This may take a few minutes.",cAgentDailyNotificationSameScopeError:"Daily Notification with same event and scope cannot be created.",cAgentDailyNotificationAlreadyExists:"Daily Notification already exists.",cAgentImmediateNotificationAlreadyExists:"Immediate Notification already exists.",cAgentNotificationAlreadyExists:"Notification already exists.",cAgentSendEmailAgent:"Sending Email to Agent: ",cAgentLoadingEscalationPlans:"Loading Escalation Plans.",cEnrolleeUnknownEnrollee:"Unknown Enrollee",cAgentMessageSent:"Message sent",cAnalysisSpatialQueryLoading:"Objects to run a spatial search are still loading. Please wait.",cAnalysisSpatialQueryWait:"Running spatial query..... This may take a while.",cAnalysisSpatialQueryNoResults:"Spatial query did not return any results.",cDefaultNoResultsFound:"No results found",cAnalysisSpatialQueryFailed:"Spatial Query failed. Please try again.",cAnalysisSpatialQueryRadiusLarge:"Radius exceeds half a mile. Cannot run spatial query. Set to max.",cAnalysisPointOfInterestRadiusLarge:"Radius exceeds a mile. Cannot use more than one mile.",cAnalysisDeleteEnrolleeMatch:"Deleting from matches Enrollee: ",cAnalysisEnableEnrolleeMatch:"Enabling from matches Enrollee: ",cAnalysisNoMatchesNoSave:"Cannot save without matches.",cAnalysisNoResultsFoundEditSearch:"No results were found, please edit your search",cAnalysisIncidentSaveError:"Error saving incident.",cAnalysisIncidentAlreadyExists:"Incident number already exists.",cAnalysisIncidentMatchSaving:"Saving incident matches with incident number: ",cAnalysisIncidentSaving:"Saving incident: ",cAnalysisIncidentSaved:" Saved Incident: ",cDefaultCenteringAddress:"Centering on address: ",cDefaultAddressNotGeocoded:"Address could not be geocoded.",cDefaultCenteringLatLong:"Centering on LatLong: ",cAnalysisIncidentSaveFailed:"Incident save failed",cDefaultRefreshing:"Refreshing....",cEnrolleeLastTrackRefreshing:"Last Track Popup refreshing....",cEnrolleeSaveNoteFor:"Saved note for ",cEnrolleeSaveCustomReport:"Saved custom report ",cEnrolleeConfirmationEventNotes:"Wrote confirmation event notes for ",cEnrolleeConfirmedEventsFor:"Confirmed events for ",cEnrolleeUpdatedCu
10stomReport:"Updated custom report ",cEnrolleeReportSortOrderUpdate:"Updated sort order for custom report ",cEnrolleeVictimOffenderPairComplete:"Enrollee - Victim Assignment Complete!",cEnrolleeVictimOffenderUnPairComplete:"Enrollee - Victim Unpairing Complete!",cZoneClassifiedZoneSave:"Classified Zone saved with ID: ",cZoneClassifiedZoneFail:"Classified Zone failed with ID: ",cZoneVertexZoneSave:"Vertex Zone saved ",cZoneZoneSave:"Saved Zone: ",cZoneZoneSaveError:"Error saving zone ",cPOISaveErrorAlreadyExist:"We are Sorry, that name already exists. Please try using a different name ",cPOILabelSave:"Saved Label: ",cPOILabelSaveError:"Error saving Area of Interest ",cPOIAreaOfInterestSave:"Saved Area of Interest: ",cPOIAreaOfInterestSaveError:"Error saving label ",cZoneGlobalZoneSave:"Global Zone saved with ID: ",cEnrolleeNoteLengthError:"Note must be 3000 characters or less.",cEnrolleeBluBoxLocationOpened:"BLUBox awaiting location confirmation event has been opened",cEnrolleeAddressSaved:"Saved Address: ",cEnrolleeAddressTether:"Authorized Address ",cEnrolleeAddressSaveError:"Address save error: ",cZoneDuplicateNameError:"Zone name already exists: ",cEnrolleeScheduleSuccess:"Schedule successfully created",cEnrolleeScheduleFail:"Schedule create failed",cZoneSaving:"Saving Zone: ",cZoneDeleting:"Deleting Zone: ",cZoneNoMatch:"No matching Zone found.",cEnrolleeRemovedFromEid:"Enrollee has been removed from EID.",cEnrolleeEidQuotaFilled:"EID enrollment quota has already been filled.",cEnrolleeEidReservationUpdated:"Enrollee EID Updated. ",cEnrolleeEidReservationCreated:"Enrollee EID Created. ",cEnrolleeEidMonitoring:"EID",cEnrolleeEidQuota:"EID Quota for ",cInventoryDeviceGPSOnAction:"Device action sent to turn GPS on.",cInventoryDeviceGPSOffAction:"Device action sent to turn GPS off.",cEnrolleeAdressReadFailed:"Address read failed",cEnrolleeVisitLabelReadFailed:"Visit label read failed",cEnrolleeTrackpointsDisplayed:"Trackpoints Displayed",cEventNoteAdded:"Note added.",cEventGetMapData:"Getting map data.",cEventEventConfirmed:"Event confirmed.",cEventStrapConfirmProblem:"Event cannot be confirmed until strap fixed.",cInventorySavedDeviced:"Saved Device #",cInventoryBluBoxUnlockedSuccess:"BLUbox Group unlocked successfully.",cInventoryBluBoxUnlockFail:"Unable to unlock BLUbox Group.",cInventoryDeviceListSaved:"Device list saved.",cInventoryBluBoxGroupSave:"Saved BLUbox Group: ",cReportAddAvailable:"You can now add reports!!!",cReportFinishedProcessing:"Report has finished processing.",cReportNoItemsForFilter:"No items found for filter.",cReportLoading:"Loading Reports.",cReportSaving:"Saving Report: ",cReportRequiredFiledNotice:"Please complete all required fields.",cReportGetDetailsFailed:"Get Report Details Failed",cReportProcessSaveSuccess:"Report Process update save success",cReportProcessSaveFailed:"Report Process update save failed",cReportReportsFilterFailed:"Report Filter save failed",cReportSaveFail:"Report save failed",cReportFilterUnknownError:"ERROR: Unkown Filter Type.",cReportIncidentInsReportSaving:"Saving Incident Instant Report.",cReportIncidentInsReportSaveSuccess:"Incident Instant Report Success.",cReportEnrolleeProfileInsSaving:"Saving Enrollee Profile Instant Report.",cReportEnrolleeProfileInsSuccess:"Enrollee Profile Instant Report Success.",cReportEnrolleeScheduleInsSaving:"Saving Enrollee Schedule Instant Report.",cReportEnrolleeScheduleInsSuccess:"Enrollee Schedule Instant Report Success.",cReportSaveFailed:"Report save failed",cReportMonitoredInsReportSaving:"Saving Monitored Event Instant Report.",cReportMonitoredInsReportSaveSuccess:"Monitored Event Instant Report Success.",cReportEnrolleeEventInsReportSaving:"Saving Enrollee Event Instant Report.",cReportEnrolleeEventInsReportSaveSuccess:"Enrollee Event Instant Report Success.",cReportUpdateSuccess:"Report update successful",cReportUpdateFailed:"Report update failed",cDefaultGothimSaveFail:"Gothim save failure.",cEnrolleeAddOffenderToVictimMap:"Adding enrollee to victim map: ",cDefaultNetworkError:"Network Error: ",cEnrolleeZESLoaded:"Zones, Events, and Schedules loaded",cEnrolleeZESUnLoaded:"Zones, Events, and Schedules unloaded",cEnrolleeNoteNotSaved:"Note not saved",cEnrolleeScheduleCarveOutModeEnter:"Entering carve out mode for ",cEnrolleeImageNeedsOffenderCreate:"Save enrollee first, then add images",cEnrolleeAbsenceCreateQuestion:"Do you not wish to create absences?",cEnrolleeMasterScheduleNameRequired:"Master Schedule needs a name, the others shall follow.",cAgentDisableUnable:"Unable to Disable Agent",cAgentCorrectIssues:"Please correct these issues",cAgentContactsRemain:"Agent escalation plan contacts remain",cAgentZonesRemain:"Zones remain.",cAgentRiskLevelPlansRemain:"Risk Level Plans remain",cAgentProfilesRemain:"Enrollee Profiles remain.",cAgentNotificationsRemain:"Notifications remain.",cAgentContactTreesRemain:"Contact Trees remain.",cAgentOrganizationRemaining:"<h2>Not all Organizations removed</h2><div>Some Organizations may still have data attached to them. Please remove before trying again.</div>",cAgentMoveEnrollees:"Move Enrollees",cAgentMoveMyZones:"Move Zones",cAgentAddAditionalEnrollees:"Add Additional Enrollees",cAgentAddDailyNotifications:"Add Daily Notifications",cAgentEditDailyNotifications:"Edit Daily
10Notifications",cAgentAddImmediateNotifications:"Add Immediate Notifications",cAgentEditImmediateNotifications:"Edit Immediate Notifications",cAgentAddOffHours:"Add Off Hours",cAgentEditOffHours:"Edit Off Hours",cAgentAddAgent:"Add Agent",cDefaultSessionTimeout:"Session Timeout",cDefaultSessionTimeoutRedirect:"<div>Session Has Timeout. You will be redirected to login.</div>",cDefaultExtendSession:"Extend Session",cDefaultExtendSessionExpire:'<div>Your session is about to expire. To continue using the system, please click "Continue" below.</div>',cEnrolleesEditEnrollees:"Edit Enrollees",cEnrolleesMappingVisit:"Visit",cEnrolleesMappingInProgress:"In Progress",cEnrolleesMappingTrackpoint:"Trackpoint",cEnrolleesMappingTrackpointCount:"Trackpoint Count",cEnrolleesMappingTrackpointCountTruncated:"Count has been Truncated",cEnrolleesMappingStart:"Start:",cEnrolleesMappingEnd:"End:",cEnrolleesMappingTag:"Tag: ",cEnrolleesMappingTrack:"Track",cEnrolleesMappingUnknown:"- unknown -",cUpdateAvailable:"Update Available",cDashboardLastUpdate:"Last update at ",cPagerPage:"Page",cPagerItemsFound:" items found.",cPagerOf:" of ",cEnrolleeShowCopyAddress:"show copy address",cEnrolleeHideCopyAddress:"hide copy address",cNoMatchingRecords:"No matching records.",cEnrolleeRecurring:"Recurring",cEnrolleeOverride:"Override",cEnrolleeOneTime:"One Time",cNoData:"[No Data]",cMonday:"Monday",cTuesday:"Tuesday",cWednesday:"Wednesday",cThursday:"Thursday",cFriday:"Friday",cSaturday:"Saturday",cSunday:"Sunday",cTo:"to",cFrom:"from",cEnrolleeAbsenceReasonFor:"Absence Reason For",cAgentMyEnrollees:"My Enrollees",cAgentAgencysEnrollees:"Agency's Enrollees",cAgentPrimaryEmail:"Primary Email",cAgentSecondaryEmail:"Secondary Email",cAgentThirdContact:"Third Contact",cAgentPrimaryContact:"First Contact",cAgentSecondaryContact:"Second Contact",cAgentTertiaryContact:"Third Contact",cAgentContactConfirmFlag:"Enable Notifications",cAgentOffHours:"Off Hours",cAgentNormalHours:"Normal Hours",cOrganizationChange:"change",cAgentHelp:"help",cAgentTraining:"training",cAgentFeedback:"feedback",cAgentLogout:"logout",cAgentStandarUser:"Standard User",cAgentSupervisor1:"Supervisor 1",cAgentSupervisor2:"Supervisor 2",cAgentSupervisor3:"Supervisor 3",cAgentSupervisor4:"Supervisor 4",cEnrolleeTimeZone:"Time Zone",cAgentIsDutyOfficer:"Is Duty Officer",cAgentThisAgentDutyOfficer:"This agent is a duty officer",cAgentSupervisorType:"Supervisor Type",cAgentDutyOfficer:"Duty Officer",cAgentNoDutyOfficer:"No duty officer",cEnrolleeScheduleNoEdit:"Schedule is not editable",cEnrolleeDeleteDay:"Delete",cEnrolleeDeleteAll:"Delete All",cEventOpen:"Open",cEventClosed:"Closed",cEventNotConfirmed:"-Not Confirmed-",cUnknown:"Unknown",cEventNone:"None",cYes:"Yes",cNo:"No",cEnrolleeNotEnrolled:"Not Enrolled",cEventNoteText:"Note text.",cEnrolleeCurrentlyAssigned:"Currently Assigned",cEventExpired:"Expired",cEventUsed:"Used",cEventCanceled:"Canceled",cEnrolleeHome:"Home",cEnrolleeWork:"Work",cEnrolleeOther:"Other",cEnrolleeUnassigned:"Unassigned",cEnrolleeAssigned:"Assigned",cAgentUnset:"- unset -",cAgentDeny:"Deny",cAgentRead:"Read",cAgentReadWrite:"Read/Write",cAgentGrant:"Grant",cInventoryActive:"Active",cInventoryPassive:"Passive",cInventoryHybrid:"Hybrid",cEnrolleeProxCaution:"Proximity alert caution",cEnrolleeProxWarning:"Proximity alert warning",cEnrolleeProxDanger:"Proximity alert danger",cEnrolleeProxCritical:"Proximity alert critical",cInventoryCritical:"Critical",cInventoryWarning:"Warning",cGood:"Good",cBad:"Bad",cEnrolleeTripsVisits:"Trips & Visits",cEnrolleeTrackpoints:"Trackpoints",cAgentNotEnabled:"Not Enabled",cAgentEnabled:"Enabled",cManual:"Manual",cAutomatic:"Automatic",cAgentPrimaryPhone:"Primary Phone",cAgentSecondaryPhone:"Secondary Phone",cEnrolleeEnrollmentNotificationUpToDate:"Are you sure the following information are up to date?",cEnrolleeEnrollmentDuration:"Enrollment Duration",cEnrolleeSchedules:"Schedules",cEnrolleeScheduleUpdateDate:"Updated Date",cEnrolleeEnrollmentUpToDate:"Enrollment Information",cCreateOverride:"Create Override",cZoneInclusion:"Inclusion",cZoneExclusion:"Exclusion",cEventHasMonitoredEvent:"Has Monitored Event",cEventViewNotes:"view notes...",cEnrolleeTestResults:"view checks",cEnrolleeAddressStreet:"Street",cAnalysisAdditionalInformation:"Additional Information",cAnalysisAgencyCaseNumber:"Agency Case Number",cAnalysisRespondingOfficer:"Responding Officer",cAnalysisClearedException:"Cleared Exception",cAnalysisClearedDate:"Cleared Date",cInventoryLastContact:"Last Contact",cInventoryContactDate:"Contact Date",cAnalysisTrackDate:"Track Date",cInventoryDirection:"Direction",cInventoryLatLng:"Lat/Lng",cInventoryDeviceVersion:"Device Version",c
10InventoryAssignmentHistory:"Assignment History",cInventoryContactHistory:"Contact History",cDashboard:"Dashboard",cEnrolleePay:"Enrollee Pay",cZoneRadius:"Radius",cZoneMappingVisibility:"Mapping Visibility",cZoneOverlayZone:"Overlay Zone",cViewSchedule:"View Schedule",cSchedule:"Schedule",cColumns:"columns",cInventoryLastContactDate:"Last Contact Date",cEnrolleeLastTrackDate:"Last Track Date",cEnrolleeSortDate:"Sort Date",cEventOpenClosed:"Open/Closed",cReportReportName:"Report Name",cSort:"Sort",cAscending:"Ascending",cDescending:"Descending",cAnalysisResults:"Results",cAnalysisIncidents:"Incidents",cAnalysisSpatialQuery:"Spatial Query",cZoneZoneDetail:"Zone Details",cZoneLocate:"Locate",cInventoryHDOP:"HDOP",cLocatedBy:"Located By",cMacAddress:"MAC Address",cSatellitesInView:"Satellites In View",cSatellitesUsed:"Satellites Used",cEventStrapTamper:"Strap Tamper",cEventLowBattery:"Low Battery",cEventOnCharger:"On Charger",cEventInclusionZone:"In Inclusion Zone",cEventExclusionZone:"Exclusion Zone",cEventNotConfirmed2:"Not Confirmed",cEventInProgress:"In Progress",cEnrolleeTrackpointEvents:"Trackpoint Events",cZonesShowZones:"Show Zones",cEventLockStart:"Lock Start Date",cEnrolleeShowAddresses:"Show Enrollee Addresses",cEnrolleeShowConnectedTracks:"Show Connected Tracks",cEnrolleeShowNumberedLabels:"Show Numbered Labels",cEventShowEvents:"Show Events",cEnrolleeGpsTracks:"Show GPS Trackpoints",cEnrolleeCellTowerPoints:"Show Cell Tower Trackpoints",cEnrolleeWiFiPoints:"Show Wi-Fi Trackpoints",cEnrolleeAddresses:"Addresses",cEnrolleeVisits:"Visits",cEnrolleeVisitLabels:"Visit Labels",cEnrolleeVisitPoints:"Visit Points",cEnrolleeTrackPoints:"Track Points",cEnrolleeVisitAssociations:"Visit With Associations",cEnrolleeCellTowers:"Cell Towers",cEnrolleeWiFi:"Wi-Fi",cEnrolleeEMACheckIn:"Enrollink",cEnrolleeBluHomeV4:"BLUHome V4",cEnrolleeMapLabels:"Map Labels",cEnrolleeConnectedTracks:"Connected Tracks",cEnrolleeAlcoholTestPoints:"SoberTrack Test",cEnrolleeFrequentVisits:"Frequently Visited Location",cEnrolleeWeight:"Weight",cEnrolleeDeviceType:"Device Type",cEnrolleeGPS:"GPS",cEnrolleeRF:"RF",cEnrolleeST:"ST",cEnrolleeDaysInSchema:"Days in Field",cEnrolleeTotalNumberOfTests:"Total Number of Tests",cSelectAll:"Select All",cUnSelectAll:"Unselect All",cZoneGlobal:"Global",cZoneClassification:"Classification",cZoneRegular:"Regular",cZoneScopeRegular:"Regular",cZoneScopeGlobal:"Global",cBoth:"Both",cAll:"All",cEnrolleesMappingGPSCount:"GPS Count",cEnrolleesMappingCount:"Count",cEnrolleeGPSPoints:"GPS Points",cEnrolleeCurrentVisit:"Current Visit",cEnrolleeVisit:"Visit",cEnrolleeTotal:"Total",cEnrolleeNoTrackDataFilter:"No track data available for current filter.",cEnrolleeNoTrackData:"No track data available.",cAgentFeaturePreview:"Feature Preview",cEnrolleeCreateThreads:"Create Threads",cEnrolleeConfigureSettings:"Configure",cEnrolleeTimelineCreateLabel:"Create Label",cEnrolleeTimelineLabelSuggestions:"Label Suggestions",cTypes:"Types",cEnrolleeConfirm:"Confirm",cEnrolleeTimelineQuick:"Timeline Details",cEnrolleeMapEvents:"Enrollee Map Events",cEnrolleeMissingLabelName:"Missing Label Name",cEnrolleeZoneName:"Zone Name",cEnrolleeFullName:"Enrollee Name",cEnrolleeSuccessNewLabel:"Successfully updated visit with label: ",cReportSchedule:"Schedule Report",cReportScheduleDate:"Schedule Date",cReportScheduleTime:"Schedule Time",cReportTimeSpan:"Time Span",cReportEmailFormat:"Email Format",cReportDOC:" DOC",cReportPDF:"PDF",cReportXLS:"XLS",cReportRTF:" RTF",cReportTXT:"TXT",cReportCSV:"CSV",cReportsScheduleDaily:"Schedule Date",cReportsScheduleHourly:"Schedule Time",cReportsScheduleTimeSpan:"Time Span",cReportsScheduleName:"Schedule Name",cAgentEmails:"Emails",cAgentViewEmails:"View Emails",cAgentAddSchedule:"Add Schedule",cReportFilters:"Filters",cEnrolleeActive:"Active",cEnrolleeHasAssociation:"Has Association",cReportFindSchedules:"Find Schedules",cReportLabel:"Label",cReportScheduleEmailDetails:"The Agent will get an email based on the schedule email format. But, if we need to send additional emails for the same report add them here.",cReportScheduleDetails:"Schedule Details",cSuccessExclamation:"Success!!!",cReportAddScheduleEmailSuccess:"Successfully added Email to Report Schedule distribution list.",cReportDeleteScheduleEmailSuccess:"Successfully deleted
10Email from Report Schedule.",cReportEditScheduleEmailSuccess:"Successfully updated Email on Report Schedule distribution list.",cReportDeleteScheduleFilterSuccess:"Successfully deleted Filter from Report Schedule.",cEnrolleeSelectDay:"Select Default Start Day View",cEnrolleeDayofData:"Select Default Day of Data View",cAgentEditEmail:"Edit Email",cAgentAddEmail:"Add Email",cEnrolleeAllDay:"All Day",cReportSelectOrganization:"Select Organization",cReportScheduleFilterEdit:"Most filters will default correcly based on the report and the time span settings. But, if you need to provide required filters or override default filters add them here.",cReportEditFilter:"Edit Filter",cGoogleSuggested:"Google Suggested",cEnrolleeFrpFlagNeeded:"To set a Daily Rate, Enrollee Pay must be enabled.",cTimelineDuration:"duration",cTimelineHour:"hour",cTimelineHourPlural:"hours",cTimelineMinute:"minute",cTimelineMinutePlural:"minutes",cAnd:"and",cEnrolleePairedEnrollee:"Paired Enrollee",cPleaseSelect:"Please select",cKilograms:"kilograms",cPounds:"pounds",cOneHour:"One Hour",cThreeHour:"Three Hours",cSixHour:"Six Hours",cTwelveHour:"Twelve Hours",cOneDay:"One Day",cOneWeek:"One Week",cOneMonth:"One Month",cOlder:"Older",cAgentSMSEnabled:"SMS Enabled",cAgentSMSEnabledOn:"Enabled",c5min:"5 min",c10min:"10 min",c15min:"15 min",c30min:"30 min",c1hour:"1 hour",c2hours:"2 hours",c4hours:"4 hours",c8hours:"8 hours",c12hours:"12 hours",c1day:"1 day",c2days:"2 days",c3days:"3 days",c4days:"4 days",c5days:"5 days",c1week:"1 week",cFindAnything:"find anything",cEventViewEvents:"View Events",cAddressGeocode:"geocode",cAbsence:"Absence",cAgentOffHoursDisabled:"Off Hours Disabled",cAgentThirdPhone:"Third Phone",cAgentFourthPhone:"Fourth Phone",cAgentDashboardUpdate:"Dasboard Update",cMissing:"Missing",cBroken:"Broken",cReturned:"Returned",cZoneShown:"Shown",cZoneHidden:"Hidden",cEnrolleeNewNote:"....new note",cEnrolleePayBypassGeocode:"Your FRP address does not geocode? Check this option to acknowledge that you are entering and saving an address that does not geocode but is still a valid bill to address.",cEnrolleePlaying:"Playing",cEnrolleePaused:"Paused",cEnrolleeEnrollmentStart:"Enrollment Start",cEnrolleeEnrollmentEnd:"Enrollment End",cEnrolleeReleaseDate:"Release Date",cEnrolleeEmploymentDate:"Employment Date",cReportStatusNA:"N/A",cReportStatusUnprocessed:"Unprocessed",cReportStatusQueued:"Queued",cReportStatusProcessing:"Processing",cReportStatusProcessed:"Processed",cReportStatusError:"error",cReportOpenDocument:"Open Document",cEnrolleeCreateExclusionZone:"Create Exclusion Zone",cEnrolleeCreateInclusionZone:"Create Inclusion Zone",cEnrolleeEditExclusionZone:"Edit Exclusion Zone",cEnrolleeEditInclusionZone:"Edit Inclusion Zone",cEnrolleeSilent:"Silent",cEnrollee911:"911",cTrue:"true",cFalse:"false",cDisabled:"Disabled",cEnabled:"Enabled",cZoneInclusionZone:"Inclusion Zone",cZoneExclusionZone:"Exclusion Zone",cTimelineConfirmed:"Timeline Events Confirmed",cEnrolleeMapEventConfirmed:"Map Events Confirmed",cDeviceDisableRapidReporting:"Would you like to disable rapid reporting mode on this device?",cDeviceDisableHaltRapidReporting:"Would you like to disable halt rapid reporting mode on this device?",cDeviceCurrentlyBuzz:"Your request to send a buzz command is currently being processed. ",cDeviceCurrentlyVibrate:"Your request to send a vibrate command is currently being processed. ",cDeviceCurrentlyLocateDevice:"Your request to send a locate device command is currently being processed. ",cDeviceCurrentlyRapidReporting:"Your request to send a rapid reporting command is currently being processed. ",cDeviceCurrentlyHaltRapidReporting:"Your request to send a halt rapid reporting command is currently being processed. ",cDeviceMessageTimeoutBuzz:"The device did not confirm that your previous request to send a buzz command was completed successfully. ",cDeviceMessageTimeoutVibrate:"The device did not confirm that your previous request to send a vibrate command was completed successfully. ",cDeviceMessageTimeoutLocateDevice:"The device did not confirm that your previous request to send a locate device command was completed successfully. ",cDeviceMessageTimeoutRapidReporting:"The device did not confirm that your previous request to send a rapid reporting command was completed successfully. ",cDeviceMessageTimeoutHaltRapidReporting:"The device did not confirm that your previous request to send a halt rapid reporting command was completed successfully. ",cDeviceQuestion:"device?",cDeviceSendBuzz:"Would you like to send a <strong>buzz</strong> command?",cDeviceSendVibrate:"Would you like to send a <strong>vibrate</strong> command?",cDeviceSendLocateDevice:"Would you like to send a <strong>locate device</strong> command?",cDeviceSendRapidReporting:"Would you like to send a <strong>rapid reporting</strong> command?",cDeviceSendHaltRapidReporting:"Would you like to send a <strong>halt rapid reporting</strong> command?",cDeviceSendAgentFingerprintSetup:"Would you like to send an <strong>agent fingerprint setup</strong> command?",cDeviceSendCommand:"Send Command",cDeviceNoContact:"- no contact -",cDeviceLastCommandSent:"Last Command Sent",cDeviceLastCommandReceived:"Last Command Received",cEnrolleeCreateAddress:"Create Address",cEnrolleeSupervisitionType:"Supervision Type",cEnrolleeReferralDate:"Referral Date",cEnrolleePrintedBy:"Printed by",cEnrolleeAssociationSummary:"Association Summary",cPrior:"Prior",cCurrent:"Current",cHistory:"History",cEnrolleeRightClickDetail
10s:"Right Click for more details",cFinding:"Finding.............",cAnalysisAddressEnter:"Enter any address, city/state",cEnrolleeAbsence24ScheduleName:"24 hours schedule name",cEnrolleeAbsenceReason:"absence reason",cInventoryFindOrganization:"Find Organization",cInventoryTotalDevices:"Total Devices",cInventoryAssignedDevices:"Assigned Devices",cInventoryUnAssignedDevices:"UnAssigned Devices",cInventoryShippedDevices:"Shipped Devices",cInventoryReceivedDevices:"Received Devices",cInventoryReturnedDevices:"Returned Devices",cInventoryRecalledDevices:"Recalled Devices",cInventoryTrackSearchFailed:"No trackpoints found for Device ",cInventoryShelfRate:"Shelf Rate",cZoneInclusionZoneOverride:"Inclusion Zone Override",cEnrolleeScheduleCheckIn:"Check-In",cEnrolleeScheduleRecurringAbsence:"Recurring Absence",cEnrolleeScheduleSingleDayAbsence:"Single Day Absence",cEventHasAssociation:"Has Association",cEventBraceletStrap:"Bracelet Strap",cEventShieldingPossible:"Shielding Possible",cEventJammingPossible:"Jamming Possible",cEventNoGPS:"No GPS",cEnrolleesMappingGPSTrack:"GPS Track",cEnrolleesMappingCellTower:"Cell Tower",cEnrolleesMappingWiFi:"Wi-Fi",cEnrolleesMappingEMACheckIn:"Enrollink",cEnrolleesMappingCellTrack:"Cell Track",cEnrolleesHomeAddress:"Home Address",cEnrolleesWorkAddress:"Work Address",cEnrolleesOtherAddress:"Other Address",cEnrolleesTransientAddress:"Transient Address",cEnrolleesTetheredHomeAddress:"Authorized Home Address",cEnrolleesTetheredWorkAddress:"Authorized Work Address",cEnrolleesTetheredOtherAddress:"Authorized Other Address",cEnrolleesTetheredTransientAddress:"Authorized Transient Address",cEnrolleeInitialTimelineMapView:"Initial Timeline Map View",cAnalysisEnableEnrollee:"enable enrollee",cAnalysisDeleteEnrollee:"delete enrollee",cTripsVisits:"Trips & Visits",cTrackpoints:"Trackpoints",cAnalysisRerun:"Rerun",cAnalysisRerunSpatial:"spatial query processing..............",cEnrolleeTimelineFrequency:"Visit Frequency",cEnrolleeAttemptToRecover:"Attempted to Recover by",cInventoryAttemptedToRecover:"Attempted to Recover",cEnrolleeOffender:"Enrollee",cEnrolleeVictim:"Victim",cHistoricalIncident:"Historical Incidents",cAnalysisNewSearch:"New Search",cEnrolleeRefreshMapOnDateChange:"Refresh Map On Day View Date Change",cTimelineAlert:"Enrollee is not supported on timeline.",cZoneNoZoneSelected:"No Zone Selected",cZoneZoneNameFilter:"Zone name filter",cInventoryKnownLocations:"Known Locations",cEnrolleeQuickMap:"Quick Map",cEnrolleeTimelineDefaultTab:"Right Click default tab",cZoneLengthFive:"5 mi",cZoneLengthTen:"10 mi",cZoneLengthTwentyFive:"25 mi",cZoneLengthFifty:"50 mi",cInventoryShelfAnalysis:"Shelf Analysis",cAddressType:"Address Type",cKnownLocationDeleting:"Deleting Known Location",cKnownLocationSaving:"Saving Known Location",cIncidentAddNewSpatial:"New Search Results - Add New Incident",cInventoryFindShelfRate:"Find Shelf Rate",cShelfRateExceeded:"Shelf Rate Exceeded",cInventoryTotalBLUtags:"Total BLUtags",cInventoryAssignedBLUtags:"Assigned BLUtags",cInventoryUnAssignedBLUtags:"Unassigned BLUtags",cInventoryShelfRateBLUtag:"BLUtag Shelf Rate",cPotentialTrip:"Potential Trip",cEnrolleeScheduleSilent:"Silent",cEnrolleeSchedule911:"911",cAnalysisNoOffendersFoundSpatial:"No Enrollees found near spatial region with alert events",cAnalysisNoAddressesFound:"No Enrollee addresses found in spatial region",cFailSc
10heduleAddSelectFormat:"Must Check Email Format Type",cReportScheduleDeleting:"Deleting Report Schedule",cAgentExpiredPasswordInformation:"Password Expired",cAgentPasswordSameError:"Password not changed. Please correct your information and try again.",cAgentPasswordDuplicateError:"Password has already been used, please type in different password.",cAgentPasswordWeakError:"Password is not strong enough, make sure it is at least 8 characters long, has 1 special character, 1 lower case, 1 upper case, and 1 digit.",cAgentVeritracksWelcome:"Welcome to VeriTracks, please fill in the required information.",cAgentVeritracksInactive:"Account inactivated due to not being used",cAgentVeritracksExpired:"Password Expired",cAgentVeritracksReset:"Password Reset by Administrator",cAgentWhatIsStrongPassword:"Please make sure the password is at least 8 characters long, has 1 special character, 1 lower case, 1 upper case, and 1 digit.",cAgentPasswordInfo:'If you would like to reset the password for this agent, you can auto generate the password by clicking the reset button with the "New Password" field blank or you can specify the password by typing the password in the "New Password" field.',cAgentVeritracksWelcomeInfo:"Welcome to VeriTracks, to start using the application please fill in the required information.",cAgentVeritracksResetInfo:"It looks like an administrator has reset your password, to continue using VeriTracks please set a new password",cAgentVeritracksInactiveInfo:"Welcome back to VeriTracks, it has been quite a while since you last logged in, please enter the correct answer to your security question and enter a new password to confirm your identity.",cAgentVeritracksExpiredInfo:"Your password has expired, please enter the correct answer to your security question and enter a new password to confirm your identity.",cAgentSecurityAnswerError:"Answer provided is incorrect.",cAgentPasswordInformationSet:"Security Information Set",cAgentPasswordUpdated:"Security Information Updated",cPasswordExpireDaysRemaining:"Your password will expire in",cAgentGenerateCodes:"Generate",cDays:"days",cDay:"day",cPasswordExpireDayToday:"Your password will expire today",cAgentPasswordPolicyEnforced:"Password Policy Enforced",cAgentPasswordPolicyDisabled:"Password Policy Disabled",cPasswordExpiredNotice:"Your password has expired",cEnrolleeNoCorrelateData:"No Association Data Found",cEnrolleePrevious:"Previous",cEnrolleeNext:"Next",cSoberTrackLiveSchedule:"Live Schedule",cSoberTrackOnDemandCreate:"On Demand Create",cSoberTrackReport326:"Report 326",cSoberTrackRandomSaved:"Random Schedule Has Been Saved",cSoberTrackFixedSaved:"Fixed Schedule Has Been Saved",cSoberTrackOnDemandSaved:"On Demand Event Sent",cSoberTrackVideoRequestSent:"Video Request Sent. Video will be available in a few minutes.",cSoberTrackPassedDates:"Please Select Upcoming Dates",cEnrolleeDeleteEvent:"Delete Event",cSoberTrackEventDeleted:"Scheduled Test Deleted",cSoberTrackNoCreation:"On Demand Create Not Allowed",cSoberTrackOnDemandChange:"On Demand Event Changed",cSoberTrackOnDemandError:"On Demand Test Error on Create",cSoberTrackOnDemandTest:"On Demand Test",cSoberTrackRandomTest:"Random Sobriety Event",cSoberTrackFixedTest:"Fixed Sobriety Event",cSoberTrackFixedTestSave:"Fixed Sobriety Event Saved",cSoberTrackRandomSave:"Random Sobriety Saved",cSoberTrackNotSaved:"Sobriety Not Saved",cSoberTrackType:"Type",cSoberTrackDurationBetweenTests:"Duration Between Tests",cSoberTrackNumberTests:"Number of Tests Per Block",cSoberTrackTestPeriod:"Check Period (min)",cSoberTrackRetests:"Number of Rechecks",cSoberTrackPassed:"Passed (Agent)",cSoberTrackFailed:"Failed (Agent)",cSoberTrackNotValidated:"Not Validated",cSoberTrackRandomBlock:"Random Sobriety Time Block",cSoberTrackSelectedScheduleTypeSaved:"Only Selected Schedule Type are Saved",cSoberTrackNothingSaved:"No New Events to Save",cSoberTrackTitleLabel:"SoberTrack Schedule Block Title",cSoberTrackTitleChange:"SoberTrack Title Change",cSoberTrackRandomScheduleConflict:"Random Block Not Saved: Scheduling Conflict",cSoberTrackCreatingSchedules:"Creating SoberTrack Schedules",cSoberTrackReviewTitle:"SoberTrack Monitoring Result",cSoberTrackNoOverlap:"SoberTrack Schedule Overlap Not Allowed",cSoberTrackSaveFirst:"Must Save Event Before Editing",cSoberTrackTitle:"Enrollee SoberTrack Test Schedule",cEnrolleeConfirmReview:"Confirm Review",cEnrolleeGetVideo:"Download Video",cEnrolleeRetriedVideo:"Retrieve Video",cEnrolleeConfirmImageMatch:"Image Matched",cEnrolleeConfirmImageFail:"Image Failed",cEnrolleeSoberTrackSetImageTry:"Saving Enrollee Image...",cEnrolleeSoberTrackSetImageSuccess:"Enrollee Image Saved",cEnrolleeSoberTrackSetImageFail:"Enrollee Image failed",cSoberTrackEventDragged:"SoberTrack Schedule Dragged",cEnrolleeTestSummary:"back to confirmation",cEnrolleePreviousSoberTrackResult:"Previous Enrollee",cEnrolleeNextSoberTrackResult:"Next Enrollee",cSoberTrackSchedulePassesDay:"Cannot Meet Schedule Rules in Day",cSoberTrackScheduleBlocksSaved:"SoberTrack Schedule Blocks Saved",cEnrolleePrintAssociations:"Print Associations",cEnrolleeBirthDate:"Birth Date",cEnrolleeSchedulesNotSaved:"All Schedule Blocks Not Saved Will Be Removed",cAgentThisUsernameIsAlready:"This username is already in use in our system. Please pick another.",cSoberTrackDeleteBlock:"Delete SoberTrack Schedule Block",cSoberTrackEditNotValid:"SoberTrack Title Not Valid",cAgentSMSMessageUpdated:"Successfully updated sms delivery number",cAgentSMSMessageChanged:"Successfully updated sms delivery option",cAgentSMSMessageOptOut:"Successfully opted out of sms delivery",cAgentSMSMessageOptIn:"Successfully opted in to sms delivery",cEnrolleeInvalidTimeFormat:"Time Format is Invalid",cSoberTrackNoBlocksToDelete:"No SoberTrack Blocks Selected to Delete",cSoberTrackSelectedForDelete:"Schedule Block Selected for Delete",cSoberTrackNotSelectedForDelete:"Schedule Block Will Not be Deleted",cCarveOutScheduleSelected:"Schedule Block Selected",cCarveOutScheduleNotSelected:"Schedule Block Unselected",cEnrolleeInvalidDateFormat:"Date Format is Invalid",cEventHasAssociationKnownLocation:"Has Known Location Association",cUserUpdatedBy:"Updated By",cSoberTrackSchedules:"SoberTrack Schedules",cSoberTrackStartHour:"Start Hour",cSoberTrackStopHour:"Stop Hour",cSoberTrackConfirmed:"Confirmed",cSoberTrackDayOfWeek:"Day of Week",cUserAgreementDecline:"Decline",cUserAgreementAccept:"Accept",cSoberTrackSaveFirstAfterDrag:"Must Save Event After Dragging Before Editing",cEnrolleeSMSPhoneNumber:"Phone Number",cZoneEnrolleeCount:"Enrollee Count",cAgentFingerprintSetup:"Agent Fingerprint Setup",cStalkerPreventUnassignUnPair:"Enrollee is currently paired to Victim(s): %s. Unassigning the enrollee will also unpair and unregister the Victim from Stalker Alert. Do you wish to proceed?",cStalkerPreventUnassignKeepPair:"Device is currently paired with a Victim(s): %s. Changing device will unpair the victim and will require for you to go to the Victim Profile to reassign to enrollee. Do you wish to continue?",cStalkerDisableEnrollee:'Warning: Disabling Stalker Mobile App will remove all c
10onfigurations for this Victim. Click "ok" to proceed.',cStalkerORIChange:"Changing the ORI will un-pair the current paired %s.",cDoYouWishToProceed:" Do you wish to proceed?",cStalkerAlertMobile:"Stalker Alert Mobile",cEnterEnrollee:"Enter an enrollee",cEnterReportName:"Enter an Report name",cUnsupportedEmail:"Email based SMS is not supported. Please enter a proper email.",cConfirmationTitle:"Confirmation",cAgentRolePermissionsConfirmation:"Agent permission will be affected if roles are changed.",cAcknowledge:"Acknowledge",cAgentTrackReviewAgreement:'You have reached the end of the track playback review. Please click "Accept" to verify.',cCrimeScenePreventPermissions:"Contact Agent of Record for recent track information.",cDeviceWarning:"Device Warning",cDeviceStatusRefresh1:"Device Status Refresh Warning",cDeviceStatusRefresh2:"Device Status Refresh Critical",cInventoryDeviceRefreshStatusInfo1:"The device is within 30 days from being scheduled for inventory rotation. Please consider keeping this device unassigned and return to manufacturer for replacement",cInventoryDeviceRefreshStatusInfo2:"The device is scheduled for inventory rotation. Please mark it as Unassigned at your earliest convenience and return it to the manufacturer for replacement",cLiveMap:"Live Map",cMaximumCardsOpen:"Maximum Cards Open",cMaximumCardsOpenMsg:"You have reached the limit of opened cards. Please close one of the existing cards to open another."}; 11function mStateManagerLocalization_Init(e,t){"use strict";populateElement("uMasterContentHolder","Localization.Performance.htm",function(){})}function localizationTest_OnClick(){var e=new Date;veritracks.localization.localize("#uBasePerformanceTestElement"),e=new Date-e,$("#uLocalizationResult").text(e.toString()+"ms")}isNullOrUndefined(veritracks)&&alert("veritracks must be defined before loading localization."),isNullOrUndefined(veritracks.localization)&&(veritracks.localization={}),veritracks.localization.phraseBuilder=function(e,t){"use strict";return"c"+e+(t?t:"").replace(/[^a-zA-Z#0-9]/g,"")},veritracks.localization.getPhrase=function(e){"use strict";return getDataItem(e+".","Translation")},veritracks.localization.getPhraseValue=function(e){"use strict";var t,e=veritracks.localization.getPhrase(e);return t=isNullOrUndefined(e)?t:e.Value},veritracks.localization.localizeTitle=function(e){"use strict";var t="";e&&(t=e+" "),$(t+"[title]").not(".IgnoreTitle").each(function(e,t){t.title=localizeTitleFormatter(t.title)})},veritracks.localization.localize=function(e){"use strict";var t=getDataItems("Translation");function l(e,t){e.innerText=t.Value}!isNullOrUndefined(t)&&0<count(t)&&$(e).find(".cLocalize").each(function(e,t){var i,a,n;for(n in t.classList)if(t.classList.hasOwnProperty(n)&&"c"===(a=t.classList[n])[0]&&"cLocalize"!==a){i=veritracks.localization.getPhrase(a),isNullOrUndefined(i)?("select"===t.tagName.toLowerCase()?function(e,i){var a;
11$(e).find("option").each(function(e,t){a=veritracks.localization.getPhrase(i+t.value),isNullOrUndefined(a)||l(t,a)})}:function(i,a){var n="";$(i).find("input").each(function(e,t){n=veritracks.localization.getPhrase(a+t.value),isNullOrUndefined(n)||$(i).find("label[for='"+t.id+"']").each(function(e,t){l(t,n)})})})(t,a):l(t,i),$(t).removeClass("cLocalize");break}})}; 12function ReleaseLockMultiple(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||r()}function ReleaseLockSingle(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||r()}function ExtendLockMultiple(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||r()}function ExtendLockSingle(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||r()}function LockMultiple(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||r()}function LockSingle(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||r()}function ExtendServerSession(e,t,r){"use strict";var n=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(n)||callAjax("ExtendSession",{aSecurityToken:n},e,t,r)}function ExpireServerSession(e,t,r){"use strict";var n=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(n)||callAjax("ExpireSession",{aSecurityToken:n},e,t,r)}function IsAuthorized(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("IsAuthorized",{aSecurityToken:i,aSecurityContextId:e},t,r,n)}function WriteMultiple(e,t,r,n,i,a){"use strict";var o,s=veritracks.security.controller.tryGetSecurityToken(),c=!0,l=!1;for(o in isNullOrUndefined(a)||(l=a),isNullOrUndefined(i)||(c=i),e)e.hasOwnProperty(o)&&(e[o]=prepareObjectForWcf(e[o]));if(!isNullOrUndefined(s))return callAjax("WriteMultiple",{aSecurityToken:s,aSecurityContextId:-1,aObjectList:{Data:e},aPersist:c,aAsync:l},t,r,n,!1)}function Execute(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("Execute",{aSecurityToken:i,aSecurityContextId:-1,aProcedureParameterDefinition:{Data:prepareObjectForWcf(e)}},t,r,n,!1)}function WriteSingle(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken(),o=!0;isNullOrUndefined(i)||(o=i),isNullOrUndefined(a)||callAjax("WriteSingle",{aSecurityToken:a,aSecurityContextId:-1,aObject:{Data:prepareObjectForWcf(e)},aPersist:o,aAsync:!1},t,r,n,!1)}function WriteUserSMSDeliveryMethod(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("WriteUserSMSDeliveryMethod",{aSecurityToken:i,aSecurityContextId:-1,aUser:prepareObjectForWcf(e)},t,r,n,!1)}function ReadMultiple(e,t,r,n,i,a,o,s,c){"use strict";return veritracks.data.controller.readMultiple(e,t,r,n,i,a,o,s,c)}function query(e,t){"use strict";var r,n,i;if(isNullOrUndefined(e)||isNullOrUndefined(t))r=e;else for(n in r=[],e)e.hasOwnProperty(n)&&(i=e[n],"function"==typeof t.Evaluate)&&t.Evaluate(i)&&(r[n]=i);return r}function CheckSessions(e,t,n,i){"use strict";var r;return r=veritracks.security.controller.tryGetSecurityToken()?callAjax("CheckSessions",{aUserId:e,aSecurityToken:decodeURIComponent(t)},function(e,t,r){isNullOrUndefined(n)||n(e,t,r)},function(e,t,r){isNullOrUndefined(i)||i(e,t,r)},null,!0):r}function LogUserAgreement(e,t,n,i){"use strict";var r;return r=veritracks.security.controller.tryGetSecurityToken()?callAjax("LogUserAgreement",{aUserLoginLogId:e,aAgreementFlag:t},function(e,t,r){isNullOrUndefined(n)||n(e,t,r)},function(e,t,r){isNullOrUndefined(i)||i(e,t,r)},null,!0):r}function GetBillingInfo(e,t,r,n,i,a){"use strict";callAjax("GetBillingInfo",{EnrolleeIds:e,Schema:t},r,n,i,a)}function RefreshCacheItem(e){"use strict";var t=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(t)||callAjax("RefreshCacheItem",{aSecurityToken:t,aSecurityContextId:-1,aTypeName:e}
12,null,null,null,!1)}function WriteGlobalZone(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("WriteGlobalZone",{aSecurityToken:i,aSecurityContextId:-1,aZone:e,aZoneVertexes:t},r,n,null)}function WriteGlobalZonePQ(e,t,r){"use strict";var n=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(n)||callAjax("WriteGlobalZoneProcessRequest",{aSecurityToken:n,aSecurityContextId:-1,aZone:e},t,r,null)}function UpdateZones(e,t,r){"use strict";var n=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(n)||callAjax("UpdateZones",{aSecurityToken:n,aSecurityContextId:-1,aZones:e},t,r,null)}function WriteVictimDeviceUnAssignment(e,t,r,n,i,a){"use strict";var o=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(o)||callAjax("WriteVictimDeviceUnAssignment",{aSecurityToken:o,aSecurityContextId:-1,aVictim:e,aVictimDevice:t,aOffenderDevice:r},n,i,a)}function WriteVictimDeviceUnAssignmentPR(e,t,r,n,i,a){"use strict";var o=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(o)||callAjax("WriteVictimDeviceUnAssignmentPR",{aSecurityToken:o,aSecurityContextId:-1,aVictim:e,aVictimDevice:t,aOffenderDevice:r},n,i,a)}function WriteVictimDeviceAssignment(e,t,r,n,i,a){"use strict";var o=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(o)||callAjax("WriteVictimDeviceAssignment",{aSecurityToken:o,aSecurityContextId:-1,aVictim:e,aVictimDevice:t,aOffenderDevice:r},n,i,a)}function WriteVictimDeviceAssignmentPR(e,t,r,n,i,a){"use strict";var o=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(o)||callAjax("WriteVictimDeviceAssignmentPR",{aSecurityToken:o,aSecurityContextId:-1,aVictim:e,aVictimDevice:t,aOffenderDevice:r},n,i,a)}function GetObjectList(e,t,r){"use strict";var n=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(n)||callAjax("GetObjectList",{aSecurityToken:n,aSecurityContextId:-1},e,t,r,!0)}function WriteUserPassword(e,t,r,n,i,a){"use strict";var o=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(o)||callAjax("AgentUpdatePassword",{aSecurityToken:o,aSecurityContextId:-1,aUserId:e,aPassword:t,aNewPassword:r},n,i,a,!0)}function WriteLogUserTransaction(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||callAjax("LogUserTransaction",{aSecurityToken:a,aSecurityContextId:-1,aUserTransaction:e,aUserTransactionValues:t.map(function(e){return prepareObjectForWcf(e)})},r,n,i,!1)}function GetBluHomeCommandStatus(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GetBluHomeCommandStatus",{aSecurityToken:i,aEnrolleeId:e},t,r,n,!1)}function GetEMAEnrolleeStatus(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GetEMAEnrolleeStatus",{aSecurityToken:i,aEnrolleeId:e},t,r,n,!1)}function GetEMACheckInSchedule(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GetEMACheckInSchedule",{aSecurityToken:i,aEnrolleeId:e},t,r,n,!1)}function GetEMAChangeRequest(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GetEMAChangeRequest",{aSecurityToken:i,aEnrolleeId:e},t,r,n,!1)}function GetEMAMessagePending(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GetEMAMessagePending",{aSecurityToken:i,aEnrolleeId:e},t,r,n,!1)}function GetEMACheckInEvent(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GetEMACheckInEvent",{aSecurityToken:i,aEnrolleeId:e},t,r,n,!1)}function GetAgentNotificationPending(e,t,r,n,i,a){"use strict";var o=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(o)||callAjax("GetAgentNotificationPending",{aSecurityToken:o,aSecurityContextId:-1,aCtUserId:e,aFilter:t,aPageNumber:r},n,i,a,!1)}function GetPlacesRequest(e,t,r,n,i,a,o){"use strict";var s=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(s)||callAjax("GetPlacesRequest",{aSecurityToken:s,aLatitude:e,aLongitude:t,aRadius:r,aQuery:n},function(e,t){i(e,JSON.parse(t))},a,o,!1)}function GetRefreshedZones(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GetZones",{aSecurityToken:i,aSecurityContextId:-1,aIds:e},t,r,n,!1)}function WriteEnrolleeAudibleOnLowBatt(e,t,r,n,i,a,o){"use strict";var s=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(s)||callAjax("WriteEnrolleeAudibleOnLowBatt",{aSecurityToken:s,aSecurityContextId:-1,aId:e,aDeviceId:t,aUserId:r,aAudibleToneFLag:n},i,a,o,!1)}function GetEIdReservationQuota(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GetEIdReservationQuota",{aSecurityToken:i,aEnrolleeId:e},t,r,n,!1)}function GetIcons(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||callAjax("GetIcons",{aSecurityToken:a,aId:e,aGetAll:t},r,n,i,!1)}function GenerateIconsPng(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||1!=i?isNullOrUndefined(a)||callAjax("GenerateIconsPng",{aSecurityToken:a,aIconList:e},t,r,n,!1):t(n,[])}function GetOffenderAlcoholLastTest(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GetOffenderAlcoholLastTest",{aSecurityToken:i,aOriList:e},t,r,n,!1)}function ReverseGeoCodeAddress(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||callAjax("ReverseGeoCodeAddress",{aSecurityToken:a,aLatitude:e,aLongitude:t},r,n,i,!1)}function GeoCodeAddress(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GeoCodeAddress",{aSecurityToken:i,aDescription:e},t,r,n,!1)}function GetOffenderAlcoholSchedules(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||callAjax("GetOffenderAlcoholSchedules",{aSecurityToken:a,aEnrolleeId:e,aScheduleId:t},r,n,i,!1)}function GetOriDeviceChangeReason(e,t,r,n,i){"use strict";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||callAjax("GetOriDeviceChangeReason",{aSecurityToken:a,aSecurityContextId:-1,aOriList:e,aEnrolleeType:t},r,n,i,!1)}function GetOriSexOffense(e,t,r,n){"use strict";var i=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(i)||callAjax("GetOriSexOffense",{aSecurityToken:i,aOriList:e},t,r,n,!1)}function GetDeviceContact(e,t,r,n,i,a){var o=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(o)||callAjax("GetDeviceContact",{aSecurityToken:o,aDeviceId:e,aGetMoreData:a,aContactDate:t},r,n,i,!1)}function GetNonCacheItem(e,t,r,n,i){var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||callAjax(e,{aSecurityToken:a,aOriList:t},r,n,i,!1)}function FixDates(e){"use strict";var t,r,n,i,a,o=[],s=-1;
12if(!isNullOrUndefined(e)&&(e instanceof Array?n=e:(n=[]).push(e),0<n.length)){for(r in n)if(n.hasOwnProperty(r)){var c;for(t in c=n[r])c.hasOwnProperty(t)&&"string"==typeof(a=c[t])&&-1!==a.indexOf("/Date")&&(o[++s]=t);break}if(-1<s)for(r in i=o.length,n)if(n.hasOwnProperty(r))for(c=n[r],s=0;s<i;s++)c[o[s]]=fixDate(c[o[s]])}}function fixDate(e){var t,r,n,i=e,a=0,o=/\/Date\(/gi,s=/\)\//gi;if(o.compile(o),s.compile(s),!isNullOrUndefined(e)&&"string"==typeof e){t="0",a=0,n=e.split("-"),isNullOrUndefined(n[2])?n[a="/Date("===n[a]?1:a]=n[a].replace(s,""):a=1,r=n[a],isNullOrUndefined(n[a+1])||(t=n[a+1]),r=parseInt(r.replace(o,"")),1===a&&(r=0-r),t=parseInt(t.replace(s,""));try{i=new Date(r-60*t*60*10),"[object Date]"==Object.prototype.toString.call(i)&&isNaN(i.getTime())&&(i=e)}catch(c){i=e}}return i}function prepareObjectForWcf(e){var t,r,n=$.extend({},e),i=/date/i;for(t in i.compile(i),e)e.hasOwnProperty(t)&&("object"!=typeof(r=e[t])||isNullOrUndefined(r)||isNullOrUndefined(r.constructor.toString().match(i))||(n[t]=r.toWcf()),"IsActive"===t)&&(n[t]=r?1:0);return n}function SerializationSettings(e,t,r,n){"use strict";this.Expression=e,this.SortExpression=t,this.PageNumber=r,this.ItemsPerPage=n}function GrepExample(e,t){"use strict";return $.grep(e,t.Evaluate)}function LogicalOperatorEnum(){"use strict";this.Undefined=function(){return-1},this.And=function(){return 1},this.Or=function(){return 2}}isNullOrUndefined(veritracks.data)&&(veritracks.data={}),veritracks.data.DataController=function(){var S=0,n={};function O(e,t){n[e]=t}function p(e){n[e]=null}this.cancelRequest=function(e){var t,r;t=e,r=null,r=isNullOrUndefined(n[t])?r:n[t];null!==r&&(r.abort(),p(e))},this.readMultiple=function(e,t,r,n,i,a,o,s,c){var l=null,u=veritracks.security.controller.tryGetSecurityToken(),d=-1,f=!0,y=S++;return u&&(isNullOrUndefined(o)||(l=o),isNullOrUndefined(s)||(d=s),isNullOrUndefined(c)||(f=c),o=callAjax("ReadMultiple",{aSecurityToken:u,aSecurityContextId:-1,aTypeName:e,aVersion:r,aWrappedExpression:{Expression:t},aSortExpression:l,aHowMany:d},function(e,t,r){p(y),isNullOrUndefined(n)||n(e,t,r)},function(e,t,r){p(y),isNullOrUndefined(i)||i(e,t,r)},a,f),O(y,o)),y},this.readTripsAndVisits=function(e,t,r,n,i,a,o,s){var c=veritracks.security.controller.tryGetSecurityToken(),l=S++;return isNullOrUndefined(c)||(c=callAjax("ReadTripsVisits",{aSecurityToken:c,aSecurityContextId:-1,aEnrolleeId:e,aIsHistoricalTrackDate:t,aStartDate:r.toWcf(),aEndDate:n.toWcf(),aUpdateFlag:i,aGetAddress:!0},function(e,t,r){p(l),isNullOrUndefined(a)||a(e,t,r)},function(e,t,r){p(l),isNullOrUndefined(o)||o(e,t,r)},s),O(l,c)),l},this.readEnrolleeTimeline=function(e,t,r,n,i,a,o){var s=veritracks.security.controller.tryGetSecurityToken(),c=S++;return isNullOrUndefined(s)||(s=callAjax("ReadEnrolleeTimeline",{aSecurityToken:s,aSecurityContextId:-1,aEnrolleeId:e,aStartDate:t.toWcf(),aEndDate:r.toWcf(),aIsCached:n},function(e,t,r){p(c),isNullOrUndefined(i)||i(e,t,r)},function(e,t,r){p(c),isNullOrUndefined(a)||a(e,t,r)},o),O(c,s)),c},this.readEnrolleeIncidentTrackpoints=function(e,t,r,n,i,a,o,s,c,l,u){var d=veritracks.security.controller.tryGetSecurityToken(),f=S++;return isNullOrUndefined(d)||(d=callAjax("ReadEnrolleeIncidentTrackpoints",{aSecurityToken:d,aSecurityContextId:-1,aLatitude:e,aLongitude:t,aRadius:r,aStartDate:n.toWcf(),aEndDate:i.toWcf(),aEnrolleeId:a,aIncidentId:o,aIncidentMatchId:s},function(e,t,r){p(f),isNullOrUndefined(c)||c(e,t,r)},function(e,t,r){p(f),isNullOrUndefined(l)||l(e,t,r)},u),O(f,d)),f},this.readDeviceAssignments=function(e,t,r,n,i,a){var o=veritracks.security.controller.tryGetSecurityToken(),s=S++;return isNullOrUndefined(o)||(o=callAjax("ReadDeviceAssignments",{aSecurityToken:o,aSecurityContextId:-1,aStartDate:e.toWcf(),aEndDate:t.toWcf(),aDeviceIdList:r},function(e,t,r){p(s),isNullOrUndefined(n)||n(e,t,r)},function(e,t,r){p(s),isNullOrUndefined(i)||i(e,t,r)},a),O(s,o)),s},this.testTimeline=function(){var e=veritracks.security.controller.tryGetSecurityToken(),n=S++;return e&&(e=callAjax("TestTimeline",{aSecurityToken:e},function(e,t,r){p(n),isNullOrUndefined(aOnSuccess)||aOnSuccess(e,t,r)},function(e,t,r){p(n),isNullOrUndefined(aOnFailure)||aOnFailure(e,t,r)},[],!0),O(n,e)),n},this.readEnrolleeEvents=function(e,t,r,n,i,a,o){var s=veritracks.security.controller.tryGetSecurityToken(),c=S++;return isNullOrUndefined(s)||(s=callAjax("ReadEnrolleeEvents",{aSecurityToken:s,aSecurityContextId:-1,aEnrolleeId:e,aStartDate:t.toWcf(),aEndDate:r.toWcf(),aMetaEventIdList:n},function(e,t,r){p(c),isNullOrUndefined(i)||i(e,t,r)},function(e,t,r){p(c),isNullOrUndefined(a)||a(e,t,r)},o),O(c,s)),c},this.buildGraph=function(e,t,n){var r=veritracks.security.controller.tryGetSecurityToken(),i=S++;return isNullOrUndefined(r)||(r=callAjaxTest("BuildGraph",e,function(e,t,r){p(i),isNullOrUndefined(n)||n(e,t,r)},function(e,t,r){p(i),isNullOrUndefined(aOnFailure)||aOnFailure(e,t,r)},t),O(i,r)),i},this.readDeviceBattery=function(e,t,r,n,i,a,o){var s=veritracks.security.controller.tryGetSecurityToken(),c=S++;return isNullOrUndefined(s)||(s=callAjax("GetDeviceBatteryInformation",{aSecurityToken:s,aSecurityContextId:-1,aDeviceId:e,aMonth:t,aDay:r,aYear:n,aTimeZone:moment.tz.guess()},function(e,t,r){p(c),isNullOrUndefined(i)||i(e,t,r)},function(e,t,r){p(c),isNullOrUndefined(a)||a(e,t,r)},o),O(c,s)),c},this.addRegularSchedule=function(e,n,i,t){var r=veritracks.security.controller.tryGetSecurityToken(),a=S++;if(!isNullOrUndefined(r))return callAjax("AddRegularSchedules",{aSecurityToken:r,aSecurityContextId:-1,aSchedule:prepareObjectForWcf(e)},function(e,t,r){p(a),isNullOrUndefined(n)||n(e,t,r)},function(e,t,r){p(a),isNullOrUndefined(i)||i(e,t,r)},t)},this.Is2FARequired=function(n,i,e){var t=veritracks.security.controller.tryGetSecurityToken(),a=S++;if(!isNullOrUndefined(t))return callAjax("Is2FARequired",{aSecurityToken:t,aSecurityContextId:-1},function(e,t,r){p(a),isNullOrUndefined(n)||n(e,t,r)},function(e,t,r){p(a),isNullOrUndefined(i)||i(e,t,r)},e)},this.Generate2FactorAuthSecret=function(n,i,e){var t=veritracks.security.controller.tryGetSecurityToken(),a=S++;if(!isNullOrUndefined(t))return callAjax("Generate2FactorAuthSecret",{aSecurityToken:t,aSecurityContextId:-1},function(e,t,r){p(a),isNullOrUndefined(n)||n(e,t,r)},function(e,t,r){p(a),isNullOrUndefined(i)||i(e,t,r)},e)},this.Generate2Factor10Codes=function(e,n,i,t){var r=veritracks.security.controller.tryGetSecurityToken(),a=S++;if(!isNullOrUndefined(r))return callAjax("Generate2FAHotp",{aSecurityToken:r,aSecurityContextId:-1,aUserId:e},function(e,t,r){p(a),isNullOrUndefined(n)||n(e,t,r)},function(e,t,r){p(a),isNullOrUndefined(i)||i(e,t,r)},t)},this.Enable2FA=function(e,t,n,i,r){var a=veritracks.security.controller.tryGetSecurityToken(),o=S++;if(!isNullOrUndefined(a))return callAjax("Enable2FA",{aSecurityToken:a,aSecurityContextId:-1,aSecret:e,aCode:t},function(e,t,r){p(o),isNullOrUndefined(n)||n(e,t,r)},function(e,t,r){p(o),isNullOrUndefined(i)||i(e,t,r)},r)}},veritracks.data.controller=new veritracks.data.DataController,Date.prototype.toWcf=function(){"use strict";var e=this.getTime(),t="/Date("+e+")/";return t=isNaN(e)?"/Date(0)/":t},Date.prototype.addYears=function(e){"use strict";return this.setYear(this.getFullYear()+e),this},Date.prototype.addDays=function(e){"use strict";return this.setDate(this.getDate()+e),this},Date.prototype.addHours=function(e){"use strict";return this.setHours(this.getHours()+e),this},Date.prototype.addMinutes=function(e){"use strict";return this.setMinutes(this.getMinutes()+e),this}
12,Number.prototype.toWholeString=function(e){"use strict";for(var t=this.toString();t.length<e;)t="0"+t;return t},Array.prototype.move=function(e,t){if(t>=this.length)for(var r=t-this.length;1+r--;)this.push(undefined);return this.splice(t,0,this.splice(e,1)[0]),this},Array.prototype.remove=function(e,t){t=this.slice((t||e)+1||this.length);return this.length=e<0?this.length+e:e,this.push.apply(this,t)},Array.prototype.unique=function(){for(var e={},t=this.length,r=[],n=0;n<t;n+=1)e[this[n]]=this[n];for(n in e)r.push(e[n]);return r},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1});var mLogicalOperatorEnum=new LogicalOperatorEnum;function RelationalOperatorEnum(){"use strict";this.Undefined=function(){return-1},this.Equal=function(){return 1},this.NotEqual=function(){return 2},this.Like=function(){return 3},this.GreaterThan=function(){return 4},this.GreaterThanOrEqual=function(){return 5},this.LessThan=function(){return 6},this.LessThanOrEqual=function(){return 7},this.Is=function(){return 8},this.IsNot=function(){return 9},this.In=function(){return 10},this.NotIn=function(){return 11},this.Contains=function(){return 12}}var mRelationalOperatorEnum=new RelationalOperatorEnum;function ExpressionBinary(e,t,r){"use strict";this.__type="ExpressionBinary:www.sumosoftware.com/Expressions",this.LeftOperand=e,this.Operator=r,this.RightOperand=t,this.Evaluate=function(e){var t,r=this.LeftOperand.Evaluate(e);return this.Operator===mLogicalOperatorEnum.And()?!0===r&&null!==this.RightOperand&&(t=this.RightOperand.Evaluate(e),r=r&&t):!1===r&&null!==this.RightOperand&&(t=this.RightOperand.Evaluate(e),r=r||t),r}}function ExpressionConditional(e,t,r,n){"use strict";var i=isNullOrUndefined,a=null;switch(this.__type="ExpressionConditional:www.sumosoftware.com/Expressions",this.IsLiteral=!1,i(r)||(this.IsLiteral=r),this.Name=e,isNullOrUndefined(n)&&(n=mRelationalOperatorEnum.Equal()),this.Operator=n,this.Value=t,this.Operator){case mRelationalOperatorEnum.Equal():a=function(e,t){return e==t};break;case mRelationalOperatorEnum.NotEqual():a=function(e,t){return e!=t};break;case mRelationalOperatorEnum.Like():a=function(e,t){var r=!i(e);return!0===r&&(e=e.toString().toLowerCase(),t=t.toString().toLowerCase(),r=-1!==e.indexOf(t)),r};break;case mRelationalOperatorEnum.GreaterThan():a=function(e,t){return!i(e)&&t<e};break;case mRelationalOperatorEnum.GreaterThanOrEqual():a=function(e,t){return!i(e)&&t<=e};break;case mRelationalOperatorEnum.LessThan():a=function(e,t){return!i(e)&&e<t};break;case mRelationalOperatorEnum.LessThanOrEqual():a=function(e,t){return!i(e)&&e<=t};break;case mRelationalOperatorEnum.Is():a=function(e,t){return e===t};break;case mRelationalOperatorEnum.IsNot():a=function(e,t){return e!==t};break;case mRelationalOperatorEnum.In():a=function(e,t){return!i(e)&&(-1!==t.indexOf(e)||-1!==t.indexOf(e.toString()))};break;case mRelationalOperatorEnum.NotIn():a=function(e,t){return!i(e)&&-1===t.indexOf(e)&&-1===t.indexOf(e.toString())};break;case mRelationalOperatorEnum.Contains():a=function(e,t){return!i(e)&&(-1!==e.indexOf(t)||-1!==e.indexOf(t.toString()))};break;default:throw"invalid operator in expression"}this.Evaluate=function(e){if(!isNullOrUndefined(e))return a(e[this.Name],this.Value)}}function SumoPredicateBuilder(){"use strict";this.RootExpression=null,this.Clear=function(){this.RootExpression=null},this.AddConditional=function(e,t){null===this.RootExpression?this.RootExpression=e:(null==t&&(t=mLogicalOperatorEnum.And()),this.RootExpression=new ExpressionBinary(this.RootExpression,e,t))},this.AddNewExpressionConditional=function(e,t,r,n,i){var a,o,s,c,l;if(null==r&&(r=!1),null!=n&&n!==mRelationalOperatorEnum.Undefined()||(n=mRelationalOperatorEnum.Equal()),null!=i&&i!==mLogicalOperatorEnum.Undefined()||(i=mLogicalOperatorEnum.And()),n===mRelationalOperatorEnum.NotIn()||n===mRelationalOperatorEnum.In())if(1e3<t.length){for(o=new SumoPredicateBuilder,s=Math.ceil(t.length/1e3),c=0;c<s;c++)l=t.slice(1e3*c,1e3*(c+1)),o.AddNewExpressionConditional(e,l,r,n,mLogicalOperatorEnum.Or());this.Concatenate(o,i)}else a=new ExpressionConditional(e,t,r,n),this.AddConditional(a,i);else a=new ExpressionConditional(e,t,r,n),this.AddConditional(a,i)},this.AddExpressionBinary=function(e,t){return null==t&&(t=mLogicalOperatorEnum.And()),isNullOrUndefined(this.RootExpression)?this.RootExpression=e:this.RootExpression=new ExpressionBinary(this.RootExpression,e,t),this.RootExpression},this.Concatenate=function(e,t){null==t&&(t=mLogicalOperatorEnum.And()),null===this.RootExpression?this.RootExpression=e.RootExpression:this.RootExpression=new ExpressionBinary(this.RootExpression,e.RootExpression,t)}}function evaluateExpressionValue(e,t){"use strict";var r=[];function n(e,t){"ExpressionBinary:www.sumosoftware.com/Expressions"===e.__type?(n(e.LeftOperand,t),n(e.RightOperand,t)):(e=e).Name===t&&r.push(e)}return isNullOrUndefined(e)||n(e,t),r}function removeExpressionValue(e,t){var r=new SumoPredicateBuilder;return function n(e){"ExpressionBinary:www.sumosoftware.com/Expressions"===e.__type?(n(e.LeftOperand),n(e.RightOperand)):(-1!==["array","object"].indexOf(typeof t)?-1===t.indexOf(e.Name):e.Name!==t)&&r.AddConditional(e)}(e),r.RootExpression}function ObjectLength(e){"use strict";var t,r=0;for(t in e)e.hasOwnProperty(t)&&r++;return r}function ReadPaginated(e,t,r,n,i,a,o,s,c,l){"use strict";var u=null,d=veritracks.security.controller.tryGetSecurityToken(),f=!0;if(!isNullOrUndefined(d)&&""!=d){const u=o||null,f=s||!0;callAjax("ReadPaginated",{aSecurityToken:d,aSecurityContextId:-1,aTypeName:e,aVersion:r,aWrappedExpression:{Expression:t},aSortExpression:u,aPageNumber:c,aPageSize:l},n,i,a,f)}}"undefined"!=typeof exports&&(module.exports={Date:Date,Number:Number,Array:Array,ReleaseLockMultiple:ReleaseLockMultiple,ReleaseLockSingle:ReleaseLockSingle,ExtendLockMultiple:ExtendLockMultiple,ExtendLockSingle:ExtendLockSingle,LockMultiple:LockMultiple,LockSingle:LockSingle,ExtendServerSession:ExtendServerSession,ExpireServerSession:ExpireServerSession,IsAuthorized:IsAuthorized,WriteMultiple:WriteMultiple,Execute:Execute,WriteSingle:WriteSingle,WriteUserSMSDeliveryMethod:WriteUserSMSDeliveryMethod,ReadMultiple:ReadMultiple,CheckSessions:CheckSessions,LogUserAgreement:LogUserAgreement,GetBillingInfo:GetBillingInfo,RefreshCacheItem:RefreshCacheItem,WriteGlobalZone:WriteGlobalZone,WriteGlobalZonePQ:WriteGlobalZonePQ,UpdateZones:UpdateZones,WriteVictimDeviceUnAssignment:WriteVictimDeviceUnAssignment,WriteVictimDeviceUnAssignmentPR:WriteVictimDeviceUnAssignmentPR,WriteVictimDeviceAssignment:WriteVictimDeviceAssignment,WriteVictimDeviceAssignmentPR:WriteVictimDeviceAssignmentPR,GetObjectList:GetObjectList,WriteUserPassword:WriteUserPassword,WriteLogUserTransaction:WriteLogUserTransaction,GetBluHomeCommandStatus:GetBluHomeCommandStatus,GetEMAEnrolleeStatus:GetEMAEnrolleeStatus,GetEMACheckInSchedule:GetEMACheckInSchedule,GetEMAChangeRequest:GetEMAChangeRequest,GetEMAMessagePending:GetEMAMessagePending,GetEMACheckInEvent:GetEMACheckInEvent,GetPlacesRequest:GetPlacesRequest,GetRefreshedZones:GetRefreshedZones,WriteEnrolleeAudibleOnLowBatt:WriteEnrolleeAudibleOnLowBatt,GetEIdReservationQuota:GetEIdReservationQuota,GetIcons:GetIcons,GenerateIconsPng:GenerateIconsPng,GetOffenderAlcoholLastTest:GetOffenderAlcoholLastTest,ReverseGeoCodeAddress:ReverseGeoCodeAddress,GeoCodeAddress:GeoCodeAddress,GetOffenderAlcoholSchedules:GetOffenderAlcoholSchedules,GetOriDeviceChangeReason:GetOriDeviceChangeReason,GetOriSexOffense:GetOriSexOffense,GetDeviceContact:GetDeviceContact,GetNonCacheItem:GetNonCacheItem,FixDates:FixDates,fixDate:fixDate,prepareObjectForWcf:prepareObjectForWcf,SerializationSettings:SerializationSettings,SortColumn:SortColumn,SortExpression:SortExpression,GrepExample:GrepExample,query:query,LogicalOperatorEnum:LogicalOperatorEnum,RelationalOperatorEnum:RelationalOperatorEnum,ExpressionBinary:ExpressionBinary,ExpressionConditional:ExpressionConditional,SumoPredicateBuilder:SumoPredicateBuilder,evaluateExpressionValue:evaluateExpressionValue,removeExpressionValue:removeExpressionValue,ObjectLength:ObjectLength,ReadPaginated:ReadPaginated}); 13function ExpirableCacheItem(t,e,i,n,a){"use strict";this.Data=t,this.Name=e,this.ExpirationTimeSpan=i,this.IsFloatingExpiration=n,this.OnExpireEvent=a,this.Locked=!1,this.ExpirationTimeoutId=null,this.Expire=function(){null!==this.OnExpireEvent&&this.OnExpireEvent(this)}}function UpdatableCacheItem(t,e,i,n,a,s,r,o,u,h,l,d){"use strict";var p=this,c=!1,f=null,m=r,I=a,x=o,v=[],E=null;function g(t){var e=!1;if(!isNullOrUndefined(t))if(t instanceof Array){for(var i=p.Version,n=0;n<t.length&&"undefined"!=typeof t[n].Version;n++)t[n].Version>i&&(i=t[n].Version,e=!0);p.Version=i}else"undefined"!=typeof t.Version&&(p.Version=t.Version,e=!0);return e}function N(t){var e,i=!1;if(!isNullOrUndefined(t)){if(null===p.Data)i=function(t){var e;if(p.Data={},t instanceof Array)for(p.DoFixDates&&FixDates(t),e=0;e<t.length;e++){var i=t[e];p.Data[p.getHashValue(i)]=i}else p.Data=t;return g(t)}(t);else if(t instanceof Array){for(p.DoFixDates&&FixDates(t),e=0;e<t.length;e++){var n=t[e],a=p.Data[p.getHashValue(n)],s=void 0!==a,r="undefined"!=typeof n.Version,o=s&&"undefined"!=typeof a.Version;(!s||!r&&!o||n.Version>a.Version)&&(p.Data[p.getHashValue(n)]=n)}p.runExpression()}else("undefined"==typeof t.Version||t.Version>p.Data.Version)&&(p.Data=t);i=g(t)||i}return i}function D(t){f===t&&(c=!1,f=null)}function U(t,e){var i,n=0===p.Version,n=N(e)||n;D("this.Update"),i=new Date-t.startTime,v[t.startTime.getTime()]={timeSpan:i,itemCount:e.length},x.trigger(p.Name+"complete",p),null!==m&&n&&m(p)}function V(t,e,i,n){D("this.Update"),isNullOrUndefined(I)||I(p,e,i,n,t)}this.Name=t,this.TypeName=e,this.Expression=i,this.Params=s,this.DoFixDates=!0,this.NonCached=l,this.NonCachedExpression=d,this.UpdateIntervalInSeconds=n,this.Data=null,this.Version=0,this.UpdateIntervalId=null,isNullOrUndefined(u)||(this.DoFixDates=u),isNullOrUndefined(h)||(E=h),this.getHashValue=function(t){var e,i,n=null,a=null;if(null!==E){for(a=[],i=E.length,e=0;e<i;e++)a.push(t[E[e]]),a.push(".");n=a.join("")}else n=t.Id;return n},this.runExpression=function(){p.Data=query(p.Data,p.Expression)},this.Update=function(){var t,e;t="this.Update",(e=!c)&&(c=!0,f=t),e&&(t=new Date,p.NonCached&&p.NonCachedExpression?GetNonCacheItem("Get"+p.Name,p.NonCachedExpression,U,V,{startTime:t}):ReadMultiple(p.TypeName,p.Expression,p.Version,U,V,{startTime:t},null,0,!1))}
13,this.getStatistics=function(){return v}}function Cache(){"use strict";Cache.prototype.baseClass.call(this);var e=this,s={},d={};function r(t){t.ExpirationTimeoutId=window.setTimeout(function(){e.ExpireItem(t.Name)},1e3*t.ExpirationTimeSpan)}function p(t){e.trigger(t.Name+"updated",t)}this.GetItem=function(t){var e=s[t];return e=this.isNothing(e)?d[t]:e},this.RemoveItem=function(t){var e=this.RemoveExpirableItem(t);return e=this.isNothing(e)?this.RemoveUpdatableItem(t):e},this.AddUpdatableItem=function(t,e,i,n,a,s,r,o,u,h){var l=new UpdatableCacheItem(t,e,i,n,a,s,p,this,r,o,u,h);return d[t]=l,this.trigger(t+"added",l),l.Update(),setTimeout(function(){var t;(t=l).UpdateIntervalId=window.setInterval(function(){t.Update()},1e3*t.UpdateIntervalInSeconds)},1e3*Math.floor(60*Math.random()+1)),l},this.GetUpdatableItem=function(t){return d[t]},this.RemoveUpdatableItem=function(t){var e=d[t];return this.isNothing(e)||(window.clearInterval(e.UpdateIntervalId),d[t]=null),e},this.AddExpirableItem=function(t,e,i,n,a){t=new ExpirableCacheItem(t,e,i,0!==i&&n,a);return s[e]=t,this.trigger(e+"added",t),0!==i&&r(t),t},this.GetExpirableItem=function(t){t=s[t];return!this.isNothing(t)&&t.IsFloatingExpiration&&(window.clearTimeout(t.ExpirationTimeoutId),r(t)),t},this.RemoveExpirableItem=function(t){var e=s[t];return this.isNothing(e)||(window.clearTimeout(e.ExpirationTimeoutId),s[t]=null),e},this.ExpireItem=function(t){t=this.RemoveExpirableItem(t);this.isNothing(t)||(t.Expire(),t.Data=null)},this.UpdateItem=function(t){t=d[t];this.isNothing(t)||t.Update()},this.getUpdatableItems=function(){return d}}Cache.prototype=new sumo.Class,(Cache.prototype.constructor=Cache).prototype.baseClass=sumo.Class; 14if("undefined"==typeof jQuery)throw this.className()+" requires jquery-1.6.2.*.js";if(isNullOrUndefined(sumo))throw"ControlBase.js requies the sumo namespace defined in SumoClass.js";isNullOrUndefined(sumo.controls)&&(sumo.controls={}),sumo.controls.ControlBase=function(t,s,i,n){"use strict";sumo.controls.ControlBase.prototype.baseClass.call(this),this.IsControlVisible=!0,this.IsParentVisible=!0,this.Id=null,this.ParentId=null,this.ParentElement=null,this.ControlElement=null,this.Html=null,this.Options=null,!this.isNothing(arguments)&&0<arguments.length&&(this.Id=t,this.Options=n,this.Html=i.replace(/##id##/g,this.Id),"string"==typeof s?(this.ParentId=s,this.ParentElement=$("#"+this.ParentId)):(this.ParentId=s.id,this.ParentElement=$(s)),this.ParentElement.html(this.Html),this.ControlElement=this.ParentElement.find("#"+this.Id),this.ControlElement.data("control",this)),this.render=function(){throw this.className()+" must overload render()"},this.dispose=function(){this.isNothing(this.Options)||this.isNothing(this.Options.OnRender)||this.unbind("render",this.Options.OnRender),this.isNothing(this.ParentElement)||this.ParentElement.html(""),this.ParentElement=null,this.ControlElement=null,this.Html=null,this.Options=null,this.Id=null,this.ParentId=null,sumo.controls.ControlBase.prototype.dispose.call(this)},this.show=function(){this.IsControlVisible||(this.IsControlVisible=!0,this.ControlElement.show())},this.hide=function(){this.IsControlVisible&&(this.IsControlVisible=!1,this.ControlElement.hide())},this.showParent=function(){this.IsParentVisible||(this.IsParentVisible=!0,this.ParentElement.show())},this.hideParent=function(){this.IsParentVisible&&(this.IsParentVisible=!1,this.ParentElement.hide())},this.isNothing(this.Options)||this.isNothing(this.Options.OnRender)||this.bind("render",this.Options.OnRender,null)},sumo.controls.ControlBase.prototype=new sumo.Class,sumo.controls.ControlBase.prototype.constructor=sumo.controls.ControlBase,sumo.controls.ControlBase.prototype.baseClass=sumo.Class; 15var AddressHelper={elementPrefixId:"poiAddress",fields:["Description","Street1","Street2","City","State","Zip","Country"],set:function(e){for(var t in this.fields){var i=document.getElementById(this.elementPrefixId+this.fields[t]);null!==i&&e[this.fields[t]]&&"undefined"!=typeof e[this.fields[t]]&&""!==e[this.fields[t]].trim()&&(i.value=e[this.fields[t]])}},get:function(){var e,t={};for(e in this.fields){var i=document.getElementById(this.elementPrefixId+this.fields[e]);null!==i&&this.fields[e]&&"undefined"!=typeof this.fields[e]&&""!==this.fields[e].trim()&&(t[this.fields[e]]=i.value)}return t},clean:function(){for(var e in this.fields)document.getElementById(this.elementPrefixId+this.fields[e])},getFull:function(){var t,e,i=[],n=this.get(),r=["State","Country"],s=["Description"];for(t in n)n[t].length&&s.find(function(e){return e===t})!==t&&(e=r.find(function(e){return e===t})===t?" ":", ",i.push(n[t]+e));return i.join("").toString().trim()},getFullFromObject:function(e){var t,i=[],n=["Description"];for(t in e){var r=n.find(function(e){return e===t});e[t]&&r!==t&&i.push(e[t])}return i.join(", ").toString().trim()}};"undefined"!=typeof exports&&(module.exports=AddressHelper); 16var AgentHelper=function(){function e(){this.builder=new SumoPredicateBuilder}return e.prototype.getId=function(e){this.builder.Clear(),this.builder.AddNewExpressionConditional("DisplayType",1,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),e&&this.builder.AddNewExpressionConditional("OrganizationId",e,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("UserId",gUserDetails.UserId,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And());var r=query(getDataItems("Agents"),this.builder.RootExpression),t=null;if(0<r.length)for(lKey in r){t=r[lKey].Id;break}return null!==t&&t?t:gUserDetails.UserId},e.prototype.getBy=function(e,r){return this.builder.Clear(),this.builder.AddNewExpressionConditional("DisplayType",1,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional(e,r,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),query(getDataItems("Agents"),this.builder.RootExpression)},e.prototype.getUserOrganizations=function(){return this.builder.Clear(),this.builder.AddNewExpressionConditional("Id",gUserDetails.OrganizationIds,!1,mRelationalOperatorEnum.In(),mLogicalOperatorEnum.And()),query(OrganizationSortFormatter(),this.builder.RootExpression)},e.prototype.getPermissionValueById=function(e){this.builder.Clear(),this.builder.AddNewExpressionConditional("PermissionId",e,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And());var r=query(gUserPermissions,this.builder.RootExpression);return r[e]?r[e].Value:0},e.prototype.getAgents=function(){var e,r,t=[],i=(this.builder.Clear(),this.builder.AddNewExpressionConditional("UserId",gUserDetails.UserId,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),query(getDataItems("Agents"),this.builder.RootExpression));for(r in this.builder.Clear(),i)i.hasOwnProperty(r)&&(e=i[r],t.push(e.Id));return t},e.prototype.getRiskLevels=function(e){var r=new SortExpression;this.builder.Clear(),this.builder.AddNewExpressionConditional("IsActive",!0,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),t=isNullOrUndefined(e)?query(getDataItems("RiskLevels"),this.builder.RootExpression):query(e,lBuilder.RootExpression),r.addAscendingColumn("SortOrder");var t,i,n,o=[];for(n in t=r.sort(t))t.hasOwnProperty(n)&&(o[(i=t[n]).Id]=i);return o},e.prototype.getAgentIds=function(){var e=[],r=(this.builder.Clear(),this.builder.AddNewExpressionConditional("UserId",gUserDetails.UserId,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),query(getDataItems("Agents"),this.builder.RootExpression));for(lKey in this.builder.Clear(),r)r.hasOwnProperty(lKey)&&e.push(r[lKey].Id);return e},e.prototype.searchBy=function(e,r){return this.builder.Clear(),this.builder.AddNewExpressionConditional("DisplayType",1,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional(e,r,!1,mRelationalOperatorEnum.Like()),query(getDataItems("Agents"),this.builder.RootExpression)},new e}();"undefined"!=typeof exports&&(module.exports=AgentHelper); 17var EnrolleeHelper=function(){function e(){this.builder=new SumoPredicateBuilder}return e.prototype.getByOrganizationId=function(e,r,n){if(this.builder.Clear(),!e)throw"Missing lOrganizationId in
17EnrolleeHelper method call";if(e&&this.builder.AddNewExpressionConditional("OrganizationId",e,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("EnrolleeType",1,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),r){if(!r.hasOwnProperty("name")||!r.hasOwnProperty("value"))throw"If using FilterBy option please include an object including name & value keys";this.builder.AddNewExpressionConditional(r.name,r.value,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And())}e=query(getDataItems("Enrollees"),this.builder.RootExpression);return n?function(e,r){"use strict";var n,t=new SortExpression,o=isNullOrUndefined(e)?getDataItems("Enrollees"):e;for(n in o)o.hasOwnProperty(n)&&(o[n][r]=o[n][r].trim());return t.addAscendingColumn(r),o=t.sort(o)}(e,n):e},e.prototype.getBy=function(e,r){return this.builder.Clear(),this.builder.AddNewExpressionConditional(e,r,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),query(getDataItems("Enrollees"),this.builder.RootExpression)},e.prototype.getLocalTimeZoneGuess=function(e){this.builder.Clear(),this.builder.AddNewExpressionConditional("TimeZoneName",moment.tz.guess(),!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And());var r,n=query(getDataItems("TimeZone"),this.builder.RootExpression),t="";for(r in n)if(n.hasOwnProperty(r)){if(e&&!n[r].hasOwnProperty(e))throw"EnrolleeHelper: error in Value, please valid parameters:"+n[r];t=n[r].hasOwnProperty(e)?n[r][e]:n[r].Id}return t},e.prototype.getEventsByRangeDate=function(e,r,n){return this.builder.Clear(),this.builder.AddNewExpressionConditional("EnrolleeId",e,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("StartDateUTC",r,!1,mRelationalOperatorEnum.GreaterThanOrEqual(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("StartDateUTC",n,!1,mRelationalOperatorEnum.LessThanOrEqual(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("DisplayFlag",1,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),query(getDataItems("Events"),this.builder.RootExpression)},e.prototype.IsEnrolleeAssignedToDevice=function(e,r){var n=gCurrentDeviceAssignment[e],t=[];if(!isNullOrUndefined(n))for(var o in n)n.hasOwnProperty(o)&&(o=n[o],-1!==r.indexOf(o.ProductId))&&t.push(o.ProductId);return 0!=t.length},e.prototype.searchBy=function(e,r){return this.builder.Clear(),this.builder.AddNewExpressionConditional(e,r,!1,mRelationalOperatorEnum.Like(),mLogicalOperatorEnum.And()),query(getDataItems("Enrollees"),this.builder.RootExpression)},new e}();"undefined"!=typeof exports&&(module.exports=EnrolleeHelper); 18var EventHelper={query:"",on:function(e,t,n){if(!e||""===e)throw"EventHelper Provide an element id";if(this.query=e,this.event=t,this.callback=n,this.element=document.querySelector(this.query),null===this.element)throw"the element Id returns a null";return this.element.addEventListener(this.event,this.callback,!1),this},dispose:function(){null!==this.element&&this.element.removeEventListener(this.event,this.callback,!1)}};"undefined"!=typeof exports&&(module.exports=EventHelper); 19var EventService=function(){function e(){this.builder=new SumoPredicateBuilder}return e.prototype.getEvents=function(e,t){t=(t?gObjectList.EventHistory:gObjectList.Event).AssemblyQualifiedName;return fetchDataContract(t,e)},e.prototype.getBluPlusConfig=function(e,t){this.builder.Clear();var n={aExpression:this.builder.RootExpression};return fetchDataContract(gObjectList.BluPlusConfiguration.AssemblyQualifiedName,n)},e.prototype.getBluPlusEvents=function(e,t){this.builder.Clear(),this.builder.AddNewExpressionConditional("EnrolleeId",e,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("MetaEventId",397,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),t&&this.builder.AddNewExpressionConditional("StartDateUTC",t,!1,mRelationalOperatorEnum.GreaterThanOrEqual(),mLogicalOperatorEnum.And());e={aExpression:this.builder.RootExpression};return fetchDataContract(gObjectList.Event.AssemblyQualifiedName,e)},e.prototype.getNotesByEventIds=function(e){this.builder.Clear(),this.builder.AddNewExpressionConditional("EventId",e,!1,mRelationalOperatorEnum.In(),mLogicalOperatorEnum.And());e={aExpression:this.builder.RootExpression};return fetchDataContract(gObjectList.EventNote.AssemblyQualifiedName,e)},e.prototype.closeOpenEventsByEnrolleeId=function(e){if(!e)return Promise.reject(new Error("EnrolleeId is required"));this.builder.Clear(),this.builder.AddNewExpressionConditional("EnrolleeId",e,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("IsOpen",!0,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And());e={aExpression:this.builder.RootExpression};return fetchDataContract(gObjectList.Event.AssemblyQualifiedName,e).then(e=>{e=e.Data;if(e?.length){const t=new Date;e=e.filter(e=>null!=e).map(e=>{e={...e,IsOpen:!1,StopDateUTC:t};return prepareObjectForWcf(e)});0<e.length&&WriteMultiple(e,null,null,mEnrolleesData.OffenderCurrentId,!1)}})},new e}();"undefined"!=typeof exports&&(module.exports=EventService); 20var UserHelper=function(){function e(){this.builder=new SumoPredicateBuilder}return e.prototype.getId=function(e){this.builder.Clear(),this.builder.AddNewExpressionConditional("DisplayType",1,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),e&&this.builder.AddNewExpressionConditional("OrganizationId",e,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("UserId",gUserDetails.UserId,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And());var r=query(getDataItems("Users"),this.builder.RootExpression),t=null;if(0<r.length)for(lKey in r){t=r[lKey].Id;break}return null!==t&&t?t:gUserDetails.UserId},e.prototype.getByIds=function(e){return this.builder.Clear(),this.builder.AddNewExpressionConditional("Id",e,!1,mRelationalOperatorEnum.In(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("DisplayType",1,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("IsActive",!0,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),query(getDataItems("Users"),this.builder.RootExpression)},e.prototype.getBy=function(e,r){return this.builder.Clear(),this.builder.AddNewExpressionConditional("DisplayType",1,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("IsActive",!0,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional(e,r,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),query(getDataItems("Users"),this.builder.RootExpression)},e.prototype.getCultureId=function(){var e=getUserPreferences(13),r=1;return 0<count(e)&&(e=e.CultureId,isNullOrUndefined(e)||-1==e.Value||(r=parseInt(e.Value))),r},e.prototype.getSelectedLanguage=function(){var e=getDataItems("Culture"),r=this.getCultureId();return isNullOrUndefined(e)?"EN":e[r].Name},e.prototype.getPhoneCodes=function(){return["MX","US"]},new e}();"undefined"!=typeof exports&&(module.exports=UserHelper); 21var ContextMenu=function(e,t,n){function o(e){for(var t=e.toElement||e.relatedTarget;t&&t.parentNode&&t.parentNode!=window;){if(t.parentNode==this.element||t==this.element)return t.preventDefault&&t.preventDefault(),!1;t=t.parentNode}this.hideMenuNoEvent()}this.elementId=e||"menu",this.items=t||[],this.options=n||{"class":"contextMenuClass"},this.menuDisplayed=!1,this.latLng=null,this.data=null,this.element=document.getElementById(this.elementId),null!==this.element&&"undefined"!=typeof this.element||(this.element=document.createElement("div"),this.element.i
21d=this.elementId,document.body.appendChild(this.element)),this.element.className=this.options["class"]||"contextMenuClass",this.show=function(e,t,n){if(e.latLng&&(this.latLng=e.latLng),t&&(this.data=t),!this.isCurrentModalOpen()){var i,s,l=null;for(i in e)e[i]instanceof MouseEvent&&(l=e[i]);(l=l||{clientX:e.position.x,clientY:e.position.y,preventDefault:function(){}})&&(t=l.clientX,s=l.clientY,this.element.style.left=t+"px",this.element.style.top=s+"px",this.element.style.display="block",this.renderMenu(this.elementId,n),l.preventDefault(),this.menuDisplayed=!0),this.element.addEventListener("mouseout",o.bind(this),!1)}},this.hideMenuNoEvent=function(){1==this.menuDisplayed&&(this.element.style.display="none",this.menuDisplayed=!1),this.element.removeEventListener("mouseout",o,!1)},this.hide=function(e){if(this.hideMenuNoEvent(),e)for(var t in e)e[t]instanceof MouseEvent&&e[t].preventDefault()},this.renderMenu=function(e,t){if(this.element){t=t&&Array.isArray(t)?t:[],this.element.innerHTML="";for(var n=0;n<this.items.length;n++)(t&&t.includes(n)||0===t.length)&&this.element.appendChild(this.itemHtml(this.items[n]))}},this.isCurrentModalOpen=function(){var e,t=["uVeritracksCustomPopup","uVeritracksModal"],n=!1;for(e in t){var i=document.getElementById(t[e]);if(null!==i&&"block"===i.style.display){n=!0;break}}return n},this.getItems=function(){return this.items},this.addItem=function(e){this.items.push(e),this.renderMenu(this.elementId)},this.removeItem=function(e){this.items.splice(e,1),this.renderMenu(this.elementId)},this.itemHtml=function(e){var t,n,i,s;if(e&&e!={})return n=(t=this).latLng,i=this.data,(s=document.createElement("div")).className=e.cssClass,s.onclick=function(){t.hide(),e.OnClick(n,i)},s.appendChild(document.createTextNode(e.text)),s}};"undefined"!=typeof exports&&(module.exports=ContextMenu); 22if(isNullOrUndefined(sumo))throw"GoogleMapControl.js requies the sumo namespace defined in SumoClass.js";if(isNullOrUndefined(sumo.maps)&&(sumo.maps={}),isNullOrUndefined(google)||isNullOrUndefined(google.maps))throw"GoogleMapControl.js requires Google Maps 3.x found here: https://maps.googleapis.com/maps/api/js?libraries=geometry,drawing,places&sensor=true";function log(e,t){"use strict";t?$("#uDebugOutput").text($("#uDebugOutput").text()+" "+e):$("#uDebugOutput").text(e)}sumo.maps.GoogleMapControl=function(e,t,o){"use strict";sumo.maps.GoogleMapControl.prototype.baseClass.call(this,e,t,'<div class="sumo-googlemap" style="width:100%; height:100%" id="##id##"></div>',o);var n,M=null,a={},i="hybrid",s=null,l=null,r=null,k=this,d=null,c=[],u=["rgba(0, 255, 255, 0)","rgba(0, 255, 255, 1)","rgba(0, 191, 255, 1)","rgba(0, 127, 255, 1)","rgba(0, 63, 255, 1)","rgba(0, 0, 255, 1)","rgba(0, 0, 223, 1)","rgba(0, 0, 191, 1)","rgba(0, 0, 159, 1)","rgba(0, 0, 127, 1)","rgba(63, 0, 91, 1)","rgba(127, 0, 63, 1)","rgba(191, 0, 31, 1)","rgba(255, 0, 0, 1)"],g=null,p=[],h=!1;function f(){k.isNothing(M)||google.maps.event.trigger(M,"resize")}function m(e,t,o){e?(k.setCenter(e.center_latitude,e.center_longitude),k.isNothing(o)||o("Geocode",e)):k.isNothing(o)||o("Geocode",null)}function y(e,t){var o,n,i=[];if(t===google.maps.places.PlacesServiceStatus.OK)for(n=0;n<e.length;n++)o=e[n],i.push(o);switch(M.b.id){case"uOffenderMap":enrolleesPlaces_OnComplete(i);break;case"uEventMap":case"uLiveMap":eventsPlaces_OnComplete(i);break;case"uAnalysisDetailsMap":analysisPlaces_OnComplete(i);break;case"uZoneMap":zonesPlaces_OnComplete(i)}}this.isNothing(o)||(o.displayType&&(i=o.displayType),o.mapTypeId_OnChange&&(s=o.mapTypeId_OnChange),l=o.OnClick,r=o.OnRightClick,"boolean"==typeof o.multipleInfoWindows&&(h=o.multipleInfoWindows)),this.layerAdd=function(e,t){t=new sumo.maps.Layer(e,M,t);(a[e]=t).isVisible()&&t.show()},this.layerRemove=function(e){e=a[e];this.isNothing(e)||(e.dispose(),a.splice(a.indexOf(e),1))},this.getPlaybackController=function(e,t){var o,n,i=a[e],s=[],l=null;if(!this.isNothing(i)){for(o in a)a.hasOwnProperty(o)&&!0===(n=a[o]).doesPlayback()&&n.name()!==e&&s.push(n);l=new sumo.maps.Playback(i,s,t)}return l},this.layerGetShape=function(e,t){var o=null,e=a[e];return o=this.isNothing(e)?o:e.getShape(t)},this.layerShow=function(e){e=a[e];this.isNothing(e)||e.show()},this.layerHide=function(e){e=a[e];this.isNothing(e)||e.hide()},this.layerSetDataSource=function(e,t){e=a[e];null!==g&&g.close(),this.isNothing(e)||e.setDataSource(t)},this.layerGetDataSource=function(e){var e=a[e],t=[];return t=this.isNothing(e)?t:e.getDataSource()},this.layerSetRenderType=function(e,t){e=a[e];this.isNothing(e)||e.setRenderType(t)},this.layerSetDragEndHandler=function(e,t){e=a[e];this.isNothing(e)||e.dragEndHandler(t)},this.layerSetDoesPlayback=function(e,t){e=a[e];this.isNothing(e)||e.setDoesPlayback(t)},this.layerGetMarkerById=function(e,t){e=a[e];if(!this.isNothing(e))return e.getMarkerById(t)},this.selectMarker=function(e,t,o){e=a[e];return this.isNothing(e)||"function"!=typeof e.selectMarker?null:e.selectMarker(t,o)},this.deselectMarker=function(e){e=a[e];return this.isNothing(e)||"function"!=typeof e.deselectMarker?null:e.deselectMarker()}
22,this.getSelectedMarker=function(e){e=a[e];return this.isNothing(e)||"function"!=typeof e.getSelectedMarker?null:e.getSelectedMarker()},this.hideInfo=function(){h?(p.forEach(function(e){e&&e.close()}),p=[]):null!==g&&g.close()},this.showInfo=function(e,t,o,n){var i,s;h?(i=new google.maps.InfoWindow({content:t,position:new google.maps.LatLng(o,n),zIndex:1e7,anchor:e}),p.push(i),i.open(M,e),google.maps.event.addListener(i,"domready",function(){var e=document.querySelector(".gm-style-iw-c");e&&(e.style.userSelect="text",e.style.webkitUserSelect="text",e.style.mozUserSelect="text",e.style.msUserSelect="text")}),google.maps.event.addListener(i,"closeclick",function(){p=p.filter(function(e){return e!==i})})):(null!==g&&g.close(),g=new google.maps.InfoWindow({content:t,position:new google.maps.LatLng(o,n),zIndex:1e7,anchor:e}),s=(window.mInfoWindowGlobal=g).close,g.close=function(){s.call(this),window.mInfoWindowGlobal=null},g.open(M,e),google.maps.event.addListener(g,"domready",function(){var e=document.querySelector(".gm-style-iw-c"),t=(e&&(e.style.userSelect="text",e.style.webkitUserSelect="text",e.style.mozUserSelect="text",e.style.msUserSelect="text"),function(e){27===e.keyCode&&window.mInfoWindowGlobal&&(window.mInfoWindowGlobal.close(),document.removeEventListener("keydown",t))});document.addEventListener("keydown",t),google.maps.event.addListener(g,"closeclick",function(){document.removeEventListener("keydown",t)})}))},this.zoom=function(e){M.setZoom(e)},this.getZoom=function(){return M.getZoom()},this.resize=function(){f()},this.render=function(){var e=google.maps.MapTypeId.HYBRID,t=google.maps.ControlPosition.TOP_RIGHT;"roadmap"===i?e=google.maps.MapTypeId.ROADMAP:"satellite"===i?e=google.maps.MapTypeId.SATELLITE:"terrain"===i&&(e=google.maps.MapTypeId.TERRAIN),(M=new google.maps.Map(this.ControlElement[0],{zoom:3,center:new google.maps.LatLng(27.9709,-82.4646),zoomControl:!0,rotateControl:!1,zoomControlOptions:{position:t},streetViewControlOptions:{position:t},rotateControlOptions:{position:t},mapTypeId:e,styles:[{featureType:"poi",stylers:[{visibility:"on"}]}]})).setTilt(0),google.maps.event.addListener(M,"tilt_changed",function(){0!==M.getTilt()&&M.setTilt(0)}),google.maps.event.addListener(M,"maptypeid_changed",function(){M.setTilt(0);var e=M.getStreetView();k.isNothing(s)||!k.isNothing(e)&&e.getVisible()||s(M)}),google.maps.event.addListener(M,"click",function(e){k.isNothing(l)||l(e)}),google.maps.event.addListener(M,"rightclick",function(e){setTimeout(function(){k.isNothing(r)||r(e)},0,e)}),M.sumoData=this,$(window).resize(f),this.trigger("render")},this.getMap=function(){return M},this.getCenter=function(){var e=null;return e=this.isNothing(M)?e:M.getCenter()},this.setCenter=function(e,t){this.isNothing(M)||M.setCenter(new google.maps.LatLng(e,t))},this.getBoundsFromArray=function(e){for(var t=new google.maps.LatLngBounds,o=0,n=e.length,o=0;o<n;o++){var i=e[o],s=i.latitude!==undefined?i.latitude:i.Latitude,i=i.longitude!==undefined?i.longitude:i.Longitude;s!==undefined&&i!==undefined&&(s=new google.maps.LatLng(s,i),t.extend(s),0)}return t},this.fitBounds=function(e){var t,o,n=new google.maps.LatLngBounds;if(this.isNothing(e))for(t in a)a.hasOwnProperty(t)&&(o=a[t],this.isNothing(o)||(n=o.fitBounds(n)));else n=e;M.fitBounds(n)},this.latLngLocate=function(e,t){var o=new google.maps.Geocoder,n=(e+","+t).split(",",2),i=parseFloat(n[0]),n=parseFloat(n[1]),s=new google.maps.LatLng(i,n);function l(e,t){if(!isNullOrUndefined(t))return t.formated_address;o.geocode({latLng:s},function(e,t){if(t===google.maps.GeocoderStatus.OK){if(e)return e.formated_address}else alert("Geocoder failed due to: "+t)})}ReverseGeoCodeAddress(e,t,l,function(){l(0,[])},{latlng:s})},this.geocode=function(e,s,l){var o=new google.maps.Geocoder,t=e.split(",",2),n=parseFloat(t[0]),t=parseFloat(t[1]),i=new google.maps.LatLng(n,t),a={latLng:i};function r(e,t,o){var n,i;e&&!isNullOrUndefined(o)&&(o=new Address(e),i={lat:e.center_latitude,lng:e.center_longitude},n={lat:e.location.coordinates[0][0][1],lng:e.location.coordinates[0][0][0]},o.Radius=GeodesicDistance(i,n),(i=new GlobalAddress(o)).AddressTypeId=3,i.Name="Map Geocode",WriteSingle(i,null,
22null,null,!0)),s(e,t,l)}function d(e,t){isNullOrUndefined(t)?o.geocode(a,r):r(t,google.maps.GeocoderStatus.OK,"LocalGeocode")}isNaN(i.lat())&&(a={address:e}),this.isNothing(e)||ReverseGeoCodeAddress(n,t,d,function(){d(0,[])},{latlng:i})},this.reverseGeocode=function(e,t,i){this.geocode(e+", "+t,function(e,t,o){var n;"OK"===t?(n=new Address(e),i({Description:e.formated_address,Street1:n.StreetNumber+" "+n.Street1,Street2:n.Street2,City:n.City,State:n.State,Zip:n.ZipCode,Country:n.Country},t)):i({Street1:"",Street2:"",City:"",State:"",Zip:"",Country:""},t)})},this.reverseGeocodeAsync=function(t,o){var n=this;return new Promise(function(i,s){try{n.geocode(t+", "+o,function(e,t){try{var o;"OK"===t||t===google.maps.GeocoderStatus.OK?(o=new Address(e),i({Description:e.formated_address,Street1:o.StreetNumber+" "+o.Street1,Street2:o.Street2,City:o.City,State:o.State,Zip:o.ZipCode,Country:o.Country})):s(new Error("Reverse geocode failed: "+t))}catch(n){s(n)}})}catch(e){s(e)}})},"undefined"!=typeof window&&"function"!=typeof window.reverseGeocode&&(n=this,window.reverseGeocode=function(e,t){return n.reverseGeocodeAsync(e,t)}),this.locate=function(e,o){var n,i=new google.maps.Geocoder,t={address:e},s=e.match(/-?\d+\.\d+/g);function l(e,t){isNullOrUndefined(t)?(n=function(e,t){m(e,0,o)},i.geocode(e,n)):m(t,0,o)}this.isNothing(s)||2!==s.length?GeoCodeAddress(e,l,function(){l(t,[])},t):(this.setCenter(s[0],s[1]),isNullOrUndefined(o)||o("LatLong",{Latitude:s[0],Longitude:s[1]}))},this.locatePlaces=function(e,t){var o=M.getCenter(),n=o.lat(),o=o.lng(),n={location:new google.maps.LatLng(n,o),radius:"300",query:e};new google.maps.places.PlacesService(M).textSearch(n,y)},this.clearStreetView=function(){M.getStreetView().setVisible(!1)},this.setStreetLevel=function(e,t,o){var n=new google.maps.StreetViewService,e=new google.maps.LatLng(e,t);o&&new google.maps.Marker({position:e,map:M,icon:"http://maps.google.com/mapfiles/ms/icons/blue-dot.png"}),n.getPanoramaByLocation(e,100,function(e,t){t===google.maps.StreetViewStatus.OK?(t=e.location.latLng,(e=M.getStreetView()).setPosition(t),e.setPov({heading:265,pitch:0}),e.setVisible(!0)):(k.trigger("streetviewerror","Street View Unavailable"),M.getStreetView().setVisible(!1))})},this.boundsChanged=function(){google.maps.event.trigger(M,"resize")},this.isLayerNotAvailable=function(e){return this.isNothing(a[e])},this.dispose=function(){var e=null,t=null;
22for(e in h?(p.forEach(function(e){e&&e.close()}),p=[]):null!==g&&g.close(),a)a.hasOwnProperty(e)&&(t=a[e],this.isNothing(t)||(t.dispose(),a[e]=null));a=null,$(window).unbind("resize",f),google.maps.event.clearListeners(M),k=M=null,sumo.maps.GoogleMapControl.prototype.dispose.call(this)},this.getHeatMapDataPoints=function(){return c},this.setHeatMapDataPoints=function(e){if(c=[],null!=e)for(var t in e)e.hasOwnProperty(t)&&c.push(new google.maps.LatLng(e[t].Latitude,e[t].Longitude));isNullOrUndefined(d)||d.set("data",c)},this.changeHeatMapGradient=function(){d.set("gradient",d.get("gradient")?null:u)},this.getHeatMap=function(){return d},this.toggleHeatMap=function(){null==d?(d=new google.maps.visualization.HeatmapLayer({data:c,map:M})).set("gradient",d.get("gradient")?null:u):(c=[],d.setMap(null),d=null)},this.changeRadius=function(e){d.set("radius",d.get("radius")?null:e)},this.disposeHeatMap=function(){c=[],null!=d&&(d.setMap(null),d=null)},this.changeOpacity=function(e){d.set("opacity",d.get("opacity")?null:e)};var O=10000001,P=1e7,G=180,E=350,A=300,w=1e-6,I="#B83692",T=[],D=null;function z(e,t,o,n){return Math.abs(e-o)<w&&Math.abs(t-n)<w}function U(){0===T.length&&D&&(document.removeEventListener("keydown",D),D=null)}function H(e,t){var o,n=M.getBounds(),i=M.getProjection();return k.isNothing(n)||k.isNothing(i)?null:(o=Math.pow(2,M.getZoom()),n=new google.maps.LatLng(n.getNorthEast().lat(),n.getSouthWest
22().lng()),n=i.fromLatLngToPoint(n),e=i.fromLatLngToPoint(new google.maps.LatLng(e,t)),{x:Math.floor((e.x-n.x)*o),y:Math.floor((e.y-n.y)*o)})}this.showPopup=function(e,i,s){var t,l,o,n,a,r,d,c,u,g,p,h,f,m,y,w,v,b,L;return k.isNothing(M)?null:5<=(t=T.filter(function(e){return!e._closed}).length)?("undefined"!=typeof window&&window.mActivityNotification&&"function"==typeof window.mActivityNotification.addNotification&&"function"==typeof window.localizeWrapper&&5===t&&(t=window.localizeWrapper("cMaximumCardsOpen")||"Maximum Cards Open",o=window.localizeWrapper("cMaximumCardsOpenMsg")||"You have reached the limit of 5 opened cards. Please close one of the existing cards to open another.",mActivityNotification.clearNotifications(),window.mActivityNotification.addNotification(t+"<br>"+o)),null):(t=M.getDiv(),g=u=c=d=r=a=n=o=l=null,m=p=!1,b=v=w=y=f=h=0,T.slice().forEach(function(e){!e._closed&&z(e._lat,e._lng,i,s)&&e._close&&e._close()}),(l=document.createElement("div")).className="gm-custom-popup",(L=l).style.position="absolute",L.style.zIndex=O,L.style.background="white",L.style.border="1px solid #888",L.style.borderRadius="4px",L.style.boxShadow="0 2px 8px rgba(0,0,0,0.2)",L.style.minWidth=G+"px",L.style.maxWidth=E+"px",L.style.userSelect="text",L.style.webkitUserSelect="text",L.style.visibility="hidden",(o=document.createElement("div")).className="gm-popup-header",(L=o).style.cursor="move",L.style.background="#f0f0f0",L.style.borderBottom="1px solid #ccc",L.style.borderRadius="4px 4px 0 0",L.style.padding="6px 30px 6px 10px",L.style.position="relative",L.style.height="20px",l.appendChild(o),(n=document.createElement("span")).className="gm-popup-close",n.innerHTML="×",(L=n).style.cursor="pointer",L.style.position="absolute",L.style.top="5px",L.style.right="10px",L.style.fontSize="20px",L.style.color="#666",L.style.lineHeight="20px",L.style.fontWeight="bold",n.onmouseover=function(){n.style.color="#000"},n.onmouseout=function(){n.style.color="#666"},o.appendChild(n),(a=document.createElement("div")).className="gm-popup-content",(L=a).style.padding="10px",L.style.maxHeight=A+"px",L.style.overflowY="auto",a.innerHTML=e,l.appendChild(a),(r=document.createElement("div")).className="gm-popup-caret",(L=r).style.position="absolute",L.style.left="50%",L.style.transform="translateX(-50%)",L.style.bottom="-10px",L.style.width="0",L.style.height="0",L.style.borderLeft="10px solid transparent",L.style.borderRight="10px solid transparent",L.style.borderTop="10px solid white",l.appendChild(r),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),(e=d).style.position="absolute",e.style.pointerEvents="none",e.style.overflow="visible",e.style.left="0",e.style.top="0",e.style.width="100%",e.style.height="100%",e.style.zIndex=P,e.style.display="none",(c=document.createElementNS("http://www.w3.org/2000/svg","line")).setAttribute("stroke",I),c.setAttribute("stroke-width",2),c.setAttribute("stroke-dasharray","5,5"),(u=document.createElementNS("http://www.w3.org/2000/svg","circle")).setAttribute("r",6),u.setAttribute("fill",I),u.setAttribute("stroke","white"),u.setAttribute("stroke-width",2),d.appendChild(c),d.appendChild(u),t.appendChild(d),t.appendChild(l),l._lat=i,l._lng=s,l._closed=!1,l._dragged=!1,l._close=_,T.push(l),D||(D=function(e){27===e.keyCode&&0<T.length&&T.slice().forEach(function(e){e._close&&!e._closed&&e._close()})},document.addEventListener("keydown",D)),setTimeout(S,10),g=google.maps.event.addListener(M,"bounds_changed",function(){l._closed||(S(),N())}),l._boundsListener=g,o.addEventListener("mousedown",function(e){e.target!==n&&(e.preventDefault(),e.stopPropagation(),m=!0,y=e.clientX,w=e.clientY,v=parseInt(l.style.left,10)||0,b=parseInt(l.style.top,10)||0,k.isNothing(M)||M.setOptions({draggable:!1}),document.addEventListener("mousemove",C,!0),document.addEventListener("mouseup",x,!0))}),l.addEventListener("mousedown",function(e){e.stopPropagation()}),l.addEventListener("click",function(e){e.stopPropagation()}),l.addEventListener("dblclick",function(e){e.stopPropagation()}),n.onclick=function(e){e.stopPropagation(),_()},l);function N(){var e,t,o,n;!p||l._closed||(e=H(i,s),k.isNothing(e))?d.style.display="none":(t=parseInt(l.style.left,10)||0,n=parseInt(l.style.top,10)||0,o=l.offsetWidth||G,n=n+(l.offsetHeight||100),c.setAttribute("x1",t+o/2),c.setAttribute("y1",n),c.setAttribute("x2",e.x),c.setAttribute("y2",e.y),u.setAttribute("cx",e.x),u.setAttribute("cy",e.y),d.style.display="block")}function S(){var e,t,o;p||l._closed?l._closed||(l.style.left=h+"px",l.style.top=f+"px"):(e=H(i,s),k.isNothing(e)?setTimeout(S,50):(t=l.offsetWidth||G,o=l.offsetHeight||100,l.style.left=e.x-t/2+"px",l.
22style.top=e.y-o-45+"px",l.style.visibility="visible",r.style.display="block"))}function C(e){var t;m&&(e.preventDefault(),e.stopPropagation(),t=e.clientX-y,e=e.clientY-w,h=v+t,f=b+e,l.style.left=h+"px",l.style.top=f+"px",N())}function x(){m&&(p=!(m=!1),l._dragged=!0,r.style.display="none",N(),document.removeEventListener("mousemove",C,!0),document.removeEventListener("mouseup",x,!0),k.isNothing(M)||M.setOptions({draggable:!0}))}function _(){var e;l._closed||(l._closed=!0,k.isNothing(g)||(google.maps.event.removeListener(g),g=null),k.isNothing(d)||k.isNothing(d.parentNode)||d.parentNode.removeChild(d),k.isNothing(l.parentNode)||l.parentNode.removeChild(l),-1!==(e=T.indexOf(l))&&T.splice(e,1),U(),k.isNothing(M))||M.setOptions({draggable:!0})}},this.hidePopup=function(){T.slice().forEach(function(e){e._close&&!e._closed&&e._close()}),T=[],U()},this.hideUnpinnedPopups=function(){T.slice().forEach(function(e){!e._close||e._closed||e._dragged||e._close()}),U()},this.hidePopupAt=function(t,o){var n=!1;return T.slice().forEach(function(e){!e._closed&&z(e._lat,e._lng,t,o)&&e._close&&(e._close(),n=!0)}),n},this.closePopup=function(e){return!k.isNothing(e)&&!e._closed&&"function"==typeof e._close&&(e._close(),!0)},this.getPopupCount=function(){return T.filter(function(e){return!e._closed}).length},this.render()},sumo.maps.GoogleMapControl.prototype=new sumo.controls.ControlBase,sumo.maps.GoogleMapControl.prototype.constructor=sumo.maps.GoogleMapControl,sumo.maps.GoogleMapControl.prototype.baseClass=sumo.controls.ControlBase; 23if(isNullOrUndefined(sumo))throw"Geo.js requies the sumo namespace defined in sumoClass.js";isNullOrUndefined(sumo.geo)&&(sumo.geo={}),sumo.geo.Point=function(e,o){"use strict";this.Latitude=e,this.Longitude=o},sumo.geo.Point.prototype=new sumo.Class,sumo.geo.Point.prototype.constructor=sumo.geo.Point,sumo.geo.Point.prototype.baseClass=sumo.Class,sumo.geo.conversion={},sumo.geo.conversion.feetToDegreeLatitude=function(e){"use strict";return e/364566.9294},sumo.geo.conversion.toRadians=function(e){"use strict";return e*(Math.PI/180)},sumo.geo.conversion.toDegrees=function(e){"use strict";return 180/Math.PI*e},sumo.geo.conversion.nauticalMilesToStatuteMiles=function(e){"use strict";return 1.150779449*e},sumo.geo.conversion.statuteMilesToNauticalMiles=function(e){"use strict";return e/1.150779449},sumo.geo.conversion.statuteMilesToFeet=function(e){"use strict";return 5280*e},sumo.geo.conversion.feetToStatuteMiles=function(e){"use strict";return e/5280},sumo.geo.conversion.feetToNauticalMiles=function(e){"use strict";return e/6076.11549},sumo.geo.conversion.nauticalMilesToFeet=function(e){"use strict";return 6076.11549*e},sumo.geo.conversion.feetToMeters=function(e){"use strict";return.3048*e},sumo.geo.conversion.feetToKilometers=function(e){"use strict";return.3048*e/1e3},sumo.geo.conversion.metersToFeet=function(e){"use strict";return e/.3048},sumo.geo.conversion.degreesLatitudePerNM=function(e){"use strict";throw"not implemented"},sumo.geo.conversion.degreesLongitudePerNM=function(e){"use strict";throw"not implemented"},sumo.geo.conversion.metersToNauticalMiles=function(e){"use strict";e=sumo.geo.conversion.metersToFeet(e);return sumo.geo.conversion.feetToNauticalMiles(e)},sumo.geo.conversion.kilometersToNauticalMiles=function(e){"use strict";return.539956804*e}; 24if(isNullOrUndefined(sumo))throw"Label.js requies the sumo namespace defined in SumoClass.js";isNullOrUndefined(sumo.maps)&&(sumo.maps={}),sumo.maps.Label=function(i){"use strict";var e="",s=!1,t=null,n="",l=null,o=0,d=0,r=0;isNullOrUndefined(i)||(isNullOrUndefined(i.text)||(n=i.text),isNullOrUndefined(i.cssClass)||(e=i.cssClass),isNullOrUndefined(i.position)||(l=i.position),isNullOrUndefined(i.visible)||(s=i.visible),isNullOrUndefined(i.zIndex)||(o=i.zIndex),isNullOrUndefined(i.verticalOffset)||(d=i.verticalOffset),isNullOrUndefined(i.horizontalOffset)||(r=i.horizontalOffset),isNullOrUndefined(i.map))||(i=i.map,this.setMap(i)),this.onAdd=function(){(t=document.createElement("div")).style.position="absolute",t.className=e,t.innerHTML=n,t.style.zIndex=o,t.style.visibility="hidden",this.getPanes().overlayLayer.appendChild(t)},this.draw=function(){var i,e=this.getProjection().fromLatLngToDivPixel(l);isNaN(e.x)||isNaN(e.y)||(i=e.x+r,t.style.left=i.toString()+"px",i=e.y+d,t.style.top=i.toString()+"px"),t.style.visibility=s?"visible":"hidden"},this.onRemove=function(){t.parentNode.removeChild(t),t=null},this.show=function(){s=!0,t.style.visibility="visible"},this.hide=function(){s=!1,t.style.visibility="hidden"},this.getPosition=function(){return l},this.getVisible=function(){return s},this.setVisible=function(i){s=i,null!==t&&(i?this.show():this.hide())}},sumo.maps.Label.prototype=new google.maps.OverlayView; 25if(isNullOrUndefined(sumo))throw"Layer.js requies the sumo namespace defined in SumoClass.js";isNullOrUndefined(sumo.maps)&&(sumo.maps={}),sumo.maps.Layer=function(e,t,i){"use strict";sumo.maps.Layer.prototype.baseClass.call(this);var P=this,I=[],S=t,n=e,o=!1,x=!1,M=null,E=!1,H=null,z=null,v=null,p=null,s=null,r=1,y=null,R=null,T=0,O=null,D="marker",f="identity",k=[],L=!1,N=null,C=null,l=null;function V(e){for(var t,i=I.length,n=0;n<i;n++)t=I[n],P.isNothing(t)||t.setVisible(e);if(L&&!P.isNothing(C)&&!P.isNothing(C.repaint))try{C.repaint()}catch(o){}}function W(){for(var e,t=I.length,i=0;i<t;i++)e=I[i],P.isNothing(e)||(P.isNothing(e.sumoOverlayOnClickListener)||google.maps.event.removeListener(e.sumoOverlayOnClickListener),P.isNothing(e.sumoOverlayOnRightClickListener)||google.maps.event.removeListener(e.sumoOverlayOnRightClickListener),P.isNothing(e.sumoCircleRadiusChanged)||google.maps.event.removeListener(e.sumoCircleRadiusChanged),P.isNothing(e.sumoCircleCenterChanged)||google.maps.event.removeListener(e.sumoCircleCenterChanged),P.isNothing(e.sumoPolygonOnInsert)||google.maps.event.removeListener(e.sumoPolygonOnInsert),P.isNothing(e.sumoPolygonOnRemove)||google.maps.event.removeListener(e.sumoPolygonOnRemove),P.isNothing(e.sumoPolygonOnSet)||google.maps.event.removeListener(e.sumoPolygonOnSet),P.isNothing(e.sumoOverlayOnDragEndListener)||google.maps.event.removeListener(e.sumoOverlayOnDragEndListener),P.isNothing(e.OverlayOnHoverListener)||google.maps.event.removeListener(e.OverlayOnHoverListener),P.isNothing(e.OverlayOnHoverOutListener)||google.maps.event.removeListener(e.OverlayOnHoverOutListener),P.isNothing(e.hoverLabel)||(google.maps.event.removeListener(e.sumoOverlayOnMouseEnter),google.maps.event.removeListener(e.sumoOverlayOnMouseExit),e.hoverLabel.setMap(null),e.hoverLabel=null),e.setMap(null),I[i]=null);if(I.length=0,L&&!P.isNothing(C)){try{C.clearMarkers()}catch(n){}C=null}}function B(e){P.isNothing(H)||H(this,e)}function Z(e){var t=this;e.position=window.event,setTimeout(function(){P.isNothing(z)||z(t,e,"rightclick")},0,e)}function b(e){P.isNothing(y)||y(this,e)}function w(e){var t=this;s=setTimeout(function(){P.isNothing(v)||v(t,e)},1e3*r)}
25function _(e){P.isNothing(p)||(clearTimeout(s),s=null,p(this,e))}function U(){P.isNothing(R)||R(this)}function j(e){var t=this.sumoParent;P.isNothing(R)||R(t,e,"insert")}function q(e){var t=this.sumoParent;P.isNothing(R)||R(t,e,"remove")}function A(e){var t=this.sumoParent;P.isNothing(R)||R(t,e,"set")}function F(){var e,t,i,n,o,s,r=T,l=!P.isNothing(H),a=!P.isNothing(z),g=!P.isNothing(y),u=["10400000","11400000","20400000","21400000"];for(e in k=[],M)if(M.hasOwnProperty(e)&&(t=M[e],!P.isNothing(t))){if((n=new google.maps.MarkerImage(t.iconUri)).anchor=new google.maps.Point(t.anchor.x,t.anchor.y),o=new google.maps.LatLng(t.latitude,t.longitude),P.isNothing(O)?isNullOrUndefined(t.ScaledImageSize)||(n.scaledSize=t.ScaledImageSize):n.scaledSize=O,(i=new google.maps.Marker({position:o,clickable:l,rightclickable:a,title:t.hoverHtml,visible:!1,zIndex:r++,map:S,flat:!0,draggable:g,cursor:"pointer",icon:n,label:t.label,optimized:!0})).sumoOriginalIcon=n,Object.keys(M).length<1e3&&t.bindMarkers)for(var h in t.bindMarkers)t.bindMarkers.hasOwnProperty(h)&&(s={path:google.maps.SymbolPath.CIRCLE,fillOpacity:1,fillColor:t.bindMarkers[h].color,strokeOpacity:1,strokeWeight:0,strokeColor:"white",scale:7,scaledSize:new google.maps.Size(0,0),anchor:new google.maps.Point(t.bindMarkers[h].anchorlat,t.bindMarkers[h].anchorlng)},(s=new google.maps.Marker({position:o,zIndex:r,anchor:new google.maps.Point(0,0),icon:s,label:{color:"#fff",fontSize:"8px",fontWeight:"600",align:"center",text:t.bindMarkers[h].text}})).bindTo("center",i,"position"),s.bindTo("map",i,"map"));-1<$.inArray(t.cardViewClass,u)&&(i.zIndex+=100),i.sumoData=t.data,i.sumoOverlayOnClickListener=null,i.sumoOverlayOnRightClickListener=null,i.OverlayOnHoverListener=null,i.OverlayOnHoverOutListener=null,i.identity=t[f],P.isNothing(y)||(i.sumoOverlayOnDragEndListener=google.maps.event.addListener(i,"dragend",b)),P.isNothing(H)||(i.sumoOverlayOnClickListener=google.maps.event.addListener(i,"click",B)),P.isNothing(z)||(i.sumoOverlayOnRightClickListener=google.maps.event.addListener(i,"rightclick",Z)),P.isNothing(v)||(i.OverlayOnHoverListener=google.maps.event.addListener(i,"mouseover",w)),P.isNothing(p)||(i.OverlayOnHoverOutListener=google.maps.event.addListener(i,"mouseout",_)),I.push(i),isNullOrUndefined(i.icon)?k.push(i):k.push(i.icon.url)}if(L&&"undefined"!=typeof window){var d=P.isNothing(window.MarkerClusterer)?P.isNothing(window.MarkerClustererPlus)?P.isNothing(window.markerClusterer)||P.isNothing(window.markerClusterer.MarkerClusterer)?null:window.markerClusterer.MarkerClusterer:window.MarkerClustererPlus:window.MarkerClusterer;if(!P.isNothing(d)){var m={...{gridSize:80,maxZoom:15,minimumClusterSize:3,ignoreHidden:!0,averageCenter:!0,zoomOnClick:!0,imagePath:"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m"},...N};try{C=new d(S,I,m),x&&!P.isNothing(C.repaint)&&C.repaint()}catch(c){}}}}function a(){switch(V(!1),W(),D){case"marker":F();break;case"geometry":var e,t,i,n,o,s,r,l,a,g,u,h,d,m,c=!P.isNothing(H),v=!P.isNothing(z);for(e in M)if(M.hasOwnProperty(e))if("circle"===(t=M[e]).type)(m=new google.maps.Circle({center:new google.maps.LatLng(t.centerLatitude,t.centerLongitude),radius:t.radius,map:S,editable:!P.isNothing(t.isEditable)&&t.isEditable,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokeWeight:t.strokeWeight,visible:!1,fillColor:t.fillColor,fillOpacity:t.fillOpacity,clickable:c,rightclickable:v})).sumoId=t.id,m.sumoData=t.data,m.sumoCircleRadiusChanged=null,m.sumoCircleCenterChanged=null,P.isNothing(R)||(m.sumoCircleRadiusChanged=google.maps.event.addListener(m,"radius_changed",U),m.sumoCircleCenterChanged=google.maps.event.addListener(m,"center_changed",U)),m.sumoOverlayOnClickListener=null,m.sumoOverlayOnRightClickListener=null,P.isNothing(H)||(m.sumoOverlayOnClickListener=google.maps.event.addListener(m,"click",B)),P.isNothing(z)||(m.sumoOverlayOnRightClickListener=google.maps.event.addListener(m,"rightclick",Z)),I.push(m);else{for(i in o=[],r=s=a=l=null,h=u=g=0,t.vertices)t.vertices.hasOwnProperty(i)&&(n=t.vertices[i],o.push(new google.maps.LatLng(n.latitude,n.longitude)),g+=n.latitude,u+=n.longitude,h++,null===l&&(l=n.latitude,a=n.longitude,s=n.latitude,r=n.longitude),n.latitude>l&&(l=n.latitude),n.longitude>a&&(a=n.longitude),n.latitude<s&&(s=n.latitude),n.longitude<r)&&(r=n.longitude);g/=h,u/=h,(m=new google.maps.Polygon({map:S,paths:o,editable:!P.isNothing(t.isEditable)&&t.isEditable,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokeWeight:t.strokeWeight,visible:!1,fillColor:t.fillColor,fillOpacity:t.fillOpacity,clickable:c,draggable:!1})).getCenter=function(){return new google.maps.LatLng(g,u)},m.sumoBounds=new google.maps.LatLngBounds(new google.maps.LatLng(s,r),new google.maps.LatLng(l,a)),m.getBounds=function(){return this.sumoBounds},m.sumoId=t.id,m.sumoData=t.data,m.sumoPolygonOnInsert=null,m.sumoPolygonOnRemove=null,m.sumoPolygonOnSet=null,d=m.getPath(),P.isNothing(d)||(d.sumoParent=m,P.isNothing(R)||(m.sumoPolygonOnInsert=google.maps.event.addListener(d,"insert_at",j),m.sumoPolygonOnRemove=google.maps.event.addListener(d,"remove_at",q),m.sumoPolygonOnSet=google.maps.event.addListener(d,"set_at",A)),m.sumoOverlayOnClickListener=null,m.sumoOverlayOnRightClickListener=null,P.isNothing(H)||(m.sumoOverlayOnClickListener=google.maps.event.addListener(m,"click",B)),P.isNothing(z)||(m.sumoOverlayOnRightClickListener=google.maps.event.addListener(m,"rightclick",overlay_RightClick)),I.push(m))}break;case"linesegment":var p,y,O,f,k=T,L=2;for(p in M)M.hasOwnProperty(p)&&(y=M[p],isNullOrUndefined(y.strokeWidth)||(L=y.strokeWidth),O=new google.maps.LatLng(y.begin.latitude,y.begin.longitude),f=new google.maps.LatLng(y.end.latitude,y.end.longitude),(O=new google.maps.Polyline({path:[O,f],clickable:!0,visible:!1,zIndex:k++,map:S,editable:!1,strokeWeight:L,strokeColor:y.StrokeColor})).sumoData=y.data,O.sumoOverlayOnClickListener=null,I.push(O));break;case"label":var N,C,b,w=T;for(N in M)M.hasOwnProperty(N)&&(C=M[N],(b=new sumo.maps.Label({position:new google.maps.LatLng(C.latitude,C.longitude),text:C.text,cssClass:C.cssClass,clickable:!0,visible:!1,horizontalOffset:C.horizontalOffset,verticalOffset:C.verticalOffset,zIndex:w++,map:S})).sumoData=C.data,b.sumoOverlayOnClickListener=null,I.push(b))}V(x),E=!1,P.trigger("databind")}this.setRenderType=function(e){e=e.toLowerCase();switch(e){case"marker":case"geometry":case"linesegment":case"label":break;default:throw"valid render types include: marker, geometry, linesegment, and label."}D=e},this.doesPlayback=function(e){if(!this.isNothing(e)){switch(e){case!0:case!1:break;default:throw"doesPlayback accepts aValue as boolean."}o=e}return o},this.isNothing(i)||(this.isNothing(i.renderType)||this.setRenderType(i.renderType),this.isNothing(i.doesPlayback)||this.doesPlayback(i.doesPlayback),this.isNothing(i.isVisible)||(x=i.isVisible),this.isNothing(i.clickEventHandler)||(H=i.clickEventHandler),this.isNothing(i.right
25ClickEventHandler)||(z=i.rightClickEventHandler),this.isNothing(i.zIndexStart)||(T=i.zIndexStart),this.isNothing(i.dragEndEventHandler)||(y=i.dragEndEventHandler),this.isNothing(i.shapeChangeHandler)||(R=i.shapeChangeHandler),this.isNothing(i.markerImageSize)||(O=i.markerImageSize),this.isNothing(i.lineSegmentColor)||i.lineSegmentColor,this.isNothing(i.identityProperty)||(f=i.identityProperty),this.isNothing(i.hoverEventHandler)||(v=i.hoverEventHandler),this.isNothing(i.hoverOutEventHandler)||(p=i.hoverOutEventHandler),this.isNothing(i.useCluster)||(L=!!i.useCluster),this.isNothing(i.clusterOptions)||(N=i.clusterOptions),this.isNothing(i.dataSource))||this.setDataSource(i.dataSource),this.name=function(){return n},this.map=function(){return S},this.renderType=function(){return D},this.dragEndHandler=function(e){return P.isNothing(e)?0:y=e,y},this.getShape=function(e){if("geometry"!==D)throw"Layer.getShape() is only valid for layers of render type 'geometry'. This layer has a render type of: "+D;for(var t=I.length,i=null,n=0;n<t;n++)if(I[n].sumoId===e){i=I[n];break}return i},this.setDataSource=function(e){M=e,E=!0,x&&a()},this.getDataSource=function(){return M},this.overlayIsVisible=function(e){var t=!1;return t=e<I.length&&0<=e?I[e].getVisible():t},this.getMarkerOverlay=function(e){var t=null;return t=e<k.length&&0<=e?k[e]:t},this.getMarkerById=function(e){for(var t,i=0;i<I.length;i++)if(t=I[i],!P.isNothing(t)&&!P.isNothing(t.identity)&&t.identity===e)return t;return null},this.fixOverLay=function(){for(var e=0,e=0;e<I.length;e++)I[e].icon.url=k[e]},this.showOverlay=function(e){var t=null;return e<I.length&&0<=e&&(t=I[e]).setVisible(!0),t},this.hideOverlay=function(e){var t=null;return e<I.length&&0<=e&&(t=I[e]).setVisible(!1),t},this.show=function(){x||(x=!0,E&&a(),V(x))},this.hide=function(){V(x=!1)},this.isVisible=function(e){return this.isNothing(e)||V(x=e),x},this.fitBounds=function(e){var t,i,n,o=e,s=I.length;if("linesegment"!==D)for(t=0;t<s;t++)(n=I[t]).getVisible()&&("geometry"===D?(i=n.getBounds(),o.extend(i.getNorthEast()),o.extend(i.getSouthWest
25())):o.extend(n.getPosition()));return o},this.panToOverlay=function(e){var t;e<I.length&&-1<e&&(t=S.getBounds(),e="geometry"===D?I[e].getCenter():I[e].getPosition(),t.contains(e)||S.panTo(e))},this.overlays=function(){return I},this.selectMarker=function(e,t){var i;return"marker"!==D||("string"!=typeof(i=e)&&"number"!=typeof e||(i=P.getMarkerById(e)),P.isNothing(i))||P.isNothing(t)?null:(P.isNothing(l)||l===i||P.deselectMarker(),(l=i).setIcon(t),P.isNothing(i.getZIndex)||(i.sumoOriginalZIndex=i.getZIndex(),i.setZIndex(i.sumoOriginalZIndex+1e4)),i)},this.deselectMarker=function(){var e;return P.isNothing(l)?null:(e=l,P.isNothing(e.sumoOriginalIcon)||e.setIcon(e.sumoOriginalIcon),P.isNothing(e.sumoOriginalZIndex)||e.setZIndex(e.sumoOriginalZIndex),e=l,l=null,e)},this.getSelectedMarker=function(){return l},this.dispose=function(){W(),z=H=l=M=S=I=null,sumo.maps.Layer.prototype.dispose.call(this)}},sumo.maps.Layer.prototype=new sumo.Class,sumo.maps.Layer.prototype.constructor=sumo.maps.Layer,sumo.maps.Layer.prototype.baseClass=sumo.Class; 26if(isNullOrUndefined(sumo))throw"GoogleMapControl.js requies the sumo namespace defined in SumoClass.js";isNullOrUndefined(sumo.maps)&&(sumo.maps={}),sumo.maps.Locate=function(t,o,e,a){"use strict";var s,n,l,i=this,u=e.getMap(),e=null,c=null;function p(){var t=c.val(),o=u.getCenter(),o=new google.maps.LatLng(o.lat(),o.lng());""!==t&&g({location:o,radius:"300",query:t})}function r(){c.val(""),i.trigger("complete",[])}function m(t){13==t.keyCode?p():27==t.keyCode&&r()}function g(t){var o=t.location.lat(),e=t.location.lng();GetPlacesRequest(o,e,"300",t.query,function(t,o){var e,a,s=o.results.map(function(t){return t.geometry.location=new google.maps.LatLng(t.geometry.location.lat,t.geometry.location.lng),t.geometry.viewport=new google.maps.LatLngBounds(t.geometry.location),t}),o=o.status,n=[];if("OK"===o)for(a=0;a<s.length;a++)e=s[a],n.push(e);else mActivityNotification.addNotification(localizeWrapper("cDefaultNoResultsFound"));i.trigger("complete",n)},function(t,o){})}sumo.maps.Locate.prototype.baseClass.call(this),this.Search=function(t){var o=u.getCenter(),o=new google.maps.LatLng(o.lat(),o.lng());""!==t&&g({location:o,radius:"300",query:t})},n=t+"MapLocateButton",l=t+"MapClearButton",t=t+"MapLocateText",(s=[]).push('<div class="Clickable IconButton LocateClearButton FloatRight" id="'),s.push(l),s.push('"></div>'),s.push('<div class="Clickable IconButton LocateButton FloatRight" id="'),s.push(n),s.push('"></div>'),s.push('<input type="text" id="'),s.push(t),s.push('" />'),e=s.join(""),$("#"+o).html(e),$("#"+n).click(p),$("#"+l).click(r),c=$("#"+t),$("#"+t).keyup(m),this.dispose=function(){sumo.maps.Playback.prototype.dispose.call(this)}},sumo.maps.Locate.prototype=new sumo.Class,sumo.maps.Locate.prototype.constructor=sumo.maps.Locate,sumo.maps.Locate.prototype.baseClass=sumo.Class; 27if(isNullOrUndefined(sumo))throw"GoogleMapControl.js requies the sumo namespace defined in SumoClass.js";isNullOrUndefined(sumo.maps)&&(sumo.maps={}),sumo.maps.Playback=function(s,e,o){"use strict";sumo.maps.Playback.prototype.baseClass.call(this);var F,_,t,i,g=this,v=0,k=1,y=10,f=s,z="Images/Maps/Trackpoints/MapMarker.png",b=e,O=[],w=-1,N=f.overlays().length,C=1,n=null,P=750,M=P,E=v,x=1,I=[],T=null,J={},A=new Map,B=0,L=null,K=!1,Q="uBookmarks",D="ui-slider-bookmark",W=[],H=1,p="identity",q=[],R=[],X=null,S=0,U=!0;function V(e){var o,t=f.showOverlay(w);E=e,e=null,0<=w?(e=f.showOverlay(w),o=f.getMarkerOverlay(w),isNullOrUndefined(e)&&(e=f.showOverlay(w-1),o=f.getMarkerOverlay(w-1)),e.icon.url=o):E==v&&-1==x&&-1==w&&((e=f.showOverlay(0)).icon.url=f.getMarkerOverlay(0)),g.isNothing(t)?g.trigger("statechange",{state:E,currentPoint:null}):g.trigger("statechange",{state:E,currentPoint:t.sumoData})}function r(){w=-1,C=1,N=f.overlays().length,M=P,V(v),x=1;var e=0;for(O=[],e=0;e<b.length;e++)O.push(b[e].isVisible())}function G(){null!==n&&(window.clearInterval(n),n=null)}function l(){for(var e=0;e<b.length;e++)b[e].isVisible(O[e])}function a(e,o){for(var t=0;t<b.length;t++)b[t][e](o)}function Y(){f.show(),l(),g.trigger("completed",null)}function u(){w+=x,d()}function j(){null===n&&(n=window.setInterval(u,M))}function d(){var e=null;if(1===x&&w<N||-1===x&&0<=w){0<w&&1==x?f.showOverlay(w-1).icon.url=f.getMarkerOverlay(w-1):-1==x&&(f.hideOverlay(w+1).icon.url=f.getMarkerOverlay(w+1)),(e=f.showOverlay(w)).icon.url=z,g.isNothing(T)||(d=W[e.sumoData[T]])!==H&&
27(G(),M=P/C*(H=d),E===k)&&j(),I.push(w);for(var o,t,i,n,r=null,a=0;a<b.length;a++)if(O[a]){for(n in i=(r=b[a]).name(),o=R[i],t=q[i][w],o)o.hasOwnProperty(n)&&-1===t.indexOf(o[n])&&r.hideOverlay(o[n]);for(n in R[i]=[],t)t.hasOwnProperty(n)&&(r.showOverlay(n),R[i].push(n))}if(f.panToOverlay(w),1===x&&y<=w||-1===x&&w<=N-y){for(var s=null,l=w-x*y,u=0;u<b.length;u++)O[u]&&("linesegment"!==(s=b[u]).renderType()||1===x&&f.overlayIsVisible(l)?s.hideOverlay(l):-1===x&&f.overlayIsVisible(l)&&s.hideOverlay(l-1));f.hideOverlay(w-x*y)}B=100*w/N,X=e.sumoData,g.trigger("progressed",{currentPoint:e.sumoData,currentIndex:w,overlayCount:N,progressPercentage:B}),U&&(S+=1);var d=w,e=A.get(d);A.has(d)&&!e.viewed&&E==k&&(e.viewed=U,g.trigger("bookmark_viewed",{currentBookmark:e,bookmarkIndex:w,progressPercentage:B}),A.set(d,e),U)&&($(`.ui-bookmark-container div[p="${d}"]`).addClass("watched-bookmark"),K)&&(g.pause(),$(`.ui-bookmark-container div[p="${d}"]`).addClass("tool-tip-show"))}else G(),V(v),window.setTimeout(Y,P);for(var h,m=f.overlays(),p=!1,c=0;c<I.length;c++)h=I[c],p=!1,g.isNothing(h)||(h=m[h],g.isNothing(h))||h.visible||(p=!0,I.splice(c,1)),!p&&(F=w-y+1,_=w+1,I[c]<F||I[c]>_)&&f.hideOverlay(I[c])}function h(e,o){var t,i,n,r,a,s,l,u,d,h=L?L():null,m=J[e],p=99/(f.overlays().length-1),c=document.getElementById(Q);for(t in m)m.hasOwnProperty(t)&&(a=new Date(m[t].StartDateUTC),a=Math.abs(Math.round((a-h.startDate)/(h.endDate-h.startDate)*99)),s=p*(a=Math.floor(a/p)),A.has(a)?((n=A.get(a)).data.push(m[t]),A.set(a,n),n=document.querySelector(`[p="${a}"] > div`),g.isNothing(n)||((i=document.createElement("div")).style="display:inline-block;margin-bottom:5px",i.innerHTML=o(m[t]),n.appendChild(i))):(A.set(a,{position:a,percentage:s,viewed:!1,data:[m[t]]}),(i=document.createElement("div")).style="display:inline-block;margin-bottom:5px",i.innerHTML=o(m[t]),c.appendChild((n=e,a=a,s=s,l=m[r=t],u=i.outerHTML,d=void 0,(d=document.createElement("div")).id="b"+l.Id,d.setAttribute("i",r),d.setAttribute("p",a),d.style="left:"+s+"%;",d.className="tool-tip "+D+" bookmark_"+n,d.innerHTML=`<div class="tool-tip-text">${u}</div>`,d))))}function m(e,o,t){var i,n,r,a,s,l,u,d,h=new SumoPredicateBuilder,m=f.overlays();for(i in m)if(m.hasOwnProperty(i)){for(l=s=null,d=i-y;d<=i;++d)u=m[d],!g.isNothing(u)&&!g.isNothing(u[p])&&((g.isNothing(s)||s>u[p])&&(s=u[p]),g.isNothing(l)||l<u[p])&&(l=u[p]);for(n in h.AddNewExpressionConditional(p,s,!1,mRelationalOperatorEnum.GreaterThanOrEqual(),mLogicalOperatorEnum.And()),h.AddNewExpressionConditional(p,l,!1,mRelationalOperatorEnum.LessThanOrEqual(),mLogicalOperatorEnum.And()),b)b.hasOwnProperty(n)&&(a=(r=b[n]).overlays(),r=r.name(),a=query(a,h.RootExpression),g.isNothing(q[r])&&(q[r]=[]),q[r][i]=a);h.Clear()}}function c(e,o,t){var i,n,r,a,s,l,u=new SumoPredicateBuilder,d=f.overlays(),h=e.name(),m=e.overlays();for(i in q[h]=[],d)if(d.hasOwnProperty(i)){for(a=r=null,l=i-y;l<=i;++l)s=d[l],!g.isNothing(s)&&!g.isNothing(s[p])&&((g.isNothing(r)||r>s[p])&&(r=s[p]),g.isNothing(a)||a<s[p])&&(a=s[p]);u.AddNewExpressionConditional(p,r,!1,mRelationalOperatorEnum.GreaterThanOrEqual(),mLogicalOperatorEnum.And()),u.AddNewExpressionConditional(p,a,!1,mRelationalOperatorEnum.LessThanOrEqual(),mLogicalOperatorEnum.And()),n=query(m,u.RootExpression),q[h][i]=n,u.Clear()}}if(this.IsActive=function(){return U},this.Activate=function(e){U=e},this.pause=function(){G(),V(2)},this.start=function(){2!==E&&(E===v&&r(),f.hide(),a("hide",null)),2==E&&this.tooltipHide(),V(k),j()},this.stop=function(){G(),V(v),w=-1,f.fixOverLay(),f.show(),l(),S=N=0,this.tooltipHide()},this.speed=function(e){var o=null;return this.isNothing(e)?o=C:e!==C&&(E===k&&G(),M=P/(C=e)*H,E===k)&&j(),o},this.direction=function(e){var o=null;return this.isNothing(e)?o=x:e!==x&&(w+=(x=e)*(y-1)),o},this.tooltipHide=function(){$(".tool-tip").removeClass("tool-tip-show")},this.getCurrentIndex=function(){return w},this.getOverlayCount=function(){return f.overlays().length},this.getCurrentPoint=function(){return X},this.getOverlaysPlayed=function(){return S},this.setIndex=function(e,o){if(-1===w&&E===v&&(r(),f.hide(),a("hide",null)),E!==k?e<w?g.direction(-1):g.direction(1):f.hide(),w=e,!isNullOrUndefined(o)&&o){var t,i=e;for(t=1==x?i-y:i+y;t<i;t++)0<=t&&(f.showOverlay(t).icon.url=f.getMarkerOverlay(t))}d()},this.next=function(){w<N&&(E===v&&(r(),f.hide(),a("hide",null),g.pause()),g.setIndex(w+1),this.tooltipHide())},this.previous=function(){0<w&&(E===v&&(r(),f.hide(),a("hide",null),g.pause()),g.setIndex(w-1),this.tooltipHide())},this.dispose=function(){G(),this.removeBookmarks(),sumo.maps.Playback.prototype.dispose.call(this)},this.setDataBookmarks=function(e,o){g.isNothing(e)||(J[e]=o)},this.removeBookmarks=function(){$("."+D).remove(),A=new Map},this.bookmarkAdd=function(e,o){h(e,o)},s.bind("databind",m),!g.isNothing(e))for(i in e)e.hasOwnProperty(i)&&(t=e[i]).bind("databind",c);if(!g.isNothing(o)){if(g.isNothing(o.displayCount)||(y=o.displayCount),g.isNothing(o.initialInterval)||(P=o.initialInterval),!g.isNothing(o.speedControls))for(i in T=o.speedControls.keyProperty,o.speedControls.values)o.speedControls.values.hasOwnProperty(i)&&(t=o.speedControls.values[i],W[t.value]=t.speedMultiplier);
27g.isNothing(o.identityProperty)||(p=o.identityProperty),g.isNothing(o.sliderId)||(Q=o.sliderId),g.isNothing(o.bookmarks)||(g.isNothing(o.bookmarks.bookmarkClass)||(D=o.bookmarks.bookmarkClass),g.isNothing(o.bookmarks.filterByMethod)||(mBookmarksFilterMethod=o.bookmarks.filterByMethod),g.isNothing(o.bookmarks.formatMethod)||(mBookmarksFormatMethod=o.bookmarks.formatMethod),g.isNothing(o.bookmarks.dateRange)||(L=o.bookmarks.dateRange),g.isNothing(o.bookmarks.tooltipTemplate)||(mBookmarksHtmlTemplate=o.bookmarks.tooltipTemplate),g.isNothing(o.bookmarks.autoPause))||(K=o.bookmarks.autoPause)}},sumo.maps.Playback.prototype=new sumo.Class,sumo.maps.Playback.prototype.constructor=sumo.maps.Playback,sumo.maps.Playback.prototype.baseClass=sumo.Class; 28var VeritracksHeatMapWrapper=function(i,l,a){var n=this,r={},e="100px",t="",c=null,o=null;function p(a,e,t){$("#"+i).html(veritracks.system.encodeHtml(a));a=$("#"+i).text();$("#"+i).html(a),veritracks.localization.localize("#"+n.ParentId),(o=new sumo.maps.GoogleMapControl("uHeatMapPanel",l,r)).render(),null!=c&&c()}a&&(a.mapOptions&&(r=a.mapOptions),a.height&&(e=a.height),a.cardTemplateName&&(t=a.cardTemplateName),a.initializeCallback)&&(c=a.initializeCallback),$("#"+i).css("height",e),$.get(t,p),this.getMap=function(){return o}}; 29if(isNullOrUndefined(sumo))throw"ListView.js requies the sumo namespace defined in SumoClass.js";if(isNullOrUndefined(sumo.controls))throw"ListView.js requies the sumo.controls namespace defined in ControlBase.js";sumo.controls.ListView=function(P,A,t,T){"use strict";sumo.controls.ListView.prototype.baseClass.call(this,P,A,'<div class="sumo-listview-control" id="##id##" style="height: 100%; overflow: hidden;"></div>',t);var e,s,r=this,d=null,a=[],h={},u=null,n=!1,o=!1,c=T,p=null,m="single",i=null,f=!1,g=!0,l=!0,w=null,v=null,N=null,C=null,I=null,y=null,b=null,x=null,z={},j=!1;function B(){r.isNothing(I)||r.isNothing(I.offset())||r.isNothing(I.offset().left)||r.isNothing(r.ControlElement)||r.isNothing(r.ControlElement.offset())||r.isNothing(r.ControlElement.offset().left)||v.css("left",(I.offset().left-r.ControlElement.offset().left).toString()+"px")}function S(t){I.find("#"+r.Id+"Row"+t).addClass("sumo-data-row-selected")}function E(t){I.find("#"+r.Id+"Row"+t).removeClass("sumo-data-row-selected")}function O(t){var i;null!==d&&d.constructor===Array||(d=[]),-1!==a.indexOf(t)&&(-1===(i=d.indexOf(t))?(e=null,S(s=t),d.push(t)):(1<d.length||f)&&(E(e=t),d.splice(i,1)))}function D(){isNullOrUndefined(I)||I.find(".sumo-data-row-selected").removeClass("sumo-data-row-selected"),d=null}function k(t,i){if(!r.isNothing(t)){if(r.trigger("selectedchanging",{Current:d,New:t}),t.constructor!==Array||"auto"!==m&&"ctrlKey"!==m)if("single"===m){if(t.constructor===Array)throw r.className()+".Id: "+r.Id+". Invalid argument. Cannot pass Array to select() with selectMethod of single.";o=t,l=null,f&&o===d?(E(d),d=null):f||o!==d||-1!==a.indexOf(d)?-1===a.indexOf(o)&&-1===a.indexOf(o.toString())||(E(d),S(o),0<(l=w.find("#"+r.Id+"Row"+o+".sumo-data-row-selected")).length&&1==g&&l[0].scrollIntoView(!1),d=o):0<a.length?r.selectedIndex(0):d=null}else"auto"===m||"ctrlKey"===m&&!0===i?O(t):"ctrlKey"===m&&!1===i&&(D(),O(t));else{var e,s=t,n=null;for(s.length,D(),d=[],e=s.length,n=0;n<e;n++)O(s[n])}r.trigger("selectedchanged",d)}var o,l}function F(t,i){var e=u[t];return u[t]=u[i],u[i]=e,o=!0,u}function R(t){var i=$(this).attr("itemkey"),i=a[parseInt(i,10)];t.stopImmediatePropagation(),k(i,t.ctrlKey)}function H(t,i){r.trigger("columnresize",i.element)}function K(t,i){$("div."+i.element[0].id+"-data").width(i.element.width())}function L(){for(var t,i=null,e=c.length,s=10,i=0;i<e;i++)switch(s=(t=c[i]).width,s=!r.isNothing(s)&&""!==s?s:"autoData"){case"autoHeader":s=$("div."+r.Id+t.id+"-header").width(),!r.isNothing(t.minWidth)&&s<t.minWidth&&(s=t.minWidth,$("div."+r.Id+t.id+"-header").width(s)),!r.isNothing(t.maxWidth)&&s>t.maxWidth&&(s=t.maxWidth,$("div."+r.Id+t.id+"-header").width(s)),$("div."+r.Id+t.id+"-data").width(s);break;case"autoData":s=$("div."+r.Id+t.id+"-data").width(),!r.isNothing(t.minWidth)&&s<t.minWidth&&(s=t.minWidth,$("div."+r.Id+t.id+"-data").width(s)),!r.isNothing(t.maxWidth)&&s>t.maxWidth&&(s=t.maxWidth,$("div."+r.Id+t.id+"-data").width(s)),$("div."+r.Id+t.id+"-header").width(s);break;default:$("div."+r.Id+t.id+"-data").width(s),$("div."+r.Id+t.id+"-header").width(s)}}
29function U(){var t=r.ControlElement.innerHeight();null!==w&&(t-=v.height(),y.is(":visible")&&(t-=y.height()),r.ControlElement.height(r.ParentElement.innerHeight()),w.height(t))}function M(){r.trigger("update",null)}function q(){r.trigger("updatenotice",null)}function V(){var t=new SortExpression,i=z.ColumnName;return r.isNothing(i)||(i=i.split(r.Id),"ascending"===z.SortDirection.toLowerCase()?t.addAscendingColumn(i[i.length-1]):t.addDescendingColumn(i[i.length-1])),t}function W(){var t,i=[];if(r.isNothing(c))throw"sumo.controls.ListView: aColumns parameter is required.";n&&!r.isNothing(u)&&(i.push('<div id="'),i.push(r.Id),i.push('Updated" class="sumo-listview-updated"><div class="sumo-listview-datarefresh">'+localizeText("cUpdateAvailable")+"</div>"),i.push("</div>"),i.push('<div id="'),i.push(r.Id),i.push('UpdateNotice" class="sumo-listview-update-notice"><div class="sumo-listview-data-update-notice" style="font-weight: 700;"> </div>'),i.push("</div>"),i.push('<div class="sumo-listview-header"><table class="sumo-listview-header-table" id="'),i.push(r.Id),i.push('Header" style="position: relative;" cellspacing="0" cellpadding="0">'),i.push("<thead>"),i.push('<tr class="sumo-listview-header-row">'),i.push(function(){for(var t,i=null,e=[],s=c.length,n=null,i=0;i<s;i++)n=c[i],e.push('<th class="'),r.isNothing(n.canResize)||!r.isNothing(n.canResize)&&n.canResize?e.push("sumo-listview-resizable-header "):e.push("sumo-listview-static-header "),e.push('sumo-listview-header-cell"><div title="'),r.isNothing(n.hoverText)?j&&e.push(formatRemoveSpan(n.title)):e.push(n.hoverText),e.push('" id="'),e.push(r.Id),e.push(n.id),e.push('" class="'),(r.isNothing(n.canResize)||!r.isNothing(n.canResize)&&n.canResize)&&e.push("sumo-listview-resizable-div "),e.push(r.Id),e.push(n.id),e.push('-header"><div style="overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis;">'),n.sortable&&(t="undefined",r.isNothing(n.dataType)||(t=n.dataType.toLowerCase()),e.push('<div class="sumo-header-sort sumo-data-'),e.push(t),e.push('" id="'),e.push(r.Id),e.push(n.dataField),e.push('"></div>')),r.isNothing(n.title)||""===n.title.replace(" ","")?e.push(" "):e.push(n.title),e.push("</div></div></th>");return e.join("")}()),i.push("</tr>"),i.push("</thead>"),i.push("</table></div>"),i.push('<div id="'),i.push(r.Id),i.push('ViewPort" class="sumo-listview-viewport" style="height: 0px; overflow: auto;">'),i.push('<table id="'),i.push(r.Id),i.push('Table" class="sumo-listview-data-table" cellspacing="0" cellpadding="0"><tbody id="'),i.push(r.Id),i.push('Body">'),i.push(function(){var t,i=null,e=[],s=c.length,n="",o=null,l=null,d=0;for(l in a=[],h={},u)if(u.hasOwnProperty(l)&&(t=u[l],!r.isNothing(t))){for(e.push('<tr class="sumo-data-row" id="'),e.push(r.Id),e.push("Row"),null!==p?(a.push(t[p]),h[t[p]]=l,e.push(t[p])):(a.push(l),h[l]=l,e.push(l)),e.push('" itemkey="'),e.push(d.toString()),e.push('">'),i=0;i<s;i++)o=c[i],n=r.isNothing(o.html)?r.isNothing(o.formatMethod)?t[o.dataField]:"EventIcon"===o.id&&"Enrollink Missed Location Verification"===t.Description?"<span/>":o.formatMethod(t[o.dataField],t):o.html,e.push('<td class="sumo-listview-data-cell" id="'),e.push(r.Id),e.push("Row"),e.push(d.toString()),e.push("Column"),e.push(o.id),e.push('"><div style="overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis;" class="sumo-listview-data-cell '),e.push(r.Id),e.push(o.id),e.push("-data "),e.push(o.cssClass),e.push('">'),e.push(n),e.push("</div></td>");e.push("</tr>"),++d}return 0===d&&e.push('<tr class="sumo-listview-nodata-row"><td class="sumo-listview-nodata-cell" colspan="'+c.length+'">'+localizeWrapper("cNoData")+"</td></tr>"),e.join("")}()),i.push("</tbody></table>"),i.push("</div>"),r.ControlElement.html(i.join("")),w=r.ControlElement.find("#"+r.Id+"ViewPort"),v=r.ControlElement.find("#"+r.Id+"Header"),N=r.ControlElement.find("#"+r.Id+"Table"),I=r.ControlElement.find("#"+r.Id+"Body"),C=r.ControlElement.find("#"+r.Id+"Body tr"),y=r.ControlElement.find("#"+r.Id+"Updated"),b=r.ControlElement.find("#"+r.Id+"UpdateNotice"),x=r.ControlElement.find(".sumo-header-sort"),C.click(R),y.click(M),b.click(q),x.click(function(t){t=(t=(t=$(t.target))[0].id.split(r.Id))[t.length-1],z.ColumnName===t&&"ascending"===z.SortDirection?z.SortDirection="descending":z.SortDirection="ascending",z.ColumnName=t,r.trigger("sort",V())}),N.find(".StopClickBubble").click(function(t){t.stopPropagation()}),C.find("div").children().resize(function(){L()}),l||v.hide(),w.scroll(B),C.click(R),"none"!==m&&C.addClass("sumo-selectable"),I.find("tr:odd").addClass("sumo-data-row-odd"),I.find("tr:even").addClass("sumo-data-row-even"),$("#"+r.Id+" div.sumo-listview-resizable-div").resizable({alsoResize:"",resize:K,stop:H,minWidth:40,handles:"e"}),r.isNothing(d)||k(d,!1),r.setUpdated(!1),r.setUpdateNotice(!1),n=!1,i="",t="ascending",r.isNothing(z)||(i=r.Id+z.ColumnName,r.isNothing(z.SortDirection)||(t=z.SortDirection.toLowerCase()),$("#"+r.Id+z.ColumnName).hasClass("sumo-data-number")&&(t="ascending"===t?"desce
29nding":"ascending")),r.ControlElement.find(".sumo-header-sort").removeClass("sumo-header-sort-ascending").removeClass("sumo-header-sort-descending"),r.ControlElement.find("#"+i).addClass("sumo-header-sort-"+t),r.trigger("databind"))}function G(t){U()}this.isNothing(t)||(this.isNothing(t.keyField)||(p=t.keyField),this.isNothing(t.keyFieldType)||t.keyFieldType,this.isNothing(t.selectMethod)||(m=t.selectMethod),this.isNothing(t.cssClass)||(i=t.cssClass),this.isNothing(t.canUnselect)||(f=t.canUnselect),this.isNothing(t.oddRowClass)||t.oddRowClass,this.isNothing(t.evenRowClass)||t.evenRowClass,this.isNothing(t.showHeader)||(l=t.showHeader),this.isNothing(t.scrollIntoView)||(g=t.scrollIntoView),this.isNothing(t.localization))||(j=t.localization),this.getSelectedKey=function(){return s},this.getDeSelectedKey=function(){return e},this.selectChosen=function(t){for(var i in t)t.hasOwnProperty(i)&&(S(t[i]),!function(t,i){var e=t.indexOf(i);if(t[e]==i)return 1}(d,t[i]))&&d.push(t[i])},this.unSelect=function(t){var i,e;for(i in t)t.hasOwnProperty(i)&&(E(t[i]),isNullOrUndefined(d.indexOf(t[i]))||(e=d.indexOf(t[i]),d.splice(e,1)))},this.disable=function(t){var i,e=t;for(i in e)e.hasOwnProperty(i)&&(I.find("#"+r.Id+"Row"+e[i]).removeClass("sumo-data-row-selected"),I.find("#"+r.Id+"Row"+e[i]).addClass("sumo-data-row-disabled"))},this.removeDisabled=function(t){isNullOrUndefined(t)&&I.find(".sumo-data-row-disabled").removeClass("sumo-data-row-disabled")},this.selectAllList=function(){k(a,!0)},this.unselectAllList=function(){D()},this.selectedIndex=function(t){var i=null;return this.isNothing(t)?i=a.indexOf(d):(t=a[t],this.isNothing(t)||this.selected(t)),i},this.selected=function(t,i){var e=null,s=!1;return this.isNothing(t)?e=d:k(t,s=this.isNothing(i)?s:i),e},this.selectedDataItem=function(){var t,i=null;if(!r.isNothing(d))if(d.constructor!==Array)i=u[h[d]];else for(i=[],t=0;t<d.length;t++)i.push(u[h[d[t]]]);return i},this.SortUp=function(t){return u[t].SortOrder=t-1,F(u[t-1].SortOrder=t,t-1)},this.SortDown=function(t){return u[t].SortOrder=t+1,F(u[t+1].SortOrder=t,t+1)},this.IsSorted=function(){return o},this.resizeColumns=function(){L()},this.resize=function(){U()},this.setUpdated=function(t){r.isNothing(y)||(t?y.show():y.hide()),U(),L()},this.setUpdateNotice=function(t,i){var e;b[0]&&(e=b[0].id,r.isNothing(b)||(t?(b.show(),$("#"+e+" .sumo-listview-data-update-notice").html(i)):b.hide()),U(),L())},this.sortExpression=function(t){if(r.isNothing(t))return V();z.ColumnName=t.Columns[0].ColumnName,z.SortDirection=t.Columns[0].Direction.toLowerCase(),r.trigger("sort",V())},this.sort=function(){r.trigger("sort",V())},this.setDataSource=function(t){u=t,n=!0,this.isNothing(u)||W(),veritracks.localization.localize("#"+r.Id)},this.getDataSource=function(){return u},this.getCleanDataSource=function(){var t,i=[];for(t in u)u.hasOwnProperty(t)&&i.push(u[t].Id);return i},this.setColumns=function(t){r.trigger("columnschanging"),c=t,n=!0,this.isNothing(u)||W(),r.trigger("columnschanged"),veritracks.localization.localize(".sumo-listview-header-row")},this.getColumns=function(){return c},this.show=function(){n&&W(),sumo.controls.ListView.prototype.show.call(this)},this.dispose=function(){$(window).unbind("resize",G),r.isNothing(w)||w.unbind("scroll",B),r.isNothing(C)||C.unbind("click",R),$("#"+r.Id+" div.sumo-listview-resizable-div").resizable("destroy"),n=!1,r=I=C=N=v=w=i=p=c=u=h=a=d=null,sumo.controls.ListView.prototype.dispose.call(this)},this.render=function(){this.isNothing(i)||this.ControlElement.addClass(i),$(window).resize(G),this.trigger("render")},this.render()},sumo.controls.ListView.prototype=new sumo.controls.ControlBase,sumo.controls.ListView.prototype.constructor=sumo.controls.ListView,sumo.controls.ListView.prototype.baseClass=sumo.controls.ControlBase; 30var PoiDataHelper={builder:new SumoPredicateBuilder,getAll:function(){this.builder.Clear(),this.builder.AddNewExpressionConditional("PoiFlag",1,!1,mRelationalOperatorEnum.Is(),mLogicalOperatorEnum.And()),Boolean(AgentHelper.getPermissionValueById(45))?this.builder.AddNewExpressionConditional("MakePublic",[0,1],!1,mRelationalOperatorEnum.In(),mLogicalOperatorEnum.And()):(this.builder.AddNewExpressionConditional("MakePublic",[0,1],!1,mRelationalOperatorEnum.In(),mLogicalOperatorEnum.And()),this.builder.AddNewExpressionConditional("OrganizationId",gUserDetails.OrganizationIds,!1,mRelationalOperatorEnum.In(),mLogicalOperatorEnum.And()));var e=query(getDataItems("Zones"),this.builder.RootExpression);return this.builder.Clear(),e},initLayersOnMap:function(r){r.layerAdd("PointOfInterestMarker",{renderType:"marker",doesPlayback:!0,isVisible:!0,markerImageSize:{width:70,height:70},clickEventHandler:function(e,t){r.setCenter(e.position.lat(),e.position.lng()),r.zoom(18)},zIndexStart:1e6,hoverEventHandler:function(e,t){var i,n;n=(i=e).sumoData,e=getDataItem(mEnrolleesData.OffenderCurrentId,"Enrollees"),lTimeZone=getTimezone(e.TimeZoneId,"TimeZone"),isNullOrUndefined(n)||-1===n.Id||r.geocode(n.CenterLatitude.toString()+","+n.CenterLongitude.toString(),function(e){var e=e?e.formated_address:"",t=getDataItem(n.OrganizationId,"Organizations"),a=2===n.Type?"Area of Interest":"Label",a=['<div style="line-height:normal;">',"<h4> Name:",n.Name,"</h4>","<div>",a,"</div>","<div> Organization: ",t.Name,"</div>",'<span style="white-space:nowrap;"> ',localizeText("cEnrolleeAddress"),": ",e," </span>","<div> Created Date: ",displayEnrolleeTimeZone(n.CreatedDateUTC,lTimeZone),"</div>","</div>"];r.showInfo(i,a.join(" "),n.CenterLatitude,n.CenterLongitude)})},hoverOutEventHandler:function(e,t){r.hideInfo()}}),r.layerAdd("PointOfInterestShape",{renderType:"geometry",doesPlayback:!1,isVisible:!0,clickEventHandler:null,zIndexStart:0})},renderOnMap:function(e){e.layerSetDataSource("PointOfInterestMarker",[]),e.layerSetDataSource("PointOfInterestShape",[]);var t=this.getAll();e.layerSetDataSource("PointOfInterestMarker",veritracks.mapping.preparePointOfInterestMarkerData(t)),e.layerSetDataSource("PointOfInterestShape",veritracks.mapping.preparePointOfInterestShapeData(t))}};function MapPointOfInterestModal(e,t,a){this.poi=null;
30var i=5280,n=new PointOfInterestDataObject,r=new Validator("uVeritracksCustomPopup",mRegexValidation),o=a,d=!1,l=e.toLowerCase(),e=(typeId={aoi:2,label:1}[l],n.Type=typeId,a);if(!(o=e)||null==o)throw"MapPointOfInterestModal requires the sumo.maps.GoogleMapControl Instance defined";function s(e){n.CenterLatitude=e.center.lat(),n.CenterLongitude=e.center.lng(),o.geocode(n.CenterLatitude.toString()+","+n.CenterLongitude.toString(),function(e,t,a){e=new Address(e[0]);e.Zip=e.ZipCode,n.CenterLatitude=e.Latitude,n.CenterLongitude=e.Longitude,n.Description=e.Description,n.PoiFlag=1,d=""!==e.Street1.trim(),AddressHelper.set(e),m()});e=Math.round(sumo.geo.conversion.metersToFeet(e.getRadius()));i<e&&(e=i,mActivityNotification.addNotification(localizeWrapper("cAnalysisPointOfInterestRadiusLarge"))),n.Radius=e,document.getElementById("poiRadius").value=e,o.layerSetDataSource("PointOfInterestShapeEdit",[]),o.layerSetDataSource("PointOfInterestMarkerEdit",[]),o.layerSetDataSource("PointOfInterestShapeEdit",veritracks.mapping.preparePointOfInterestShapeData([n])),o.layerSetDataSource("PointOfInterestMarkerEdit",veritracks.mapping.preparePointOfInterestMarkerData([n]))}e={1:"Label",2:"AOI"}[typeId],e=IconHelper.getIconIdByName(e),isNullOrUndefined(mEnrolleesIcon.icons[e].IconValue)||(lMarker=veritracks.mapping.iconGenerator.generateMapMarker(mEnrolleesIcon.icons[e].IconValue)),lLayerOptions={renderType:"marker",doesPlayback:!1,isVisible:!0,clickEventHandler:null,zIndexStart:1e6,markerImageSize:{width:70,height:70}},o.layerAdd("PointOfInterestMarkerEdit",lLayerOptions),o.layerAdd("PointOfInterestShapeEdit",{renderType:"geometry",doesPlayback:!1,isVisible:!0,clickEventHandler:null,zIndexStart:1e6,shapeChangeHandler:s}),this.getMap=function(){return o},this.modal=function(){};var p=new CustomPopup({id:"uVeritracksCustomPopup",cssUrl:"Scripts/Controls/poi/PointOfInterest.css",template:['<div class="poi__header">','<div class="title" >',{label:"New Label (location)",aoi:"New Area Of Interest"}[l],'</div><button type="button" class="btn-link btn-close"></button>',"</div>",'<div id="pointOfInterestId" class="poi__body">','<div class="poi__form--field">','<span class="label">Name</span>','<input id="poiName" type="text" validate="" class="input Validate field ValidateRequired ValidateNotEmpty" />',"</div>",'<div class="poi__form--field">','<span class="label">Organization</span>','<select id="poiOrganizationId" class="listenOnChange field"></select>',"</div>",'<div class="poi__form--field">','<span class="label">Radius (ft)</span>','<input type="text" id="poiRadius" class=" input field Validate ValidateRequired ValidateInteger ValidateSuccess" />',"</div>",'<div class="poi__form--field">','<h3 class="subtitle">',localizeWrapper("cEnrolleeAddress"),"</h3> ",'<div class="subtitle Clickable IconButton LocateButton FloatRight" id="uPoiLocateButton" title="',localizeText("cAddressGeocode"),'"></div>',"</div>",'<div class="poi__form--field">','<span class="label"',localizeWrapper("cEnrolleeAddressStreet1"),"</span>",'<input type="text" id="poiAddressStreet1" class="input field Validate ValidateRequired ValidateNotEmpty poiAddressMustGeocode Validate100Length" />',"</div>",'<div class="poi__form--field">','<span class="label"',localizeWrapper("cEnrolleeAddressStreet2"),"</span>",'<input type="text" id="poiAddressStreet2" class="input field poiAddressMustGeocode Validate Validate100Length" />',"</div>",'<div class="poi__form--field">','<span class="label"',localizeWrapper("cEnrolleeAddressCity"),"</span>",'<input type="text" id="poiAddressCity" class="input field Validate poiAddressMustGeocode ValidateNotEmpty ValidateRequired Validate50Length" />',"</div>",'<div class="poi__form--field">','<span class="label"',localizeWrapper("cEnrolleeAddressState"),"</span>",'<input type="text" id="poiAddressState" class="input field Validate ValidateRequired ValidateNotEmpty " />',"</div>",'<div class="poi__form--field">','<span class="label"',localizeWrapper("cEnrolleeAddressZipCode"),"</span>",'<input type="text" id="poiAddressZip" class="field Validate poiAddressMustGeocode ValidateRequired ValidateNotEmpty Validate10Length" />',"</div>",'<div class="poi__form--field">','<span class="label"',localizeWrapper("cEnrolleeAddressCountry"),"</span>",'<input type="text" id="poiAddressCountry" class="input field Validate ValidateRequired ValidateNotEmpty poiAddressMustGeocode Validate255Length" value="USA" />
30','<input type="hidden" id="poiAddressLatitude" value="0.0" />','<input type="hidden" id="poiAddressLongitude" value="0.0" />','<input type="hidden" id="poiAddressDescription" value="" />',"</div>",'<div class="poi__form--field">','<span class="label">Make Public?</span>','<input type="checkbox" id="poiIsVisible" class="field" />',"</div>","</div>",'<div class="poi__footer">','<button id="poiSaveButton" type="button" class="poi__footer--save btn-link btn-save">Save</button>',"</div>"].join(" ").toString()});p.onLoad=function(){!function(){n.Radius=150,n.CenterLatitude=t.lat(),n.CenterLongitude=t.lng(),d=!0,n.PoiFlag=1,n.MakePublic=0,document.getElementById("poiName").value="",document.getElementById("poiRadius").value=n.Radius,populateEditView(this.poi,[{Id:"Name",Type:"Text",DataSource:"",DataValueField:"Name",DataTextField:"Name"},{Id:"OrganizationId",Type:"Dropdown",DataSource:AgentHelper.getUserOrganizations(),DataValueField:"Id",DataTextField:"Name"},{Id:"TypeId",Type:"Dropdown",DataSource:getDataItems("ZoneType"),DataValueField:"Id",DataTextField:"Description"}],{},"poi",""),m();var e=getDataItem(mEnrolleesData.OffenderCurrentId,"Enrollees");n.OrganizationId=e.OrganizationId,document.getElementById("poiOrganizationId").value=e.OrganizationId,u.poiId=EventHelper.on("#pointOfInterestId","keyup",function(e){var t=e.target.closest(".input"),e=e.target.closest(".poiAddressMustGeocode");t&&document.querySelector("#pointOfInterestId").contains(t)&&m(),e&&document.querySelector("#pointOfInterestId").contains(e)&&(d=!1,m())}),u.isVisible=EventHelper.on("#poiIsVisible","change",function(e){n.MakePublic=this.checked?1:0}),n.OrganizationId=parseInt(document.getElementById("poiOrganizationId").value),u.organization=EventHelper.on("#poiOrganizationId","change",function(e){n.OrganizationId=parseInt(this.value)}),u.locate=EventHelper.on("#uPoiLocateButton","click",function(e){o&&o.locate(AddressHelper.getFull(),function(e,t){t=new Address(t);t.Zip=t.ZipCode,n.CenterLatitude=t.Latitude,n.CenterLongitude=t.Longitude,n.Description=t.Description,n.PoiFlag=1,d=""!==t.Street1.trim(),AddressHelper.set(t),c(n),m()})}),u.poiRadius=EventHelper.on("#poiRadius","keyup",function(e){n.Radius=Math.round(this.value),o.layerSetDataSource("PointOfInterestShapeEdit",[]),o.layerSetDataSource("PointOfInterestShapeEdit",veritracks.mapping.preparePointOfInterestShapeData([n]))})}(),o.reverseGeocode(t.lat(),t.lng(),function(e){AddressHelper.set(e),n.Description=location.Description,r.scan()}),o.zoom(18),o.setCenter(t.lat(),t.lng()),c(n),document.getElementsByName(".btn-save").disabled=!0},p.onClose=function(){for(var e in o.layerSetDataSource("PointOfInterestMarkerEdit",[]),o.layerSetDataSource("PointOfInterestShapeEdit",[]),u)u[e].dispose();n=l=u=null},p.open().result(function(){var e,t;(e=n).Description=document.getElementById("poiAddressDescription").value,e.Name=document.getElementById("poiName").value.trim(),e.UpdatedByAppUserId=gUserDetails.UserId,t=parseInt(document.getElementById("poiOrganizationId").value),t=getMyAgentsIdByOrganizationId(gUserDetails.UserId,t),e.AgentId=t.length?t[0]:1,e.Scope=1,e.addresTypeId=-1,e.PoiFlag=1,e.Radius=document.getElementById("poiRadius").value,veritracks.mapping.saveZone(e,null,null,function(e,t){p.close(),PoiDataHelper.renderOnMap(o)})},function(){});var u={};function c(e){o.setCenter(e.CenterLatitude,e.CenterLongitude),o.layerSetDataSource("PointOfInterestMarkerEdit",veritracks.mapping.preparePointOfInterestMarkerData([e])),o.layerSetDataSource("PointOfInterestShapeEdit",veritracks.mapping.preparePointOfInterestShapeData([e]))}function m(){document.getElementById("poiSaveButton").disabled=!r.IsValid()||!d}return this}"undefined"!=typeof exports&&(module.exports={MapPointOfInterestModal:MapPointOfInterestModal,PoiDataHelper:PoiDataHelper}); 31if(isNullOrUndefined(sumo))throw"ScheduleView.js requies the sumo namespace defined in SumoClass.js";if(isNullOrUndefined(sumo.controls))throw"ScheduleView.js requies the sumo.controls namespace defined in ControlBase.js";sumo.controls.ScheduleView=function(e,t,s){"use strict";sumo.controls.ScheduleView.prototype.baseClass.call(this,e,t,'<div class="sumo-scheduleview-control" id="##id##" style="height: 100%; overflow: hidden;"></div>',s);var w=this,i=null,d=null,f=null,r=!1,o=["S","M","T","W","R","F","S"],n=new Date,a=new Date,u=null,l=null,h=null,p=null,c=null,g=null;function m(){var e,t,s,i="",d="",r=[];for(r.push('<tr><td colspan="9"><div style="height:6px;"></div></td></tr>'),t=0;t<24;t++)for(s=0;s<60;s+=15){for(r.push("<tr>"),r.push("<td>"),0===t&&0===s?(i="00:00",r.push('<div style="position:relative; top:-8px; padding-right:5px; padding-left:5px; z-index:999" class="'),r.push(w.Id),r.push('0-data">'),r.push(i),r.push("</div>")):0!==s&&30!==s||(1===(i=t.toString()).length&&(i="0"+i),i+=":"+(d=1===(d=s.toString()).length?"0"+d:d),r.push('<div style="position:relative; top:-8px; padding-right:5px; padding-left:5px" class="'),r.push(w.Id),r.push('0-data">'),r.push(i),r.push("</div>")),r.push("</td>"),r.push('<td style="border-top:1px solid gray;'),23===t&&45==s&&r.push("border-bottom:1px solid silver;"),r.push(' overflow: hidden; border-right: 1px solid gray">'),r.push('<div style="height:15px; max-height:15px; width:5px;" class="'),r.push(w.Id),r.push('1-data"> </div>'),r.push("</td>"),e=0;e<7;e++)r.push('<td style="border-top:1px solid gray;'),23===t&&45==s&&r.push("border-bottom:1px solid gray;"),r.push(' overflow: hidden; border-right: 1px solid gray">'),r.push('<div style="height:15px; max-height:15px; min-width:20px;" class="'),r.push(w.Id),r.push("-day-"),r.push(e.toString()),r.push('-data">'),r.push(function(e,t,s){var i,d,r,o,n,a,u,l,h,p,c,g=new Date,m=new Date,v=new Date,y="";for(o in m.setHours(t,s,0,0),v.addDays(1),v.setHours(t,s,0,0),g.addDays(1),g.setHours(0,0,0,0),i=21,f)f.hasOwnProperty(o)&&(p=new Date,c=new Date,r="",d="reoccurring"===(n=f[o]).type&&n.startTime>=n.endTime||("override"===n.type||n.startTime.getDay()!==n.endTime.getDay())&&60*n.startTime.getHours()+n.startTime.getMinutes()>=60*n.endTime.getHours()+n.endTime.getMinutes(),"reoccurring"===n.type?(a=n.startTime.getHours(),u=52<(u=n.startTime.getMinutes())?(a+=1,0):15*Math.round(u/15)%60,l=n.endTime.getHours(),h=52<(h=n.endTime.getMinutes())?(l+=1,0):15*Math.round(h/15
31)%60,p.setHours(a,u,0,0),c.setHours(l,h,0,0)):(p.setHours(n.startTime.getHours(),n.startTime.getMinutes(),0,0),c.setHours(n.endTime.getHours(),n.endTime.getMinutes(),0,0)),d&&c.addDays(1),a=!1,!d&&p<=m&&m<c?(n.startSunday&&0===e||n.startMonday&&1===e||n.startTuesday&&2===e||n.startWednesday&&3===e||n.startThursday&&4===e||n.startFriday&&5===e||n.startSaturday&&6===e)&&(a=!0):d&&(p<=m&&m<=g?(n.startSunday&&0===e||n.startMonday&&1===e||n.startTuesday&&2===e||n.startWednesday&&3===e||n.startThursday&&4===e||n.startFriday&&5===e||n.startSaturday&&6===e)&&(a=!0):v<c&&g<=v&&(n.startSunday&&1===e||n.startMonday&&2===e||n.startTuesday&&3===e||n.startWednesday&&4===e||n.startThursday&&5===e||n.startFriday&&6===e||n.startSaturday&&0===e)&&(a=!0)),a)&&(""!==y&&10!==i&&(i=10,r="margin-left:1px"),y+='<div id="'+w.Id+"-scheduleview-itemid-"+n.id.toString()+'" title="'+n.hoverText+": "+n.type+'" class="scheduleview-item scheduleview-itemtype-'+n.type+'" style="width:##width##px;float:left;'+r+'"> </div>');for(;-1!==y.indexOf("##width##");)y=y.replace("##width##",i.toString());return y}(e,t,s)),r.push("</div>"),r.push("</td>");r.push("</tr>")}return r.join("")}function v(e){var t;g.find(".scheduleview-item").removeClass("scheduleview-selected"),i=null,t=e,(t=g.find("#"+w.Id+"-scheduleview-itemid-"+t)).addClass("scheduleview-selected"),0<t.length&&t[0].scrollIntoView(!1),i=e}function y(e){w.isNothing(e)||(w.trigger("selectedchanging",i),v(e),w.trigger("selectedchanged",i))}function x(){null!==l&&(w.ControlElement.height(w.ParentElement.innerHeight()),l.height(w.ControlElement.innerHeight()-(p.height()+h.height())))}function S(){for(var e=null,e=0;e<2;e++)$("div."+w.Id+e.toString()+"-header").innerWidth($("div."+w.Id+e.toString()+"-data").innerWidth());for(e=0;e<7;e++)$("div."+w.Id+(e+2).toString()+"-header").innerWidth($("div."+w.Id+"-day-"+e.toString()+"-data").innerWidth())}function b(){var e=[];r&&!w.isNothing(d)&&(e.push('<div class="sumo-scheduleview-date" id="'),e.push(w.Id),e.push('Date"><table><tr><td><div class="Clickable LeftArrowIcon" id="'),e.push(w.Id),e.push('Left"></div></td><td>'),e.push(n.toDateString()),e.push(" - "),e.push(a.toDateString()),e.push('</td><td><div class="Clickable RightArrowIcon" id="'),e.push(w.Id),e.push('Right"></div></td></tr></table></div>'),e.push('<div class="sumo-scheduleview-header"><table class="sumo-scheduleview-header-table" id="'),e.push(w.Id),e.push('Header" style="position: relative;" border="0" cellspacing="0" cellpadding="0">'),e.push("<thead>"),e.push('<tr class="sumo-scheduleview-header-row">'),e.push(function(){for(var e=0,t='<div style="padding-right:5px; padding-left:5px; overflow: hidden;"> </div>',s=[],e=0;e<9;e++)s.push('<th class="'),s.push("sumo-scheduleview-static-header "),s.push('sumo-scheduleview-header-cell" style="border-right:1px solid white"><div '),1===e?t='<div style="overflow: hidden;"> </div>':1<e&&(t='<div style="overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis;">'+o[e-2]+"</div>"),s.push(' id="'),s.push(w.Id),s.push(e.toString()),s.push('" class="'),s.push(w.Id),s.push(e.toString()),s.push('-header">'),s.push(t),s.push("</div></th>");return s.join("")}()),e.push("</tr>"),e.push("</thead>"),e.push("</table></div>"),e.push('<div id="'),e.push(w.Id),e.push('ViewPort" class="sumo-scheduleview-viewport" style="height: 0px; overflow: auto;">'),e.push('<table id="'),e.push(w.Id),e.push('Table" class="sumo-scheduleview-data-table" cellspacing="0" cellpadding="0" border="0"><tbody id="'),e.push(w.Id),e.push('Body">'),e.push(m()),e.push("</tbody></table>"),e.push("</div>"),w.ControlElement.html(e.join("")),l=w.ControlElement.find("#"+w.Id+"ViewPort"),h=w.ControlElement.find("#"+w.Id+"Date"),p=w.ControlElement.find("#"+w.Id+"Header"),c=w.ControlElement.find("#"+w.Id+"Table"),g=c.find("#"+w.Id+"Body"),g.find("tr"),g.find("td"),$("#"+w.Id+"Left").click(function(){I(-1)}),$("#"+w.Id+"Right").click(function(){I(1)}),w.isNothing(i)||y(i),x(),S(),r=!1,w.trigger("databind"))}function T(){var e=new SumoPredicateBuilder,t=d;e.AddNewExpressionConditional("startTime",a,!1,mRelationalOperatorEnum.LessThan(),mLogicalOperatorEnum.And()),e.AddNewExpressionConditional("endTime",n,!1,mRelationalOperatorEnum.GreaterThan(),mLogicalOperatorEnum.And()),e.AddNewExpressionConditional("type","reoccurring",!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.Or()),t=query(t,e.RootExpression),r=!0,f=t}function I(e){n.addDays(7*e),(a=new Date(n)).addDays(6),a.setHours(23,59,59,999),T(),b()}function D(e){x()}this.isNothing(s)||this.isNothing(s.cssClass)||(u=s.cssClass),this.selected=function(e){var t=null;return this.isNothing(e)?t=i:y(e),t},this.resize=function(){x()},this.resizeColumns=function(){S()},this.setDataSource=function(e){d=e,this.isNothing(d)||((n=new Date).addDays(0-n.getDay()),n.setHours(0,0,0,0),(a=new Date(n)).addDays(6),a.setHours(23,59,59,999),T(),b())},this.getDataSource=function(){return d},this.show=function(){r&&b(),sumo.controls.ScheduleView.prototype.show.call(this)},this.dispose=function(){r=!1,w=g=c=p=h=l=u=f=d=i=null,sumo.controls.ScheduleView.prototype.dispose.call(this)},this.render=function(){this.isNothing(u)||this.ControlElement.addClass(u),$(window).resize(D),this.trigger("render")},this.render()},sumo.controls.ScheduleView.prototype=new sumo.controls.ControlBase,sumo.controls.ScheduleView.prototype.constructor=sumo.controls.ScheduleView,sumo.controls.ScheduleView.prototype.baseClass=sumo.controls.ControlBase; 32if(isNullOrUndefined(sumo))throw"Dropdown.js requies the sumo namespace defined in SumoClass.js";if(isNullOrUndefined(sumo.controls))throw"Dropdown.js requies the sumo.controls namespace defined in ControlBase.js";sumo.controls.Dropdown=function(o,s,t){"use strict";sumo.controls.Dropdown.prototype.baseClass.call(this,o,s,'<div class="sumo-dropdown-control" id="##id##"></div>',t);var n=this,i="",e="inline",r="undefined",d="",l=null,p=!0,h=null,u=null,a=null;function w(o){"right"===o?u.removeClass("sumo-dropdown-viewport-arrow-down").addClass("sumo-dropdown-viewport-arrow-right"):u.removeClass("sumo-dropdown-viewport-arrow-right").addClass("sumo-dropdown-viewport-arrow-down")}function c(){0<n.ControlElement.length&&(isNullOrUndefined(n.mSlideIntoView)||n.mSlideIntoView&&n.ControlElement[0].scrollIntoView(!0))}function m(o){o.stopImmediatePropagation(),n.toggleExpander()}this.isNothing(t)||(this.isNothing(t.title)||(i=t.title),this.isNothing(t.isOpen)||(p=t.isOpen),this.isNothing(t.viewportType)||(e=t.viewportType),this.isNothing(t.contentType)||(r=t.contentType),this.isNothing(t.content)||(
32d=t.content),this.isNothing(t.cssClass)||(l=t.cssClass),this.isNothing(t.mSlideIntoView))||t.mSlideIntoView,this.setContent=function(o){switch(d=o,r){case"jQueryElement":o.appendTo(h);break;case"domElement":case"html":$(o).appendTo(h)}},this.hide=function(){p=!1,w("right"),h.slideUp("fast"),n.trigger("closed",null)},this.show=function(){p=!0,w("down"),h.slideDown("fast",c),n.trigger("opened",null)},this.toggleExpander=function(){p?this.hide():this.show()},this.dispose=function(){a.unbind("click",m),a=u=h=n=null,sumo.controls.Dropdown.prototype.dispose.call(this)},this.render=function(){var o=[];o.push('<div class="sumo-dropdown-control-header" id="'),o.push(this.Id.toString()),o.push('Header">'),o.push(i),o.push('<div class="sumo-dropdown-viewport-arrow '),o.push(p?"sumo-dropdown-viewport-arrow-down":"sumo-dropdown-viewport-arrow-right"),o.push('" id="'),o.push(this.Id.toString()),o.push('Arrow"></div>'),o.push("</div>"),o.push('<div class="sumo-dropdown-control-viewport '),"inline"===e?o.push("sumo-dropdown-control-viewport-inline"):"float"===e&&o.push("sumo-dropdown-control-viewport-float"),o.push('" id="'),o.push(this.Id.toString()),o.push('ViewPort" '),p||o.push(' style="display:none" '),o.push(">"),"html"===r&&o.push(d),o.push("</div>"),this.isNothing(l)||this.ControlElement.addClass(l),this.ControlElement.html(o.join("")),h=this.ControlElement.find("#"+this.Id+"ViewPort"),a=this.ControlElement.find("#"+this.Id+"Header"),u=this.ControlElement.find("#"+this.Id+"Arrow"),"jQueryElement"===r?d.appendTo(h):"domElement"===r&&$(d).appendTo(h),a.click(m),veritracks.localization.localize("#"+this.Id),this.trigger("render")},this.render()},sumo.controls.Dropdown.prototype=new sumo.controls.ControlBase,sumo.controls.Dropdown.prototype.constructor=sumo.controls.Dropdown,sumo.controls.Dropdown.prototype.baseClass=sumo.controls.ControlBase; 33if(isNullOrUndefined(sumo))throw"CardView.js requies the sumo namespace defined in SumoClass.js";if(isNullOrUndefined(sumo.controls))throw"CardView.js requies the sumo.controls namespace defined in ControlBase.js";sumo.controls.CardView=function(U,A,t){"use strict";sumo.controls.CardView.prototype.baseClass.call(this,U,A,'<div class="sumo-cardview-control" id="##id##" style="height: 100%; overflow: hidden;"></div>',t);var l=this,d=null,a=null,u=[],s={},r=null,c=!1,h=!1,p="",e=100,i=null,o=!1,m=null,g="single",n=null,f=!1,C=null,w=null,v="",N="uri",I=null,M=!1,S=null,j="ascending",y=null,k=null,E=null,H=null,b=null,B={},F=!1;function K(t,e,i){t.unbind("initialized",K),t.render()}function L(t,e,i){p=t,h=!0,isNullOrUndefined(l)||l.trigger("initialized",null)}function Z(t,e){var i,o,n,s,r=t;for(i in e)if(e.hasOwnProperty(i))for(o=e[i],n="",l.isNothing(o)||(n=o.toString()),s="##"+i+"##";-1!==r.indexOf(s);)r=r.replace(s,n);return r}function W(t){y.find("#"+l.Id+"Row"+t).addClass("sumo-data-row-selected")}function T(t){y.find("#"+l.Id+"Row"+t).removeClass("sumo-data-row-selected")}function D(t){var e;null!==d&&d.constructor===Array||(d=[]),-1!==u.indexOf(t)&&(-1===(e=d.indexOf(t))?(W(t),d.push(t)):(1<d.length||f)&&(T(t),d.splice(e,1)))}function V(){y.find(".sumo-data-row-selected").removeClass("sumo-data-row-selected"),d=null}function q(t){var e,i,o,n,s=null,r=!1;return f&&t===d?(T(d),r=!(d=null)):f||t!==d||-1!==u.indexOf(d)?-1!==u.indexOf(t)&&(T(d),W(t),0<(s=y.find("#"+l.Id+"Row"+t+".sumo-data-row-selected")).length&&(e=s[0],i=$(window).scrollTop(),o=i+$(window).height(),!((n=$(e).offset().top)+$(e).height()<=o&&i<=n))&&s[0].scrollIntoView(!0),a=d,d=t):0<u.length?l.selectedIndex(0):d=null,r}function O(t,e){var i=null;if(!l.isNothing(t)){if(l.trigger("selectedchanging",{Current:d,New:t}),t.constructor!==Array||"auto"!==g&&"ctrlKey"!==g)if("single"===g){if(t.constructor===Array)throw l.className()+".Id: "+l.Id+". Invalid argument. Cannot pass Array to select() with selectMethod of single.";i=q(t)}else"auto"===g||"ctrlKey"===g&&!0===e?D(t):"ctrlKey"===g&&!1===e&&(V(),D(t));else{var o,n=t,s=null;for(n.length,V(),d=[],o=n.length,s=0;s<o;s++)D(n[s])}l.trigger("selectedchanged",d)}return i}function R(t){o||(i&&clearTimeout(i),i=setTimeout(function(){var t;y&&y[0]&&(t=y.scrollTop(),y[0].scrollHeight-(t+y.innerHeight())<=e?l.trigger("scrollbottom",null):t<=e&&l.trigger("scrolltop",null))},200))}
33function G(t){var e=$(this),i=e.attr("itemkey"),i=u[parseInt(i,10)],o=!1;isNullOrUndefined(I)||isNullOrUndefined(t.target)||-1!=I.indexOf(t.target.className)&&e.hasClass("sumo-data-row-selected")&&(o=!0),o||(t.stopImmediatePropagation(),e=O(i,t.ctrlKey),-1!=t.currentTarget.id.indexOf("uTrackpointDetailCardView")&&(e?(o=mEnrolleesControls.EnrolleesMap.getMap(),18<veritracks.enrollees.mapping.data.PreviousZoom&&veritracks.enrollees.mapping.PreviousZoom(14),o.setZoom(veritracks.enrollees.mapping.data.PreviousZoom)):veritracks.enrollees.mapping.zoomOut(mEnrolleesControls.EnrolleesMap.getMap(),2)))}function z(){var t=l.ControlElement.innerHeight();null!==y&&(E.is(":visible")&&(t-=E.height()),b.is(":visible")&&(t-=b.height()),l.ControlElement.height(l.ParentElement.innerHeight()),y.height(t))}function J(){l.trigger("update",null)}function Q(){F||(F=!0,veritracks.localization.localize("#u"+l.Id+"CardViewSortContainer")),$("#u"+l.Id+"CardViewSortContainer").is(":visible")?$("#u"+l.Id+"CardViewSortContainer").hide():$("#u"+l.Id+"CardViewSortContainer").show()}function x(t,e){var i=new SortExpression,t=t.split(l.Id);return"ascending"===e.toLowerCase()?i.addAscendingColumn(t[t.length-1]):i.addDescendingColumn(t[t.length-1]),i}function P(){if(h){var t,e,i,o=[];if(c&&!l.isNothing(r)){if(!0===l.Options.isSortable){for(t in o.push('<div class="CardViewSortContainerToggleButton" id="u'),o.push(l.Id),o.push("CardViewSortContainerToggleButton"),o.push('"></div>'),o.push('<div class="CardViewSortContainer" id="u'),o.push(l.Id),o.push('CardViewSortContainer"><table>'),l.Options.Columns)l.Options.Columns.hasOwnProperty(t)&&(e=l.Options.Columns[t],o.push("<tr>"),o.push('<td><input type="radio" id="'),i=l.Id+e.id,o.push(i),o.push('" name="ColumnSortRadioButton" class="'),o.push(l.Id),o.push('ColumnSortRadioButton ColumnSortRadioButton" /></td>'),o.push('<td><label for="'),o.push(i),o.push('">'),o.push(e.title),o.push("</label>"),o.push("</td>"),o.push("</tr>"));i=l.Id+"Ascending",o.push('<tr><td colspan="2"><hr/></td></tr>'),o.push("<tr>"),o.push("<td>"),o.push('<input type="radio" id="'),o.push(i),o.push('" name="ColumnSortDirectionRadioButton" class="ColumnSortDirectionRadioButton" checked="checked" value="ascending" />'),o.push("</td>"),o.push("<td>"),o.push('<label for="'),o.push(i),o.push('">'+localizeWrapper("cAscending")+"</label>"),o.push("</td>"),o.push("</tr>"),i=l.Id+"Descending",o.push("<tr>"),o.push("<td>"),o.push('<input type="radio" id="'),o.push(i),o.push('" name="ColumnSortDirectionRadioButton" class="ColumnSortDirectionRadioButton" value="descending" />'),o.push("</td>"),o.push("<td>"),o.push('<label for="'),o.push(i),o.push('">'+localizeWrapper("cDescending")+"</label>"),o.push("</td>"),o.push("</tr>"),o.push("</table>"),o.push('<div class="ButtonBar"><div class="ButtonCommandBar"><div class="CardViewSortButton Button LargeIconButton Clickable ContinueButton" id="u'),o.push(l.Id),o.push('SortButton"'),o.push(">"+localizeWrapper("cSort")+"</div>"),o.push("</div></div></div>")}o.push('<div id="'),o.push(l.Id),o.push('Updated" class="sumo-cardview-updated"><div class="sumo-cardview-datarefresh">'+localizeText("cUpdateAvailable")+"</div>"),o.push("</div>"),o.push('<div id="'),o.push(l.Id),o.push('ViewPort" class="sumo-cardview-viewport" style="height: 0px; overflow: auto;">'),o.push(function(){var t,e=[],i=null,o=0;for(i in u=[],s={},r)if(r.hasOwnProperty(i)){if(t=r[i],l.isNothing(t))throw l.className()+".Id: "+l.Id+". Error binding data. Item with hash index of "+i.toString()+" does not exist.";e.push('<div class="sumo-data-row" id="'),e.push(l.Id),e.push("Row"),null!==m?(u.push(t[m]),s[t[m]]=i,e.push(t[m])):(u.push(i),s[i]=i,e.push(i)),e.push('" itemkey="'),e.push(o.toString()),e.push('">'),e.push(Z(p,t)),e.push("</div>"),++o}return e.join("")}()),o.push("</div>"),l.ControlElement.html(veritracks.system.encodeHtml(o.join("")));var n=l.ControlElement.text(),n=(l.ControlElement.html(n),(y=l.ControlElement.find("#"+l.Id+"ViewPort"))&&0<y.length&&(y.off("scroll",R),y.on("scroll",R)),k=y.find(".sumo-data-row"),E=l.ControlElement.find("#"+l.Id+"Updated"),(b=l.ControlElement.find("#u"+l.Id+"CardViewSortContainerToggleButton")).click(Q),k.click(G),E.click(J),H=l.ControlElement.find("#u"+l.Id+"SortButton"),l.ControlElement.find("."+l.Id+"ColumnSortRadioButton"),l.isNothing(B)||l.isNothing(B.ColumnName)||l.isNothing(B.SortDirection)||(l.ControlElement.find("#"+l.Id+B.ColumnName).attr("checked",!0),("ascending"===B.SortDirection?l.ControlElement.find("#"+l.Id+"Ascending"):l.ControlElement.find("#"+l.Id+"Descending")).attr("checked",!0)),H.click(function(t){var e,i,o=l.ControlElement.find("input:radio[name=ColumnSortRadioButton]:checked");l.isNothing(o[0])||(o=o[0].id,e=l.ControlElement.find("input:radio[name=ColumnSortDirectionRadioButton]:checked").val(),i=o.split(l.Id),B.ColumnName=i[i.length-1],B.SortDirection=e,l.trigger("sort",x(o,e)))}),"none"!==g&&k.addClass("sumo-selectable"),null!==C&&y.find("tr:odd").addClass(C).addClass("sumo-data-row-odd"),null!==w&&y.find("tr:even").addClass(w).addClass("sumo-data-row-even"),l.isNothing(d)||O(d,!1),l.setUpdated(!1),c=!1,l.ControlElement.find("#"+l.Id+"ViewPort").find(".sumo-data-row").first());n&&M&&n.trigger("click"),l.trigger("databind")}}}function X(t){z()}this.isNothing(t)||(this.isNothing(t.keyField)||(m=t.keyField),this.isNothing(t.keyFieldType)||t.keyFieldType,this.isNothing(t.selectMethod)||(g=t.selectMethod),this.isNothing(t.cssClass)||(n=t.cssClass),this.isNothing(t.canUnselect)||(f=t.canUnselect),this.isNothing(t.oddRowClass)||(C=t.oddRowClass),this.isNothing(t.evenRowClass)||(w=t.evenRowClass),this.isNothing(t.cardTemplate)||(v=t.cardTemplate),this.isNothing(t.templateType)||(N=t.templateType),this.isNothing(t.IgnoreO
33nClick)||(I=t.IgnoreOnClick),this.isNothing(t.preSelectFirstCard)||(M=t.preSelectFirstCard),this.isNothing(t.defaultSortColumn)||(S=t.defaultSortColumn),this.isNothing(t.defaultSortDirection))||(j=t.defaultSortDirection),this.getSortExpression=function(){return x(B.ColumnName,B.SortDirection)},this.getPreviousSelectedKey=function(){return a},this.selectedIndex=function(t){var e=null;return this.isNothing(t)?e=u.indexOf(d):(t=u[t],this.isNothing(t)||this.selected(t)),e},this.selected=function(t,e){var i=null,o=!1;return this.isNothing(t)?i=d:O(t,o=this.isNothing(e)?o:e),i},this.unselect=function(){y&&(V(),l.trigger("selectedchanged",null))},this.selectedDataItem=function(){var t,e=null;if(!l.isNothing(d)&&!l.isNothing(r))if(d.constructor!==Array)e=r[s[d]]||null;else for(e=[],t=0;t<d.length;t++)e.push(r[s[d[t]]]);return e},this.selectedDataItemById=function(t){return r[s[t]]},this.updateSingleItem=function(t){var e=[];e.push(Z(p,t)),l.ControlElement.find("#"+l.Id+"Row"+t[m])[0].innerHTML=e.join("")},this.markItemAsDisabled=function(t){l.ControlElement.find("#"+l.Id+"Row"+t[m]).addClass("sumo-data-row-deleted")},this.markItemAsEnabled=function(t){l.ControlElement.find("#"+l.Id+"Row"+t[m]).removeClass("sumo-data-row-deleted")},this.resize=function(){z()},this.setUpdated=function(t){l.isNothing(E)||(t?E.show():E.hide()),z()},this.isUpdateVisible=function(){var t=!1;return t=E.is(":visible")?!0:t},this.sortExpression=function(t,e,i){if(l.isNothing(t))return x(B.ColumnName,B.SortDirection);B.ColumnName=t.Columns[0].ColumnName,B.SortDirection=t.Columns[0].Direction.toLowerCase(),l.trigger("sort",x(B.ColumnName,B.SortDirection))},this.setDataSource=function(t){r=t,c=!0,this.isNothing(r)||(l.isNothing(B.ColumnName)&&!l.isNothing(S)&&l.isNothing(B.ColumnName)&&(B.ColumnName=S,B.SortDirection=j||"ascending",l.trigger("sort",x(l.Id+S,B.SortDirection))),P()),veritracks.localization.localize("#"+l.Id)},this.getDataSource=function(){return r},this.show=function(){c&&P(),sumo.controls.CardView.prototype.show.call(this)},this.scrollTop=function(t){var e=0;y&&(y.scrollTop(e),l.isNothing($("#"+l.Id+"Row"+t).offset())||(e=(e+=$("#"+l.Id+"Row"+t).offset().top)-y.offset().top),y.scrollTop(e))},this.setLoadingState=function(t){o=t},this.scrollToBottom=function(){y&&0<y.length&&(o=!0,y.scrollTop(y[0].scrollHeight),setTimeout(function(){o=!1},300))},this.getScrollPosition=function(){return y&&0<y.length?y.scrollTop():0},this.setScrollPosition=function(t){y&&0<y.length&&(o=!0,y.scrollTop(t),setTimeout(function(){o=!1},300))},this.dispose=function(){$(window).unbind("resize",X),l.isNothing(k)||k.unbind("click",G),l.isNothing(y)||y.off("scroll",R),i&&clearTimeout(i),l=k=y=w=C=n=m=r=s=u=d=null,sumo.controls.CardView.prototype.dispose.call(this)},this.render=function(){if(!h){if("uri"===N)return this.bind("initialized",K,null),$.get(v,L),0;p=v,h=!0}c&&!this.isNothing(r)&&P(),this.isNothing(n)||this.ControlElement.addClass(n),$(window).resize(X),veritracks.localization.localize("#"+l.Id),veritracks.localization.localizeTitle("#"+l.Id),this.trigger("render")},this.render()},sumo.controls.CardView.prototype=new sumo.controls.ControlBase,sumo.controls.CardView.prototype.constructor=sumo.controls.CardView,sumo.controls.CardView.prototype.baseClass=sumo.controls.ControlBase; 34if(isNullOrUndefined(sumo))throw"LiveTileControl.js requies the sumo namespace defined in SumoClass.js";if(isNullOrUndefined(sumo.controls))throw"LiveTileControl.js requies the sumo.controls namespace defined in ControlBase.js";sumo.controls.LiveTileControl=function(t,i,e){"use strict";var l=null,r="",h=!1,s=!0,o=['<table class="LiveTileControl" id="##id##" border="0" cellpadding="0" cellspacing="0">'," <tr>",' <td class="LiveTileControlIcon" id="##id##Icon"></td>',' <td class="LiveTileControlData" id="##id##Data"></td>'," </tr>","<tr>",' <td colspan="2" class="LiveTileControlTitle" id="##id##Title"></td>',"</tr>","</table>"];if(this.isNothing(e))throw this.className()+": invalid call to constructor. no params passed to control id: "+this.Id;if(sumo.controls.LiveTileControl.prototype.baseClass.call(this,t,i,o.join(""),e),this.Title="",this.IconUri="",this.Destination="",this.NavigationType="hash",this.RenderDirection="",this.IsMultipleActions=!1,this.Cache=null,this.StateManager=null,this.Formatter=null,this.CountMethod=null,this.ProcRequestMethod=null,this.isNothing(e.Cache))throw this.className()+": cache is required";if(this.Cache=e.Cache,this.isNothing(e.StateManager))throw this.className()+": state manager is required";
34function n(t){var i=$(this).data("control");"hash"===i.NavigationType?i.StateManager.ChangeHash(i.Destination):window.location=i.Destination,t.stopPropagation()}function a(t){if(h&&!t.isNothing(l)){var i,e,s=function(){var t,i,e,s=[],o=[],n=0,a=0;if(!isNullOrUndefined(l)){for(t in l)l.hasOwnProperty(t)&&s.push(JSON.parse(JSON.stringify(l[t])));if("InventoryTile"!==r)for(n=0;n<ObjectLength(s);n++){for(i=parseInt(s[n].Value),a=1;a<ObjectLength(s);a++)n!==a&&s[n].Name==s[a].Name&&(i+=parseInt(s[a].Value),s.splice(a,1),--a,s[n].Value=i);(h=new Tile).OrganizationId=s[n].OrganizationId,h.UserId=s[n].UserId,h.Name=s[n].Name,h.Value=s[n].Value,h.NavigationHash=s[n].NavigationHash,o.push(h)}else for(n=0;n<ObjectLength(s);n++){for(i=parseInt(s[n].Value),e=parseInt(s[n].Value2),a=1;a<ObjectLength(s);a++)n!==a&&s[n].Name==s[a].Name&&(i+=parseInt(s[a].Value),0<parseInt(s[a].Value2)&&(e+=parseInt(s[a].Value2)),s.splice(a,1),--a);var h;s[n].Value=0<e?(i/e*100).toFixed(2):i,(h=new Tile).OrganizationId=s[n].OrganizationId,h.UserId=s[n].UserId,h.Name=s[n].Name,h.Value=s[n].Value,h.NavigationHash=s[n].NavigationHash,o.push(s[n])}}return o}(),o=[],n="",a=$("#"+t.Id+"Data");if(t.isNothing(t.Formatter)){if(!t.isNothing(s))if(1<count(s)){for(i in $("#"+t.Id).addClass("LiveTileAdvanced"),s)s.hasOwnProperty(i)&&(e=s[i],o.push('<div class="LiveTileRow" title="'),o.push(e.Name),o.push('">'),""!==s[i].Name&&(o.push(localizeDataItem("",e.Name)),n=" "),""!==s[i].Value&&(o.push(n),o.push(e.Value)),t.isNothing(e.NavigationHash)||""===e.NavigationHash||o.push("..."),o.push("</div>"));a.html(o.join(""))}else for(i in $("#"+t.Id).addClass("LiveTileBasic"),a.html(""),s)if(s.hasOwnProperty(i)&&!t.isNothing(s[i])){e=s[i],o.push('<span title="'),o.push(localizeDataItem("",e.Name)),o.push('">'),o.push(e.Value),o.push("</span>"),a.html(o.join("")),a.css("font-size","20pt");break}}else a.html(t.Formatter(s)),a.css("font-size","20pt");h=!1,t.trigger("databind")}}function u(t,i,e){i=i.Data;isNullOrUndefined(e.CountMethod)||(i=e.CountMethod()),e.setDataSource(i)}this.StateManager=e.StateManager,this.isNothing(e.Title)||(this.Title=e.Title),this.isNothing(e.dataSourceName)||(r=e.dataSourceName),this.isNothing(e.IconUri)||(this.IconUri=e.IconUri),this.isNothing(e.Destination)||(this.Destination=e.Destination),this.isNothing(e.NavigationType)||(this.NavigationType=e.NavigationType),this.isNothing(e.RenderDirection)||(this.RenderDirection=e.RenderDirection),this.isNothing(e.IsMultipleActions)||(this.IsMultipleActions=e.IsMultipleActions),this.isNothing(e.Formatter)||(this.Formatter=e.Formatter),this.isNothing(e.CountMethod)||(this.CountMethod=e.CountMethod),this.isNothing(e.ProcRequestMethod)||(this.ProcRequestMethod=e.ProcRequestMethod),this.show=function(){s||(s=!0,h&&a(this),$("#"+this.Id).show())},this.hide=function(){s&&(s=!1,$("#"+this.Id).hide())},this.render=function(){this.ControlElement.find("#"+this.Id+"Title").html(this.Title),this.ControlElement.click(n),this.ControlElement.find("#"+this.Id+"Icon").css("background-image","url("+this.IconUri+")"),veritracks.localization.localize("#"+this.Id),this.trigger("render")},this.setDataSource=function(t){l=t,h=!0,s&&!this.isNothing(l)&&a(this)},this.dispose=function(){this.Cache.unbind(r+"updated",u),this.ControlElement.unbind("click",n),o=l=null,sumo.controls.LiveTileControl.prototype.dispose.call(this)},this.Cache.bind(r+"updated",u,this),this.render(),l=this.Cache.GetItem(r),this.isNothing(l)||(isNullOrUndefined(this.CountMethod)?this.setDataSource(l.Data):this.setDataSource(this.CountMethod())),this.ProcRequestMethod&&this.ProcRequestMethod(function(t,i){l=i,h=!0,s&&l&&a(t)},null,this)},sumo.controls.LiveTileControl.prototype=new sumo.controls.ControlBase,sumo.controls.LiveTileControl.prototype.constructor=sumo.controls.LiveTileControl,sumo.controls.LiveTileControl.prototype.baseClass=sumo.controls.ControlBase; 35if(isNullOrUndefined(sumo))throw"PopupControl.js requires the sumo namespace defined in SumoClass.js";if(isNullOrUndefined(sumo.controls))throw"PopupControl.js requires the sumo.controls namespace defined in ControlBase.js";
35sumo.controls.PopupControl=function(t,o,i){var s,e=null,a=this,n=null,r=!1;if(this.isNothing(i.DataSource))throw this.className()+": DataSource is required";if(this.mDataSource=i.DataSource,this.isNothing(i.CardTemplate))throw this.className()+": CardTemplate is required";if(this.mCardTemplate=i.CardTemplate,this.isNothing(i.Html))throw this.className()+": Html is required";function u(t,o,i){t.unbind("initialized",u),t.render()}function l(t,o,i){mTemplateHtml=t,r=!0,isNullOrUndefined(a)||a.trigger("initialized",null)}function p(){var t,o=[],i=null,s=0;for(i in mViewIndex=[],mDataIndex={},a.mDataSource)if(a.mDataSource.hasOwnProperty(i)){if(t=a.mDataSource[i],a.isNothing(t))throw a.className()+".Id: "+a.Id+". Error binding data. Item with hash index of "+i.toString()+" does not exist.";o.push('<div class="sumo-data-row" id="'),o.push(a.Id),o.push("Row"),null!==n?(mViewIndex.push(t[n]),mDataIndex[t[n]]=i,o.push(t[n])):(mViewIndex.push(i),mDataIndex[i]=i,o.push(i)),o.push('" itemkey="'),o.push(s.toString()),o.push('">'),o.push(function(t,o){var i,s,e,n,r=t;for(i in o)if(o.hasOwnProperty(i))for(s=o[i],e="",a.isNothing(s)||(e=s.toString()),n="##"+i+"##";-1!==r.indexOf(n);)r=r.replace(n,e);return r}(mTemplateHtml,t)),o.push("</div>"),++s}return o.join("")}function h(){!r||a.isNothing(a.mDataSource)||$("#"+a.ParentId).qtip({content:{text:p()},position:{my:a.mPopupPosition.my,at:a.mPopupPosition.at,target:$("#"+a.ParentId)},style:{classes:a.mPopupStyle},events:{show:function(){veritracks.localization.localize(".qtip-content")}},show:{modal:{on:!0,effect:function(t){$(this).fadeTo(90,t?.4:0,function(){t||$(this).hide()})}}}})}this.mHtml=i.Html,this.isNothing(i.popupStyle)?this.mPopupStyle="qtip-tipsy qtip-shadow":this.mPopupStyle=i.popupStyle,this.isNothing(i.popupPosition)?this.mPopupPosition={my:"top left",at:"bottom right"}:this.mPopupPosition=i.popupPosition,sumo.controls.PopupControl.prototype.baseClass.call(this,t,o,this.mHtml,i),this.setDataSource=function(t){e=t,mIsDirty=!0,this.isNothing(e)||h()},this.getDataSource=function(){return e},this.render=function(){if(!r)return this.bind("initialized",u,null),$.get(a.mCardTemplate,l),0;this.isNothing(e)&&h(),this.isNothing(s)||this.ControlElement.addClass(s),this.trigger("render")},this.render()},sumo.controls.PopupControl.prototype=new sumo.controls.ControlBase,sumo.controls.PopupControl.prototype.constructor=sumo.controls.PopupControl,sumo.controls.PopupControl.prototype.baseClass=sumo.controls.ControlBase; 36function SumoControlFactory(t,o,e,i){"use strict";if(SumoControlFactory.prototype.baseClass.call(this),this.isNothing($))throw this.className()+" requires jquery-1.6.2.*.js";var s,l,a=0,n=!1,r=null;function h(t){0===--a&&(n=!0,t.trigger("templateloaded",t.ControlName))}this.Controls=[],this.RootPath=t,this.ControlName=o,this.HtmlFileName=this.ControlName+".htm",this.ScriptFileName=this.ControlName+".js",this.StyleFileName=this.ControlName+".css",this.isNothing(e)||this.bind("templateloaded",e,null),this.createControl=function(t,o,e){if(!n)throw this.className()+": "+this.ControlName+" is not initialized.";if(0<$("#"+t).length)throw this.className()+": element already exists in dom: "+t;e=new window[this.ControlName](t,o,r,e);if(this.isNothing(e))throw this.className()+": instantiateControl failed for: "+this.ControlName+", id: "+t;return this.Controls[t]=e,this.isNothing(o)||e.render(),e},t=this,n||(a=0,(l=t).isNothing(window[l.ControlName])&&(++a,$.getScript(l.RootPath+l.ControlName+"/"+l.ScriptFileName,function(t,o){h(l)})),i?(++a,r=i,h(t)):(o=(o=t).RootPath+t.ControlName+"/"+t.StyleFileName,$("<link/>",{rel:"stylesheet",type:"text/css",href:o}).appendTo("head"),s=t,++a,$.get(s.RootPath+s.ControlName+"/"+s.HtmlFileName,function(t,o,e){r=t,h(s)})))}SumoControlFactory.prototype=new sumo.Class,(SumoControlFactory.prototype.constructor=SumoControlFactory).prototype.baseClass=sumo.Class; 37function NotificationTile(e,t,i,n,l,s){this.Title=e,this.Body=t,this.ImageUri=i,this.NavigateUri=n,this.NavigateTitle=l,this.IsDismissable=s,this.Id="u"+this.Title.split(" ").join("")+"NotificationTile",this.RenderContents=function(e){var t,i=$("<div/>",{id:this.Id,"class":"NotificationTile "+this.Title.split(" ").join("")+"Tile"}),n=$("<table/>",{}),l=$("<tr/>",{}),s=$("<tr/>",{}),o=$("<tr/>",{}),a=$("<td/>",{"class":"ImageCell",rowspan:3}),d=$("<td/>",{"class":"TitleCell"}),r=$("<td/>",{"class":"DismissCell",rowspan:3}),u=$("<td/>",{"class":"BodyCell"}),c=$("<td/>",{"class":"LinkCell"});null!=this.ImageUri&&""!=this.ImageUri&&$("<img/>",{src:this.ImageUri,alt:this.Title,title:this.Title}).appendTo(a),null!=this.Title&&""!=this.Title&&$("<span/>",{text:this.Title}).appendTo(d),this.IsDismissable&&$("<span/>",{onclick:"CloseNavigation('"+this.Id+"')",text:"x"}
37).appendTo(r),null!=this.Body&&""!=this.Body&&$("<div/>",{text:this.Body}).appendTo(u),null!=this.NavigateUri&&""!=this.NavigateUri&&(t="click here",null!=this.NavigateTitle&&""!=this.NavigateTitle&&(t=this.NavigateTitle),$("<a/>",{href:this.NavigateUri,text:t}).appendTo(c)),$(a).appendTo(l),$(d).appendTo(l),$(r).appendTo(l),$(l).appendTo(n),$(u).appendTo(s),$(s).appendTo(n),$(c).appendTo(o),$(o).appendTo(n),$(n).appendTo(i),$(i).appendTo(e)}}function SumoListView(a,e,t,n,l,L){this.Id=a,this.BaseElementId=e,this.Columns=t,this.DataSource=n,this.IsSelectable=l,this.Settings=L;var x,U,P=!1,E=n,F=null,H=null,D=null,A=[];function B(e,t){return null!==H?e[H]:e.Id||t}function k(e,t,n){var l;if(null!=e)for(l=$("<tr/>",{id:a+"Row"+t,"class":a+"DataRow Clickable"}),i=0;i<n.length;i++){var s=n[i],o=e[s.DataField],o=("undefined"!=typeof s.Formatter&&null!==s.Formatter&&(o=s.Formatter(o,s.Id)),$("<td/>",{id:a+s.Id+"Cell"+t,"class":a+s.Id+"Cell "+a+s.Id,html:o}));"undefined"!=typeof s.Hidden&&s.Hidden&&o.hide(),$(o).appendTo(l)}return l}function G(e,t){window[a+"_OnSelectChange"]()}function z(e,t){E=isNullOrUndefined(t)?e.DataSource:query(e.DataSource,t)}this.RenderContents=function(e,t){if(0===$("#"+this.Id).length||null==e||e){var n=this.Id,e=this.BaseElementId,l=this.Columns,s=E,o=this.IsSelectable,a=this,d="",r=!1,u=$("<div/>",{});if(U=$("<div/>",{}),"undefined"!=typeof a.Settings&&null!==a.Settings)if(a.Settings.hasOwnProperty("Title")&&(d=L.Title,r=!0),a.Settings.hasOwnProperty("DataFilter")&&(D=a.Settings.DataFilter),a.Settings.hasOwnProperty("Identifier")&&(H=a.Settings.Identifier),a.Settings.hasOwnProperty("ColumnsFilterable")&&a.Settings.ColumnsFilterable)if(r=!0,u=$("<div/>",{"class":"SumoListViewColumnFilter"}),$("<div/>",{html:"Columns","class":"SumoListViewColumnFilterText Clickable"}).click(function(){(P=!P)?U.show("fast"):U.hide("fast")}).appendTo(u),U=$("<div/>",{"class":"SumoListViewColumnFilterContent",style:"display: none;"}),void 0!==l&&null!=l&&0<l.length)for(f=0;f<l.length;f++){var c=l[f],h="SumoListViewFilterHidden",h=("undefined"!=typeof c.IsVisible&&null!==c.IsVisible||(c.IsVisible=!0),c.IsVisible&&(h="SumoListViewFilterVisible"),$("<div/>",{html:c.Title,"class":"Clickable "+h,ColumnId:f}));h.click(function(e){var t=a;e=e.target.getAttribute("ColumnId"),(lColumn=t.Columns[e]).IsVisible=!lColumn.IsVisible,t=$("."+t.Id+lColumn.Id),lColumn.IsVisible?(t.show(),A[e].addClass("SumoListViewFilterVisible").removeClass("SumoListViewFilterHidden")):(t.hide(),A[e].addClass("SumoListViewFilterHidden").removeClass("SumoListViewFilterVisible"))}),h.appendTo(U),A[f]=h}F="string"==typeof e?$("#"+e):e;var f,e=$("<div/>",{id:n+"Component"}),m=$("<div/>",{"class":"SumoListViewHeading"}),d=$("<span/>",{html:d,"class":"SumoListViewTitle"}),p=$("<table/>",{id:n,"class":"SumoListView",cellpadding:"0px",cellspacing:"0px"}),g=$("<thead/>",{}),I=$("<tr/>",{"class":"SumoListViewHeader"});if(1===F.length){if(F.html(""),void 0!==l&&null!=l&&0<l.length){for(f=0;f<l.length;f++){var c=l[f],w=$("<td/>",{html:c.Title,"class":n+c.Id,id:n+c.Id+"Header"});"undefined"!=typeof c.Hidden&&c.Hidden&&w.hide(),$(w).appendTo(I)}if(x=$("<tbody/>",{}),void 0!==s&&null!=s)for(var v in E=null!==D?query(s,D):s){var S=s[v],C=-1;null!=S&&(C=B(S,v),$(k(S,C,l)).appendTo(x))}}r&&(U.appendTo(u),u.appendTo(m),d.appendTo(m),m.appendTo(e)),I.appendTo(g),g.appendTo(p),void 0!==o&&o&&x.selectable({stop:G}),x.appendTo(p),p.appendTo(e),e.appendTo(F)}}else{var T=this,r=t;if((isNullOrUndefined(r)||r)&&z(T,null),void 0!==E&&null!=E)for(var y in $("."+T.Id+"DataRow").attr("ToRemove","true"),E)if(E.hasOwnProperty(y)){var b=E[y];if(null!=b){var N=B(b,y),O=$("#"+T.Id+"Row"+N);if(1===O.length){if(O.removeAttr("ToRemove"),null!=b)for(i=0;i<T.Columns.length;i++){var R=T.Columns[i],V=b[R.DataField];"undefined"!=typeof R.Formatter&&null!==R.Formatter&&(V=R.Formatter(V)),$("#"+T.Id+R.Id+"Cell"+N).html(V)}}else $(k(b,N,T.Columns)).appendTo(x)}else $("#"+T.Id+"Row"+y).remove()}$("[ToRemove]").remove()}},this.SetIsSelectable=function(e){e?$(x).selectable({stop:G}).click(testxx):$(x).selectable("disable")},this.HideColumn=function(e){$("#"+this.Id+e+"Header").hide(),$("#"+this.Id+e+"Cell").hide();for(var t=0,t=0;t<this.Columns.length;t++)if(this.Columns[t].Id===e){this.Columns[t].Hidden=!0;break}},this.ShowColumn=function(e){$("#"+this.Id+e+"Header").show(),$("#"+this.Id+e+"Cell").show();for(var t=0,t=0;t<this.Columns.length;t++)if(this.Columns[t].Id===e){this.Columns[t].Hidden=!1;break}},this.UnselectRowById=function(e){$("#"+this.Id+"Row"+e).removeClass("ui-selected")},this.SelectRowById=function(e){$("#"+this.Id+"Row"+e).addClass("ui-selected");e=document.getElementById(this.Id+"Row"+e);isNullOrUndefined(e)||e.scrollIntoView(!1)},this.SelectRowByIndex=function(e){e=$("."+this.Id+"DataRow")[e];null!=e&&$(e).addClass("ui-selected")},this.RemoveRowById=function(e){$("#"+this.Id+"Row"+e).remove()},this.Filter=function(e){var t=new SumoPredicateBuilder;null!==e&&t.AddConditional(e,mLogicalOperatorEnum.And()),null!==D&&t.AddConditional(D,mLogicalOperatorEnum.And()),z(this,t.RootExpression),this.RenderContents(!1,!1)}}function SumoListView2(d,e,t,n,l,U){this.Id=d,this.BaseElementId=e,this.Columns=t,this.DataSource=n,this.IsSelectable=l,this.Settings=U;var P,E,F=!1,H=n,D=null,A=null,B=null,k=[];function G(e,t){return null!==A?e[A]:e.Id||t}function z(e,t,n){var l=-1,s=[];if(null!=e){for(s[++l]='<tr id="',s[++l]=d+"Row"+t,s[++l]='" class="',s[++l]=d+"DataRow Clickable",s[++l]='">',i=0;i<n.length;i++){var o=n[i],a=e[o.DataField];"undefined"!=typeof o.Formatter&&null!==o.Formatter&&(a=o.Formatter(a)),s[++l]='<td id="',s[++l]=d+o.Id+"Cell"+t,s[++l]='" class="',s[++l]=d+o.Id+"Cell "+d+o.Id,"undefined"!=typeof o.Hidden&&o.Hidden&&(s[++l]='" style="display:none;'),s[++l]='">',s[++l]=a,s[++l]="</td>"}s[++l]="</tr>"}return s.join("")}function _(e,t){window[d+"_OnSelectChange"]()}function M(e,t){H=isNullOrUndefined(t)?e.DataSource:query(e.DataSource,t)}this.RenderContents=function(e,t){if(0===$("#"+this.Id).length||null==e||e){var n=this.Id,e=this.BaseElementId,l=this.Columns,s=H,o=this.IsSelectable,a=this,d="",r=!1,u=$("<div/>",{});if(E=$("<div/>",{}),"undefined"!=typeof a.Settings&&null!==a.Settings)if(a.Settings.hasOwnProperty("Title")&&(d=U.Title,r=!0),a.Settings.hasOwnProperty("DataFilter")&&(B=a.Settings.DataFilter),a.Settings.hasOwnProperty("Identifier")&&(A=a.Setting.Identifier),a.Settings.hasOwnProperty("ColumnsFilterable")&&a.Settings.ColumnsFilterable)if(r=!0,u=$("<div/>",{"class":"SumoListViewColumnFilter"}),$("<div/>",{html:"Columns","class":"SumoListViewColumnFilterText Clickable"}).click(function(){(F=!F)?E.show("fast"):E.hide("fast")}).appendTo(u),E=$("<div/>",{"class":"SumoListViewColumnFilterContent",style:"display: none;"}),void 0!==l&&null!=l&&0<l.length)for(f=0;f<l.length;f++){var c=l[f],h="SumoListViewFilterHidden",h=("undefined"!=typeof c.IsVisible&&null!==c.IsVisible||(c.IsVisible=!0),c.IsVisible&&(h="SumoListViewFilterVisible"),$("<div/>",{html:c.Title,"class":"Clickable "+h,ColumnId:f}));h.click(function(e){var t=a;e=e.target.getAttribute("ColumnId"),(lColumn=t.Columns[e]).IsVisible=!lColumn.IsVisible,t=$("."+t.Id+lColumn.Id),lColumn.IsVisible?(t.show(),k[e].addClass("SumoListViewFilterVisible").removeClass("SumoListViewFilterHidden")):(t.hide(),k[e].addClass("SumoListViewFilterHidden").removeClass("SumoListViewFilterVisible"))}),h.appendTo(E),k[f]=h}D="string"==typeof e?$("#"+e):e;var f,m,p,g=-1,I=[],e=$("<div/>",{id:n+"Component"}),w=$("<div/>",{"class":"SumoListViewHeading"}),d=$("<span/>",{html:d,"class":"SumoListViewTitle"}),v=$("<table/>",{id:n,"class":"SumoListView",cellpadding:"0px",cellspacing:"0px"}),S=$("<thead/>",{}),C=$("<tr/>",{"class":"SumoListViewHeader"});if(1===D.length){if(D.html(""),void 0!==l&&null!=l&&0<l.length){for(f=0;f<l.length;f++){var c=l[f],T=$("<td/>",{html:c.Title,"class":n+c.Id,id:n+c.Id+"Header"});"undefined"!=typeof c.Hidden&&c.Hidden&&T.hide(),$(T).appendTo(C)}if(P=$("<tbody/>",{}),void 0!==s&&null!=s){for(var y in H=null!==B?query(s,B):s)H.hasOwnProperty(y)&&(m=s[y],p=-1,null!=m)&&(p=G(m,y),I[g++]=z(m,p,l));P.html(I.join(""))}}r&&(E.appendTo(u),u.appendTo(w),d.appendTo(w),w.appendTo(e)),C.appendTo(S),S.appendTo(v),void 0!==o&&o&&P.selectable({stop:_}),P.appendTo(v),v.appendTo(e),e.appendTo(D)}}else{var b=this,r=t;if((isNullOrUndefined(r)||r)&&M(b,null),void 0!==H&&null!=H)for(var N in $("."+b.Id+"DataRow").attr("ToRemove","true"),H)if(H.hasOwnProperty(N)){var O=H[N];if(null!=O){var R=G(O,N),V=$("#"+b.Id+"Row"+R);if(1===V.length){if(V.removeAttr("ToRemove"),null!=O)for(i=0;i<b.Columns.length;i++){var L=b.Columns[i],x=O[L.DataField];"undefined"!=typeof L.Formatter&&null!==L.Formatter&&(x=L.Formatter(x)),$("#"+b.Id+L.Id+"Cell"+R).html(x)}}else $(z(O,R,b.Columns)).appendTo(P)}else $("#"+b.Id+"Row"+N).remove()}$("[ToRemove]").remove()}},this.SetIsSelectable=function(e){e?$(P).selectable({stop:_}).click(testxx):$(P).selectable("disable")},this.HideColumn=function(e){$("#"+this.Id+e+"Header").hide(),$("#"+this.Id+e+"Cell").hide();for(var t=0,t=0;t<this.Columns.length;t++)if(this.Columns[t].Id===e){this.Columns[t].Hidden=!0;break}},this.ShowColumn=function(e){$("#"+this.Id+e+"Header").show(),$("#"+this.Id+e+"Cell").show();for(var t=0,t=0;t<this.Columns.length;t++)if(this.Columns[t].Id===e){this.Columns[t].Hidden=!1;break}},this.UnselectRowById=function(e){$("#"+this.Id+"Row"+e).removeClass("ui-selected")},this.SelectRowById=function(e){$("#"+this.Id+"Row"+e).addClass("ui-selected");e=document.getElementById(this.Id+"Row"+e);isNullOrUndefined(e)||e.scrollIntoView(!1)},this.SelectRowByIndex=function(e){e=$("."+this.Id+"DataRow")[e];null!=e&&$(e).addClass("ui-selected")},this.RemoveRowById=function(e){$("#"+this.Id+"Row"+e).remove()},this.Filter=function(e){var t=new SumoPredicateBuilder;null!==e&&t.AddConditional(e,mLogicalOperatorEnum.And()),null!==B&&t.AddConditional(B,mLogicalOperatorEnum.And()),M(this,t.RootExpression),this.RenderContents(!1,!1)}}function SumoPagination(e,t,i,n){this.ItemsPerPage=t,this.OnChange=i,this.TargetElement=n;var s,o=0,l=e,a=!1;function d(e){(s=Math.ceil(l/e.ItemsPerPage))<o&&(o=0),a=!0}function r(e,t){o!==t&&t<=s&&0<=t&&(o=t,isNullOrUndefined(e.OnChange)||e.OnChange(e.TargetElement,o+1))}
37function u(t){var e=$("<div/>",{}),i=$("<span/>",{html:"Prev","class":"Clickable SumoPaginationPrev",title:"Previous"}).click(function(e){r(t,o-1)}),n=$("<span/>",{html:"Next","class":"Clickable SumoPaginationNext",title:"Next"}).click(function(e){r(t,o+1)}),l=$("<span/>",{html:(0<s?o+1:0)+localizeText("cPagerOf")+s,"class":"Clickable SumoPaginationPage",title:"Next"}).click(function(e){r(t,o+1)});return 0===o&&i.attr("style","visibility:hidden;"),o!==s-1&&0!==s||n.attr("style","visibility:hidden;"),l.appendTo(e),n.appendTo(e),i.appendTo(e),e}this.SetItemCount=function(e){l=e,d(this)},this.RenderContents=function(){return a||d(this),u(this)}}function SumoCardView(e,t,i,n,l){this.Id=e,this.BaseElementId=t,this.Columns=i,this.DataSource=n,this.Settings=l;var s=!1,o=!0,a=null,d=null,f=n,m=25,p=null,g=[];function I(e){var t,i=0;for(t in e)e.hasOwnProperty(t)&&i++;return i}function w(e,t){var i;o&&1===(i=$("#"+e+"Row"+t)).length&&($("#"+e+" .SumoCardViewSelected").removeClass("SumoCardViewSelected"),i.addClass("SumoCardViewSelected"),null!==a)&&a(t)}function v(i,e){var t,n,l=$("<tr/>",{id:i.Id+"Row"+e.Id,"class":"Clickable "+i.Id+"Row SumoDataGridDataRow"}).attr("RowId",e.Id),s=i.Columns;for(n in lInnerHtml="",s)s.hasOwnProperty(n)&&("undefined"!=typeof(t=i.Columns[n]).Generator&&null!==t.Generator&&(lInnerHtml=t.Generator(e)),$("<td/>",{html:lInnerHtml,"class":i.Id+t.Id+"Cell",id:i.Id+t.Id+"Cell"+e.Id}).attr("RowId",e.Id).appendTo(l));return l.click(function(e){var t;t=i,e=(e=e).target.getAttribute("RowId"),w(t.Id,e)}),l}function S(e,t){if(null!=t){g=[];var i,n,l,s=$("<table/>",{id:e.Id,"class":"SumoDataGrid",cellspacing:"0px",cellpadding:"0px"}),o=(t-1)*m,a=o+m,d=0,r=(t=e,c=$("<tr/>",{id:t.Id+"PaginationRow","class":"SumoDataGridPaginationRow"}),h=$("<td/>",{id:t.Id+"PaginationCell",colspan:t.Columns.length}),null===p&&(r=I(f),p=new SumoPagination(r,m,S,t)),p.RenderContents().appendTo(h),h.appendTo(c),c),t=$("#"+e.BaseElementId);for(i in r.appendTo(s),f)f.hasOwnProperty(i)&&(o<=d&&d<a&&(l=v(e,n=f[i]),g.pu
37sh(n),l.appendTo(s)),d++);h=e,c=s,(u=$("#"+h.BaseElementId)).html(""),c.appendTo(u),void 0!==(u=g[0])&&w(h.Id,u.Id),0===d&&($($("<span/>",{"class":"EmptyDataSet",html:localizeText("cNoMatchingRecords")})).appendTo(t),r.remove())}var u,r,c,h}this.RenderContents=function(e){var t;s||("undefined"!=typeof(t=this).Settings&&null!==t.Settings&&("undefined"!=typeof t.Settings.ItemsPerPage&&null!==t.Settings.ItemsPerPage&&(m=t.Settings.ItemsPerPage),"undefined"!=typeof t.Settings.OnItemSelect&&null!==t.Settings.OnItemSelect&&(a=t.Settings.OnItemSelect),isNullOrUndefined(t.Settings.Expression)||(d=t.Settings.Expression,f=query(f,d)),isNullOrUndefined(t.Settings.IsSelectable)||(o=t.Settings.IsSelectable)),s=!0),S(this,e)},this.SelectItemById=function(e){w(this.Id,e)},this.SelectItemByIndex=function(e){e=g[e];void 0!==e&&w(this.Id,e.Id)},this.Filter=function(e){var t;null!==(d=e)?((t=new SumoPredicateBuilder).AddConditional(d,mLogicalOperatorEnum.And()),t.AddConditional(e,mLogicalOperatorEnum.And())):f=query(this.DataSource,e),t=this,$("#"+t.Id+"PaginationCell"),t=I(f),p.SetItemCount(t),this.RenderContents(1)}}function RequestManager(){"use strict";var e=0;this.getRequestId=function(){return e++}}function SumoActivityNotification(e,t,i,n){"use strict";this.Id=e,this.BaseElementId=t,this.WaitTime=i;var l=this,s=!1,o=!1,a=null,d=null,r=[],u=[],c=0,h=0,f={};function m(){0===h&&a.fadeOut(1500,"linear",function(){d.html("")})}function p(e){var t,i=r[e];isNullOrUndefined(i)||(i.remove(),t=u[i=e],isNullOrUndefined(t)||(window.clearTimeout(t),u[i]=null),r[e]=null,0===--h&&window.setTimeout(m,750))}function g(){var e,t;for(t in r)r.hasOwnProperty(t)&&(e=r[t],isNullOrUndefined(e)||p(t))}this.render=function(){var e;s||(isNullOrUndefined(l.WaitTime)&&(l.WaitTime=5e3),isNullOrUndefined(n)||(isNullOrUndefined(n.allowClose)?f.allowClose=!1:f.allowClose=n.allowClose,isNullOrUndefined(n.allowLocalization)?f.allowLocalization=!0:f.allowLocalization=n.allowLocalization),a=$("<div/>",{id:l.Id,"class":"SumoActivityNotification",style:"display: none;"}),f.allowClose&&((e=$("<div/>",{id:l.Id+"Close","class":"SumoActivityNotificationClose"}
37)).click(g),a.append(e)),d=$("<div/>",{id:l.Id+"Content","class":"SumoActivityNotificationContent"}),a.append(d),s=!0),o||(e=this,e=$("#"+e.BaseElementId),a.appendTo(e),o=!0)},this.addNotification=function(e,t,i){var n;if(isNullOrUndefined(i)||i)return i=$("<div/>",{html:e,"class":"NotificationItem"}),e=++c,r[e]=i,++h,n=e,t=t,!isNullOrUndefined(t)&&t||(u[n]=window.setTimeout(function(){p(n)},l.WaitTime)),t=i,a.is(":visible")||a.fadeIn(1500,"linear"),t.appendTo(d),t[0].scrollIntoView(!1),t.is(":visible")||$(window).resize(),f.allowLocalization&&veritracks.localization.localize(t),e},this.removeNotification=function(e){p(e)},this.clearNotifications=function(){g()},this.dispose=function(){d.remove(),d=null,a.remove(),l=f=u=r=a=null}}function SumoDualListAssignment(t,e,n,l,s,o,a,d,r,u,c){var h,f,m,p,g=new SumoPredicateBuilder,I=$("<table/>",{id:t,width:"100%"}),w=$("<tr/>",{}),d=$("<td/>",{html:d,width:"45%"}),v=$("<td/>",{}),r=$("<td/>",{html:r,width:"45%"}),S=$("<tr/>",{}),C=$("<td/>",{html:"[LEFT] Grid",id:t+"LeftGridCell",width:"45%","class":"Scrollable",style:"vertical-align: top; max-height: 200px; height: 150px;"}),T=$("<td/>",{}),y=$("<td/>",{html:"[RIGHT] Grid",id:t+"RightGridCell",width:"45%","class":"Scrollable PopupList",style:"vertical-align: top; max-height: 200px;"}),b=GenerateSmallButton(">>","","").click(function(){for(lKey in m){var e,t;
37m.hasOwnProperty(lKey)&&(e=m[lKey],t=h[e],f[e]=t,h[e]=null)}mLeftListView.RenderContents(!1),mRightListView.RenderContents(!1)}),N=GenerateSmallButton("<<","","").click(function(){for(lKey in p){var e,t;p.hasOwnProperty(lKey)&&(e=p[lKey],t=f[e],h[e]=t,f[e]=null)}mLeftListView.RenderContents(!1),mRightListView.RenderContents(!1)});f=null!=s?query(n,s):n,g.AddConditional(l),h=query(e,g.RootExpression),(mLeftListView=new SumoListView(t+"LeftListView",C,u,h,!0,null)).RenderContents(!0),(mRightListView=new SumoListView(t+"RightListView",y,c,f,!0,{Identifier:a,DataFilter:s})).RenderContents(!0),b.appendTo(T),N.appendTo(T),d.appendTo(w),v.appendTo(w),r.appendTo(w),C.appendTo(S),T.appendTo(S),y.appendTo(S),w.appendTo(I),S.appendTo(I),window[t+"LeftListView_OnSelectChange"]=function(){var e=$("#"+t+"LeftListView tr.ui-selected");for(m=[],i=0;i<e.length;i++)lRowId=(lRowId=e[i].id).substring((t+"LeftListViewRow").length,lRowId.length),m.push(lRowId)},window[t+"RightListView_OnSelectChange"]=function(){var e=$("#"+t+"RightListView tr.ui-selected");for(p=[],i=0;i<e.length;i++)lRowId=(lRowId=e[i].id).substring((t+"RightListViewRow").length,lRowId.length),p.push(lRowId)},this.ToElement=function(){return I},this.LeftData=function(){return h},this.RightData=function(){return f}}function UniversalSearch(e,t,i){var n=this,l=null,g=null,I=e,s=localizeText("cFindAnything"),w=t,o=new TimerManager(500),a=new TimerManager(500),d=i,v=new SumoPredicateBuilder;function r(e){var t,i,n,l,s=new Array,o=null;for(t in I)if(I.hasOwnProperty(t)){for(l in v.Clear(),(n=I[t]).SearchFields)n.SearchFields.hasOwnProperty(l)&&v.AddNewExpressionConditional(n.SearchFields[l],e,!1,mRelationalOperatorEnum.Like(),mLogicalOperatorEnum.Or());if(isNullOrUndefined(n.Expression)||v.AddConditional(n.Expression,mLogicalOperatorEnum.And()),o=query(n.DataSource,v.RootExpression),0<count(o))for(i in o)if(o.hasOwnProperty(i)&&(s.push({Hash:n.Hash,Title:n.Title,Class:n.Class,Class2:n.Class2,ValueField:n.ValueField,Generator:n.Generator,DataItem:o[i]}),s.length>=w))break;if(s.length>=w)break}if(g.html(""),0<s.length){var a,d,r,u,c,h,f,m=s,p=e;for(a in m)if(m.hasOwnProperty(a)){if(d=m[a],r=isNullOrUndefined(d.Generator)?isNullOrUndefined(d.ValueField)?"":d.DataItem[d.ValueField]:d.Generator(d.DataItem),f=r.match(new RegExp(p,"gi")),!isNullOrUndefined(f))for(c in u=$.unique(f))u.hasOwnProperty(c)&&(h=u[c],r=r.replace(new RegExp(h,"gi"),'<span class="Q">'+h+"</span>"));(!isNullOrUndefined(d.Class2)&&d.DataItem.InMyOrganization?$("<div/>",{html:r,"class":d.Class2+" Clickable TextLimit"}):$("<div/>",{html:r,"class":d.Class+" Clickable TextLimit"})).click({Hash:d.Hash,Id:d.DataItem.Id,Title:d.Title},S).appendTo(g)}g.show()}}function S(e){n.SelectedId=e.data.Id,n.SelectedHash=e.data.Hash,"Enrollees"===e.data.Title&&(n.SelectedHash=fixHashOffendersVictim(n.SelectedId,n.SelectedHash)),d&&checkAdvancedSearchIsNeeded(e.data.Title,n.SelectedHash,n.SelectedId)||(window.location.hash=n.SelectedHash+"."+n.SelectedId.toString()),c(),u()}function u(){""===l.val()&&l.val(s)}function c(){a.StopTimer(),g.hide(),l.val("")}function h(){c(),u()}this.SelectedId=null,this.SelectedHash=null,isNullOrUndefined(w)&&(w=50),this.RenderContents=function(e){l=$("<input/>",{type:"text",id:"uUniversalSearchText",value:s}).keyup(function(e){var t;""===(t=$.trim(l.val()))||t===s?c():a.SetTimer(function(){r(t)})}).focus(function(e){o.StopTimer(),l.val()===s&&l.val("")}).blur(function(e){g.is(":focus")||o.SetTimer(h)}),g=$("<div/>",{"class":"Scrollable",id:"uUniversalSearchResults"}).focus(function(e){o.StopTimer()}).blur(function(e){l.is(":focus")||o.SetTimer(h)});$("<div/>",{"class":"Scrollable",id:"uUniversalSearchResults"});l.appendTo(e),g.appendTo(e)}}function TimerManager(e){this.Timeout=e;var n=-1,l=null;this.StopTimer=function(e){-1!==n&&(window.clearInterval(n),e)&&!isNullOrUndefined(l)&&l(n),n=-1},this.SetTimer=function(e,t,i){return this.StopTimer(!0),isNullOrUndefined(i)||(l=i),n=window.setTimeout(function(){e(t),l=null},this.Timeout)}}function SumoNotesManager(e,t,i,n){this.Id=e,this.BaseElementId=t,this.NotesList=i,this.Settings=n;var s,o=null,a=null,d="Id",r=-1,u=-1,c=2,h=null,f="",m=":www.veritracks.com";function l(){var e,t=new Note(u,h.val()),i=[];if(0<$.trim(t.Content).length&&$.trim(t.Content).length<=3e3){if(!isNullOrUndefined(a))if("number"==typeof r||"string"==typeof r)t[d]=r,t.__type=f+"Note"+m,a(t);else{for(e in r)r.hasOwnProperty(e)&&((t=new Note(u,h.val()))[d]=r[e],t.__type=f+"Note"+m,i.push(t));a(i)}$("#uAddNoteTextArea").removeClass("ValidateSuccess"),h.val(""),ClosePopup()}else 3e3<$.trim(t.Content).length?mActivityNotification.addNotification(localizeWrapper("cEnrolleeNoteLengthError")):$("#uAddNoteTextArea").addClass("ValidateError")}function p(){$("#uAddNoteTextArea").removeClass("ValidateSuccess").removeClass("ValidateError"),ClosePopup()}function g(){var e=GenerateButtonCommandBar(),t=GenerateButton(localizeWrapper("cEnrolleeSave"),"Save",l),i=GenerateButton(localizeWrapper("cEnrolleeCancel"),"Cancel",p);t.appendTo(e),i.appendTo(e),DisplayPopup(localizeWrapper("cEnrolleeAddNewNote"),h,e,!0)}function I(e){var t=$("<div/>",{}),i=$("<div/>",{text:e.Content||e.MonitoredEventNote});return i.addClass("NoteFormatter"),isNullOrUndefined(e.CreatedDateUTC)||$("<div/>",{text:DisplayShortDateTime(e.CreatedDateUTC)}).appendTo(t),isNullOrUndefined(e.UserId)||""!=e.UserId&&$("<div/>",{text:UserNameFormatter(e.UserId)}).appendTo(t),i.appendTo(t),t}this.RenderContents=function(){e=this,isNullOrUndefined(e.Settings.ClassNameSuffix)||(m=e.Settings.ClassNameSuffix),isNullOrUndefined(e.Settings.ClassName)||(f=e.Settings.ClassName),isNullOrUndefined(e.Settings.OnAdd)||(a=e.Settings.OnAdd),isNullOrUndefined(e.Settings.IdentificationProperty)||(d=e.Settings.IdentificationProperty),isNullOrUndefined(e.Settings.Identifier)||(r=e.Settings.Identifier),isNullOrUndefined(e.Settings.UserId)||(u=e.Settings.UserId),isNullOrUndefined(e.Settings.PermissionId)||(s=e.Settings.PermissionId,s=gUserPermissions[s],isNullOrUndefined(s))||(c=s.Value),h=$("<textarea/>",{id:"uAddNoteTextArea","class":"AddNoteTextArea",width:"490px",onkeyup:"noteManager_OnChange()"});
37var e=$("<div/>",{id:this.Id}),t=$("<div/>",{"class":"ButtonBar"}),i=GenerateButton(localizeWrapper("cEventNewNote"),"Add",g),n=$("<div/>",{id:this.Id+"ListViewHolder"}),l=new SortExpression;2===c&&i.appendTo(t),t.appendTo(e),n.appendTo(e),e.appendTo($("#"+this.BaseElementId).html("")),i=this.NotesList,l.addDescendingColumn("CreatedDateUTC"),i=l.sort(i),this.NotesList=i,o=new SumoCardView(this.Id+"ListView",this.Id+"ListViewHolder",[{Id:"Details",Generator:I}],this.NotesList,{IsSelectable:!1}),$("#"+this.Id+"ListViewHolder").css({"max-height":"800px","min-height":"100px","overflow-y":"auto",border:"1px solid #ddd",padding:"5px"}),veritracks.localization.localize("#"+this.Id),o.RenderContents(1)},this.displayPopup=function(){g()}}var SumoStateManager=function(e){this.Id=e,this.Tab=function(){return l.Tab},this.Settings=function(){return l.Settings},this.Hash=function(){return l},this.IsTabChange=function(){return l.Tab!==n.Tab},this.IsSettingsChange=function(e){return l.Settings[e]!==n.Settings[e]};var t,l={},n={},s=this,i=!1;function o(){var e=window.location.hash;getUserPreferences(10);return""===(e=-1!==e.indexOf(".")?e.substring(1,e.indexOf(".")):e.substring(1,e.length))&&(e="Dashboard",isNullOrUndefined(t)||(2==t&&(e="Analysis"),3==t&&(e="Enrollees"))),e}function a(){var e=window.location.hash,e=-1!==e.indexOf(".")?(e=e.substring(e.indexOf(".")+1,e.length)).split("."):[];return e}function d(){var e={};return e.Tab=o(),e.Settings=a(),$("#uDebugOutput").text(e.Tab+" - "+e.Settings),e}function r(){n=l,l=d();var e="",t="",i=new UserPreference;n.Tab!==l.Tab?(t=s.Id+n.Tab+"_Leave",e=s.Id+l.Tab+"_Init"):n.Settings[0]!==l.Settings[0]?(t=s.Id+n.Tab+"Layout_Leave",e=s.Id+l.Tab+"Layout_Init"):n.Settings[1]!==l.Settings[1]?(t=s.Id+n.Tab+"Primary_Leave",e=s.Id+l.Tab+"Primary_Init"):n.Settings[2]!==l.Settings[2]?(t=s.Id+n.Tab+"Secondary_Leave",e=s.Id+l.Tab+"Secondary_Init"):n.Settings[3]!==l.Settings[3]&&(t=s.Id+n.Tab+"Tertiary_Leave",e=s.Id+l.Tab+"Tertiary_Init"),isNullOrUndefined(n.Tab)||isNullOrUndefined(window[t])||window[t](n,l),isNullOrUndefined(window[e])||window[e](n,l),window[s.Id+"_Init"](),i.ColumnName="PageState",i.Id=gUserDetails.UserId,i.UserPreferenceType=10,i.Value=window.location.hash}this.setUserRole=function(e){t=e},this.Initialize=function(){i||(i=!0,r())},this.ChangeHash=function(e){window.location.hash=encodeURI(e),veritracks.security.controller.extendSession()},this.ChangeSettings=function(e,t){for(var i=l.Tab,n=0,n=0;n<l.Settings.length;n++)i=n===e?i+"."+t:i+"."+l.Settings[n];this.ChangeHash(i)}
37,this.getSystemState=function(){var e={},t=a();return e.Tab=o(),e.Layout=t[0],e.Primary=t[1],e.Secondary=t[2],e.Tertiary=t[3],$.extend({},e)},this.getPreviousState=function(){var e={};return isNullOrUndefined(n.Tab)?(lHash=d().Settings,e.Tab=o()):(lHash=n.Settings,e.Tab=n.Tab),e.Layout=lHash[0]||"",e.Primary=lHash[1]||"",e.Secondary=lHash[2]||"",e.Tertiary=lHash[3]||"",$.extend({},e)},this.IsSystemState=function(e,t){return this.getSystemState()[e]==t},this.GoTo=function(e){window.location.hash=e},$(window).hashchange(r)};function Sad(e,t,i,n,l){"use strict";mActivityNotification.addNotification("Web service error ("+e+"): "+i)}!function(){function e(e,t,i){this.elementId=e,this.elementGroupId=t,this.fields=i,this.values={}}e.prototype.toggleGroup=function(e){var t="#"+this.elementId+this.elementGroupId;$(t).toggle(e)},e.prototype.displayOnly=function(e,t){e="#"+this.elementId+e;$(e).toggle(t),$(e+"Edit").toggle(!t)},e.prototype.removeValidations=function(){for(var e=0;e<this.fields.length;e++)$("#"+this.elementId+this.fields[e].name+"Edit").removeClass("Validate ValidateRange")},e.prototype.toggleAll=function(e){for(var t=0;t<this.fields.length;t++)$("#"+this.elementId+this.fields[t].name+"Edit").toggle(e);this.toggleGroup(e)},e.prototype.Element=function(e){return document.getElementById(this.elementId+e+"Edit")},e.prototype.getValue=function(e){e=this.elementId+e+"Edit";if(null!==(e=document.getElementById(e)))return e.constructor,HTMLSelectElement||HTMLInputElement,"checkbox"!==e.type?e.value:convertBoolToInteger(e.checked)},e.prototype.getValues=function(){for(var e={},t=0;t<this.fields.length;t++)e[this.fields[t].name]=function(e,t){switch(e){case"string":return isNullOrUndefined(t)&&(t=""),String(t);case"number":return!isNullOrUndefined(t)&&""!==t||(t=-1),parseFloat(t);case"boolean":return Boolean(t);default:return t}}(this.fields[t].type,this.getValue(this.fields[t].name));return this.values=e},e.prototype.setValues=function(e){for(var t in e)$("#"+this.elementId+t).text(e[t]),$("#"+this.elementId+t+"Edit").val(e[t]);this.values=Object.assign({},this.values,e)},e.prototype.setValue=function(e,t){$("#"+this.elementId+e).text(t),$("#"+this.elementId+e+"Edit").val(t),this.values[e]=t},window.FieldsFormController=e}(); 38 39function FilterControl(t,o,e,i){"use strict";if(FilterControl.prototype.baseClass.call(this,t,o,e,i),this.isNothing(SumoPredicateBuilder))throw this.className()+" requires SumoDataAccessLibrary.js.";if(this.isNothing(this.Options))throw this.className()+": invalid call to constructor. no params passed to control id: "+this.Id;this.Title="",this.Content="",this.HideOnFilter=!1,this.Columns=null,this.SecondaryColumns=null,this.Settings=null,this.Expression=null,this.UserPreferences=[],this.FilterState=[];var h=!(this.ExpressionState={}),t=500,f=this,n=!1,u=null,a="",C=[],s=null,N=-1,r=null,c=null,l="",S=-1,D={};if(this.isNothing(this.Options.Title)||(this.Title=this.Options.Title),this.isNothing(this.Options.CssClass)||(a=this.Options.CssClass),this.isNothing(this.Options.Content)||(this.Content=this.Options.Content),this.isNothing(this.Options.HideOnFilter)||(this.HideOnFilter=this.Options.HideOnFilter),this.isNothing(this.Options.OnFilter)||this.bind("filter",this.Options.OnFilter),this.isNothing(this.Options.Columns)||(this.Columns=this.Options.Columns),this.isNothing(this.Options.Settings)||(this.Settings=this.Options.Settings),this.isNothing(this.Options.UserPreferences)||(this.UserPreferences=this.Options.UserPreferences),this.isNothing(this.Options.UserPreferenceType)||(S=this.Options.UserPreferenceType),this.isNothing(this.Options.UserId)||(N=this.Options.UserId),this.isNothing(this.Options.CallbackClick)||(r=this.Options.CallbackClick),this.isNothing(this.Options.LocalizableMethod)||(c=this.Options.LocalizableMethod),this.isNothing(this.Options.Alignment)||(l=this.Options.Alignment),e=!1,h=e=f.isNothing(f.Settings)||f.isNothing(f.Settings.SingleClick)?e:f.Settings.SingleClick,this.isNothing(this.Settings)||this.isNothing(this.Settings.Timeout)||(t=this.Settings.Timeout),h&&!this.isNothing(TimerManager))u=new TimerManager(t);else if(h&&this.isNothing(u))throw this.className()+": single click isn't supported unless the TimerManager code is loaded.";
39function d(t){var e=$("#"+f.Id+"Arrow");"right"===t?e.removeClass("Down").addClass("Right"):e.removeClass("Right").addClass("Down")}function p(){var t,e,i,n=f.Columns,o="",a=new SumoPredicateBuilder,s=new SumoPredicateBuilder,r=new UserPreference,l=!1;for(t in f.FilterState=[],f.ExpressionState={},n)if(n.hasOwnProperty(t)){switch(e=n[t],(r=new UserPreference).UserPreferenceType=S,r.Id=N,i=e.relationalOperator,e.Type){case"Text":o=$("#"+f.Id+e.Id).val(),r.Value=o,r.ColumnName=e.Id,f.isNothing(o)||""===o||(f.isNothing(i)&&(i=mRelationalOperatorEnum.Like()),f.isNothing(e.ComparisonType)||"number"===e.ComparisonType.toString().toLowerCase()&&(o=parseInt(o),isNaN(o))&&(o=""),""!==o&&s.AddNewExpressionConditional(e.DataField,o,!1,i,mLogicalOperatorEnum.And()));break;case"DoubleMinMaxText":var o=$("#"+f.Id+e.Id+1).val(),d=$("#"+f.Id+e.Id+2).val();f.isNothing(o)?0<o&&s.AddNewExpressionConditional(e.DataField,o,!1,mRelationalOperatorEnum.GreaterThanOrEqual(),mLogicalOperatorEnum.And()):o=0,f.isNothing(d)&&o<d&&s.AddNewExpressionConditional(e.DataField,o,!1,mRelationalOperatorEnum.LessThanOrEqual(),mLogicalOperatorEnum.And());break;case"Date":o=$("#"+f.Id+e.Id).val(),r.Value=o,r.ColumnName=e.Id,f.isNothing(o)||""===o||(o=Date.parse(o),isNaN(o))||(o=new Date(o),(i=f.isNothing(i)?mRelationalOperatorEnum.Equal():i)!==mRelationalOperatorEnum.LessThan()&&i!==mRelationalOperatorEnum.LessThanOrEqual()||(o=new Date(o.setDate(o.getDate()+1))),s.AddNewExpressionConditional(e.DataField,o,!1,i,mLogicalOperatorEnum.And()));break;case"Dropdown":if(o=$("#"+f.Id+e.Id).val(),f.isNothing(o)||""===o)o="";else{if(!f.isNothing(e.ComparisonType))switch(e.ComparisonType.toString().toLowerCase()){case"boolean":o="true"===o.toLowerCase()||"1"===o.toString().toLowerCase();break;case"string":o=o.toString();break;case"integer":o=parseInt(o)}f.isNothing(i)&&(i=mRelationalOperatorEnum.Equal()),(!f.isNothing(e.IgnoreValue)&&e.IgnoreValue!=o||f.isNothing(e.IgnoreValue))&&s.AddNewExpressionConditional(e.DataField,o,!1,i,mLogicalOperatorEnum.And())}r.Value=o,r.ColumnName=e.Id;break;case"DoubleDropDown":o=$("#"+f.Id+e.Id+"1").val();var d=$("#"+f.Id+e.Id+"2").val(),h=0;if(!f.isNothing(o)&&""!==o){switch(e.ComparisonType.toString().toLowerCase()){case"string":o=o.toString(),d=d.toString();break;case"integer":o=parseInt(o),d=parseInt(d)}isNullOrUndefined(e.ActualType)||"Measurement"==e.ActualType&&(h=parseInt(12*o)+parseInt(d)),f.isNothing(i)&&(i=mRelationalOperatorEnum.Equal()),0<h&&s.AddNewExpressionConditional(e.DataField,h,!1,i,mLogicalOperatorEnum.And())}break;case"CheckList":var u,c,p,g=$("input[name="+f.Id+e.Id+"]:checked"),I=[],m=[];if(0<g.length){for(u=0;u<g.length;u++)if(p=C[g[u].id],m.push(g[u].value),f.isNothing(p))I.push(g[u].value);else for(c=0;c<p.length;c++)I.push(p[c]);f.isNothing(i)&&(i=mRelationalOperatorEnum.In()),s.AddNewExpressionConditional(e.DataField,I,!1,i,mLogicalOperatorEnum.And())}r.Value=JSON.stringify(m),r.ColumnName=e.Id;break;case"RadioList":o=$("input[name="+f.Id+e.Id+"]:checked").val(),f.isNothing(o)||""===o||(f.isNothing(i)&&(i=mRelationalOperatorEnum.Equal()),s.AddNewExpressionConditional(e.DataField,o,!1,i,mLogicalOperatorEnum.And()))}D[e.Id]=s.RootExpression,isNullOrUndefined(s.RootExpression)||a.AddConditional(s.RootExpression,mLogicalOperatorEnum.And()),s.Clear(),l=e.doSaveState,(l=f.isNothing(e.doSaveState)?!0:l)&&f.FilterState.push(r),f.ExpressionState[r.ColumnName]=r}return a.RootExpression}function g(t){f.isNothing(u)||u.StopTimer(),f.Expression=p(),t&&(FreeFormFilterUserPreferences(f),r)&&r(),f.trigger("filter",f.Expression)}function I(t){var e=null;t.doSaveState;return f.isNothing(t.doSaveState),f.isNothing(f.UserPreferences[t.Id])?f.isNothing(t.DefaultValue)||(e=t.DefaultValue):e=f.UserPreferences[t.Id].Value,e=f.isNothing(t.IsNullCheckAll)||!isNullOrUndefined(e)&&"[]"!=e?e:t.DefaultValue}function m(t){var e=null,i=I(t),e=$("<input/>",{type:"text",value:i,id:f.Id+t.Id,"class":f.Id+"TextBox"});return h&&!f.isNothing(u)&&e.change(function(){u.SetTimer(function(){g()})}),e.change(t.Id,function(t){f.trigger(t.data+"changed",t)}),e}function O(t){var e=null,i=I(t),e=$("<input/>",{type:"text",value:i,id:f.Id+t.Id,"class":"DatePick"});return s.push(f.Id+t.Id),h&&!f.isNothing(u)&&e.change(function(){u.SetTimer(function(){g()})}),e.change(t.Id,function(t){f.trigger(t.data+"changed",t)}),e}function T(t){var e,i,n,o,a=$("<select/>",{id:f.Id+t.Id,"class":f.Id+"Dropdown"}),s=t.DataSource,r=t.LocaleName,l=I(t),d="";for(e in!f.isNothing(t.InsertBlank)&&t.InsertBlank&&(f.isNothing(t.BlankText)||(d=t.BlankText),o=$("<option/>",{value:"",text:d}),h&&!f.isNothing(u)&&o.change(function(){u.SetTimer(function(){g()})}),o.appendTo(a)),s)s.hasOwnProperty(e)&&(n=s[e],o=f.isNothing(t.DefaultValue)||t.DefaultValue!=n[t.DataValueField]?(i=n[t.DataTextField],r&&c&&(i=c(r,i)),$("<option/>",{id:"option"+f.Id+t.Id,value:n[t.DataValueField],html:i})):$("<option/>",{id:"option"+f.Id+t.Id,"class":"default",value:n[t.DataValueField],html:n[t.DataTextField]}),h&&!f.isNothing(u)&&o.change(function(){u.SetTimer(function(){g()})}),o.appendTo(a));return f.isNothing(l)||a.val(l.toString()),a.change(t.Id,function(t){f.trigger(t.data+"changed",t)}),a}
39function v(t){var e=$("<div/>",{"class":"FilterControlRow"}),i=null,n=null,o=null,a=null,s=t.DataSource,r=null,l=I(t);for(i in"string"==typeof l&&(l=$.parseJSON(l),isNullOrUndefined(l))&&(l=""),s)s.hasOwnProperty(i)&&(r=s[i],n=$("<div/>",{}),o=$("<input/>",{type:"checkbox",name:f.Id.toString()+t.Id.toString(),id:f.Id.toString()+t.Id.toString()+r.Id.toString(),value:r[t.DataValueField]}),f.isNothing(l)||-1===l.indexOf(r[t.DataValueField].toString())&&-1===l.indexOf(r[t.DataValueField].toString())||$(o).attr("checked",!0),f.isNothing(r.data)||(C[f.Id.toString()+t.Id.toString()+r.Id.toString()]=r.data),o.change({Column:t.Id,Item:r.Id},function(t){f.trigger(t.data.Column+"changed",t),f.trigger(t.data.Column+t.data.Item+"changed",t)}),h&&!f.isNothing(u)&&o.change(function(){u.SetTimer(function(){g()})}),a=$("<label/>",{"for":f.Id+t.Id+r.Id,text:r[t.DataTextField]}),o.appendTo(n),a.appendTo(n),n.appendTo(e));return e}function x(t){var e,i,n,o,a=$("<div/>",{"class":"FilterControlRow"}),s=t.DataSource,r=I(t);for(o in f.isNothing(r)||alert("default values not implemented for radio button list"),s)s.hasOwnProperty(o)&&(n=s[o],e=$("<div/>",{}),i=$("<input/>",{type:"radio",name:f.Id+t.Id,id:f.Id+t.Id+n.Id,value:n[t.DataValueField]}),(void 0).change({Column:t.Id,Item:n.Id},function(t){f.trigger(t.data.Column+"changed",t),f.trigger(t.data.Column+t.data.Item+"changed",t)}),h&&!f.isNothing(u)&&i.change(function(){u.SetTimer(function(){g()})}),n=$("<label/>",{"for":f.Id+t.Id+n.Id,text:n[t.DataTextField]}),i.appendTo(e),n.appendTo(e),e.appendTo(a));return a}function w(t){var r,e,i,l,n=$("<tr/>",{"class":"FilterControlRow"}),o=$("<td/>",{"class":"FilterControlTitle",html:t.Title}),a=$("<td/>",{"class":"FilterControlContent",id:t.Id+"DataHolder"}),s=null;switch(t.Type.toLowerCase()){case"text":s=m(t);break;case"date":s=O(t);break;case"dropdown":s=T(t);break;case"doubledropdown":r=t,e=$("<select/>",{id:f.Id+r.Id+"1","class":f.Id+"Dropdown"}),i=$("<select/>",{id:f.Id+r.Id+"2","class":f.Id+"Dropdown"}),l=I(r),s=[d(e,r.DataSource),d(i,r.DataSource2)];break;case"doubleminmaxtext":e=t,s=[$("<input/>",{type:"text",placeholder:"Min",id:f.Id+e.Id+1,"class":f.Id+"TextBox"}),$("<input/>",{type:"text",placeholder:"Max",id:f.Id+e.Id+2,"class":f.Id+"TextBox"})];break;case"checklist":s=v(t);break;case"checkbox":s=generateCheckBox(t);break;case"radiolist":s=x(t)}function d(t,e){var i,n,o,a=t,s=e,t="";for(i in!f.isNothing(r.InsertBlank)&&r.InsertBlank&&(f.isNothing(r.BlankText)||(t=r.BlankText),n=$("<option/>",{value:"",text:t}),h&&!f.isNothing(u)&&n.change(function(){u.SetTimer(function(){g()})}),n.appendTo(a)),s)s.hasOwnProperty(i)&&(o=s[i],n=f.isNothing(r.DefaultValue)||r.DefaultValue!=o[r.DataValueField]?$("<option/>",{id:"option"+f.Id+r.Id,value:o[r.DataValueField],text:o[r.DataTextField]}):$("<option/>",{id:"option"+f.Id+r.Id,"class":"default",value:o[r.DataValueField],text:o[r.DataTextField]}),h&&!f.isNothing(u)&&n.change(function(){u.SetTimer(function(){g()})}),n.appendTo(a));return f.isNothing(l)||a.val(l.toString()),a.change(r.Id,function(t){f.trigger(t.data+"changed",t)}),a}return!f.isNothing(s)&&s.length<2?s.appendTo(a):2==s.length&&(s[0].appendTo(a),s[1].appendTo(a)),o.appendTo(n),a.appendTo(n),n}function k(t){t.stopImmediatePropagation(),f.toggleExpander()}function F(t){t.stopImmediatePropagation(),f.HideOnFilter&&f.hide(),g(!0)}function y(t){t.stopImmediatePropagation(),13==t.keyCode?(f.HideOnFilter&&f.hide(),g(!0)):27==t.keyCode&&f.hide()}function E(t){t.stopImmediatePropagation(),f.isNothing(u)||u.StopTimer();var e,i,n,o,a=f.Columns;for(e in $("."+f.Id+"TextBox").val(""),$("."+f.Id+"Dropdown").val(""),a)if(a.hasOwnProperty(e))if(o=a[e],f.isNothing(o.DefaultValue))if("CheckList"===o.Type)for(i in o.DataSource)o.DataSource.hasOwnProperty(i)&&(n=o.DataSource[i],$("div.FilterControlContent #"+f.Id+o.Id+n[o.DataValueField]).attr("checked",!1));else"Dropdown"===o.Type&&$("div.FilterControlContent #"+f.Id+o.Id).change();else if("CheckList"===o.Type)for(i in o.DataSource)o.DataSource.hasOwnProperty(i)&&(n=o.DataSource[i],f.isNothing(o.DefaultValue)||-1===o.DefaultValue.indexOf(n[o.DataValueField])?$("div.FilterControlContent #"+f.Id+o.Id+n[o.DataValueField]).attr("checked",!1):$("div.FilterControlContent #"+f.Id+o.Id+n[o.DataValueField]).attr("checked",!0));else $("div.FilterControlContent #"+f.Id+o.Id).val(o.DefaultValue.toString()),"Dropdown"===o.Type&&$("div.FilterControlContent #"+f.Id+o.Id).change()}this.hide=function(){n=!1,d("right"),$("#"+this.Id+"Expander").fadeOut()},this.show=function(){n=!0,d("down"),$("#"+this.Id+"Expander").fadeIn()},this.toggleExpander=function(){n?this.hide():this.show()},this.filter=function(){g()},this.render=function(){var t,e,i,n=this.Html;
39for(e in n=(n=(n=this.isNothing(this.Settings)||this.isNothing(this.Settings.DisplayInline)||!this.Settings.DisplayInline?n.replace(/##expandertype##/g,"FilterControlExpanderFloat"):n.replace(/##expandertype##/g,"FilterControlExpanderInline")).replace(/##title##/g,this.Title)).replace(/##content##/g,this.Content),$("#"+o).html(n),$("#"+this.Id).data("control",this),$("#"+this.Id+"Header").click(k),$("#"+this.Id+"FilterButton").click(F),$("#"+this.Id+"ResetButton").click(E),$("#"+this.Id+"Expander").addClass(l),n=$("div #"+this.Id+"Content").first(),t=$("<table/>",{"class":"FilterControl"}),C=[],s=[],this.Columns)this.Columns.hasOwnProperty(e)&&w(i=this.Columns[e]).appendTo(t);for(e in n.html(""),t.appendTo(n),s)s.hasOwnProperty(e)&&populateDateView("#"+s[e],null);for(e in this.Columns)this.Columns.hasOwnProperty(e)&&(i=this.Columns[e],$("#"+this.Id+i.Id).keyup(y));$("#"+this.Id).addClass(a),veritracks.localization.localize("#"+this.Id),this.trigger("render")},this.init=function(){var t,e;for(e in this.Columns)this.Columns.hasOwnProperty(e)&&"Dropdown"===(t=this.Columns[e]).Type&&$("div.FilterControlContent #"+f.Id+t.Id).change()},this.setColumnDataSource=function(t,e){var i,n,o,a=$("#"+t+"DataHolder");if(1===a.length)for(o in this.Columns)if(this.Columns.hasOwnProperty(o)&&(n=this.Columns[o]).Id===t){switch(n.DataSource=e,n.Type.toLowerCase()){case"text":i=m(n);break;case"date":i=O(n);break;case"dropdown":i=T(n);break;case"checklist":i=v(n);break;case"checkbox":i=generateCheckBox(n);break;case"radiolist":i=x(n)}f.isNothing(i)||(a.html(""),i.appendTo(a))}},this.getColumnExpression=function(t){var e=null;return e=f.isNothing(D[t])?e:D[t]},this.columnValue=function(t,e){var i,n,o,a=null;for(o in f.Columns)if(f.Columns.hasOwnProperty(o)&&(n=f.Columns[o]).Id===t){i=n;break}if(f.isNothing(e))a=function(t){var e,i,n=$("input[name="+f.Id+t.Id+"]:checked"),o=[];switch(t.Type){case"Text":e=$("#"+f.Id+t.Id).val();break;case"Date":e=$("#"+f.Id+t.Id).val(),e=f.isNothing(e)||""===e||(e=Date.parse(e),isNaN(e))?null:new Date(e);break;case"Dropdown":if(e=$("#"+f.Id+t.Id).val(),!f.isNothing(e)&&""!==e&&!f.isNothing(t.ComparisonType))switch(t.ComparisonType.toString().toLowerCase()){case"boolean":e="true"===e.toLowerCase()||"1"===e.toString().toLowerCase();break;case"string":e=e.toString();break;case"integer":e=parseInt(e)}break;case"CheckList":if(0<n.length)for(i=0;i<n.length;i++)e=$("#"+n[i].id).val(),f.isNothing(e)||""===e||o.push(e);e=o;break;case"RadioList":e=$("input[name="+f.Id+t.Id+"]:checked").val()}return e}(i);else{var s,r,l=i,d=e,h=l.DataSource;switch(l.Type){case"Text":case"Date":case"Dropdown":$("#"+f.Id+l.Id).val(d).change();break;case"CheckList":for(r in h)h.hasOwnProperty(r)&&(s=h[r],(-1!==d.indexOf(s[l.DataValueField].toString())?$("#"+f.Id.toString()+l.Id.toString()+s.Id.toString()).attr("checked",!0):$("#"+f.Id.toString()+l.Id.toString()+s.Id.toString()).removeAttr("checked")).change())}}return a},this.LiveExpressionModifier=function(){var t=$.extend([],f.Columns);f.Columns=f.SecondaryColumns,f.Expression=p(),f.Columns=t},this.SetSecondaryColumns=function(t){f.SecondaryColumns=t},this.SetPrimaryColumns=function(t){f.Columns=t},this.UpdatePreferences=function(t){t.map(function(t){f.UserPreferences[t.ColumnName]=t})}}FilterControl.prototype=new sumo.controls.ControlBase,(FilterControl.prototype.constructor=FilterControl).prototype.baseClass=sumo.controls.ControlBase; 40if(isNullOrUndefined(sumo))throw"Paginator.js requies the sumo namespace defined in SumoClass.js";if(isNullOrUndefined(sumo.controls))throw"Paginator.js requies the sumo.controls namespace defined in ControlBase.js";sumo.controls.Paginator=function(t,e,s){"use strict";var i=this,a=[];if(a.push('<div class="sumo-paginator-control" id="##id##">'),a.push(' <div class="sumo-paginator-control-header" id="##id##Header">'+localizeWrapper("cPagerPage")+' <span id="##id##CurrentPage"></span> '+localizeWrapper("cPagerOf")+' <span id="##id##PageCount"></span>.'),a.push(' <span class="sumo-paginator-control-count" id="##id##ItemCountHolder"><span id="##id##ItemCount"></span>'+localizeWrapper("cPagerItemsFound")+" </span>"),a.push(" </div>"),a.push(' <table class="sumo-paginator-control-navigation" id="##id##Navigation">'),a.push(" <tr>"),a.push(' <td align="center">'),a.push(' <div class="sumo-paginator-control-first" id="##id##First" title="first"></div>'),a.push(" </td>"),a.push(' <td align="center">'),a.push(' <div class="sumo-paginator-control-previous" id="##id##Previous" title="previous"></div>'),a.push(" </td>"),a.push(' <td align="center" class="##id##-dateTD">'),a.push(' <div class="sumo-paginator-control-date" id="##id##DateSystemRange" title "date range"></div>'),a.push(" </td>"),a.push(' <td align="center">'),a.push(' <div class="sumo-paginator-control-next" id="##id##Next" title="next"></div>'),a.push(" </td>"),a.push(' <td align="center">'),a.push(' <div class="sumo-paginator-control-last" id="##id##
40Last" title="last"></div>'),a.push(" </td>"),a.push(" </tr>"),a.push(" </table>"),a.push("</div>"),sumo.controls.Paginator.prototype.baseClass.call(this,t,e,a.join(""),s),this.isNothing(this.Options))throw this.className()+": invalid call to constructor. no params passed to control id: "+this.Id;if(this.Id=t,this.CurrentPage=1,this.ItemCount=0,this.ItemsPerPage=0,this.DateSystem=!1,this.Dates=null,this.PageCount=1,this.isNothing(this.Options.ItemCount)||(this.ItemCount=this.Options.ItemCount),this.isNothing(this.Options.ItemsPerPage)||(this.ItemsPerPage=this.Options.ItemsPerPage),this.isNothing(this.Options.FlagToMark)||(this.FlagToMark=this.Options.FlagToMark,this.FlagToMarkValue=this.Options.FlagToMarkValue),this.isNothing(this.Options.DateSystem)||(this.DateSystem=this.Options.DateSystem,i.Dates=getWeek()),!(0<this.ItemsPerPage))throw this.className()+": invalid items per page value of 0. control id: "+this.Id;function r(){var t=$("#"+i.Id).first();t.find("#"+i.Id+"CurrentPage").text(i.CurrentPage),t.find("#"+i.Id+"PageCount").text(i.PageCount),t.find("#"+i.Id+"ItemCount").text(i.ItemCount),i.DateSystem&&t.find("#"+i.Id+"DateSystemRange").text(i.Dates.DateString)}function n(){r(),i.trigger("pagechanged",i.CurrentPage)}function o(t){i.CurrentPage=1,n(),t.stopImmediatePropagation()}function u(t){i.CurrentPage=i.PageCount,n(),t.stopImmediatePropagation()}function h(t){--i.CurrentPage,i.CurrentPage<1&&(i.CurrentPage=1),i.DateSystem&&(i.Dates=getWeek(new Date(i.Dates.FirstDay).addDays(-7))),n(),t.stopImmediatePropagation()}function d(t){++i.CurrentPage,i.CurrentPage>i.PageCount&&(i.CurrentPage=i.PageCount),i.DateSystem&&(i.Dates=getWeek(new Date(i.Dates.FirstDay).addDays(7))),n(),t.stopImmediatePropagation()}this.PageCount=Math.ceil(this.ItemCount/this.ItemsPerPage),0===this.PageCount&&(this.PageCount=1),this.DatesFilter=function(){return i.Dates},this.ResetDates=function(){i.Dates=getWeek()},this.paginate=function(t){var e,s,i=[],a=0,n=getKeys(t),o=n.length;for(this.ItemCount!==o&&(this.ItemCount=o,this.PageCount=Math.ceil(this.ItemCount/this.ItemsPerPage),0===this.PageCount&&(this.PageCount=1),this.CurrentPage=1),o<(s=(this.CurrentPage-1)*this.ItemsPerPage+this.ItemsPerPage)&&(s=o),a=(this.CurrentPage-1)*this.ItemsPerPage;a<s;++a)i[e=n[a]]=t[e];return r(),i},this.setPage=function(t){"number"==typeof t&&0<t&&t<=i.PageCount&&(i.CurrentPage=t,n())},this.render=function(){var t=this.Html;$("#"+e).html(t),(t=$("#"+this.Id).first()).data("control",this),t.find("#"+this.Id+"CurrentPage").text(this.CurrentPage),t.find("#"+this.Id+"PageCount").text(this.PageCount),t.find("#"+this.Id+"Previous").click(h),$("."+this.Id+"-dateTD").hide(),t.find("#"+this.Id+"Last").hide(),t.find("#"+this.Id+"First").click(o).hide(),this.DateSystem?(t.find("#"+this.Id+"DateSystemRange").text(this.Dates.DateString),$("."+this.Id+"-dateTD").show()):(t.find("#"+this.Id+"Last").show(),t.find("#"+this.Id+"Last").click(u),t.find("#"+this.Id+"First").show(),t.find("#"+this.Id+"First").click(o)),t.find("#"+this.Id+"Next").click(d),veritracks.localization.localize(".sumo-
40paginator-control"),this.trigger("render")},this.reset=function(){i.CurrentPage=1,r()},this.hasNext=function(){return this.CurrentPage<this.PageCount},this.setPageCount=function(t){"number"==typeof t&&0<t&&(i.PageCount=t,r(),i.trigger("pagecountchanged",i.PageCount))},this.setItemCount=function(t){"number"==typeof t&&0<=t&&(i.ItemCount=t,i.PageCount=Math.ceil(i.ItemCount/i.ItemsPerPage),0===i.PageCount&&(i.PageCount=1),r(),i.trigger("countchanged",i.ItemCount))},this.render()},sumo.controls.Paginator.prototype=new sumo.controls.ControlBase,sumo.controls.Paginator.prototype.constructor=sumo.controls.Paginator,sumo.controls.Paginator.prototype.baseClass=sumo.controls.ControlBase; 41if(isNullOrUndefined(sumo))throw"Paginator.js requies the sumo namespace defined in SumoClass.js";if(isNullOrUndefined(sumo.controls))throw"Paginator.js requies the sumo.controls namespace defined in ControlBase.js";sumo.controls.Wizard=function(s,t,e){"use strict";var i=this,a=s,r=e,o=0,n=null,d=[];if(d.push('<div class="sumo-wizard-control" id="##id##">'),d.push("</div>"),sumo.controls.Paginator.prototype.baseClass.call(this,s,t,d.join(""),e),this.isNothing(this.Options))throw this.className()+": invalid call to constructor. no params passed to control id: "+this.Id;function u(){var s=0;r.FixPages.UseSkip&&r.FixPages.SubtractOne==o&&(s=1),g(o-1-s)}function l(){var s=0;r.FixPages.UseSkip&&r.FixPages.AddOne==o&&(s=1),g(o+1+s)}function h(){i.trigger("close")}function p(){i.trigger("changing",o),i.trigger("save",o)}function c(){var s=i.ControlElement.height(),t=i.ControlElement.outerWidth(),e=n.height(),o=n.width();i.ControlElement.css("padding-top",((s-e)/2).toString()+"px"),i.ControlElement.css("padding-left",((t-o)/2).toString()+"px")}function g(s){i.trigger("changing",o),$(".sumo-wizard-content").empty(),$(".sumo-wizard-content-active").removeClass("sumo-wizard-content-active"),o=s;s=r.steps[o-1];$(".sumo-wizard-blade").show(),$(".sumo-wizard-blade-"+o).hide(),!r.FixPages.UseSkip||o+1!=r.HidablePage&&o-1!=r.HidablePage||$(".sumo-wizard-blade-"+r.HidablePage).hide(),$("#"+a.toString()+o.toString()+"Content").addClass("sumo-wizard-content-active").load(s.fileName,function(){var s=r.steps[o-1],t=[];t.push('<table style="width:100%;">'),t.push("<tr>"),t.push('<td style="width:33%;" align="left">'),1<o&&(t.push('<div class="sumo-wizard-previous" id="'),t.push(a),t.push(o),t.push('Previous"></div>')),t.push("</td>"),t.push('<td style="width:7%;" align="right">'),t.push('<div class="sumo-wizard-close" id="'),t.push(a),t.push('Close"></div>'),t.push("</td>"),t.push('<td style="width:7%;" align="center">'),!s.allowSave&&o!==r.steps.length||(t.push('<button class="sumo-wizard-save" id="'),t.push(a),t.push(o),t.push('Save"></button>')),t.push("</td>"),t.push('<td style="width:33%;" align="right">'),o<r.steps.length&&(t.push('<button class="sumo-wizard-next" id="'),t.push(a),t.push(o),t.push('Next"></button>')),t.push("</td>"),t.push("</tr>"),t.push("</table>"),$("#"+a.toString()+o.toString()+"Command").html(t.join("")),$("#"+a.toString()+o.toString()+"Previous").click(u),$("#"+a.toString()+o.toString()+"Next").click(l),$("#"+a.toString()+o.toString()+"Save").click(p),$("#"+a.toString()+"Close").click(h),i.trigger("changed",o),c()})}this.dispose=function(){$("#"+t).html(""),0},this.FixPagesOnSelect=function(s,t){r.FixPages.UseSkip=s,r.steps[t-1].hidden=s;var e,o,i,n=0;for(e in r.steps)r.steps.hasOwnProperty(e)&&(++n,o=r.steps[e],i=$("td.sumo-wizard-blade.sumo-wizard-blade-command.sumo-wizard-blade-"+n),r.FixPages.UseSkip?i[0].textContent=o.pageTitle:i[0].textContent=n)},this.FixPageDisplay=function(){var s,t,e=0;for(t in r.steps)r.steps.hasOwnProperty(t)&&(++e,s=r.steps[t],e==r.HidablePage)&&(s.hidden?($("#"+a+e).hide(),$(".sumo-wizard-blade-"+e).hide()):($("#"+a+e).show(),$(".sumo-wizard-blade-"+e).show()))},this.close=function(){i.trigger("close",o),i.ParentElement.empty()},this.render=function(){var s=function(){var s,t,e=[],o=[],i=[],n=0;for(t in r.steps)r.steps.hasOwnProperty(t)&&(++n,s=r.steps[t],o.push('<td class="sumo-wizard-blade-content sumo-wizard-content" id="'),o.push(a),o.push(n),o.push('Content"></td>'),o.push('<td class="sumo-wizard-blade sumo-wizard-blade-content sumo-wizard-blade-'),o.push(n),o.push('">'),o.push("</td>"),i.push('<td class="sumo-wizard-blade-command sumo-wizard-content" id="'),i.push(a),i.push(n),i.push('Command"></td>'),i.push('<td class="sumo-wizard-blade sumo-wizard-blade-command sumo-wizard-blade-'),i.push(n),i.push('">'),i.push(s.pageTitle.toString()),i.push("</td>"));return e.push('<table border="0" cellspacing="0" cellpadding="0">'),e.push("<tr>"),e.push(o.join("")),e.push("</tr>"),e.push("<tr>"),e.push(i.join("")),e.push("</tr>"),e.push("</table>"),e.join("")}();i.ControlElement.html(s),n=i.ControlElement.find("table"),$(window).change(c).change(),g(1),i.FixPageDisplay()},this.render()},sumo.controls.Paginator.prototype=new sumo.controls.ControlBase,sumo.controls.Paginator.prototype.constructor=sumo.controls.Paginator,sumo.controls.Paginator.prototype.baseClass=sumo.controls.ControlBase; 42var IconGenerator=function(){if(isNullOrUndefined(SVG))throw"SVG library n
42ot found";var l,e,g=this,x={},c={},f={},u={},m=0,h=[],s=[],o=new RegExp(/xmlns="http:\/\/www\.w3\.org\/2000\/svg"/gm),a=new RegExp(/version="1\.1"/gm),d=new RegExp(/\<\?xml version="1\.0"\?\>/gm),I=new RegExp(/xmlns:NS1=""/gm),p=new RegExp(/xmlns:NS2=""/gm),E=new RegExp(/xmlns:NS3=""/gm),T=new RegExp(/xmlns:NS4=""/gm),H=new RegExp(/NS1:svgjs:data/gm),S=new RegExp(/NS2:svgjs:data/gm),O=new RegExp(/NS3:svgjs:data/gm),v=new RegExp(/NS4:svgjs:data/gm),G=" svgjs:data",n=(new RegExp(/\"/gm),!1);x.enums={CENTER:0,HORIZONTAL:1,VERTICAL:2},c.enums={WIDTH:70,HEIGHT:70,CX:0,CY:0},f.enums={SHAPE:"Shape",IMAGE:"Image"},u.enums={CIRCLE:"Circle",LINESCROSS:"Lines Cross",LINESDIAGONAL:"Lines Diagonal"},this.generateMapMarker=function(n){return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(n)},this.cleanSVGTag=function(n,e){var t,s,i=0,r="string"==typeof n?n:n.toString();if("IE"==get_browser()){for(;null!=(t=o.exec(r));)t.index==o.lastIndex&&o.lastIndex++,t.forEach(function(n,e){0<i&&(s=1==i?r.substring(0,t.index-1)+' xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:svgjs="http://svgjs.com/svgjs"'+r.substring(t.index+n.length,r.length):r.substring(0,t.index-1)+r.substring(t.index+n.length,r.length)),i++});for(i=0,isNullOrUndefined(s)&&(s=r);null!=(t=a.exec(s));)t.index==a.lastIndex&&a.lastIndex++,t.forEach(function(n,e){0<i&&(s=s.substring(0,t.index-1)+s.substring(t.index+n.length,s.length)),i++});for(i=0;null!=(t=I.exec(s));)t.index==I.lastIndex&&I.lastIndex++,t.forEach(function(n,e){s=s.substring(0,t.index-1)+s.substring(t.index+n.length,s.length)});for(;null!=(t=p.exec(s));)t.index==p.lastIndex&&p.lastIndex++,t.forEach(function(n,e){s=s.substring(0,t.index-1)+s.substring(t.index+n.length,s.length)});for(;null!=(t=E.exec(s));)t.index==E.lastIndex&&E.lastIndex++,t.forEach(function(n,e){s=s.substring(0,t.index-1)+s.substring(t.index+n.length,s.length)});for(;null!=(t=T.exec(s));)t.index==T.lastIndex&&T.lastIndex++,t.forEach(function(n,e){s=s.substring(0,t.index-1)+s.substring(t.index+n.length,s.length)});for(;null!=(t=H.exec(s));)t.index==H.lastIndex&&H.lastIndex++,t.forEach(function(n,e){s=s.substring(0,t.index-1)+G+s.substring(t.index+n.length,s.length)});for(;null!=(t=S.exec(s));)t.index==S.lastIndex&&S.lastIndex++,t.forEach(function(n,e){s=s.substring(0,t.index-1)+G+s.substring(t.index+n.length,s.length)});for(;null!=(t=O.exec(s));)t.index==O.lastIndex&&O.lastIndex++,t.forEach(function(n,e){s=s.substring(0,t.index-1)+G+s.substring(t.index+n.length,s.length)});for(;null!=(t=v.exec(s));)t.index==v.lastIndex&&v.lastIndex++,t.forEach(function(n,e){s=s.substring(0,t.index-1)+G+s.substring(t.index+n.length,s.length)});for(;null!=(t=d.exec(s));)t.index==d.lastIndex&&d.lastIndex++,t.forEach(function(n,e){s=s.substring(0,t.index-1)+s.substring(t.index+n.length,s.length)})}return isNullOrUndefined(s)&&(s=r),s=isNullOrUndefined(e)?s:'<?xml version="1.0"?><root>'+s+"</root>"},this.getSvg=function(){return g.cleanSVGTag(l.svg())},this.addBearingToQueue=function(n){0},this.drawSVG=function(){var n=s.length;if(0==n)return!1;var e,t;for(t in s)s.hasOwnProperty(t)&&(e=parseInt(t)+1,g.addSVGValue(s[t].svg,e+"/"+n,s[t].alignment));return s=[],!0},this.resizeSVG=function(n,e,t){return l.svg(n).size(e,t)},this.scale=function(n){l.clear(),l=-1==n?(c.enums.WIDTH=70,c.enums.HEIGHT=70,SVG("svgDraw").size(c.enums.WIDTH,c.enums.HEIGHT)):(c.enums.WIDTH=c.enums.WIDTH+c.enums.WIDTH*n,c.enums.HEIGHT=c.enums.HEIGHT+c.enums.HEIGHT*n,SVG("svgDraw").size(c.enums.WIDTH+c.enums.WIDTH*n,c.enums.HEIGHT+c.enums.HEIGHT*n)),e=l.nested()},this.rotate=function(n,e){n.rotate(e,0,0)},this.rotateThis=function(n){l.rotate(n,0,0)},this.addSVGToQueue=function(n,e){s.push({svg:n,alignment:e})},this.addText=function(e,t){l.text(function(n){n.tspan(e),t&&n.font(t)})},this.getCenterX=function(){return c.enums.CX},this.getCenterY=function(){return c.enums.CY},this.getSVGShape=function(n,e,t){var s,i,r,o=0,o=t<e?e:t;return n.Shape==u.enums.CIRCLE?((e=l.circle(o)).center(o/2,o/2),isNullOrUndefined(n.Move)||e.move(n.Move.cx,n.Move.cy),null!=n.Stroke&&""!=n.Stroke&&(e.stroke(n.Stroke),e.fill("none")),e):n.Shape==u.enums.LINESCROSS?(s=l.line(0,o,o,0),i=l.line(0,o,o,0),s.transform({rotation:-45}),s.stroke({color:"#f06",width:10,linecap:"round"}),i.transform({rotation:45}),i.stroke({color:"#f06",width:10,linecap:"round"}),(r=l.group()).add(s),r.add(i),s):n.Shape==u.enums.LINESDIAGONAL?(s=l.line(0,o,o,0),i=l.line(0,o,o,0),s.stroke({color:"#f06",width:10,linecap:"round"}),i.transform({rotation:90}),i.stroke({color:"#f06",width:10,linecap:"round"}),(r=l.group()).add(s),r.add(i),s):null},this.parseIconValue=function(n){return"svg"==typeof n?n:"string"==typeof n&&"<svg"==n.substring(0,4)?l.svg(n):e.path(n)},this.addSVGValue=function(n,e,t){try{var s,i,r,o,l,u,a={};if(isNullOrUndefined(n.IconGroup)||n.IconGroup!=f.enums.SHAPE){if(isNullOrUndefined(n.IconValue))throw"IconValue undefined";s=g.parseIconValue(n.IconValue)}else s=g.getSVGShape(n,n.Width,n.Height);o=isNullOrUndefined(e)?r=1:(r=2==(i=e.split("/")).length?parseInt(i[1]):1,parseInt(i[0])),""!=n.Fill&&s.fill(n.Fill),""!=n.Stroke&&s.stroke(n.Stroke),isNullOrUndefined(n.TextOptions)||(isNullOrUndefined(n.TextOptions.Text)||(u=s.text(n.TextOptions.Text)),isNullOrUndefined(n.TextOptions.Move)||u.move(n.TextOptions.Move.cx,n.TextOptions.Move.cy),isNullOrUndefined(n.TextOptions.Fill)||(a.fill=n.TextOptions.Fill),isNullOrUndefined(n.TextOptions.Family)||(a.family=n.TextOptions.Family),isNullOrUndefined(n.TextOptions.Size)||(a.size=n.TextOptions.Size),isNullOrUndefined(n.TextOptions.Leading)||(a.leading=n.TextOptions.Leading),$.isEmptyObject(a))||u.font(a),isNullOrUndefined(e)||0==e?(s.size(c.enums.WIDTH/r,c.enums.HEIGHT/r),m+=c.enums.WIDTH/2,s.center(m,m)):t==x.enums.HORIZONTAL?(s.size(c.enums.WIDTH/r,c.enums.HEIGHT/r),l=c.enums.WIDTH/r,m+=l/2,c.enums.CX=m,c.enums.CY=c.enums.HEIGHT/2,s.center(m,c.enums.HEIGHT/2)):t==x.enums.VERTICAL?(s.size(c.enums.WIDTH/r,c.enums.HEIGHT/r),l=c.enums.HEIGHT/r,m+=l/2,c.enums.CX=c.enums.WIDTH/2,c.enums.CY=m,s.center(c.enums.WIDTH/2,m)):(s.size(n.Width,n.Height),l=n.Width/r,m+=l/2,c.enums.CX=m,c.enums.CY=m),o==r&&(m=0)}catch(d){h.push(d)}},this.clear=function(){s=[],c.enums.WIDTH=70,c.enums.HEIGHT=70,l.clear(),e.clear()},this.alignments=function(){return x.enums}
42,this.getStackErrors=function(){return h},this.clearStackErrors=function(){h=[]},this.initialize=function(){l=SVG("svgDraw").size(250,250),e=l.nested(),n=!0},this.getStatus=function(){return n},SVG.on(document,"DOMContentLoaded",function(){g.initialize()})},IconHelper={getIconIdByName:function(n){var e=new SumoPredicateBuilder,t=(e.Clear(),e.AddNewExpressionConditional("IconName",n,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),query(mEnrolleesIcon.icons,e.RootExpression)),s=null;if(0<t.length)for(lKey in t){s=t[lKey].Id;break}return s}};"undefined"!=typeof exports&&(module.exports=IconGenerator); 43function VeritracksFullCalendarWrapper(n,i,e){var t,l=n,a=null,r=null,d=-1,u=null,o=null,s=null,c=null,f=null,v=null,p=null,C=null,D=null,g=null,h=null,y=null,w=null,S=null,m=i.hideTitleFor,b={},E=!1,O="ColorInvert",R=null,k=null,H=(e&&(e.clickHandler&&(u=e.clickHandler),e.rightClickHandler&&e.rightClickHandler,e.viewRender&&(o=e.viewRender),e.afterRender&&(s=e.afterRender),e.afterAllRender&&(c=e.afterAllRender),e.editMode&&(f=e.editMode),e.selected&&(v=e.selected),e.eventDrop&&(p=e.eventDrop),e.eventDragStop&&(C=e.eventDragStop),e.events&&(D=e.events),e.newSelect&&(g=e.newSelect),e.specialEventLayout&&(h=e.specialEventLayout),e.renderHandler&&(y=e.renderHandler),e.resizeOver&&(w=e.resizeOver),e.resized&&(S=e.resized),e.disabledNavigation&&(t=e.disabledNavigation),e.selectEventHandler&&(R=e.selectEventHandler),e.selectAllowHandler)&&(k=e.selectAllowHandler),$(l).fullCalendar({nowIndicator:i.nowIndicator||!1,defaultView:i.defaultView,slotEventOverlap:i.slotEventOverlap,selectOverlap:i.selectOverlap,multiDaySelect:i.multiDaySelect,displayEventEnd:i.displayEventEnd,eventDurationEditable:i.eventDurationEditable,editable:i.editable,pastSelectable:i.pastSelectable,aspectRatio:i.aspectRatio,selectable:i.selectable,selectHelper:i.selectHelper,selectMultiDay:i.selectMultiDay,allDaySlot:i.allDaySlot,defaultDate:i.DefaultDate,firstDay:i.dayStart,lazyFetching:i.lazyFetching,navLinks:i.navLinks,slotDuration:"00:30:00",timeFormat:"h:mma",customButtons:{previousDay:{text:"prev",icon:"left-single-arrow",click:function(){V("prev")}},nextDay:{text:"next",icon:"right-single-arrow",click:function(){V("next")}},todayDate:{text:"today",click:function(){V("today")}}},header:{left:"previousDay,nextDay, todayDate",center:"title",right:i.rightClickOptions},views:{agendaMonthDay:{type:"agenda",duration:{days:31},buttonText:"31 Days"}},events:function(e,t,n,l){z(!0),e=e,t=t,n=n,l=l,D&&D(e,t,n,l)},viewRender:function(e,t){isNullOrUndefined(H)||(CloseModal(),x(e))},eventRender:function(e,t){var n;n=e,y&&y(n),n=e,e=t,s&&s(n,e),z(!1)},eventClick:function(e,t,n){e=e,t=t,u&&u(e,t)},eventResize:function(e,t,n,l){n=n,l=l,d=0,r=e=e,S&&S(e,l,n),H.fullCalendar("unselect")},eventResizeStop:function(e,t,n,l){d=0,r=e=e,w&&w(e),H.fullCalendar("unselect")},eventDragStart:function(e,t,n,l){},eventDragOver:function(e,t,n){var l;l=e,$('div[class|="fc-slats"').find("tr").map(function(e,t){isNullOrUndefined(l)&&isNullOrUndefined($(t).offset())||(l.top-$(t).offset().top==0||l.top-$(t).offset().top<=17&&0<l.top-$(t).offset().top?$(t).addClass("uCarveOutSelectedDragedItem"):$(t).removeClass("uCarveOutSelectedDragedItem"))})},eventDragStop:function(e,t,n,l,a){e=e,t=t,n=n,l=l,a=a,C?C(e,t,n,l,a):(d=1,r=e),H.fullCalendar("unselect")},eventDrop:function(e,t,n,l,a,i){$('div[class|="fc-slats"').find("tr").map(function(e,t){$(t).removeClass("uCarveOutSelectedDragedItem")}),e=e,t=t,n=n,l=l,a=a,i=i,p&&p(e,t,n,l,a,i),H.fullCalendar("unselect")},eventAfterAllRender:function(e){0<=d&&(f&&f(),d=-1),E&&A(E,O),m&&H&&m==H.fullCalendar("getView").name&&$(".fc-content").addClass("fc-content-hide"),c&&c()},selectAllow:function(e){return!k||k(e)},select:function(e,t,n,l,a){i.editable&&(R?R(e,t,n,l,a):H.fullCalendar("renderEvent",function(e,t,n){var l={start:e,end:t,jsEvent:n};h&&(l=h(e,t,n));return l}(e,t,n),!0)),l=e,a=t,n=-1,t=e=!0,v&&v(l,a,n,e,t),H.fullCalendar("unselect")},dayClick:function(e,t,n){H.fullCalendar("unselect")},newSelect:function(e,t,n){e=e,t=t,n=n,g&&g(e,t,n)}}));function V(e){e&&($(n).fullCalendar(e),$(n).fullCalendar("option","locale","en"),$(n).fullCalendar("option","locale","en"))}function x(e){o&&o(e)}function z(e){t&&t(e)}function A(e,t){t=t||"ColorInvert";e?$(".fc-unthemed tbody").addClass(t):$(".fc-unthemed tbody").removeClass(t),E=e,O=t}this.calendarId=function(){return l},this.getEditingSchedule=function(){return r},this.setEditingSchedule=function(e){r=e},this.resetData=function(){x($(n).fullCalendar("getView"))},this.updateEvent=function(e){$(n).fullCalendar("updateEvent",e)},this.setDataSource=function(e){var t=$(n).fullCalendar("getView");isNullOrUndefined(e)||($(n).fullCalendar("removeEvents"),a=e,x(t))},this.getDataSource=function(){return a||[]},this.getRawDataSource=function(){return $(n).fullCalendar("clientEvents")},this.destroy=function(){$(n).fullCalendar("destroy")},this.setHandlers=function(e){u=e.clickHandler,o=e.viewRender,s=e.afterRe
43nder,c=e.afterAllRender,f=e.editMode,v=e.selected,p=e.eventDrop,C=e.eventDragStop,D=e.events,g=e.newSelect,h=e.specialEventLayout,y=e.renderHandler,w=e.resizeOver,S=e.resized},this.deleteHandlers=function(){S=w=y=h=g=D=C=p=v=f=c=s=o=u=null},this.invertDayColors=function(e,t){A(e,t)},this.lockSaveMode=function(e){},this.addExtraData=function(e,t){b[e]=t},this.getExtraData=function(e){return b[e]},this.getViewName=function(){return $(n).fullCalendar("getView").name},this.disableView=function(e){$(n).fullCalendar("getView").name===e&&$(n).fullCalendar("changeView","agendaWeek"),$(".fc-"+e+"-button").addClass("fc-state-disabled").attr("disabled","disabled")},this.enableView=function(e){$(".fc-"+e+"-button").removeClass("fc-state-disabled").removeAttr("disabled")},this.setView=function(e){var t=e;e||(t=$(n).fullCalendar("getView").name),$(n).fullCalendar("changeView",t)},this.updateFullCalendarOptions=function(e,t){$(n).fullCalendar("getView").calendar.optionsModel._props[e]=t}} 44var VeritracksCorrelateControl=function(e,r,l,o,t,n,a){"use strict";var c=this,i="",d="",C=[],s=!1,u=1,h="",p=null,b=null;function f(){var e,r=d,l=C,o="";for(e in l)o="##"+e+"##",-1!=r.search(o)&&(r=r.replace(o,l[e]));c.ControlElement.html(r);var t=C,n=[],a=1,i=[],s=null;if(!isNullOrUndefined(t.enrolleeCorrelations))for(var u in t.enrolleeCorrelations)t.enrolleeCorrelations.hasOwnProperty(u)&&null!=(s=function(e,r){var l=null;null==(l=getDataItem(e,r))&&CheckUserHasPermission(45)&&(l=getDataItem(e,r+"Universal"));return l}(t.enrolleeCorrelations[u].MatchEnrolleeId,"Enrollees"))&&-1==i.indexOf(s.Id)&&(i.push(s.Id),1==a&&""==h?(n.push('<div id="uEnrolleeCorrelateTab'+t.enrolleeCorrelations[u].MatchEnrolleeId+'" class="MasterTab CorrelationTab Clickable Selected" onclick="navigateToNewCorrelation('+t.enrolleeCorrelations[u].MatchEnrolleeId+');" ItemKey="'+a+'">'),n.push('<span class="CorrelationTabName">'+s.FullName+"</span>"),n.push("</div>"),""==h&&(h="uEnrolleeCorrelateTab"+t.enrolleeCorrelations[u].MatchEnrolleeId)):(h=="uEnrolleeCorrelateTab"+t.enrolleeCorrelations[u].MatchEnrolleeId?n.push('<div id="uEnrolleeCorrelateTab'+t.enrolleeCorrelations[u].MatchEnrolleeId+'" class="MasterTab CorrelationTab Clickable Selected" onclick="navigateToNewCorrelation('+t.enrolleeCorrelations[u].MatchEnrolleeId+');" ItemKey="'+a+'">'):n.push('<div id="uEnrolleeCorrelateTab'+t.enrolleeCorrelations[u].MatchEnrolleeId+'" class="MasterTab CorrelationTab Clickable" onclick="navigateToNewCorrelation('+t.enrolleeCorrelations[u].MatchEnrolleeId+');" ItemKey="'+a+'">'),n.push('<span class="CorrelationTabName">'+s.FullName+"</span>"),n.push("</div>")),++a);$("#EnrolleeCorrelationHeaderPanelHolder").append(n.join(""))}function T(e,r,l){d=e,s=!0,isNullOrUndefined(c)||c.trigger("initialized"),veritracks.localization.localize("#"+c.ParentId),p(b)}function E(){s&&c.unbind("initialized",f),c.bind("initialized",f),$.get(i,T)}VeritracksCorrelateControl.prototype.baseClass.call(this,e,r,'<div id="'+e+'"></div>'),isNullOrUndefined(o)||(i=o),isNullOrUndefined(l)||l.CardDisplayLimit,isNullOrUndefined(t)||(p=t),isNullOrUndefined(n)||(b=n),isNullOrUndefined(a),this.setDataSource=function(e){C=e,this.isNothing(d)||this.isNothing(C)||E()},this.getDataSource=function(){return C},this.dispose=function(){c.unbind("initialized",f),c=C=null,d=i="",s=!(C=[]),h="",u=1,sumo.controls.CardView.prototype.dispose.call(this)},this.PaginateNext=function(e,r,l){h="uEnrolleeCorrelateTab"+e,u=$("#uEnrolleeCorrelateTab"+e).attr("ItemKey"),b=l,this.setDataSource(r)},this.getNextTabCount=function(e){return $("#uEnrolleeCorrelateTab"+e).attr("ItemKey")},this.isCurrentTab=function(e){var r=!1;return r=$("#uEnrolleeCorrelateTab"+e).attr("ItemKey")==u?!0:r},this.setModal=function(e){$("#"+c.Id).find('div[class~="CorrelateModal"]').show()}};VeritracksCorrelateControl.prototype=new sumo.controls.ControlBase,(VeritracksCorrelateControl.prototype.constructor=VeritracksCorrelateControl).prototype.baseClass=sumo.controls.ControlBase; 45var VeritracksThreadsControl=function(t){var n=[],i=t;this.displayGraph=function(t){return"/"+t+"?/userToken="},this.buildGraph=function(t,r,n){var i=new Graph;return i.MasterNode=t,i.Nodes=r,i.Associations=n,JSON.stringify(i)},this.setData=function(t,r){n[t]=r},this.getData=function(t){return t?n[t]:n},this.CreateGraph=function(t,r){n=[],i(t,[],r)}}; 46var VeritracksSoberTrackResultControl=function(e,t,r,l,a,i,n){"use strict";var c=this,o="",C="",p=[],s=!1,u=1,T="",d=null,b=null,f=null;function h(){var e,t=C,r=p,l="",a=null;for(e in r)if(r.hasOwnProperty(e))for(var i in r[e])l="##"+i+"##",f.hasOwnProperty(i)&&(a=f[i]),-1!=t.search(l)&&(t=isNullOrUndefined(a)?t.replace(l,r[e][i]):"Date"==a.dataType||"date"==a.dataType?t.replace(l,a.formatMethod(new Date(moment.utc(r[e][i])),r[e])):t.replace(l,a.formatMethod(r[e][i],r[e]))),a=null;c.ControlElement.html(t);var n=p,o=[],s=1,u=n.length;if(!isNullOrUndefined(n))for(var d in n)n.hasOwnProperty(d)&&(1==s&&""==T?(o.push('<div id="uEnrolleeCorrelateTab'+s+'" class="MasterTab CorrelationTab Clickable Selected" onclick="navigateToNextTest('+s+');" ItemKey="'+s+'">'),o.push('<span class="CorrelationTabName">'+n[d].ScheduleTypeName+"("+s+"/"+u+")</span>"),o.push("</div>"),""==T&&(T="uEnrolleeCorrelateTab"+s)):(o.push(T=="uEnrolleeCorrelateTab"+s?'<div id="uEnrolleeCorrelateTab'+s+'" class="MasterTab CorrelationTab Clickable Selected" onclick="navigateToNextTest('+s+');" ItemKey="'+s+'">':'<div id="uEnrolleeCorrelateTab'+s+'" class="MasterTab CorrelationTab Clickable" onclick="navigateToNextTest('+s+');" ItemKey="'+s+'">'),o.push('<span class="CorrelationTabName">'+n[d].ScheduleTypeName+"("+s+"/"+u+")</span>"),o.push("</div>")),++s);$("#EnrolleeCorrelationHeaderPanelHolder").append(o.join(""))}function m(e,t,r){C=e,s=!0,isNullOrUndefined(c)||c.trigger("initialized"),veritracks.localization.localize("#"+c.ParentId),isNullOrUndefined(d)||isNullOrUndefined(b)||d(b)}function N(){s&&c.unbind("initialized",h),c.bind("initialized",h),$.get(o,m)}VeritracksCorrelateControl.prototype.baseClass.call(this,e,t,'<div id="'+e+'"></div>'),isNullOrUndefined(l)||(o=l),isNullOrUndefined(r)||(isNullOrUndefined(r.CardDisplayLimit)||r.CardDisplayLimit,isNullOrUndefined(r.Columns))||(f=r.Columns),isNullOrUndefined(a)||(d=a),isNullOrUndefined(i)||(b=i),isNullOrUndefined(n),this.setDataSource=function(e){p=e,this.isNothing(C)||this.isNothing(p)||N()},this.getDataSource=function(){return p},this.dispose=function(){c.unbind("initialized",h),c=p=null,C=o="",s=!(p=[]),T="",u=1,sumo.controls.CardView.prototype.dispose.call(this)},this.PaginateNext=function(e,t,r){T="uEnrolleeCorrelateTab"+e,u=$("#uEnrolleeCorrelateTab"+e).attr("ItemKey"),p=t,h()},this.getNextTabCount=function(e){return $("#uEnrolleeCorrelateTab"+e).attr("ItemKey")},this.isCurrentTab=function(e){var t=!1;return t=$("#uEnrolleeCorrelateTab"+e).attr("ItemKey")==u?!0:t},this.setModal=function(e){$("#"+c.Id).find('div[class~="CorrelateModal"]').show()}};VeritracksSoberTrackResultControl.prototype=new sumo.controls.ControlBase,(VeritracksSoberTrackResultControl.prototype.constructor=VeritracksSoberTrackResultControl).prototype.baseClass=sumo.controls.ControlBase; 47var mChartingCalendarColors={"In Motion (i.e., Trip)":"#a69d7c",Home:"#00e573",Other:"#6f8197",Work:"#0a5247","Home In Progress":"#19e781","Other In Progress":"#8b9aab","Work In Progress":"#3a746b","Visit Not Labeled":"#FF9966","Visit Not Labeled In Progress":"#e5895b","Labeled Visit":"#0039ae","Labeled Visit In Progress":"#e5895b","No Location Area":"#FFFFFF"},mSoberTrackLiveBlockCharting={1:"Images/soberTrackBlockConfirm",0:"Images/soberTrackBlockConfirmFalse"},mSoberTrackLiveTestResultCharting={pu:"Images/Events/1000",pi:"Images/Events/1001",pm:"Images/Events/1002",fu:"Images/Events/1003",fm:"Images/Events/1004",fi:"Images/Events/1005",u:"Images/Events/1006",i:"Images/Events/1007"}
47,mSoberTrackLiveTestResultMapping={pu:"Images/Maps/Trackpoints/1000",pi:"Images/Maps/Trackpoints/1001",pm:"Images/Maps/Trackpoints/1002",fu:"Images/Maps/Trackpoints/1003",fm:"Images/Maps/Trackpoints/1004",fi:"Images/Maps/Trackpoints/1005",u:"Images/Events/1006",i:"Images/Events/1007"},mChartingCalendarEventIcons={1003:"Images/Maps/Cards/10100001",1001:"Images/Maps/Cards/10100001",16:"Images/Maps/Cards/10100100",20:"Images/Maps/Cards/10101000",10:"Images/Maps/Cards/10110000",13:"Images/Maps/Cards/10100010",196:"Images/Maps/Cards/shielding",371:"Images/Maps/Cards/jamming",63:"Images/satellitedark16",383:"Images/BatteryState6Dark",2001:"Images/Maps/Cards/Correlate16",2002:"Images/Maps/Cards/Correlate16KnownLocation"},mMappingEventIcons={1003:{light:"10100001",regular:"10100001"},1001:{light:"10100001",regular:"10100001"},16:{light:"10100100",regular:"10100100"},20:{light:"10101000",regular:"10101000"},27:{light:"MessageGapLight",regular:"MessageGap"},10:{light:"10110000",regular:"10110000"},13:{light:"10100010",regular:"10100010"},196:{light:"shielding",regular:"shielding"},371:{light:"jamming",regular:"jamming"},63:{light:"SatelliteLight",regular:"Satellite"},2001:{light:"Correlate16",regular:"Correlate16"},2002:{light:"Correlate16KnownLocation",regular:"Correlate16KnownLocation"}};function DataObjectBaseClass(){this.setValues=function(e){for(var a in e)this[a]=e[a]},this.ConstructorName=function(){return this.constructor.name},this.Save=function(e,a){WriteSingle(this,e,Sad,a,!0)},this.Read=function(e,a){if(-1==this.Id)throw"no Id found in the"+this.ConstructorName()+" instance ";if(!gObjectList[this.ConstructorName()])throw this.ConstructorName()+" not declared in gObjectList";var t=new SumoPredicateBuilder;t.AddNewExpressionConditional("Id",this.Id,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),ReadMultiple(gObjectList[this.ConstructorName()].AssemblyQualifiedName,t.RootExpression,0,e,Sad,this.Id,a,0)},this.Proc=function(e){if(-1==this.Id)throw"no Id found in the"+this.ConstructorName()+" instance ";var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||callAjax("Get"+this.ConstructorName(),{aSecurityToken:a,aId:this.Id},e,Sad,null,!1)},this.Post=function(e){var a=veritracks.security.controller.tryGetSecurityToken();isNullOrUndefined(a)||callAjax("Victims",{aSecurityToken:a,aSecurityContextId:-1,aVictim:this},e,Sad,null)}}"undefined"!=typeof exports&&(module.exports={mChartingCalendarColors:mChartingCalendarColors,mSoberTrackLiveBlockCharting:mSoberTrackLiveBlockCharting,mSoberTrackLiveTestResultCharting:mSoberTrackLiveTestResultCharting,mSoberTrackLiveTestResultMapping:mSoberTrackLiveTestResultMapping,mChartingCalendarEventIcons:mChartingCalendarEventIcons,mMappingEventIcons:mMappingEventIcons,DataObjectBaseClass:DataObjectBaseClass}); 48function DataItem(e){"use strict";this.ShortName=e,this.FullName="Veritracks.Core."+e,this.AssemblyQualifiedName="Veritracks.Core."+e+", Veritracks.Core, Culture=neutral, PublicKeyToken=null"}"undefined"!=typeof exports&&(module.exports=DataItem); 49function Address(t){"use strict";this.AddressTypeId=-1,this.City=t.city,this.Country=t.country,this.Description=t.formated_address,this.Latitude=t.center_latitude,this.Longitude=t.center_longitude,this.Name="",this.Radius=0,this.State=t.state,this.Street1=t.street_1,this.Street2=t.street_2,this.StreetNumber=t.street_number,this.ZipCode=t.zip}"undefined"!=typeof exports&&(module.exports=Address); 50function Agent(){"use strict";this.__type="Agent:www.veritracks.com",this.Id=-1,this.Version=0,this.FirstName="",this.FullName="",this.LastName="",this.DisplayType=1,this.DoNotifyDuringOffHours=!1,this.DutyOfficerId=-1,this.IsActive=!0,this.IsDutyOfficer=!1,this.IsOnTheClock=!1,this.IsSupervisor=!1,this.OrganizationId=-1,this.PrimaryEmail="",this.SecondaryEmail="",this.SupervisorTypeId=-1,this.TimeZoneId=1,this.TypeId=1,this.UserId=-1,this.FirstContactName="",this.FirstContactMethodId=2,this.FirstContactValue="",this.SecondContactName="",this.SecondContactMethodId=2,this.SecondContactValue="",this.ThirdContactName="",this.ThirdContactMethodId=2,this.ThirdContactValue="",this.FirstContactConfirmedFlag=-1,this.SecondContactConfirmedFlag=-1,this.ThirdContactConfirmedFlag=-1,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=Agent); 51function AgentAdditionalEnrollee(){"use strict";this.__type="AgentAdditionalEnrollee:www.veritracks.com",this.Id=-1,this.Version=0,this.EnrolleeId=-1,this.IsActive=!0,this.TransactionId="",this.UserId=-1}"undefined"!=typeof exports&&(module.exports=AgentAdditionalEnrollee); 52function AgentCardView(){"use strict";this.UserId=-1,this.AgentIds=[],this.AgentsByOrganization={},this.FullName="",this.UserName="",this.FirstName="",this.LastName="",this.OrganizationIds=[],this.Role=null,this.User=null,this.SortId="",this.SecondSortId=""}"undefined"!=typeof exports&&(module.exports=AgentCardView);
53function AgentContact(){"use strict";this.__type="AgentContact:www.veritracks.com",this.Id=-1,this.UserId=-1,this.Message="",this.Subject=""}"undefined"!=typeof exports&&(module.exports=AgentContact); 54function AgentsControls(){"use strict";this.CardView=null,this.CardViewFilter=null,this.CardViewPaginator=null,this.Validator=null,this.EscalationPlanListView=null,this.ProfileListView=null,this.CurrentCaseloadListView=null,this.CurrentCaseloadListViewFilter=null,this.CurrentCaseloadAdditionalListView=null,this.CurrentCaseloadAddAdditionalListView=null,this.MyZonesListView=null,this.MyZonesListViewFilter=null,this.DailyNotificationsListView=null,this.DailyNotificationsEventsListView=null,this.DailyNotificationsScopeListView=null,this.ImmediateNotificationsListView=null,this.ImmediateNotificationsEventsListView=null,this.ImmediateNotificationsRiskLevelListView=null,this.ImmediateNotificationsScopeListView=null,this.ImmediateNotificationsMethodListView=null,this.ImmediateNotificationsFormatListViewList=[],this.ImmediateNotificationsTimeListView=null,this.RiskLevelListView=null,this.OffHoursListView=null,this.OffHoursValidator=null,this.PasswordValidator=null,this.userPermissionsChanged=[],this.ZonesCaseloadListView=[],this.ScheduleCaseloadListView=[]}
54"undefined"!=typeof exports&&(module.exports=AgentsControls); 55function AgentsData(){"use strict";this.TargetId=-1,this.TargetIsMe=!1,this.IsFirstRun=!0,this.Clean=null,this.Sort=null,this.EscalationPlansClean=null,this.Dirty=[],this.EscalationPlansDirty=null,this.Paginated=null,this.EscalationPlansPaginated=null,this.EscalationPlanItemList=[],this.PlanEditItem=null,this.AgentsCurrentId=-1,this.UserEditItem=null,this.CardViewEditItem=null,this.CurrentOrganizations=null,this.AvailableEnrollees=null,this.AdditionalEnrollees=null,this.ArchivedEnrollees=null,this.ArchivedEnrolleesLock=!1,this.MovingCaseload=!1,this.SelectedOrganization=-1,this.SelectedAgent=-1,this.DailyNotifications=null,this.ImmediateNotifications=null,this.OffHours=null,this.OffHoursEditItem=null,this.NotificationsCurrentId=-1,this.UserPermissions=null,this.PermissionsClicked=null}"undefined"!=typeof exports&&(module.exports=AgentsData); 56function AlcoholScheduleCommand(){this.__type="AlcoholScheduleCommand:www.veritracks.com",this.Id=-1,this.EnrolleeId=null,this.EnrolleeTimeZone=""}"undefined"!=typeof exports&&(module.exports=AlcoholScheduleCommand); 57function AlcoholVideoCommand(){"use strict";this.__type="AlcoholVideoCommand:www.veritracks.com",this.Id=-1,this.EnrolleeId=null,this.EnrolleeTimeZone=""}"undefined"!=typeof exports&&(module.exports=AlcoholVideoCommand); 58function AnalyisisSpatialEnrolleeCard(){}"undefined"!=typeof exports&&(module.exports=AnalyisisSpatialEnrolleeCard); 59function AnalysisCardView(){"use strict";this.IncidentNumber="",this.StartDate=new Date,this.StartDateDisplay="",this.EndDate=new Date("12/31/9999"),this.EndDateDisplay="",this.OrganizationId=-1,this.AgentName="",this.PrimaryOffenseId=-1,this.Status=-1,this.Data=null}"undefined"!=typeof exports&&(module.exports=AnalysisCardView); 60function AnalysisControls(){"use strict";this.AnalysisDetailsMap=null,this.CardView=null,this.CardViewFilter=null,this.CardViewPaginator=null,this.Map=null,this.MapLocate=null,this.IncidentMap=null,this.IncidentMapLocate=null,this.Validator=null,this.MatchesCardView=null,this.PlaybackControl=null,this.NotificationPanel=null}"undefined"!=typeof exports&&(module.exports=AnalysisControls); 61function AnalysisData(){"use strict";this.IncidentClean=null,this.IncidentSort=null,this.IncidentDirty=null,this.IncidentPaginated=null,this.IncidentMatches=null,this.IncidentMatchesPaginated=null,this.IncidentMatchesDirty=null,this.IncidentMatchesClean=null,this.RequestId=-1,this.SpatialMatchRadius=2640,this.SpatialMatchTitle="",this.SpatialMatchIncident=null,this.TempSpatialMatchIncident=null,this.SpatialMatchesRawList=null,this.SpatialMatchStartDate=null,this.SpatialMatchEndDate=null,this.SpatialMatchesList=null,this.SpatialMatches=null,this.EnrolleeSpatialMatches=null,this.SpatialMatchesPaginated=null,this.SpatialLastLocationByCardView=null,this.DeviceIdList=[],this.EditItem=null,this.PlaybackDivider=1,this.DistancePoints=[],this.DistanceToolActive=!1,this.FilterId=-1,this.EditShape=null,this.ViewShape=null,this.AddressCards=null,this.EnrolleeMGAPCards=null,this.MGAPToggle=!1,this.AddressesToggle=!1,this.LabelCountToggle=!1,this.Tracks=[],this.SpatialRadius=1500}"undefined"!=typeof exports&&(module.exports=AnalysisData); 62function AnalysisEnrolleesSpatialMatchesCardView(){"use strict";this.Id=-1,this.FullName="",this.PrimaryId="",this.TrackingDeviceSerialNumber="",this.StartDetail="",this.EndDetail="",this.SpatialTrackStartDate="",this.SpatialTrackEndDate="",this.EnrolleeSpatialView="block",this.TrackSpatialView="none",this.EnrolleeSpatialPointCount=0,this.Latitude=0,this.Longitude=0,this.IsExpanded=!0,this.Type=2}"undefined"!=typeof exports&&(module.exports=AnalysisEnrolleesSpatialMatchesCardView); 63function AnalysisMatchesCardView(){"use strict";this.Distance=0,this.DistanceDisplay="",this.DistanceDisplayView="block",this.EndDateUTC=new Date("12/31/9999"),this.EnrolleeId=-1,this.EnrolleeName="- unauthorized -",this.PrimaryId="- unauthorized -",this.RiskLevelId=-1,this.StartDateUTC=new Date,this.Score=0,this.ScoreView="block",this.TrackpointCount=0,this.OrganizationId=-1,this.Data=null,this.StartDateDisplay="- unknown -",this.EndDateDisplay="- unknown -",this.TrackDateDisplay="- unknown -",this.AgentId=-1,this.Agent="- unauthorized -",this.AgentPrimaryEmail="- unauthorized -",this.DistanceMeasurement="feet",this.Id=-1,this.TrackingDeviceSerialNumber="",this.TrackingDeviceId=-1,this.SpatialMatchSearch=0,this.IsDeleted=!1,this.IsDeletableClass="",this.TimeZoneId=-1,this.Detail="",this.Detail2="",this.Detail3="",this.AgentDisplayView="show",this.TrackCountDisplayView="show",this.DisplayName="",this.IconClass="",this.Type=1,this.TrackItem=[],this.DisplayNavigateEnrollee="show"}"undefined"!=typeof exports&&(module.exports=AnalysisMatchesCardView); 64function AnalysisSpatialMatchesTrack(){"use strict";this.DeviceId="",this.EnrolleeId=-1,this.TrackDate="",this.TrackDateUTC="",this.TrackTypeId=-1,this.Latitude="",this.Longitude="",this.DeviceSerialNumber="- unknown -",this.GroupId=-1,this.Type=1}"undefined"!=typeof exports&&(module.exports=AnalysisSpatialMatchesTrack); 65function AssociationNode(i,t,e){var n;this.Identifier="",this.Title="",this.SubTitle="",this.IconUrl="User.png",this.Id=-1,this.ConnectionId=-1,t&&(GetDevice(i.DeviceId),n=getDataItem(t.OrganizationId,"Organizations"),this.Identifier=t.Id.toString(),this.Title=t.FullName+" ("+t.PrimaryId+")",this.SubTitle=n?n.Name:"",this.Id=t.Id,this.ConnectionId=i.PointGroupingId)}"undefined"!=typeof exports&&(module.exports=AssociationNode); 66function Billing(){this.Id=-1,this.OrganizationId=-1,this.Month="",this.DateValue="",this.AbridgedValue="",this.OffenderId=-1,this.__type="Billing:www.veritracks.com"}"undefined"!=typeof exports&&(module.exports=Billing); 67function BluHomeConfiguration(){this.__type="BluHomeConfiguration:www.veritracks.com",this.Id=-1,this.Version=0,this.CallInPeriod=-1,this.DoReset=!1,this.EnrolleeId=-1,this.InitializeFingerprint=0,this.GracePeriod=-1,this.InRangeCount=-1,this.OriginatingPhoneNumber=null,this.RfRange=-1,this.TrackingDeviceId=-1,this.UserId=-1,this.CommandType=-1,this.TopMessage="",this.BottomMessage="",this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=BluHomeConfiguration); 68function BluPlusConfiguration(){this.__type="BluPlusConfiguration:www.veritracks.com",this.Id=-1,this.Version=0,this.EnrolleeId=-1,this.TetheredAddressId=-1,this.VerificationPeriod=-1,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=BluPlusConfiguration); 69function BluhomeCommandStatus(t,e){"use strict";this.__type="BluhomeCommand:www.veritracks.com",this.BluHomeInitiateStatus="",this.Command=null,this.UpdateDateUTC=null,this.EnrolleeID=t,this.ID=e}"undefined"!=typeof exports&&(module.exports=BluhomeCommandStatus); 70function Collection(){this.Title="",this.Nodes=[]}"undefined"!=typeof exports&&(module.exports=Collection); 71function Connection(){this.Node1=[],this.Node2=[],this.Reasons=[]}"undefined"!=typeof exports&&(module.exports=Connection); 72function ConnectionReason(n,o){this.Description=o,this.Id=n.PointGroupingId}"undefined"!=typeof exports&&(module.exports=ConnectionReason); 73function ConnectionType(){this.Title="reasons for this"}"undefined"!=typeof exports&&(module.exports=ConnectionType); 74function Contact(){"use strict";this.Id=-1,this.DeviceId=-1,this.TrackDate=new Date,this.Latitude=0,this.Longitude=0,this.Speed=0,this.Direction=0,this.BatteryLevel=-1,this.BatteryVoltage=0,this.ContactDate=new Date,this.Status=-1,this.DeviceVersion=0,this.RecordCount=0,this.GpsRecordCount=0,this.PercentGps=0}"undefined"!=typeof exports&&(module.exports=Contact); 75function DashboardControls(){"use strict";this.ListView=null,this.ListViewFilter=null,this.ListViewPaginator=null,this.SortReportListView=null,this.Tiles={},this.ColumnsListView=null,this.ColumnsDropdown=null,this.EventsListView=null,this.EventsListViewPaginator=null,this.NotesManager=null,this.ReportColumnValidator=null,this.ReportColumnUpdateValidator=null,this.LastLocationMap=null}"undefined"!=typeof exports&&(module.exports=DashboardControls); 76function DashboardData(){"use strict";this.IsExpanderVisible=!1,this.PendingDataItemCount=5,this.ListViewPanel=null,this.EventList=[],this.CacheList=[],this.ConfirmStepCount=0,this.IsCacheInitialized=!1,this.IsDataIntitialized=!1,this.IsFullReportInitialized=!1,this.DataDirty=null,this.DataPaginated=null,this.EventData=null,this.EventDataPaginated=null,this.EnrolleeSelected=null,this.EventDebug=[],this.ReportData=null,this.LastTrackEnrolleeId=-1,this.EventReportIconsStatus=!1}"undefined"!=typeof exports&&(module.exports=DashboardData); 77function DashboardReport(s,e){"use strict";this.__type="DashboardReport:www.veritracks.com",this.Id=-1,this.Version=0,this.Description="",isNullOrUndefined(e)||(this.Description=e),this.IsActive=!0,this.UserId=-1,isNullOrUndefined(s)||(this.UserId=s)}"undefined"!=typeof exports&&(module.exports=DashboardReport); 78function DashboardReportColumn(e,r,s,t){"use strict";this.__type="DashboardReportColumn:www.veritracks.com",this.Id=-1,this.Version=0,this.DashboardReportId=-1,isNullOrUndefined(r)||(this.DashboardReportId=r),this.EnrolleeReportColumnId=-1,isNullOrUndefined(s)||(this.EnrolleeReportColumnId=s),this.IsActive=!0,this.SortOrder=-1,isNullOrUndefined(t)||(this.SortOrder=t),this.UserId=-1,isNullOrUndefined(e)||(this.UserId=e)}"undefined"!=typeof exports&&(module.exports=DashboardReportColumn); 79function DeactivateAgentCheck(){"use strict";this.__type="DeactivateAgentCheck:www.veritracks.com",this.Id=-1,this.Result=-1}"undefined"!=typeof exports&&(module.exports=DeactivateAgentCheck); 80function DeviceAction(){"use strict";this.__type="DeviceAction:www.veritracks.com",this.Id=-1,this.Version=0,this.ActionDateUTC=new Date,this.ActionStatus=-1,this.ActionType=-1}"undefined"!=typeof exports&&(module.exports=DeviceAction); 81function DeviceAssignment(e,t){"use strict";this.__type="DeviceAssignment:www.veritracks.com",this.Id=e,this.Version=0,this.EndDate=new Date("12/31/9999"),this.EnrolleeId=t,this.ReasonFor
81Change="",this.ChargerReturnStatus="",this.StartDate=new Date,this.AudibleToneFlag=0,this.AlcoholDeviceId=-1}"undefined"!=typeof exports&&(module.exports=DeviceAssignment); 82function DeviceAssignmentCardView(){"use strict";this.Id=-1,this.ProductId=-1,this.Title="",this.Description="",this.OrganizationId=-1,this.IsAssignable=!1,this.IsMultiAssignable=!1,this.EnrolleeId=-1,this.IsBluPlus=!1,this.Zone="",this.ZoneId=0}"undefined"!=typeof exports&&(module.exports=DeviceAssignmentCardView); 83function DeviceCluster(){"use strict";this.__type="DeviceCluster:www.veritracks.com",this.Id=-1,this.Version=0,this.Description="",this.IsActive=!0,this.Name="",this.OrganizationId="",this.ZoneId=-1,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=DeviceCluster); 84function DeviceClusterDevice(e,i,t){"use strict";this.__type="DeviceClusterDevice:www.veritracks.com",this.Id=-1,this.Version=0,this.DeviceClusterId=e,this.DeviceId=i,this.IsActive=t,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=DeviceClusterDevice); 85function DeviceClusterEnrollee(e,t,s,i){"use strict";this.__type="DeviceClusterEnrollee:www.veritracks.com",this.Id=-1,this.Version=0,this.DeviceClusterId=e,this.EnrolleeId=t,this.IsActive=s,this.TransactionId=i}"undefined"!=typeof exports&&(module.exports=DeviceClusterEnrollee); 86function DeviceEnrolleeItem(e){"use strict";this.__type="Device:www.veritracks.com",this.Id=e.Id,this.Version=e.Version,this.CarrierId=e,this.IsActive=e,this.IsInUse=e.IsInUse,this.Mode=e.Mode,this.OrganizationId=e.OrganizationId,this.OrganizationName,this.ProductId=e.ProductId,this.ProductName,this.ProductType=e.ProductType,this.SerialNumber=e.SerialNumber,this.Status=e.Status,this.STTotalTests=e.STTotalTests,this.DaysInSchema=e.DaysInSchema,this.EnrolleeName="",this.Enrollee=null,this.LastContact="",this.BatteryLevel="",this.MessageGap="",this.DeviceDetailContactDisplay="none",this.DeviceDetailEnrolleeDisplay="none",this.TransactionId=moment().format("YYYYMMDDHHmmss"),this.DualCarrierFlag=e.DualCarrierFlag,this.DeviceDualCarrierDisplay="CallIconProperty",this.DeviceStatusDisplay="none",this.UserId=-1}"undefined"!=typeof exports&&(module.exports=DeviceEnrolleeItem); 87function DeviceEnrolleeListData(){this.SerialNumber="",this.Id=-1,this.Version=0,this.FirstName="",this.FullName="",this.LastName="",this.AgentId=-1,this.Birthdate=new Date(-621355968e5),this.IsActive=!1,this.IsAssigned=!1,this.OrganizationId=-1,this.PrimaryId="",this.RiskLevelId=-1,this.SecondaryId="",this.ArchiveFlag="N",this.TimeZoneCode="",this.TimeZoneId=-1,this.ReferralDate=new Date(-621355968e5),this.EnrolleeType=1,this.HasVictimFlag=!1,this.HasAssociationFlag=0,this.SoberTrackDeviceFlag=0,this.OffenderPayFlag=0}"undefined"!=typeof exports&&(module.exports=DeviceEnrolleeListData); 88function DistanceCard(){this.Latitude="",this.Longitude=""}"undefined"!=typeof exports&&(module.exports=DistanceCard); 89function EMAChangeRequest(e){"use strict";if(this.__type="EMAChangeRequest:www.veritracks.com",this.Id=0,this.EnrolleeId=-1,this.EMAUserId="",this.ChangeReqTypeId="",this.ChangeReqNewValue="",this.ChangeRequestKeyValue="",this.ZoneName="",this.ZoneId=0,this.Description="",this.AgentDecision=0,this.AppUserId="",this.StartDate=new Date("01 Jan 2001 6:00 AM"),this.StopDate=new Date("01 Jan 2001 8:00 PM"),this.ActionId=-1,this.UserId=0,this.AgentNotes="",this.CheckInRequired=0,e&&void 0!==e&&null!=e)for(var t in e)this[t]=e[t]}"undefined"!=typeof exports&&(module.exports=EMAChangeRequest); 90function EMAEnrolleePeriodicCheckin(){"use strict";this.__type="EMACheckInSchedule:www.veritracks.com",this.Id="",this.CheckinTypeID=2,this.OffsetValue=0,this.CheckinInterval=15,this.NumberOfCheckIn=1,this.StartTime="",this.EndTime="",this.IsSunday=0,this.IsMonday=0,this.IsTuesday=0,this.IsWednesday=0,this.IsThursday=0,this.IsFriday=0,this.IsSaturday=0,this.AppUserId=""}"undefined"!=typeof exports&&(module.exports=EMAEnrolleePeriodicCheckin); 91function EMAEnrolleeStatus(){"use strict";this.__type="EMAEnrolleeStatus:www.veritracks.com",this.Id="",this.HasEnrolleeMobileApp=0,this.CellPhoneNumber="",this.AppUserId="",this.EMAFlag=0}"undefined"!=typeof exports&&(module.exports=EMAEnrolleeStatus); 92function EMAOnDemandCheckin(){"use strict";this.__type="EMAOnDemandNotification:www.veritracks.com",this.Id="",this.AppUserId="",this.AgentId=-1,this.IsVideoCall=-1,this.AgentName=""}"undefined"!=typeof exports&&(module.exports=EMAOnDemandCheckin); 93function EMAVideoCallStatus(){"use strict";this.__type="EMAVideoCallStatus:www.veritracks.com",this.Id="",this.AppUserId="",this.AgentId=-1,this.Status=-1,this.Duration=-1,this.AgentName=""}"undefined"!=typeof exports&&(module.exports=EMAVideoCallStatus); 94function EidQuota(){"use strict";this.__type="EidQuota:www.veritracks.com",this.Id=-1,this.OrganizationId=-1,this.EidTypeId=-1}"undefined"!=typeof exports&&(module.exports=EidQuota); 95function EidReservation(){"use strict";this.__type="EidReservation:www.veritracks.com",this.Id=-1,this.EnrolleeId=-1,this.StatusId=-1,this.UserId=-1,this.EidTypeId=-1,this.StartDate=new Date,this.EndDate=new Date}"undefined"!=typeof exports&&(module.exports=EidReservation); 96function EmptyOffenderAbsenceSchedule(){this.__type="OffenderAbsenceSchedule:www.veritracks.com",this.Id=-1,this.Reason="",this.EnrolleeId=-1,this.IsFriday="",this.IsMonday="",this.IsSaturday="",this.IsSunday="",this.IsThursday="",this.IsTuesday="",this.IsWednesday="",this.StartDate="",this.StartTime="",this.StopTime="",this.IsActive="",this.IsRecurring=!1,this.ScheduleTypeId=-1,this.EntityId=-1,this.EntityName="",this.ZoneScheduleType=-1,this.TransactionId=moment().format("YYYYMMDDHHmmss"),this.TitleUpdatedFlag="",this.MonScheduleId=-1,this.TueScheduleId=-1,this.WedScheduleId=-1,this.ThuSc
96heduleId=-1,this.FriScheduleId=-1,this.SatScheduleId=-1,this.SunScheduleId=-1}"undefined"!=typeof exports&&(module.exports=EmptyOffenderAbsenceSchedule); 97function Enrollee(e){"use strict";if(this.__type="Enrollee:www.veritracks.com",this.Id=-1,this.Version=0,this.FirstName="",this.FullName="",this.LastName="",this.AgentId=-1,this.Birthdate=new Date(-621355968e5),this.IsActive=!1,this.IsAssigned=!1,this.AudibleToneFlag=0,this.OrganizationId=-1,this.PrimaryId="",this.RiskLevelId=-1,this.SecondaryId="",this.ArchiveFlag="N",this.TimeZoneCode="",this.TimeZoneId=-1,this.ReferralDate=new Date(-621355968e5),this.EnrolleeType=1,this.HasVictimFlag=!1,this.HasAssociationFlag=0,this.SoberTrackDeviceFlag=0,this.OffenderPayFlag=0,this.IsEnrollink=0,this.TransactionId="",e&&void 0!==e&&null!=e)for(var t in e)this[t]=e[t]}Enrollee.prototype=new DataObjectBaseClass,(Enrollee.prototype.constructor=Enrollee).prototype.Save=function(i,e){var t,s=new SumoPredicateBuilder,n=this,a=(s.Clear(),s.AddNewExpressionConditional("TimeZoneCode",this.TimeZoneCode,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),query(getDataItems("TimeZone"),s.RootExpression));for(t in a)a.hasOwnProperty(t)&&(this.TimeZoneId=a[t].Id);this.FirstName=this.FirstName,this.LastName=this.LastName,this.Birthdate="",this.FullName=this.LastName+", "+this.FirstName,WriteSingle(this,function(e,t){isNullOrUndefined(t)||(FixDates(t),t=Object.assign({},n,t,{__type:n.__type}),n.setValues(t),i(e,n))},Sad,e,!0)},Enrollee.prototype.GetDeviceAssignment=function(){var t=[];return isNullOrUndefined(gCurrentDeviceAssignment[this.Id])||gCurrentDeviceAssignment[this.Id].map(function(e){t.push(e)}),t},Enrollee.prototype.GetVictim=function(i){var e,s=this;this.Id&&((e=new SumoPredicateBuilder).AddNewExpressionConditional("SamaAssociateEnrolleeId",this.Id,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And()),ReadMultiple(gObjectList.VictimProfile.AssemblyQualifiedName,e.RootExpression,0,function(e,t){s.setValues(Object.assign({},s,t,{__type:s.__type})),i(e,t)},failure,null,null,0))},"undefined"!=typeof exports&&(module.exports=Enrollee); 98function EnrolleeAddress(){"use strict";this.__type="EnrolleeAddress:www.veritracks.com",this.Id=-1,this.AdditionalInfo="",this.AddressTypeId=-1,this.City="",this.Country="",this.EnrolleeId=-1,this.IsActive=!0,this.Latitude=0,this.Longitude=0,this.PositionMatchesGeocode=null,this.Notes="",this.PhoneNumber="",this.PhoneNumber2="",this.State="",this.Street1="",this.Street2="",this.Title="",this.Description="",this.Zip="",this.ZoneId=-1,this.TetheredLocationFlag=!1,this.TransactionId=moment().format("YYYYMMDDHHmmss"),this.UpdatedUTC=new Date,this.CreatedDateUTC=new Date}"undefined"!=typeof exports&&(module.exports=EnrolleeAddress); 99function EnrolleeAlternateContact(){this.__type="EnrolleeAlternateContact:www.veritracks.com",this.Id=-1,this.Name="",this.Phone="",this.Email=""} 100function EnrolleeAssociationThread(){"use strict";this.__type="EnrolleeAssociationThread:www.veritracks.com",this.Id=-1,this.PointGroupingId=-1,this.IsActive=1,this.ThreadId="",this.UserId=-1}"undefined"!=typeof exports&&(module.exports=EnrolleeAssociationThread); 101function EnrolleeCardView(){"use strict";this.Enrollee=null,this.Id=-1,this.IsAssigned=!1,this.LastLatitude=0,this.LastLongitude=0,this.LastContactDate=new Date(0),this.LastContactDateDisplay="- unassigned -",this.LastTrackpointDate=new Date(0),this.LastTrackpointDateDisplay="- unassigned -",this.LastContactBatteryLevel="",this.LastContactBatteryDisplay="none",this.LastContactVersion="",this.FullName="",this.FirstName="",this.LastName="",this.PrimaryId="",this.EnrolleeType=1,this.TrackingDeviceId=-1,this.TrackingDeviceDisplay="none",this.TrackingDeviceSerialNumber="- unassigned -",this.TrackingDeviceContactDate=new Date(0),this.TrackingDeviceContactDateDisplay="",this.LastCheckDateDisplay="",this.LastCheckDisplay="none",this.LastTestDateDisplay="",this.LastTestDisplay="none",this.TrackingDeviceContactDisplay="none",this.StationDeviceId=-1,this.StationDeviceDisplay="none",this.StationDeviceSerialNumber="- unassigned -",this.StationDeviceContactDate=new Date(0),this.StationDeviceContactDateDisplay="",this.StationDeviceContactDisplay="none",this.DeviceSerialNumber="- unassigned -",this.DeviceId=-1,this.DeviceTrackType=-1,this.LastContactDisplay="none",this.HasGpsDevice=!1,this.DeviceStatus="",this.DeviceStatusId="",this.DeviceStatusDisplay="none",this.RiskLevelId="",this.HasOpenEvents=!1,this.TamperEventDisplay="none",this.ZoneEventDisplay="none",this.ScheduleEventDisplay="none",this.EventIconDisplay="none",this.VictimEventLevel="",this.VictimIconDisplay="none",this.VictimEventLevelDesc="",this.LastContactBatteryImage="",this.SecondaryId="",this.AgentName="",this.OrganizationId="",this.IsMyCaseload=!1,this.InMyOrganization=!1,this.HasVictimDisplay="none",this.AssociationEventDisplay="none",this.HasAssociationFlag=!1,this.LastAssociationDate="",this.EnrolleesMapTransactionStartDate=null,this.EnrolleesMapTransactionStopDate=null,this.HasEmaEvents="none",this.HasSoberTrackDevice=!1,this.SoberTrackDisplay="none",this.SobertrackUsage="None"}"undefined"!=typeof exports&&(module.exports=EnrolleeCardView); 102function EnrolleeChartGrouping(){this.StartDate=new Date,this.StopDate=new Date,this.EventList=[],this.Associations=[],this.MatchType="",this.Title="",this.TimelineData=null,this.PotentialTrip=!1}"undefined"!=typeof exports&&(module.exports=EnrolleeChartGrouping); 103function EnrolleeCorrelateControl(e,t,i,r,s,l,n,o,a){"use strict";this.Address="",this.PrimaryId="",this.AgentName="",this.AgentId="",this.Birthdate="",this.EnrolleeName="",this.EnrolleId="",this.Organization="",this.RiskLevel="",this.Supervision="",this.TimeZone="",this.ReferralDate="",this.photoUri="",this.VisitStartDate="",this.VisitEndDate="",this.VisitId="",this.enrolleeCorrelations=[],this.EnrollmentDuration="",this.enrolleeRedirectFunction="",this.PhotoUri="Images/NoPhoto.png",this.PhotoDescription="",isNullOrUndefined(e)||(this.EnrolleeId=e.Id,this.PrimaryId=e.PrimaryId,this.Birthdate=e.Birthdate,this.EnrolleeName=e.FullName,this.Supervision=EnrolleeAssignedFormatter(e.IsAssigned),this.RiskLevel=EnrolleeRiskLevelFormatter(e.RiskLevelId),isNaN(e.ReferralDate.getTime())||0==e.ReferralDate.getFullYear()||(this.ReferralDate=DisplaySuperShortDate(e.ReferralDate)),this.enrolleeRedirectFunction="onEnrolleeCorrelationClick("+e.Id+");"),isNullOrUndefined(t)||(this.Organization=t.Name),isNullOrUndefined(i)||(this.AgentName=i.FullName,this.AgentId=i.Id),isNullOrUndefined(r)||(this.TimeZone=localizeDataItem("TimeZone",r.Name)),isNullOrUndefined(s)||(this.Address=s.Address,this.VisitId=s.Id,!isNullOrUndefined(s.TrackItem.data.EndDateUTC)&&s.TrackItem.data.StartDateUTC&&(this.VisitStartDate=displayEnrolleeTimeZoneFormatted(s.TrackItem.data.StartDateUTC,r),this.VisitEndDate=displayEnrolleeTimeZoneFormatted(s.TrackItem.data.EndDateUTC,r))),a&&(this.Address=a),isNullOrUndefined(l)||(this.enrolleeCorrelations=l),isNullOrUndefined(n)||(this.PhotoUri=MUGSHOTS+n.PhotoUri),isNullOrUndefined(n)||(this.PhotoDescription=n.PhotoDescription),isNullOrUndefined(o)||(this.EnrollmentDuration=dateSelectorFormatter(o.SupervisionBeginDate)+" - "+dateSelectorFormatter(o.SupervisionEndDate))}"undefined"!=typeof exports&&(module.exports=EnrolleeCorrelateControl); 104function EnrolleeFrp(t,e){"use strict";this.__type="EnrolleeFrp:www.veritracks.com",this.Id=-1,this.EnrolleeId=0,this.FirstName="",this.LastName="",this.Street1="",this.Street2="",this.City="",this.State="",this.Country="",this.Zip="",this.PhoneNumber="",this.PhoneNumber2="",this.IsActive=!0,this.Email="",t&&(this.City=t.City,this.Country=t.Country,this.State=t.State,this.Zip=t.Zip,this.Street1=t.Street1,this.Street2=t.Street2),e&&(this.EnrolleeId=e.Id)}"undefined"!=typeof exports&&(module.exports=EnrolleeFrp); 105function EnrolleeProtocolRefresh(){"use strict";this.__type="EnrolleeProtocolRefresh:www.veritracks.com",this.Id=-1}"undefined"!=typeof exports&&(module.exports=EnrolleeProtocolRefresh); 106function EnrolleeReport(){this.__type="EnrolleeReport:www.veritracks.com",this.Version=0,this.Id=-1,this.OrganizationId=-1,this.MetricId=-1,this.Value=-1}"undefined"!=typeof exports&&(module.exports=EnrolleeReport); 107function EnrolleeSafeLabel(){this.__type="EnrolleeSafeLabel:www.veritracks.com",this.Id=-1,this.EnrolleeId=0,this.ZoneId=0,this.DeviceId=0,this.AddressId=0}"undefined"!=typeof exports&&(module.exports=EnrolleeSafeLabel);
108function EnrolleesControls(){"use strict";this.CardView=null,this.CardViewTimer=null,this.CardViewOffenderFilter=null,this.CardViewVictimFilter=null,this.CardViewOffenderPaginator=null,this.CardViewVictimPaginator=null,this.EnrolleesMap=null,this.TimelineMap=null,this.NotificationPanel=null,this.EnrolleeMapLocate=null,this.OffenderTrackpointDetailCardView=null,this.LatestAssociationsListView=null,this.OffenderTrackpointDetailCardViewFilter=null,this.OffenderSecondaryEnrolleeListView=null,this.MapSettingsListView=null,this.PlaybackControl=null,this.LabelEditValidator=null,this.PrimaryEnrolleeTimer=null,this.SecondaryEnrolleeTimer=null,this.OffenderHeatMap=null,this.OffenderHeatMapCardView=null,this.OffenderHeatMapCardViewFilter=null,this.OffenderAddHeatMapCardView=null,this.OffenderHeatMapHelpPopup=null,this.LegendDropdown=null,this.DetailsDropdown=null,this.LocateDropdown=null,this.NotesDropdown=null,this.SettingsDropdown=null,this.OffenderProfileValidator=null,this.VictimProfileValidator=null,this.EventsListView=null,this.EventsListViewFilter=null,this.EventsNotesManager=null,this.EventsListViewPaginator=null,this.NotesManager=null,this.ContactHistoryListView=null,this.DeviceAssignmentsListView=null,this.DeviceAssignmentsMap=null,this.DeviceAssignmentsContactList=null,this.TrackingDeviceCardView=null,this.StationCardView=null,this.AddOnCardView=null,this.DeviceAssignmentsValidator=null,this.DeviceAssignmentsWizard=null,this.BluHomeEditValidator=null,this.SchedulesListView=null,this.SchedulesView=null,this.SchedulesTargetCardView=null,this.SchedulesBluPlusConfigurationListView=null,this.veritracksCalendar=null,this.AddressesMap=null,this.AddressesValidator=null,this.VictimNotificationsListView=null,this.veritracksChartMap=null,this.veritracksChartMiniMap=null,this.TimelinePlacesListView=null,this.TimelinePlacesValidator=null,this.TimelineAddressValidator=null,this.CarvingValidator=null,this.PrintMap=null,this.blueBoxMap=null,this.Threads=null,this.EnrolleesCorrelateMap=null,this.EnrolleesLatestAssociationsMap=null,this.SoberTrackTestResultControl=null,this.EMACheckInHistoryListView=null,this.EidQuotaListView=null}"undefined"!=typeof exports&&(module.exports=EnrolleesControls); 109function EnrolleesData(){"use strict";this.TargetId=-1,this.AddressEditItem={},this.MaximumZoneRadius=402,this.RequestId=-1,this.OffenderMapRequestCount=0,this.DistancePoints=[],this.DistanceToolActive=!1,this.CardView=null,this.IsCardviewInitialized=!1,this.IsSecondaryVisible=!0,this.OffenderCurrentId=-1,this.OffenderEditingId=-1,this.OffenderEidReservation=null,this.OffenderClean=null,this.OffenderSort=null,this.OffenderDirty=null,this.OffenderPaginated=null,this.OffenderEvents=null,this.OffenderEventsSorted=null,this.OffenderEventsRendered=null,this.OffenderEnrollment=null,this.StationDeviceTypeWizard=null,this.OffenderDeviceClusters=null,this.OffenderDeviceAddOns=null,this.OffenderProfileCurrent=null,this.OffenderProfileCategories=[],this.OffenderProfileSexOffenses=[],this.OffenderProfileAddresses=[],this.OffenderZoneEdit=null,this.OffenderZoneShapeEdit=null,this.OffenderVisitTagId=-1,this.OffenderTimeZoneIsOverridden=!0,this.OffenderScheduleConfiguration=null,this.Validator=null,this.VictimEnrollment=null,this.VictimAssignableOffenders,this.TagCardClean=null,this.OffenderMapCardClean=null,this.OffenderMapCardDirty=null,this.OffenderMapCardRendered=null,this.TagOverlayClean=null,this.OffenderMapOverlayClean=null,this.OffenderMapOverlayDirty=null,this.OffenderCaseLoad=null,this.IsOffenderMapFit=!1,this.OffenderSecondaryCurrentId=null,this.OffenderSecondaryClean=null,this.OffenderSecondaryDirty=null,this.OffenderSecondaryPaginated=null,this.OffenderSecondaryMapCardClean=null,this.OffenderSecondaryMapCardDirty=null,this.OffenderSecondaryMapCardPaginated=null,this.OffenderSecondaryMapOverlayClean=null,this.OffenderSecondaryMapOverlayDirty=null,this.OffenderMerged=null,this.OffenderMergedPaginated=null,this.StationsClean=null,this.StationEnrollees=null,this.AddOnsAvailable=!1,this.AddOnsClean=null,this.EnrolleeZoneIdList=[],this.SchedulesZonesClean=null,this.SchedulesAddressesClean=null,this.SchedulesTargetsClean=null,this.SchedulesEditItem=new OffenderSchedule,this.SchedulesValidator=null,this.VictimCurrentId=-1,this.VictimSecondaryCurrentId=-1,this.VictimEditingId=-1,this.VictimClean=null,this.VictimDirty=null,this.VictimPaginated=null,this.VictimSort=null,this.VictimProfileCurrent=null,this.VictimTempId=-1,this.VictimNotifications=[],this.PlaybackStatus="Stopped",this.PlaybackDirection=1,this.PlaybackDivider=1,this.MapRenderState=new MapSettingState,this.EventsPaginated=null,this.MapEndDate=new Date,this.TargetZoneId=-1,this.LastLocationByCardView=null,this.OffenderPastData=[],this.VisitsProcesssed=!1,this.VisitPointCount=0,this.TrackPointCount=0,this.CellTowerPointCount=0,this.AnalysisEnrollee=-1,this.EnrolleesTimeZone=null,this.EnrolleeChangeReasonHolder=[],this.Lock
109FeatureEndSaveState=null,this.LockFeatureStartSaveState=null,this.LockedOffender=null,this.secondLockDate=null,this.secondLockOnEnrolleeId=null,this.IsEnrolleeCacheClicked=!1,this.IsEnrolleeCacheUpdateAvailable=!1,this.IsExpandedAllVisits=!1,this.GpsCount=-1,this.EnrolleeAddressGeocodeMatch=null,this.EnrolleeRecentlyUpdated=[],this.EnrolleesSchedulesSorted=null,this.EnrolleesSchedulesPaginated=null,this.OffenderPhotos=[],this.OffenderPhotoIndex=0,this.OffenderPhotoDescription="",this.OffenderPhotosAdded=[],this.OffenderPhotosEdited=[],this.OffenderPhotosDeleted=[],this.OffenderPhotosEditMode="Display",this.ChartStartDate=null,this.ChartEndDate=null,this.ChartingEnrolleeId=-1,this.CurrentTimelineEvent=null,this.TimelinePopupOption="Default",this.BluPlusConfiguration=null,this.OffenderFrp=[],this.Frps=[],this.CurrentOffenderFrpId=-1,this.QueuedFrps=[],this.DefaultView="Cards",this.HeatMapStartDate=null,this.HeatMapEndDate=null,this.HeatMapStartTime=null,this.HeatMapEndTime=null,this.OffenderHeatMapAddOnSelected=[],this.OffenderHeatMapSelected=[],this.sobertracksResults=[],this.CurrentAlcoholImage=null,this.CurrentAlcoholImages=[],this.CurrentAlcoholSchedule=null,this.CurrentAlcoholResult=null,this.SoberTrackResultsDirty=[],this.OffenderPhotosAlcohol=[],this.OffenderPhotoIndexAlcohol=0,this.OffenderPhotoDescriptionAlcohol="",this.OffenderPhotosAddedAlcohol=[],this.OffenderPhotosEditedAlcohol=[],this.OffenderPhotosDeletedAlcohol=[],this.OffenderAlcoholScheduleNoteContent=null,this.AlcoholNotesManager=null,this.AlcoholNotesList=null,this.SoberTrackReviewListSorted=null,this.SoberTrackAssigned=!1,this.SoberTrackAssignedPreviously=!1,this.SoberTrackBlockDelete=[],this.OffenderAlcoholSchedSTDWarning=!1,this.OffenderAlcoholSchedWarningData=null,this.OffenderAlcoholSchedSTDPreWarning=!1,this.CarveOutDelete=[],this.ScheduleToggleSelected=!1,this.CarveOutTargetsClean=null,this.CarveOutScheduleTargetListView=null,this.OffenderSchedules=[],this.EnrolleeLatestWeekAssociation=[],this.EnrolleeLatestWeekAssociationSelected=null,this.EnrolleeBPLTBS=null,this.AgentTimeManagement=[],this.EnrolleesMapTransactionStartDate=null,this.EnrolleesMapTransactionStopDate=null,this.EnableInformatics=0,this.EnrolleeAlternateContact=new EnrolleeAlternateContact,this.EnrolleeAlternateContacts=[]}"undefined"!=typeof exports&&(module.exports=EnrolleesData); 110function EscalationPlan(){"use strict";this.__type="EscalationPlan:www.veritracks.com",this.Id=-1,this.Version=0,this.CycleInterval="",this.IsActive=!0,this.IsShared=!1,this.Name="",this.OrganizationId=-1,this.RetryCount="",this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=EscalationPlan); 111function EscalationPlanCardView(){"use strict";this.EscalationPlanId=-1,this.OrganizationId=-1,this.Name="",this.OrganizationName="",this.Plan=null,this.Organization=null}"undefined"!=typeof exports&&(module.exports=EscalationPlanCardView); 112function EscalationPlanItem(){"use strict";this.__type="EscalationPlanItem:www.veritracks.com",this.Id=-1,this.Version=0,this.AgentId=-1,this.ContactInterval=0,this.ContactTypeId=-1,this.EscalationPlanId=-1,this.IsActive=!0,this.SortOrder=-1,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=EscalationPlanItem); 113function EscalationPlanRiskLevel(){"use strict";this.__type="EscalationPlanRiskLevel:www.veritracks.com",this.Id=-1,this.Version=0,this.AgentId=-1,this.EscalationPlanId=-1,this.IsActive=!0,this.RiskLevelId=-1,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=EscalationPlanRiskLevel); 114function EventDetailList(){"use strict";this.Id=-1,this.IsConfirmed=-1,this.IsOpen=-1,this.StartDateUTC=new Date,this.StopDateUTC=new Date,this.ZoneId=-1,this.DeviceId=-1,this.ConfirmedDateUTC=new Date,this.DisplayLevel=-1,this.DisplayFlag=0,this.ConfirmedByUserId=-1,this.ZoneTrackPointCount=-1,this.EnrolleeId=-1,this.Description="Unknown",this.MetaEventId=-1,this.Notes='<div class="NotesIconProperty" onclick="enrolleeEventNotes_OnClick(0)">0</div>',this.NoteData=[],this.MeNotes='<div class="MeNotesIconProperty" onclick="enrolleeMeEventNotes_OnClick(0)">0</div>',this.MeNoteData=[],this.MonitoredEvent="<div>N/A</div>",this.MonitoredEventId=-1,this.SortId="",this.EventData=null}"undefined"!=typeof exports&&(module.exports=EventDetailList); 115function EventsCard(){"use strict";this.EventId=-1,this.MetaEventId=-1,this.MetaEventDescription="",this.EnrolleeId=-1,this.EnrolleeName="- unknown -",this.EnrolleeFirstName="",this.EnrolleeLastName="",this.StartDateUTC=new Date,this.StartDateDisplay="",this.StopDateUTC=new Date,this.StopDateDisplay="",this.Duration=0,this.DeviceId=-1,this.ZoneName="- none - ",this.ZoneTrackPointCount=0,this.SerialNumber="",this.IsOpen=!1,this.HasNotes=!1,this.HasNotesDisplay="",this.ConfirmedDateUTC=localizeText("cEventNotConfirmed"),this.IsConfirmed=!1,this.IsConfirmedDisplay="",this.ConfirmedByUserID=-1,this.ConfirmedByName=localizeText("cEventNotConfirmed"),this.IsMyCaseload=!1,this.SortOrder=3,this.IsAssigned=!1,this.DataItem=null,this.ItemId=null,this.SortId="",this.HasMonitoredEvent=!1,this.RiskLevel="",this.RiskLevelId=-1,this.OrganizationId=-1}"undefined"!=typeof exports&&(module.exports=EventsCard);
116function EventsControls(){"use strict";this.CardView=null,this.CardViewTimer=null,this.CardViewFilter=null,this.CardViewPaginator=null,this.Map=null,this.MapLocate=null,this.MapSettingsListView=null,this.PlaybackControl=null,this.TrackpointCardView=null,this.TrackpointCardViewFilter=null,this.EventsListView=null,this.LegendDropdown=null,this.DetailsDropdown=null,this.LocateDropdown=null,this.NotesDropdown=null,this.SettingsDropdown=null,this.NotesManager=null,this.NotificationPanel=null,this.MapSettingState=null,this.PlaybackControl=null}"undefined"!=typeof exports&&(module.exports=EventsControls); 117function EventsData(){"use strict";this.CurrentId=-1,this.TargetId=-1,this.CurrentTrackpoints=null,this.CurrentTrackpointsPaginated=null,this.Clean=null,this.Sort=null,this.Dirty=null,this.Paginated=null,this.HistoryClean=null,this.PaginationData=null,this.HistorySort=null,this.HistoryDirty=null,this.HistoryPaginated=null,this.DistancePoints=[],this.DistanceToolActive=!1,this.MapRequestCount=0,this.PlaybackStatus="Stopped",this.PlaybackDirection=1,this.PlaybackDivider=1,this.MapRenderState=new MapSettingState,this.RequestId=null,this.IsSort=!1,this.ReturnEnrolleeId=-1}"undefined"!=typeof exports&&(module.exports=EventsData); 118function FixGetTime(e,i){"use strict";var t=5,i=getTimezone(i),e=displayFixedTimeZoneTime(e,i.TimeZoneName),i=getTimeZoneUTCDday(e,i.TimeZoneName),e=e.getDay();return 0==e&&6==i||1==e&&0==i?t=0:6==e&&0==i||0==e&&1==i||e<i?t=1:i<e&&(t=0),t}"undefined"!=typeof exports&&(module.exports=FixGetTime); 119function FullCalendarCarveOutSchedule(e,t,d,a,i,l,s,r,h){"use strict";var u=e.clone(),o=t.clone();s&&(u=u.add(getOffsetOfSaveDate(u.toDate()),"minutes"),o=o.add(getOffsetOfSaveDate(o.toDate()),"minutes")),this.start=u._d,this.end=o._d,this.color=getScheduleColor({IsRecurring:a,TargetTypeId:d,EntityId:i,ZoneScheduleType:r,TravelFlag:h}),this.textColor="#000",this.ScheduleType=d,this.Id=Math.random(),this.durationEditable=!1,this.reocurring=a,this.editable=!0,this.durationEditable=!0,this.data=[],this.title=h?l:l?CarveOutScheduleTitle(e,t,d,a,l):"",this.parentEntity=l,this.UpdatedScheduleLocal="",this.edited=!1}"undefined"!=typeof exports&&(module.exports=FullCalendarCarveOutSchedule); 120function GlobalAddress(s){"use strict";this.__type="GlobalAddress:www.veritracks.com",this.Id=-1,this.AddressTypeId=s.AddressTypeId,this.Latitude=s.Latitude,this.Longitude=s.Longitude,this.Name=s.Name,this.Radius=s.Radius,this.Description=s.Description}"undefined"!=typeof exports&&(module.exports=GlobalAddress); 121function Graph(){this.MasterNode=[],this.Nodes=[],this.ConnectionReasons=[],this.Associations=[],this.Connections=[],this.Collections=[]}"undefined"!=typeof exports&&(module.exports=Graph); 122function IconCard(){this.icons=null,this.generatedIcons=[]}"undefined"!=typeof exports&&(module.exports=IconCard); 123function IconMarker(){this.__type="IconMaker:www.veritracks.com",this.Id=-1,this.Url="",this.Index="",this.SVGMarker=""}"undefined"!=typeof exports&&(module.exports=IconMarker); 124function Incident(){"use strict";this.__type="Incident:www.veritracks.com",this.Id=-1,this.Version=0,this.Latitude=0,this.Longitude=0,this.CaseNumber="",this.City="",this.ClearedException=null,this.Country="",this.Disposition=null,this.EndDateUTC=new Date(displayShortDate(new Date)),this.IncidentNumber="",this.OrganizationId=-1,this.PrimaryOffense=-1,this.RespondingOfficer="",this.StartDateUTC=new Date(displayShortDate((new Date).addDays(-1))),this.State="",this.Status=1,this.Street1="",this.Street2="",this.StreetAddressNumber=-1,this.TimeZoneCode="",this.TimeZoneId=-1,this.Zipcode="",this.Radius=-1,this.IsActive=!0,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=Incident); 125function IncidentMatch(){"use strict";this.__type="IncidentMatch:www.veritracks.com",this.Id=-1,this.IncidentId=-1,this.EnrolleeId=-1,this.EnrolleeName="",this.PrimaryId="",this.AgentName="",this.AgentId=-1,this.AgentPrimaryEmail="",this.StartDateUTC=new Date,this.EndDateUTC=new Date,this.StartDateString="",this.EndDateString="",this.TrackpointCount=0,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=IncidentMatch);
126function InventoryControls(){"use strict";this.ListView=null,this.ListViewFilter=null,this.ListViewPaginator=null,this.CardView=null,this.CardViewFilter=null,this.CardViewPaginator=null,this.Map=null,this.PopupView=null,this.DevicesAssignmentListView=null,this.DevicesContactHistoryListView=null,this.DeviceClusterDeviceListView=null,this.DeviceClusterDeviceEditListView=null,this.DeviceClusterEnrolleeListView=null,this.DeviceClusterEnrolleeEditListView=null,this.DeviceClusterValidator=null,this.InventoryTilePaginator=null,this.TileAnalysisCardView=null,this.TileAnalysisCardViewFilter=null,this.chartInstance=null}"undefined"!=typeof exports&&(module.exports=InventoryControls); 127function InventoryData(){"use strict";this.TargetId=-1,this.DevicesClean=null,this.DevicesDirty=null,this.DevicesListViewPaginated=null,this.DevicesSelectedIds=[],this.DevicesSelectedOverlap=[],this.DeviceClustersClean=null,this.DeviceClustersDirty=null,this.DeviceClustersPaginated=null,this.DeviceClustersSelected=-1,this.DeviceClusterReadsRemaining=0,this.DeviceClustersAssignedDeviceList=null,this.DeviceClustersAssignedEnrolleeList=null,this.DeviceClustersAssignedDeviceTempList=null,this.DeviceClustersAssignedEnrolleeTempList=null,this.DeviceClustersLastSelectedId=null,this.DeviceClustersLastSelectedDeviceList=null,this.DeviceClustersLastSelectedEnrolleeList=null,this.DistancePoints=[],this.DistanceToolActive=!1,this.InventoryTileClean=null,this.InventoryTileDirty=null,this.InventoryTileSelectedIds=null,this.InventoryTileTiles=[],this.KnownLocationEditData=null,this.EditShape=null,this.BatteryDate=null,this.BatteryDateFormat="MM/DD/YYYY HH:mm"}"undefined"!=typeof exports&&(module.exports=InventoryData); 128function InventoryTileAnalysis(){this.OrganizationName="",this.OrganizationId=0,this.TotalDevices=0,this.Assigned=0,this.UnAssigned=0,this.Shipped=0,this.Received=0,this.Returned=0,this.Recalled=0,this.ShelfRate=0,this.ShelfRateAllowed=0,this.ShelfRateExceeded="none",this.ShelfRateExceededFlag=!1}"undefined"!=typeof exports&&(module.exports=InventoryTileAnalysis); 129function KnownLocation(){"use strict";this.__type="OrganizationAddress:www.veritracks.com",this.Id=-1,this.Version=0,this.OrganizationAddressTypeId=-1,this.City="",this.Country="",this.State="",this.Street1="",this.Street2="",this.Title="",this.Zip="",this.Latitude=0,this.Longitude=0,this.Radius=300,this.IsActive=1,this.PhoneNumber="",this.OrganizationId=-1,this.PositionMatchesGeocode=1,this.Notes="",this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=KnownLocation); 130function KnownLocationCard(){"use strict";this.Id=-1,this.OrganizationAddressTypeId=-1,this.City="",this.Country="",this.State="",this.Street1="",this.Street2="",this.Title="",this.Zip="",this.Latitude=0,this.Longitude=0,this.OrganizationName="",this.Radius=0}"undefined"!=typeof exports&&(module.exports=KnownLocationCard); 131function Language(){"use strict";this.__type="Language:www.veritracks.com",this.Id=-1,this.Version=0,this.Description="",this.LanguageCode=""}"undefined"!=typeof exports&&(module.exports=Language); 132function LastContact(){"use strict";this.Id=-1,this.DeviceId=-1,this.TrackDate=null,this.Latitude=0,this.Longitude=0,this.Speed=0,this.Direction=0,this.BatteryLevel=-1,this.BatteryVoltage=0,this.ContactDate=null,this.Status=-1,this.DeviceVersion=0,this.RecordCount=0,this.GpsRecordCount=0,this.PercentGps=0}"undefined"!=typeof exports&&(module.exports=LastContact); 133function LiveMap(){"use strict";this.Id=-1,this._type="LiveMap:www.veritracks.com",this.Version=0,this.AgentName="",this.EnrolleeId=-1,this.DeviceId=-1,this.DeviceSerialNumber="",this.Latitude=-1,this.Longitude=-1,this.DeviceBatteryVoltage=0,this.RiskLevelId=-1,this.EnrolleeName="",this.PrimaryId="",this.EnrolleeName="",this.HasEventOpens=0,this.OrganizationId="",this.OpenEventPriority=5,this.OpenEventId=-1,this.OpenEventViolationId=-1,this.ZoneEventIndicator=!1,this.ScheduleEventIndicator=!1,this.StrapTamperEventIndicator=!1,this.AssociationEventIndicator=!1}"undefined"!=typeof exports&&(module.exports=LiveMap); 134function LookAheadItem(e,t,o,i){"use strict";this.EnrolleeId=e,this.StartTime=t,this.EndTime=o,this.Data=i}"undefined"!=typeof exports&&(module.exports=LookAheadItem); 135function MapCard(){"use strict";this.Id="z-1",this.Name="",this.EnrolleeName="",this.EnrolleeFirstName="",this.EnrolleeLastName="",this.EnrolleeId=-1,this.DisplayName="",this.Date=new Date(0),this.Detail="- unknown -",this.Detail2="",this.Detail3="",this.Detail4="",this.VisitId=-1,this.Latitude="",this.Longitude="",this.ExtendedDetail
135="",this.SecondExtendedDetail="",this.IsExpanded=!1,this.IconClass="",this.TrackItem=null,this.InventoryBatteryClass="",this.InventorySignalClass="",this.SortDate=new Date(25e13),this.SortOrder=-1,this.TagId=-1,this.TagName="",this.GsmSignalStrength=0,this.IsGeocoded=!1,this.Address="- retrieving address -",this.isMapped=!0,this.EditDisplay='style="width:0;height:0"',this.ZoneRadius=0,this.HasMapEvents=!1,this.HasConfirmedEvents=!1,this.Type=-1,this.Association=null,this.EnrolleePosition=1,this.CorrelateDisplay="none",this.IsAssociationVisit=!1,this.CorrelationAtKnownLocation="none",this.GenericMapEvents="none",this.iconId,this.SVGMarker="",this.SVGDisplay="none",this.iconUri="",this.MarkerSingleIcon="block"}"undefined"!=typeof exports&&(module.exports=MapCard); 136function MapSettingState(){"use strict";this.IsZones=!1,this.IsStartDate=!1,this.IsAddresses=!1,this.IsConnectedTracks=!1,this.IsNumberedLabels=!1,this.IsEvents=!1,this.IsGpsTrackpoints=!1,this.IsCellTrackpoints=!1,this.IsTripsVisits=!1}"undefined"!=typeof exports&&(module.exports=MapSettingState); 137function MonitoredEventNote(t){this.__type="MonitoredEventNote:www.veritracks.com",this.Id=-1,this.Version=0,this.UpdatedUTC=(new Date).toWcf(),this.EventId=-1,this.UserId=-1,this.CreatedDateUTC=(new Date).toWcf(),this.MonitoredEventNote=""}"undefined"!=typeof exports&&(module.exports=MonitoredEventNote); 138function NodeThread(){this.Identifier="",this.Title="",this.SubTitle="",this.IconUrl="User.png",this.Id=-1}"undefined"!=typeof exports&&(module.exports=NodeThread); 139function Note(t,e){"use strict";this.__type="Note:www.veritracks.com",this.Id=-1,this.Content=e,this.CreatedDateUTC=(new Date).toWcf(),this.UserId=t,this.TransactionId=moment().format("YYYYMMDDHHmmss")}"undefined"!=typeof exports&&(module.exports=Note); 140function Notification(){"use strict";this.__type="Notification:www.veritracks.com",this.Id=-1,this.Version=0,this.AgentId=-1,this.ContactTypeId=-1,this.HitLevelId=-1,this.IsActive=!0,this.IsImmediate=!1,this.NotificationTypeId=-1,this.RiskLevelId=-1,this.Scope=1,this.WorkingHoursType=-1,this.TransactionId="",this.ContactFormatId=-1,this.UserContactId=-1,this.UserContactPriority=-1}"undefined"!=typeof exports&&(module.exports=Notification); 141function OffHoursSchedule(){"use strict";var s=new Date,t=new Date,e=new Date;this.__type="OffHoursSchedule:www.veritracks.com",this.Id=-1,this.Version=0,e.addHours(0-s.getHours()+3),e.addMinutes(0-s.getMinutes()),this.EndTime=e,this.IsActive=!0,this.IsFriday=!1,this.IsMonday=!1,this.IsNoSchedule=!1,this.IsRecurring=!0,this.IsSaturday=!1,this.IsSunday=!1,this.IsThursday=!1,this.IsTuesday=!1,this.IsWednesday=!1,this.Name="",t.addHours(0-s.getHours()),t.addMinutes(0-s.getMinutes()),this.StartTime=t,this.AgentId=-1,this.TransactionId=moment().format("YYYYMMDDHHmmss")}"undefined"!=typeof exports&&(module.exports=OffHoursSchedule); 142function OffHoursScheduleDisplay(s){"use strict";this.__type="OffHoursSchedule:www.veritracks.com",this.Id=s.Id,this.Version=s.Version,this.StartTimeUTC=s.StartTimeUTC,this.EndTimeUTC=s.EndTimeUTC,this.EndTime=s.EndTime,this.IsActive=s.IsActive,this.IsFriday=s.IsFriday,this.IsMonday=s.IsMonday,this.IsNoSchedule=s.IsNoSchedule,this.IsRecurring=s.IsRecurring,this.IsSaturday=s.IsSaturday,this.IsSunday=s.IsSunday,this.IsThursday=s.IsThursday,this.IsTuesday=s.IsTuesday,this.IsWednesday=s.IsWednesday,this.Name=s.Name,this.StartTime=s.StartTime;var t=getDataItem(s.AgentId,"Agents");1==FixGetTime(this.StartTime,t.TimeZoneId)?(this.IsSaturday=s.IsSunday,this.IsSunday=s.IsMonday,this.IsMonday=s.IsTuesday,this.IsTuesday=s.IsWednesday,this.IsWednesday=s.IsThursday,this.IsThursday=s.IsFriday,this.IsFriday=s.IsSaturday):0==FixGetTime(this.StartTime,t.TimeZoneId)&&(this.IsSaturday=s.IsFriday,this.IsSunday=s.IsSaturday,this.IsMonday=s.IsSunday,this.IsTuesday=s.IsMonday,this.IsWednesday=s.IsTuesday,this.IsThursday+=s.IsWednesday,this.IsFriday=s.IsThursday),this.AgentId=s.AgentId}"undefined"!=typeof exports&&(module.exports=OffHoursScheduleDisplay); 143function OffenderAbsenceSchedule(e){this.__type="OffenderAbsenceSchedule:www.veritracks.com",this.Id=-1,this.Reason="",this.EnrolleeId=-1,this.IsFriday=!1,this.IsMonday=!1,this.IsSaturday=!1,this.IsSunday=!1,this.IsThursday=!1,this.IsTuesday=!1,this.IsWednesday=!1,this.StartDate=" ",this.StartTime="",this.StopTime="",this.IsActive=!0,this.IsRecurring=!0,this.ScheduleTypeId=-1,this.EntityId=-1,this.ZoneScheduleType=-1,this.TransactionId="",this.TitleUpdatedFlag=!1,this.MonScheduleId=-1,this.TueScheduleId=-1,this.WedScheduleId=-1,this.ThuSc
143heduleId=-1,this.FriScheduleId=-1,this.SatScheduleId=-1,this.SunScheduleId=-1,e&&(this.Id=e.Id,this.Reason=e.Name,this.EnrolleeId=e.EnrolleeId,this.IsFriday=convertBoolToInteger(e.IsFriday),this.IsMonday=convertBoolToInteger(e.IsMonday),this.IsSaturday=convertBoolToInteger(e.IsSaturday),this.IsSunday=convertBoolToInteger(e.IsSunday),this.IsThursday=convertBoolToInteger(e.IsThursday),this.IsTuesday=convertBoolToInteger(e.IsTuesday),this.IsWednesday=convertBoolToInteger(e.IsWednesday),this.IsActive=convertBoolToInteger(e.IsActive),this.IsRecurring=convertBoolToInteger(e.IsRecurring),this.ScheduleTypeId=e.ScheduleType,this.EntityId=e.EntityId,this.ZoneScheduleType=e.ZoneScheduleType,this.TransactionId=moment().format("YYYYMMDDHHmmss"),this.TitleUpdatedFlag=e.TitleUpdatedFlag?1:0)}"undefined"!=typeof exports&&(module.exports=OffenderAbsenceSchedule); 144function OffenderAbsenceScheduleDisplay(e){this.isRecurring=e.isRecurring,this.daysOfWeek=displayDaytoDay(e.start,e.end),this.overrideDay=DisplaySuperShortMomentDate(e.start),this.startTime=e.start.format("h:mm:ss a"),this.endTime=e.end.format("h:mm:ss a"),this.id=e._id,this.title=e.title}"undefined"!=typeof exports&&(module.exports=OffenderAbsenceScheduleDisplay); 145function OffenderAlcoholImage(){"use strict";this.__type="OffenderAlcoholImage:www.veritracks.com",this.UpdateUTC=null,this.EnrolleeId=null,this.EnrolleeTimeZone=null,this.OrganizationId=null,this.ImageType="",this.StartDate=null,this.StopDate=null,this.Name="",this.ImageMatchedFlag=-1,this.ValidatedFlag=-1,this.Longitude=-1,this.Latitude=-1,this.ExternalId="",this.ImageId=-1,this.Notes="",this.AppUserId=null,this.IsActive=-1,this.Id=-1,this.VideoRequestedUserId=-1,this.VideoRequestedDate=null}"undefined"!=typeof exports&&(module.exports=OffenderAlcoholImage); 146function OffenderAlcoholSchedBlock(){this.__type="OffenderAlcoholSchedBlock:www.veritracks.com",this.Id=-1,this.AppUserId=null,this.EnrolleeId=null,this.EnrolleeTimeZone=null,this.ScheduleType=null,this.OrganizationId=null,this.StartDate=null,this.StopDate=null,this.DayOfWeek="",this.StartHour="",this.StopHour="",this.Name="",this.NumberOfTest=null,this.MinuteBetweenTest=null,this.ConfirmFlag=0,this.IsActive=1,this.StartDateUTCString="",this.StopDateUTCString=""}"undefined"!=typeof exports&&(module.exports=OffenderAlcoholSchedBlock); 147function OffenderAlcoholSchedNote(e){this.__type="OffenderAlcoholSchedNote:www.veritracks.com",this.Id=-1,this.Version=0,this.AlcoholScheduleId=e,this.IsActive=!1,this.UserId=-1,this.CreatedDateUTC=new Date,this.UpdatedUTC=new Date,this.Content=""}"undefined"!=typeof exports&&(module.exports=OffenderAlcoholSchedNote); 148function OffenderAlcoholSchedule(){"use strict";this.__type="OffenderAlcoholSchedule:www.veritracks.com",this.AppUserId=-1,this.EnrolleeId=-1,this.EnrolleeTimeZone="",this.ScheduleType=-1,this.StartDate=new Date,this.StopDate=new Date,this.Name="",this.DurationBetweenTest=-1,this.TestPerDay=-1,this.TestPeriod=-1,this.NumberRetest=1,this.MaxNumberRetest=1,this.IsActive=1,this.StatusId=201,this.ConfirmFlag=0,this.Id=-1,this.HasOccurred=!1,this.ExternalId=-1,this.Bac=-1,this.BacLimit=-1,this.ConfirmedDate=new Date,this.ConfirmedByUserId=0,this.MaxStartDate=new Date}"undefined"!=typeof exports&&(module.exports=OffenderAlcoholSchedule); 149function OffenderAlcoholTestResult(){"use strict";this.__type="OffenderAlcoholTestResult:www.veritracks.com",this.UpdateUTC=null,this.EnrolleeId=-1,this.StartDate=null,this.StopDate=null,this.ScheduleType=-1,this.ScheduleTypeName="",this.StatusId=-1,this.StatusName="",this.Name="",this.Longitude=-1,this.Latitude=-1,this.IsActive=-1,this.Bac=0,this.BacLimit=0,this.ImageId=-1,this.Id=-1}"undefined"!=typeof exports&&(module.exports=OffenderAlcoholTestResult); 150function OffenderCategory(){"use strict";this.__type="OffenderCategory:www.veritracks.com",this.Id=-1,this.Version=0,this.IsActive=!0,this.MetaEnrolleeCategoryId=-1}"undefined"!=typeof exports&&(module.exports=OffenderCategory); 151function OffenderDeviceEnrollment(e,i){"use strict";this.__type="OffenderDeviceEnrollment:www.veritracks.com",this.Id=i,this.Version=0,this.StationDeviceId=-1,this.StationDeviceType=-1,this.StationPhoneNumber="",this.StationRfRange=-1,this.TrackingDeviceId=-1,this.TrackingDeviceType=-1,this.UnassignmentReason=1,this.UserId=e,this.AlcoholDeviceId=-1,this.InitializeFingerprint=0,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=OffenderDeviceEnrollment); 152function OffenderPhoto(){"use strict";this.__type="OffenderPhoto:www.veritracks.com",this.Id=-1,this.EnrolleeId=-1,this.IsActive=1,this.PhotoUri="",this.PhotoOrderNo=0,this.PhotoDescription="Default",this.PhotoTypeId=1,this.AlcoholImageId=-1}"undefined"!=typeof exports&&(module.exports=OffenderPhoto); 153function OffenderProfile(){"use strict";this.__type="OffenderProfile:www.veritracks.com",this.Id=-1,this.Version=0,this.Email="",this.EyeColorId=-1,this.GenderId=-1,this.HairColorId=-1,this.Height=0,this.IsSexOffender=!1,this.MarksTattoos="",this.PrimaryJurisdiction="",this.PrimaryOffenseId=-1,this.RaceId=-1,this.SupervisionBeginDate=new Date(-621355968e5),this.SupervisionEndDate=new Date(-621355968e5),this.SupervisionTypeId=-1,this.TimeZoneCode="",this.VehicleC
153olor="Unknown",this.VehicleMake="UNKNOWN",this.VehicleModel="",this.VehiclePlateNumber="",this.VehicleYear=0,this.Weight=0,this.DailyRate=-1,this.SecurusEnrolleePayId=-1,this.OrganizationAddressId=0,this.HasAssociationFlag=!1,this.GuardianName="",this.GuardianPhone="",this.GuardianEmail="",this.TransactionId="",this.IsNewEnrollee=0}"undefined"!=typeof exports&&(module.exports=OffenderProfile); 154function OffenderSchedule(){"use strict";new Date;var e=new Date,t=new Date;this.__type="OffenderSchedule:www.veritracks.com",this.Id=-1,this.Version=0,t.setHours(3),t.setMinutes(0),this.EndTime=t,this.IsActive=!0,this.IsFriday=!1,this.IsMonday=!1,this.IsNoSchedule=!1,this.IsRecurring=!0,this.IsSaturday=!1,this.IsSunday=!1,this.IsThursday=!1,this.IsTuesday=!1,this.IsWednesday=!1,this.Name="",e.setHours(0),e.setMinutes(0),this.StartTime=e,this.EnrolleeId=-1,this.OrganizationId=-1,this.EntityId=-1,this.IsForcedLeave=!1,this.ScheduleType=-1,this.ZoneScheduleType=-1,this.IsEnabled=!0,this.TransactionId="",this.TitleUpdatedFlag=!1,this.CreateAutoExceptionFlag=0,this.TravelScheduleFlag=!1,this.StartTimeLocal="01/01/2001 12:00:00 AM",this.EndTimeLocal="01/01/2001 11:59:00 PM"}"undefined"!=typeof exports&&(module.exports=OffenderSchedule); 155function OffenderScheduleCache(e){}"undefined"!=typeof exports&&(module.exports=OffenderScheduleCache); 156function OffenderScheduleDay(e,s){"use strict";new Date;var t=new Date,i=new Date;this.__type="OffenderSchedule:www.veritracks.com",this.Id=-1,this.Version=0,i.setHours(3),i.setMinutes(0),this.EndTime=i,this.IsActive=!0,this.IsFriday=!1,this.IsMonday=!1,this.IsNoSchedule=!1,this.IsRecurring=!0,this.IsSaturday=!1,this.IsSunday=!1,this.IsThursday=!1,this.IsTuesday=!1,this.IsWednesday=!1,this.Name="",t.setHours(0),t.setMinutes(0),this.StartTime=t,this.EnrolleeId=-1,this.OrganizationId=-1,this.EntityId=-1,this.IsForcedLeave=!1,this.ScheduleType=-1,this.ZoneScheduleType=-1,this.IsEnabled=!0,this.TransactionId="",this.TitleUpdatedFlag=!1,this.CreateAutoExceptionFlag=0}"undefined"!=typeof exports&&(module.exports=OffenderScheduleDay); 157function OffenderScheduleDisplay(s,e,t){"use strict";this.__type="OffenderSchedule:www.veritracks.com",this.Id=s.Id,this.Version=s.Version,this.StartTimeUTC=s.StartTimeUTC,this.EndTimeUTC=s.EndTimeUTC,this.StartDateUTC=s.StartDateUTC,this.EndDateUTC=s.EndDateUTC,this.EndTime=s.EndTime,this.IsActive=s.IsActive,this.IsNoSchedule=s.IsNoSchedule,this.IsRecurring=s.IsRecurring,this.StartTimeLocal=s.StartTimeLocal,this.EndTimeLocal=s.EndTimeLocal,this.UpdatedScheduleLocal=s.UpdatedScheduleLocal,this.UpdatedByAppUserId=s.UpdatedByAppUserId,e?(this.IsFriday=s.IsFriday,this.IsMonday=s.IsMonday,this.IsSaturday=s.IsSaturday,this.IsSunday=s.IsSunday,this.IsThursday=s.IsThursday,this.IsTuesday=s.IsTuesday,this.IsWednesday=s.IsWednesday):(this.IsFriday=!1,this.IsMonday=!1,this.IsSaturday=!1,this.IsSunday=!1,this.IsThursday=!1,this.IsTuesday=!1,this.IsWednesday=!1),this.Name=s.Name,this.ZoneName=s.ZoneName,this.StartTime=s.StartTime;e=GetEnrollee(s.EnrolleeId);displayDSTSchedules()||(1!=FixGetTime(this.StartTime,e.TimeZoneId)||t?0==FixGetTime(this.StartTime,e.TimeZoneId)&&(this.IsSaturday=s.IsFriday,this.IsSunday=s.IsSaturday,this.IsMonday=s.IsSunday,this.IsTuesday=s.IsMonday,this.IsWednesday=s.IsTuesday,this.IsThursday+=s.IsWednesday,this.IsFriday=s.IsThursday):(this.IsSaturday=s.IsSunday,this.IsSunday=s.IsMonday,this.IsMonday=s.IsTuesday,this.IsTuesday=s.IsWednesday,this.IsWednesday=s.IsThursday,this.IsThursday=s.IsFriday,this.IsFriday=s.IsSaturday)),this.EnrolleeId=s.EnrolleeId,this.EntityId=s.EntityId,this.IsEnabled=s.IsEnabled,this.IsForcedLeave=s.IsForcedLeave,this.ScheduleType=s.ScheduleType,this.ZoneScheduleType=s.ZoneScheduleType,this.TitleUpdatedFlag=s.TitleUpdatedFlag,this.CreateAutoExceptionFlag=0,this.TravelScheduleFlag=s.TravelScheduleFlag}"undefined"!=typeof exports&&(module.exports=OffenderScheduleDisplay); 158function OffenderSexOffense(){"use strict";this.__type="OffenderSexOffense:www.veritracks.com",this.Id=-1,this.Version=0,this.IsActive=!0,this.SexOffenseId=-1}"undefined"!=typeof exports&&(module.exports=OffenderSexOffense); 159function OffenderTimeOutSchedule(e){this.__type="OffenderTimeOutSchedule:www.veritracks.com",this.Id=-1,this.SecondId=-1,this.Reason="",this.EnrolleeId=-1,this.StartDate=" ",this.StartTime="",this.StopTime="",this.IsActive=!0,this.IsRecurring=!0,this.ScheduleTypeId=-1,this.EntityId=-1,this.ZoneScheduleType=-1,this.TransactionId="",this.TitleUpdatedFlag=0,e&&(this.Id=e.Id,this.Reason=e.Name,this.EnrolleeId=e.EnrolleeId,this.IsActive=convertBoolToInteger(e.IsActive),this.IsRecurring=convertBoolToInteger(e.IsRecurring),this.ScheduleTypeId=e.ScheduleType,this.EntityId=e.EntityId,this.ZoneScheduleType=e.ZoneScheduleType,this.TransactionId=moment().format("YYYYMMDDHHmmss"),this.TitleUpdatedFlag=e.TitleUpdatedFlag?1:0)}"undefined"!=typeof exports&&(module.exports=OffenderTimeOutSchedule); 160function OffenderUnenrollment(e,t){"use strict";this.__type="OffenderUnenrollment:www.veritracks.com",this.Id=t,this.Version=0,this.ReasonId=-1,this.UserId=e,this.ChargerReturnStatus="",this.AttemptRecoverFlag=!1,this.TransactionId=moment().format("YYYYMMDDHHmmss")}"undefined"!=typeof exports&&(module.exports=OffenderUnenrollment); 161function OrganizationAddress(){"use strict";this.__type="OrganizationAddress:www.veritracks.com",this.Id=-1,this.OrganizationId=-1,this.OrganizationAddressTypeId=-1,this.Title="",this.Notes="",this.PhoneNumber="",this.Street1="",this.Street2="",this.City="",this.State="",this.Country="",this.Zip="",this.Latitude=0,this.Longitude=0,this.Radius=0,this.IsActive=0,this.PositionMatchesGeoCode=-1,this.TransactionId=moment().format("YYYYMMDDHHmmss")}"undefined"!=typeof exports&&(module.exports=OrganizationAddress); 162function OrganizationRiskLevel(){"use strict";this._type="OrganizationRiskLevel:www.veritracks.com"} 163function OriZoneClassification(){"use strict";this.__type="OriZoneClassification:www.veritracks.com",this.Id=-1,this.OrganizationId=-1,this.ZoneClassificationId=-1,this.ZoneId=-1}"undefined"!=typeof exports&&(module.exports=OriZoneClassification); 164function PageClass(s,e,i){this.Name=s,this.PermissionId=e,this.Hash=i}"undefined"!=typeof exports&&(module.exports=PageClass); 165function PageClassManager(){this.System=[],this.Enrollees=[],this.EnrolleesOffenderPrimary=[],this.EnrolleesOffenderSecondary=[],this.EnrolleesVictimPrimary=[],this.EnrolleesVictimSecondary=[],this.Events=[],this.EventsPrimary=[],this.Zones=[],this.ZonesPrimary=[],this.Analysis=[],this.AnalysisIncidentsPrimary=[],this.AnalysisIncidentsResults=[],this.AnalysisSpatialPrimary=[],this.Reports=[],this.ReportDetailsPrimary=[],this.ReportSchedulesPrimary=[],this.ReportSchedulesSecondary=[],this.Inventory=[],this.InventoryDevicesPrimary=[],this.InventoryDeviceClusters=[],this.Agents=[],this.AgentsDetailsPrimary=[],this.AgentsNotificationEscalationPlansPrimary=[],this.Initialize=function(e){e.System.push(new PageClass("Dashboard",31,"Dashboard")),e.System.push(new PageClass("Enrollees",12,"Enrollees.Offenders.Profile.Events")),e.System.push(new PageClass("Events",1,"Events.Map")),e.System.push(new PageClass("Zones",2,"Zones.Map")),e.System.push(new PageClass("Analysis",4,"Analysis.Incidents.Details")),e.System.push(new PageClass("Reports",36,"Reports")),e.System.push(new PageClass("Inventory",7,"Inventory.Devices.Device")),e.System.push(new PageClass("Agents",22,"Agents.Agents.Profile")),e.Enrollees.push(new PageClass("Offenders",21,"Enrollees.Offenders.Profile.Events")),e.Enrollees.push(new PageClass("Victims",21,"Enrollees.Victims.Profile.Events")),e.EnrolleesOffenderPrimary.push(new PageClass("Profile",13,"Enrollees.Offenders.Profile.Events")),e.EnrolleesVictimPrimary.push(new PageClass("Profile",13,"Enrollees.Victims.Profile.Events")),e.EnrolleesOffenderPrimary.push(new PageClass("Map",18,"Enrollees.Offenders.Map.Events")),e.EnrolleesOffenderPrimary.push(new PageClass("SoberTrackReview",16,"Enrollees.Offenders.SoberTrackReview.Events")),e.EnrolleesVictimPrimary.push(new PageClass("Map",18,"Enrollees.Victims.Map.Events")),e.EnrolleesOffenderSecondary.push(new PageClass("Events",1,"Enrollees.Offenders.Profile.Events")),e.EnrolleesVictimSecondary.push(new PageClass("Events",1,"Enrollees.Victims.Profile.Events")),e.EnrolleesOffenderSecondary.push(new PageClass("Notes",14,"Enrollees.Offenders.Profile.Notes")),e.EnrolleesVictimSecondary.push(new PageClass("Notes",14,"Enrollees.Victims.Profile.Notes")),e.EnrolleesOffenderSecondary.push(new PageClass("Addresses",15,"Enrollees.Offenders.Profile.Addresses")),e.EnrolleesVictimSecondary.push(new PageClass("Addresses",15,"Enrollees.Victims.Profile.Addresses")),e.EnrolleesOffenderSecondary.push(new PageClass("Schedules",16,"Enrollees.Offenders.Profile.Schedules")),e.EnrolleesOffenderSecondary.push(new PageClass("SoberTrackSchedules",16,"Enrollees.Offenders.Profile.SoberTrackSchedules")),e.EnrolleesOffenderSecondary.push(new PageClass("Assignments",17,"Enrollees.Offenders.Profile.Assignments")),e.EnrolleesVictimSecondary.push(new PageClass("Assignments",17,"Enrollees.Victims.Profile.Assignments")),e.EnrolleesOffenderSecondary.push(new PageClass("ContactHistory",10,"Enrollees.Offenders.Profile.ContactHistory")),e.EnrolleesVictimSecondary.push(new PageClass("ContactHistory",10,"Enrollees.Victims.Profile.ContactHistory")),e.EnrolleesVictimSecondary.push(new PageClass("Notifications",26,"Enrollees.Victims.Profile.Notifications")),e.EnrolleesOffenderSecondary.push(new PageClass("Frp",71,"Enrollees.Offenders.Profile.Frp")),e.EnrolleesOffenderSecondary.push(new PageClass("EMA",1,"Enrollees.Offenders.Profile.EMA")),e.Analysis.push(new PageClass("Incidents",5,"Analysis.Incidents.Details")),e.Analysis.push(new PageClass("History",6,"Analysis.History.Details")),e.Inventory.push(new PageClass("Devices",8,"Inventory.Devices.Device")),e.Inventory.push(new PageClass("DeviceClusters",11,"Inventory.DeviceClusters.Device")),e.Inventory.push(new PageClass("KnownLocations",11,"Inventory.KnownLocations.Device")),e.Inventory.push(new PageClass("InventoryTileAnalysis",111,"Inventory.InventoryTileAnalysis.Device")),e.InventoryDevicesPrimary.push(new PageClass("Device",8,"Inventory.Devices.Device")),e.InventoryDevicesPrimary.push(new PageClass("AssignmentHistory",9,"Inventory.Devices.AssignmentHistory")),e.InventoryDevicesPrimary.push(new PageClass("ContactHistory",10,"Inventory.Devices.ContactHistory")),e.InventoryDevicesPrimary.push(new PageClass("BatteryHistory",201,"Inventory.Devices.BatteryHistory")),e.Agents.push(new PageClass("Agents",23,"Agents.Agents.Profile")),e.Agents.push(new PageClass("NotificationEscalationPlans",30,"Agents.NotificationEscalationPlans.Details")),e.Reports.push(new PageClass("Reports",36,"Reports.Reports.Details")),e.Reports.push(new PageClass("Schedules",72,"Reports.Schedules.Details")),e.ReportDetailsPrimary.push(new PageClass("Details",36,"Reports.Reports.Details")),e.ReportSchedulesPrimary.push(new PageClass("Details",72,"Reports.Schedules.Details")),e.ReportSchedulesSecondary.push(new PageClass("Filters",73,"Reports.Schedules.Details.Filters")),e.ReportSchedulesSecondary.push(new PageClass("Emails",74,"Reports.Schedules.Details.Emails")),e.AgentsDetailsPrimary.push(new PageClass("Profile",24,"Agents.Agents.Profile")),e.AgentsDetailsPrimary.push(new PageClass("CaseLoad",13,"Agents.Agents.CaseLoad")),e.AgentsDetailsPrimary.push(new PageClass("Zones",13,"Agents.Agents.Zones")),e.AgentsDetailsPrimary.push(new PageClass("DailyNotifications",25,"Agents.Agents.DailyNotifications")),e.AgentsDetailsPrimary.push(new PageClass("ImmediateNotifications",26,"Agents.Agents.ImmediateNotifications")),e.AgentsDetailsPrimary.push(new PageClass("RiskLevelPlans",27,"Agents.Agents.RiskLevelPlans")),e.AgentsDetailsPrimary.push(new PageClass("OffHours",28,"Agents.Agents.OffHours")),e.AgentsDetailsPrimary.push(new PageClass("Permissions",29,"Agents.Agents.Permissions"))},this.Initialize(this)}"undefined"!=typeof exports&&(module.exports=PageClassManager); 166function PaginatedObject(){this.Id=-1,this.PageNumber=0,this.PageSize=10,this.TotalCount=0,this.TotalPages=0,this.__type="PaginatedObject:www.veritracks.com"}"undefined"!=typeof exports&&(module.exports=PaginatedObject); 167function PointOfInterestDataObject(){Zone.call(this),this.PoiFlag=1,this.MakePublic=-1}"undefined"!=typeof exports&&(module.exports=PointOfInterestDataObject); 168function PrintControls(){this.PrintMap=null,this.SecondPrintMap=null,this.ArrayPrintMap=[],this.SelectedTrackPoint="",this.ArrayPrintAssociationMap=[]}"undefined"!=typeof exports&&(module.exports=PrintControls); 169function ProcessRequest(){this.__type="ProcessRequest:www.veritracks.com",this.Id=-1,this.EnrolleeId=-1,this.OrganizationId=-1,this.OffenderPayFlag=!1,this.DailyRate=-1,this.Action=""}"undefined"!=typeof exports&&(module.exports=ProcessRequest); 170function RateSchedule(e){"use strict";this.__type="RateSchedule:www.veritracks.com",this.RateScheduleId=-1,this.ProductId=-1,this.DeviceModeId=-1,this.ProductDailyRate=0,this.Id=0,e&&(this.RateScheduleId=e.RateScheduleId,this.ProductId=e.ProductId,this.DeviceModeId=e.DeviceModeId,this.ProductDailyRate=e.ProductDailyRate)}"undefined"!=typeof exports&&(module.exports=RateSchedule); 171function ReportAgent(){"use strict";this.__type="ReportAgent:www.veritracks.com",this.Id=-1,this.Version=0,this.OrganizationId=-1,this.UserId=-1,this.ReportGroupId=-1,this.SchemaName=""}"undefined"!=typeof exports&&(module.exports=ReportAgent); 172function ReportCardView(t,e,s){"use strict";this.Id=t.Id,this.ReportId=t.ReportId,this.ReportInstanceId=t.ReportInstanceId,this.ReportName=ReportNameFormatter(t.ReportName),this.ReportDescription=t.ReportDescription,this.ReportGeneratedDate=DisplayLongDateTime(t.ReportGeneratedDate),this.UpdatedUTC=t.UpdatedUTC,this.ReportStatus=reportStatusFormatter(t.ReportStatus),this.PDFStatus=t.PDFStatus,this.DOCStatus=t.DOCStatus,this.XLSStatus=t.XLSStatus,this.RTFStatus=t.RTFStatus,this.TXTStatus=t.TXTStatus,this.CSVStatus=t.CSVStatus,this.DOCURL=t.DOCURL,this.PDFURL=t.PDFURL,this.XLSURL=t.XLSURL,this.RTFURL=t.RTFURL,this.TXTURL=t.TXTURL,this.CSVURL=t.CSVURL,this.AgentId=t.AgentId,this.AgentName=localizeText("cEnrolleesMappingUnknown"),isNullOrUndefined(e)||(this.AgentName=e.FullName),this.OrganizationId=t.OrganizationId,this.OrganizationName=localizeText("cEnrolleesMappingUnknown"),isNullOrUndefined(s)||(this.OrganizationName=s.Name)}"undefined"!=typeof exports&&(module.exports=ReportCardView); 173function ReportFilterInstance(){"use strict";this.__type="ReportFilterInstance:www.veritracks.com",this.Id=-1,this.Version=0,this.ReportId=-1,this.ReportInstanceId=-1,this.ReportFilterId=-1,this.Value="",this.Text="",this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=ReportFilterInstance);
174function ReportFilterListViewData(t,e,i,s,r){"use strict";this.Id=r,this.LabelName=t,this.IsRequired=e,this.Text=i,this.Value=s}"undefined"!=typeof exports&&(module.exports=ReportFilterListViewData); 175function ReportInstance(){"use strict";this.__type="ReportInstance:www.veritracks.com",this.Id=-1,this.Version=0,this.ReportId=-1,this.ReportName="",this.ReportDescription="",this.ReportStatus=-1,this.ReportGeneratedDate=new Date(DisplayLongDateTime(new Date)),this.UpdateDateUTC=new Date(DisplayLongDateTime(new Date)),this.AgentId=-1,this.OrganizationId=-1,this.UniqueName="",this.IsDoc=0,this.IsPDF=0,this.IsXLS=0,this.IsRTF=0,this.IsTXT=0,this.IsCSV=0,this.DOCStatus=-1,this.PDFStatus=-1,this.XLSStatus=-1,this.RTFStatus=-1,this.TXTStatus=-1,this.CSVStatus=-1,this.DOCURL="",this.PDFURL="",this.XLSURL="",this.RTFURL="",this.TXTURL="",this.CSVURL="",this.SendEmail=!1,this.Filter=[],this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=ReportInstance); 176function ReportSchedule(){"use strict";this.__type="ReportSchedule:www.veritracks.com",this.Id=-1,this.ReportId=-1,this.AgentId=-1,this.OrganizationId=-1,this.ReportScheduleName="",this.ReportName="",this.ReportScheduleDateId=-1,this.ReportScheduleTimeId=-1,this.ReportScheduleTimeSpanId=-1,this.EmailFormatId=-1,this.TypeDOCFlag=-1,this.TypePDFFlag=-1,this.TypeXLSFlag=-1,this.TypeRTFFlag=-1,this.TypeTXTFlag=-1,this.TypeCSVFlag=-1,this.IsActive=1,this.TransactionId=moment().format("YYYYMMDDHHmmss")}"undefined"!=typeof exports&&(module.exports=ReportSchedule); 177function ReportScheduleCardView(e,t){"use strict";this.Id=e.Id,this.ScheduleName=e.ReportScheduleName,this.EmailFormat=reportEmailFormatFormatter(e.EmailFormatId),this.ReportName=t,this.ReportScheduleTime=reportScheduleTimeFormatter(e.ReportScheduleTimeId),this.ReportScheduleTimeSpan=reportScheduleTimeSpanFormatter(e.ReportScheduleTimeSpanId),this.ReportScheduleDate=reportScheduleDateFormatter(e.ReportScheduleDateId),this.TypeCSVFlag=e.TypeCSVFlag,this.TypeDOCFlag=e.TypeDOCFlag,this.TypePDFFlag=e.TypePDFFlag,this.TypeRTFFlag=e.TypeRTFFlag,this.TypeTXTFlag=e.TypeTXTFlag,this.TypeXLSFlag=e.TypeXLSFlag,this.AgentId=e.AgentId,this.OrganizationName=OrganizationNameFormatter(e.OrganizationId),this.OrganizationId=e.OrganizationId,this.ReportId=e.ReportId}"undefined"!=typeof exports&&(module.exports=ReportScheduleCardView); 178function ReportScheduleEmail(){"use strict";this.__type="ReportScheduleEmail:www.veritracks.com",this.Id=-1,this.ReportScheduleId=-1,this.UserEmail="",this.IsActive=!0,this.TransactionId=moment().format("YYYYMMDDHHmmss")}"undefined"!=typeof exports&&(module.exports=ReportScheduleEmail); 179function ReportScheduleFilter(){"use strict";this.__type="ReportScheduleFilter:www.veritracks.com",this.Id=-1,this.ReportScheduleId=-1,this.ReportFilterId=-1,this.ReportFilterValue="",this.ReportFilterText="",this.ReportFilterName="",this.ReportFilterLabel="",this.OverrideFlag=0,this.RequiredFlag=0,this.ReportFilterSortId=-1,this.IsActive=!0,this.TransactionId=moment().format("YYYYMMDDHHmmss")}"undefined"!=typeof exports&&(module.exports=ReportScheduleFilter); 180function ReportsControls(){"use strict";this.ReportInstance=null,this.CardView=null,this.CardViewTimer=null,this.CardViewFilter=null,this.CardViewPaginator=null,this.ReportInstanceFiltersListView=null,this.Validator=null,this.OrganizationTreeControl=null,this.SchedulesListView=null,this.SchedulesCardView=null,this.SchedulesValidator=null,this.SchedulesCardViewFilter=null,this.ScheduleFilterListView=null,this.ScheduleEmailListView=null,this.ScheduleEmailValidator=null,this.ScheduleFilterValidator=null}"undefined"!=typeof exports&&(module.exports=ReportsControls); 181function ReportsData(){"use strict";this.ReportContainer="uReports",this.Container="uReportFilters",this.ReportURLPrepend="https://vtreports.veritracks.com/reports/",this.CurrentId=-1,this.Clean=null,this.Sort=null,this.Dirty=null,this.Paginated=null,this.StoredReports=null,this.TargetId=-1,this.CacheItemsRemaining=0,this.AddReportsReady=!1,this.SkipUpdateBar=!1,this.ScheduleFilters=[],this.ScheduleEmails=[],this.OpeningReportUrl="",this.OpeningReportUrlClose=!1}"undefined"!=typeof exports&&(module.exports=ReportsData); 182function SAMAOffenderAssociation(e){"use strict";this.__type="SAMAOffenderAssociation:www.veritracks.com",this.Id=e||-1,this.SAMAId="",this.EnrolleeId=0,this.Ap
182pUserId=gUserDetails.UserId||0}SAMAOffenderAssociation.prototype=new DataObjectBaseClass,SAMAOffenderAssociation.prototype.constructor=SAMAOffenderAssociation,"undefined"!=typeof exports&&(module.exports=SAMAOffenderAssociation); 183function SAMAOffenderDissociation(e){"use strict";this.__type="SAMAOffenderDissociation:www.veritracks.com",this.Id=e||-1,this.SAMAId="",this.AppUserId=gUserDetails.UserId||0}SAMAOffenderDissociation.prototype=new DataObjectBaseClass,SAMAOffenderDissociation.prototype.constructor=SAMAOffenderDissociation,"undefined"!=typeof exports&&(module.exports=SAMAOffenderDissociation); 184function SAMAVictimStatus(t){"use strict";this.__type="SAMAVictimStatus:www.veritracks.com",this.Id=t||-1,this.HasVictimMobileApp=0,this.CellPhoneNumber="",this.AppUserId=gUserDetails.UserId||0,this.SAMAFlag=0}SAMAVictimStatus.prototype=new DataObjectBaseClass,SAMAVictimStatus.prototype.constructor=SAMAVictimStatus,"undefined"!=typeof exports&&(module.exports=SAMAVictimStatus); 185function ScheduleConfiguration(){"use strict";this.HasAddress=!1,this.Addresses=[],this.HasBluBox=!1,this.BluBoxes=[],this.HasBluHome=!1,this.BluHomes=[],this.HasZone=!1,this.Zones=[]}"undefined"!=typeof exports&&(module.exports=ScheduleConfiguration); 186function ScheduleItem(e){"use strict";switch(this.Id=e.Id,this.Name=e.Name,this.EntityId=e.EntityId,this.TargetTypeId=e.ScheduleType,e.ScheduleType){case 8:case 1:this.TargetTypeName=localizeText("cZone");break;case 10:case 2:this.TargetTypeName="BLUhome";break;case 7:case 3:this.TargetTypeName="BLUbox";break;case 6:this.TargetTypeName=localizeText("cEnrolleeAddress")}this.TargetName="",this.ScheduleType=localizeText("cEnrolleeReoccurring"),e.IsRecurring||(this.ScheduleType=localizeText("cEnrolleeOverride")),this.StartTime=e.StartTime,this.EndTime=e.EndTime,this.StartTimeLocal=e.StartTimeLocal,this.EndTimeLocal=e.EndTimeLocal,this.StartTimeUTC=e.StartTimeUTC,this.EndTimeUTC=e.EndTimeUTC,this.StartDateUTC=e.StartDateUTC,this.EndDateUTC=e.EndDateUTC,this.IsSunday=e.IsSunday,this.IsMonday=e.IsMonday,this.IsTuesday=e.IsTuesday,this.IsWednesday=e.IsWednesday,this.IsThursday=e.IsThursday,this.IsFriday=e.IsFriday,this.IsSaturday=e.IsSaturday,this.IsEnabled=e.IsEnabled,this.IsReocurring=e.IsRecurring,this.ZoneScheduleType=e.ZoneScheduleType,this.EnrolleeId=e.EnrolleeId}"undefined"!=typeof exports&&(module.exports=ScheduleItem); 187function ScheduleTarget(){"use strict";this.Id=-1,this.Name="",this.TypeId=-1,this.TypeName="",this.UniqueId="",this.AddressType=""}"undefined"!=typeof exports&&(module.exports=ScheduleTarget); 188function SequenceReader(e){this.__type="SequenceReader:www.veritracks.com",this.Id=-1,this.Sequence=e}"undefined"!=typeof exports&&(module.exports=SequenceReader); 189function SoberTrackData(){"use strict";this.TargetId=-1,this.RequestId=-1,this.ScheduledTestEditItem=null}"undefined"!=typeof exports&&(module.exports=SoberTrackData); 190function SoberTrackNotification(){this.__type="SobertrackNotification:www.veritracks.com",this.Id=-1,this.SMSNotificationPhoneNumber=""}"undefined"!=typeof exports&&(module.exports=SoberTrackNotification); 191function Spatial(){"use strict";this.Id=-1,this.Version=0,this.CenterLatitude=0,this.CenterLongitude=0,this.IsActive=1,this.Radius=250,this.Shape=1,this.Type=1}"undefined"!=typeof exports&&(module.exports=Spatial); 192function SpatialEnrollee(){var e=new Enrollee;return e.FullName="- unknown -",e.PrimaryId="- unknown -",e}"undefined"!=typeof exports&&(module.exports=SpatialEnrollee); 193function StationEnrollee(){"use strict";this.DeviceClusterId=-1,this.EnrolleeId=-1}"undefined"!=typeof exports&&(module.exports=StationEnrollee); 194function Tag(){"use strict";this.__type="Tag:www.veritracks.com",this.Id=-1,this.Version=0,this.Description="",this.IsActive=!0,this.Latitude=0,this.Longitude=0,this.Name="",this.Radius=80,this.UserId=-1}"undefined"!=typeof exports&&(module.exports=Tag); 195function TagVisitLink(){"use strict";this.__type="TagVisitLink:www.veritracks.com",this.Id=-1,this.IsActive=!0,this.Name="",this.TagId=-1,this.VisitId=-1}"undefined"!=typeof exports&&(module.exports=TagVisitLink); 196function Tile(){"use strict";this.OrganizationId=-1,this.UserId=-1,this.Name="",this.Value="",this.NavigationHash=""}"undefined"!=typeof exports&&(module.exports=Tile); 197function Unit(){this.MEASURE={STANDARD:{value:0,name:"Standard"},METRIC:{value:1,name:"Metric"}}}"undefined"!=typeof exports&&(module.exports=Unit); 198function User(){"use strict";this.__type="User:www.veritracks.com",this.Id=-1,this.Version=0,this.FirstName="",this.FullName="",this.LastName="",this.DisplayType=1,this.CultureId=0,this.DataAccessGroupId=-1,this.Email="",this.IsActive=!0,this.SecurityQuestionId=-1,this.PasswordPolicy=0,this.PrimaryPhone="",this.SecondaryPhone="",this.ThirdPhone="",this.FourthPhone="",this.PrimarySMSOptInFlag=0,this.SecondarySMSOptInFlag=0,this.ThirdSMSOptInFlag=0,this.FourthSMSOptInFlag=0,this.UserName="",this.SMSOptIn=0,this.TransactionId="",this.TwoFARequiredFlag=0}"undefined"!=typeof exports&&(module.exports=User); 199function UserAgent(){"use strict";this.__type="User:www.veritracks.com",this.Id=-1,this.Version=0,this.FirstName="",this.FullName="",this.LastName="",this.OrganizationId=0,this.DisplayType=1,this.CultureId=0,this.DataAccessGroupId=-1,this.Email="",this.IsActive=!0,this.SecurityQuestionId=-1,this.PasswordPolicy=0,this.PrimaryPhone="",this.SecondaryPhone="",this.ThirdPhone="",this.FourthPhone="",this.PrimarySMSOptInFlag=0,this.SecondarySMSOptInFlag=0,this.ThirdSMSOptInFlag=0,this.FourthSMSOptInFlag=0,this.UserName="",this.SMSOptIn=0,this.TransactionId="",this.TwoFARequiredFlag=0}"undefined"!=typeof exports&&(module.exports=User); 200function UserContactConfirm(){"use strict";this.__type="UserContactConfirm:www.veritracks.com",this.UserContactMethodId=-1,this.UserContactValue=-1}"undefined"!=typeof exports&&(module.exports=UserContactConfirm); 201function UserFeedback(e,s,t){"use strict";this.__type="UserFeedback:www.veritracks.com",this.Id=-1,this.Version=0,this.UserId=e,this.Url=s,this.Content=t}"undefined"!=typeof exports&&(module.exports=UserFeedback); 202function UserPassword(){"use strict";this.__type="UserPassword:www.veritracks.com",this.Id=-1,this.Version=0,this.UserId=-1,this.CurrentPassword="",this.NewPassword=""}"undefined"!=typeof exports&&(module.exports=UserPassword); 203function UserPermission(){"use strict";this.__type="UserPermission:www.veritracks.com",this.Id=-1,this.PermissionId=-1,this.Version=0,this.UserId=-1,this.LoginUserId=-1,this.Value=0,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=UserPermission); 204function UserPreference(){"use strict";this.__type="UserPreference:www.veritracks.com",this.Id=-1,this.Version=0,this.UserId=gUserDetails.UserId,this.ColumnName="",this.UserPreferenceType=-1,this.Value="",this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=UserPreference); 205function UserRole(){"use strict";this.__type="UserRole:www.veritracks.com",this.Id=-1,this.UserId=-1,this.Description=null,this.UserRoleValueTypeId=-1,this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=UserRole); 206function UserRoleValueType(){"use strict";this.Id=-1,this.UpdateUTC=new Date,this.Description=null}"undefined"!=typeof exports&&(module.exports=UserRoleValueType); 207function UserSecurityAnswer(){"use strict";this.__type="UserSecurityAnswer:www.veritracks.com",this.Id=-1,this.Version=0,this.UserId=-1,this.SecurityQuestionId=-1,this.SecurityAnswer=""}"undefined"!=typeof exports&&(module.exports=UserSecurityAnswer); 208function UserTransaction(){"use strict";this.__type="UserTransaction:www.veritracks.com",this.Id=-1,this.DisplayId=1,this.EnrolleeId=-1,this.TypeId=1,this.TransactionStartDate=new Date,this.TransactionStopDate=new Date,this.TrackPointCount=0}"undefined"!=typeof exports&&(module.exports=UserTransaction); 209function UserTransactionLogin(){"use strict";this.__type="UserTransactionLogin:www.veritracks.com",this.Id=-1,this.UserId=-1,this.Success=!0,this.AllowedApps="NNNNNNNNN",this.OrganizationId=-1,this.BrowserName="",this.BrowserVersion=""}"undefined"!=typeof exports&&(module.exports=UserTransactionLogin); 210function UserTransactionValue(){"use strict";this.__type="UserTransactionValue:www.veritracks.com",this.Id=-1,this.DataTypeId=-1,this.LogDateIsGMTFlag=!0,this.LogDateName="",this.LogDateValue=new Date,this.LogNumberName="",this.LogNumberValue=-1,this.LogStringName="",this.TransactionId=-1}"undefined"!=typeof exports&&(module.exports=UserTransactionValue); 211function UserTwoFASecret(){this.__type="UserTwoFASecret:www.veritracks.com",this.Id=-1,this.UserSecretKey="",this.TransactionId=""}"undefined"!=typeof exports&&(module.exports=UserTwoFASecret); 212function UserUnlock(e){this.__type="UserUnlock:www.veritracks.com",this.Id=e}"undefined"!=typeof exports&&(module.exports=UserUnlock);
213function UsersControls(){"use strict";this.CardView=null,this.CardViewFilter=null,this.CardViewPaginator=null,this.ProfileValidator=null}"undefined"!=typeof exports&&(module.exports=UsersControls); 214function UsersData(){"use strict";this.TargetId=-1,this.Clean=null,this.Dirty=null,this.Paginated=null,this.CurrentId=-1,this.EditingId=-1,this.TabsPending=2}"undefined"!=typeof exports&&(module.exports=UsersData); 215function VeritracksAsociation(e){this.Identifier="",this.Description="",e&&(this.Identifier=e.PointGroupingId.toString(),this.Description=getConnectionReason(e,GetEnrollee(e.Id),GetEnrollee(e.MatchEnrolleeId)))}"undefined"!=typeof exports&&(module.exports=VeritracksAsociation); 216function VictimProfile(e){"use strict";this.__type="VictimProfile:www.veritracks.com",this.Id=e||-1,this.Version=0,this.FirstName="",this.LastName="",this.AgentId=-1,this.RiskLevelId=-1,this.OrganizationId=-1,this.VictimUserId=-1,this.Email="",this.SamaPhoneNumber="",this.SecondaryEmail="",this.PrimaryPhone="",this.SecondaryPhone="",this.OffenderId=-1,this.TimeZoneCode="",this.ProximityCaution=-1,this.ProximityCautionExtId=-1,this.ProximityWarning=-1,this.ProximityWarningExtId=-1,this.ProximityDanger=-1,this.ProximityDangerExtId=-1,this.GothimInquiryExtId=-1,this.TransactionId="",this.IsNewVictim=0,this.IsStalkerMobile=0}VictimProfile.prototype=new DataObjectBaseClass,(VictimProfile.prototype.constructor=VictimProfile).prototype.Write=function(n,t){var e=new SumoPredicateBuilder;this.TransactionId=moment().format("YYYYMMDDHHmmss"),e.Clear(),e.AddNewExpressionConditional("TimeZoneCode",this.TimeZoneCode,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And());var i,o=query(getDataItems("TimeZone"),e.RootExpression);for(i in o)o.hasOwnProperty(i)&&(this.TimeZoneId=o[i].Id);var e={},s=e.aVictim=this;Fetcher.Post("/Victims",e,function(t,o,r){var e;r.Enrollee?((e=new Enrollee).setValues(r.Enrollee),e.TimeZoneCode=s.TimeZoneCode,e.ArchiveFlag="N",e.Save(function(e,i){setDataItem(i.Id,"Enrollees",i),AssignGlobalIds(gEnrolleeIds,getCacheItem("Enrollees"),"Id"),n(t,o,r)},failure)):n(t,o,r)},function(e,i){failure(e,i),t()})},VictimProfile.prototype.Update=function(o,t){var e=new SumoPredicateBuilder;this.TransactionId=moment().format("YYYYMMDDHHmmss"),e.Clear(),e.AddNewExpressionConditional("TimeZoneCode",this.TimeZoneCode,!1,mRelationalOperatorEnum.Equal(),mLogicalOperatorEnum.And());var i,r=query(getDataItems("TimeZone"),e.RootExpression);for(i in r)r.hasOwnProperty(i)&&(this.TimeZoneId=r[i].Id);e={};e.aVictim=this,Fetcher.Put("/Victims/"+this.Id,e,function(e,i,t){t.Enrollee&&(setDataItem(t.Enrollee.Id,"Enrollees",t.Enrollee),AssignGlobalIds(gEnrolleeIds,getCacheItem("Enrollees"),"Id")),o(e,i,t)},function(e,i){failure(e,i),t()})},VictimProfile.prototype.Read=function(r){var n=this;if(-1==this.Id)throw"no Id found in the VictimProfile instance ";Fetcher.Get("/Victims/"+this.Id,function(e,i,t){var o=Object.assign({},n,i,{__type:n.__type});n.setValues(o),r(e,i,t)},function(e,i){})},VictimProfile.prototype.IsCurrentlyPaired=function(){var e=veritracks.core.GetOriProperty(this.OrganizationId,StalkerController.sama_property);return 1===this.IsStalkerMobile&&e},"undefined"!=typeof exports&&(module.exports=VictimProfile); 217function VictimRiskLevel(){"use strict";this.Id=-1,this._type="VictimRiskLevel:www.veritracks.com",this.Version=0,this.VictimRiskLevelId=-1,this.VictimRiskLevelName=-1}"undefined"!=typeof exports&&(module.exports=VictimRiskLevel); 218function VictimUnenrollment(){"use strict";this.__type="VictimUnenrollment:www.veritracks.com",this.Id=-1,this.VictimUserId=-1,this.VictimSearchType=-1}"undefined"!=typeof exports&&(module.exports=VictimUnenrollment); 219function ViewState(){"use strict";this.Id="",this.Value=""}"undefined"!=typeof exports&&(module.exports=ViewState); 220function Zone(){"use strict";this.__type="Zone:www.veritracks.com",this.Id=-1,this.Version=0,this.AgentId=-1,this.UpdatedByAppUserId=-1,this.BadEventCount=0,this.CenterLatitude=0,this.CenterLongitude=0,this.Description="",this.EnrolleeCount=0,this.GlobalZoneId=-1,this.GoodEventCount=0,this.IsActive=1,this.IsVisible=!0,this.Name="",this.OrganizationId=-1,this.Radius=250,this.Scope=1,this.Shape=1,this.Type=-1,this.TransactionId=moment().format("YYYYMMDDHHmmss"),this.ZoneClassificationId=-1,this.AddressTypeId=-1,this.AoiZoneEnable=!1,this.CreatedDateUTC=(new Date).toWcf(),this.OrderIndex="",this.VertexLatitude="",this.VertexLongitude="",this.IsVertexActive="",this.IsLast="",this.VertexId=""}"undefined"!=typeof exports&&(module.exports=Zone); 221function ZoneCardView(i,e,n){"use strict";this.Id=i.Id,this.Name=i.Name,this.Description=i.Description,this.Type=i.Type,this.Scope=i.Scope,this.Shape=i.Shape,this.IsAssigned=0<i.EnrolleeCount,this.EventCount=i.EventCount,this.PoiFlag=i.PoiFlag,i.Id,this.EnrolleeCount=i.EnrolleeCount,this.IsMine=!1,this.AgentId=i.AgentId,this.AgentName="- unknown -",isNullOrUndefined(e)||(this.AgentName=e.FullName),this.OrganizationId=i.OrganizationId,this.OrganizationName="- unknown -",isNullOrUndefined(n)||(this.OrganizationName=n.Name),this.ZoneClassificationId=i.ZoneClassificationId}"undefined"!=typeof exports&&(module.exports=ZoneCardView); 222function ZoneVertex(t,e,s,i){"use strict";this.__type="ZoneVertex:www.veritracks.com",this.Id=-1,this.Version=0,this.IsActive=!0,this.IsLast=!1,this.Latitude=RoundNumber(e,7),this.Longitude=RoundNumber(s,7),this.OrderIndex=i,this.ZoneId=t,this.TransactionId=moment().format("YYYYMMDDHHmmss")}"undefined"!=typeof exports&&(module.exports=ZoneVertex);
223function ZonesControls(){"use strict";this.CardView=null,this.CardViewTimer=null,this.CardViewFilter=null,this.CardViewPaginator=null,this.Map=null,this.MapLocate=null,this.Validator=null,this.NotificationPanel=null,this.LegendDropdown=null,this.DetailsDropdown=null,this.LocateDropdown=null,this.NotesDropdown=null,this.SettingsDropdown=null}"undefined"!=typeof exports&&(module.exports=ZonesControls); 224function ZonesData(){"use strict";this.CurrentId=-1,this.EditItem=null,this.EditShape=null,this.Clean=null,this.Sort=null,this.Dirty=null,this.Paginated=null,this.EditVertices=null,this.DistancePoints=[],this.DistanceToolActive=!1,this.TargetId=-1,this.TempId=-1,this.EditMode=!1,this.NewZoneId=-1}"undefined"!=typeof exports&&(module.exports=ZonesData); 225function fullCalendarChartingObject(t,e){this.timelineId=-1,this.start=moment(displayEnrolleeTimeZone(e.StartDate,t)),this.backgroundColor=mChartingCalendarColors[e.MatchType],this.end=moment(displayEnrolleeTimeZone(e.StopDate,t)),this.eventList=e.EventList,this.Associations=e.Associations,this.potentialTrip=e.PotentialTrip,this.textColor="white","#FFFFFF"==this.backgroundColor&&(this.textColor="black"),this.TimeZoneName=t.TimeZoneName,e.Title?this.title=e.Title+" ("+e.MatchType+")":this.title=e.MatchType,e.TimelineData&&(this.timelineId=e.TimelineData.Id),this.data=e.TimelineData}"undefined"!=typeof exports&&(module.exports=fullCalendarChartingObject); 226function fullCalendarObject(t,e,i,s,l){this.scheduleId=t.Id,this.title=t.Name,this.allDay=i,this.isRecurring=s,this.backgroundColor=getScheduleColor(t),displayDSTSchedules()?(this.start=moment(e+" "+getTimeFormatter(t.StartTimeLocal)),this.end=moment(e+" "+getTimeFormatter(t.EndTimeLocal))):(this.start=moment(e+" "+displayShortTime(t.StartTime)),this.end=moment(e+" "+displayShortTime(t.EndTime))),this.editable=l,this.state=1,this.textColor="white"}"undefined"!=typeof exports&&(module.exports=fullCalendarObject); 227function getConnectionReason(e,t,n){var o;return t&&n?(t=getDataItem(t.TimeZoneId,"TimeZone"),o=displayEnrolleeTimeZone(e.StartDateUTC,t),e=displayEnrolleeTimeZone(e.EndDateUTC,t),"At this address with "+n.FirstName+" "+n.LastName+" ("+n.PrimaryId+") "+"from "+o+" to "+e):"fail"}"undefined"!=typeof exports&&(module.exports=getConnectionReason); 228var gUniversalLocaleMissing=[];function getMissingLocaleItems(){"use strict";for(var e in gUniversalLocaleMissing)gUniversalLocaleMissing.hasOwnProperty(e);return[]}"undefined"!=typeof exports&&(module.exports=getMissingLocaleItems); 229//# sourceMappingURL=../maps/js/app.min.js.map
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.