"use strict";function BrowserCompatibilityManager(){this.getBrowserType=function(){var i=navigator.userAgent,t,n=i.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(t=/\brv[ :]+(\d+)/g.exec(i)||[],"IE "+(t[1]||"")):n[1]==="Chrome"&&(t=i.match(/\b(OPR|Edge)\/(\d+)/),t!=null)?t.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],(t=i.match(/version\/(\d+)/i))!=null&&n.splice(1,1,t[1]),n.join(" "))};this.performCheck=function(){var n=this.getBrowserType();(n=="MSIE 8"||n=="MSIE 9")&&($("#incompatibleBrowser").removeClass("is-hidden"),removeNewBrowserFunctionalities=!0)}}function Dialog(){this.init=function(n){this.options={headerTitle:"",isScrollable:!1,populateBody:function(){},populateFooter:function(){}};$.extend(this.options,n)};this.display=function(){this.dialogModule=$('<div class="o-popmodal is-visible">');this.dialogOverlay=$('<div class="popmodal__overlay">').appendTo(this.dialogModule);this.dialogContent=$('<div class="popmodal__content">').appendTo(this.dialogModule);this.options&&this.options.isScrollable==!0&&this.dialogContent.addClass("is-scrollable");this.displayHeader();this.displayBody();this.displayFooter();this.dialogModule.appendTo("body")};this.displayHeader=function(){let n=$('<div class="popmodal__header">').appendTo(this.dialogContent);if(this.options.headerTitle){let t=this;$('<h1 class="popmodal__title">').html(this.options.headerTitle).appendTo(n);this.options.close&&$('<button class="popmodal__close"><span class="o-icon  o-icon--close"><\/span><\/button>').on("click",function(){t.options.close()}).appendTo(n)}};this.displayBody=function(){let n=$('<div class="popmodal__body">').appendTo(this.dialogContent);this.options.isScrollable===!0&&n.addClass("is-scrollable");let t=this.options.populateBody();t&&t.appendTo(n)};this.displayFooter=function(){let t=$('<div class="popmodal__footer">').appendTo(this.dialogContent),n=this.options.populateFooter();n&&n.appendTo(t)};this.remove=function(){this.dialogModule.remove()}}function MessageDialog(){let n={populateBody:function(){let n=$("<div />").addClass("popmodal__content-message");return $("<span>").html(this.message).appendTo(n),n},populateFooter:function(){let n=$("<div>"),t=this;return $("<button type='button' class='o-button o-button--small'>Ok<\/button>").on("click",function(){t.close()}).appendTo(n),n}};this.init=function(t){MessageDialog.prototype.init(t);$.extend(this.options,n)}}function PortalError(n,t,i,r){this.jqXHR=n;this.status=t;this.error=i;this.customMessage=r;this.showMessage=function(n,t){n?this.showAdminMessage(t):this.showUserMessage()};this.showAdminMessage=function(n){var t,r,i;if(this.jqXHR&&this.jqXHR.readyState<4){this.logError();return}if(t="There was an error on the page. Please refresh and contact the developer if this happens again.",n){if(t+="\n\nError details:",this.customMessage&&(t+="\nCustom message: "+this.customMessage),this.jqXHR){r=!1;try{i=$.parseJSON(this.jqXHR.responseText);i.ErrorCode&&i.Message&&(r=!0,t=i.Message)}catch(u){}r||(t+="\n\nResponse text: "+this.jqXHR.responseText+"\nStatus text: "+this.jqXHR.statusText+"\nStatus code: "+this.jqXHR.status)}this.error&&(t+="\n\nError: "+this.error)}alert(t)};this.showUserMessage=function(){if(this.jqXHR&&this.jqXHR.responseText){let n;try{let t=JSON.parse(this.jqXHR.responseText);n=t.ExceptionMessage?t.ExceptionMessage:t.Message}catch(n){n=this.jqXHR.responseText}if(n){let t=new MessageDialog;t.init({message:n,close:function(){t.remove();t=null}});t.display()}}};this.logError=function(){console.log(this.jqXHR);console.log(this.status);console.log(this.error)}}function getQueryStringParameterByName(n,t){t||(t=window.location.href);n=n.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function getLanguage(){var t=window.location.href,n;for(n in ENLanguage)if(t.indexOf("/"+ENLanguage[n]+"/")!=-1)return n;return"English"}function getLanguageFromCookie(n){for(var t in ENLanguage)if(ENLanguage[t]==n)return t;return"English"}function getLanguageShort(){var t=window.location.href,n;for(n in ENLanguage)if(t.indexOf("/"+ENLanguage[n]+"/")!=-1)return ENLanguage[n];return"en"}function getPath(n,t){var i=window.location.protocol+"//"+window.location.host+"/"+n;return t&&(i+="?"+$.param(t)),i}function getPathWithLocalization(n,t){var r=getLanguageShort(),i=window.location.protocol+"//"+window.location.host+"/";return i+=r+"/"+n,t&&Object.keys(t).length&&(i+="?"+$.param(t)),i}function generateRadioInput(n,t,i){let u=$("<span/>").addClass("o-radio"),r=$('<label class="radio__wrapper">').appendTo(u);return $('<span class="radio__object"><\/span>').appendTo(r),$('<input type="radio" class="o-input" />').attr("value",n).attr("name",t).appendTo(r),$('<span class="radio__name">').html(i).appendTo(r),u}function removeSubscriptionInfoFromStorage(){localStorage.removeItem("selectedDevices");localStorage.removeItem("selectedPlan");localStorage.removeItem("numberOfUnassignedLicenses")}function logout(){removeSubscriptionInfoFromStorage();var n=new APICallsManager;return n.performCall({httpMethod:ENHttpMethods.POST,webApiMethod:ENWebApiMethods.Logout,successCallback:function(){window.location=getPathWithLocalization(navigationDictionary.URL_Auth_Login)},errorCallback:null}),!1}function getControllerPath(){return document.location.protocol+"//"+document.location.host}function APICallsManager(n){this.controllerPath=getControllerPath()+"/";this.calls={};this.callsAllowedToBePerfomedMultipleTimes=[ENWebApiMethods.GetTemplatesForAdminAdditionalInfo];this.performCall=function(n){this.abortCall(n.webApiMethod);switch(n.httpMethod){case ENHttpMethods.GET:this.performGetCall(n);break;case ENHttpMethods.POST:this.performPostCall(n);break;case ENHttpMethods.PATCH:this.performPatchCall(n);break;case ENHttpMethods.DELETE:this.performDeleteCall(n)}};this.abortCall=function(n){this.calls[n]&&(this.callsAllowedToBePerfomedMultipleTimes.indexOf(n)===-1&&this.calls[n].abort(),delete this.calls[n])};this.deleteCallFromDictionary=function(n){this.calls[n]&&delete this.calls[n]};this.performGetCall=function(t){var i=this,r={url:this.controllerPath+t.webApiMethod,type:"GET",dataType:"json",data:t.params,contentType:"application/json; charset=utf-8",success:function(n){i.deleteCallFromDictionary(t.webApiMethod);t.successCallback&&t.successCallback(n)},error:function(r,u,f){i.deleteCallFromDictionary(t.webApiMethod);t.errorCallback&&t.errorCallback(r,u,f);let e=new PortalError(r,u,f,t.webApiMethod);e.showMessage(n,!0)}};t.timeout&&(r.timeout=t.timeout);this.calls[t.webApiMethod]=$.ajax(r)};this.performPostCall=function(t){var r,u;let i=this;if(t.hasFormData){r=new FormData;for(let n in t.params)t.params[n]&&r.append(n,t.params[n]);t.files.length>0&&r.append("Files",t.files[0],t.files[0].name);this.calls[t.webApiMethod]=$.ajax({url:this.controllerPath+t.webApiMethod,data:r,cache:!1,contentType:!1,processData:!1,method:"POST",type:"POST",success:function(n){i.deleteCallFromDictionary(t.webApiMethod);t.successCallback&&t.successCallback(n)},error:function(r,u,f){i.deleteCallFromDictionary(t.webApiMethod);t.errorCallback&&t.errorCallback(r,u,f);let e=new PortalError(r,u,f,t.webApiMethod);e.showMessage(n,!0)}})}else u={url:this.controllerPath+t.webApiMethod,type:"POST",dataType:"json",data:JSON.stringify(t.params),contentType:"application/json; charset=utf-8",success:function(n){i.deleteCallFromDictionary(t.webApiMethod);t.successCallback&&t.successCallback(n)},error:function(r,u,f){i.deleteCallFromDictionary(t.webApiMethod);t.errorCallback&&t.errorCallback(r,u,f);let e=new PortalError(r,u,f,t.webApiMethod);e.showMessage(n,!0)}},t.timeout&&(u.timeout=t.timeout),this.calls[t.webApiMethod]=$.ajax(u)};this.performPatchCall=function(t){var r,u;let i=this;if(t.hasFormData){r=new FormData;for(let n in t.params)t.params[n]&&r.append(n,t.params[n]);t.files.length>0&&r.append("Files",t.files[0],t.files[0].name);this.calls[t.webApiMethod]=$.ajax({url:this.controllerPath+t.webApiMethod,data:r,cache:!1,contentType:!1,processData:!1,method:"PATCH",type:"PATCH",success:function(n){i.deleteCallFromDictionary(t.webApiMethod);t.successCallback&&t.successCallback(n)},error:function(r,u,f){i.deleteCallFromDictionary(t.webApiMethod);t.errorCallback&&t.errorCallback(r,u,f);let e=new PortalError(r,u,f,t.webApiMethod);e.showMessage(n,!0)}})}else u={url:this.controllerPath+t.webApiMethod,type:"PATCH",dataType:"json",data:JSON.stringify(t.params),contentType:"application/json; charset=utf-8",success:function(n){i.deleteCallFromDictionary(t.webApiMethod);t.successCallback&&t.successCallback(n)},error:function(r,u,f){i.deleteCallFromDictionary(t.webApiMethod);t.errorCallback&&t.errorCallback(r,u,f);let e=new PortalError(r,u,f,t.webApiMethod);e.showMessage(n,!0)}},t.timeout&&(u.timeout=t.timeout),this.calls[t.webApiMethod]=$.ajax(u)};this.performDeleteCall=function(t){var i=this,r={url:this.controllerPath+t.webApiMethod,type:"DELETE",dataType:"json",data:JSON.stringify(t.params),contentType:"application/json; charset=utf-8",success:function(n){i.deleteCallFromDictionary(t.webApiMethod);t.successCallback&&t.successCallback(n)},error:function(r,u,f){i.deleteCallFromDictionary(t.webApiMethod);t.errorCallback&&t.errorCallback(r,u,f);let e=new PortalError(r,u,f,t.webApiMethod);e.showMessage(n,!0)}};t.timeout&&(r.timeout=t.timeout);this.calls[t.webApiMethod]=$.ajax(r)}}var removeNewBrowserFunctionalities=!1,navigationDictionary;$(function(){var n=new BrowserCompatibilityManager;n.performCheck()});navigationDictionary={LinkTitle_User_Devices:"Devices",LinkTitle_User_DevicesAndLicenses:"Devices/Licenses",LinkTitle_User_Profile:"Settings",LinkTitle_User_PurchasePlan:"Purchase License",LinkTitle_User_Transactions:"Transactions",URL_AboutUs:"about-us",URL_Media:"media",URL_AdminDeviceInfo:"admin/device-info",URL_AdminDeviceLoginHistory:"admin/device-login-history",URL_AdminHome:"admin/home",URL_AdminInquiries:"admin/inquiries",URL_AdminInvoiceDetails:"admin/invoice-details",URL_AdminQandA:"admin/QandA",URL_AdminStatisticsBoard:"admin/statistics-board",URL_AdminUserLoginHistory:"admin/user-login-history",URL_AdminUsers:"admin/users",URL_AdminUserStatistics:"admin/statistics",URL_AdminUserSubscriptions:"admin/licenses",URL_AdminUserSupportTickets:"admin/support-tickets",URL_Auth_GetFreeTrial:"get-free-trial",URL_Auth_Login:"login",URL_Auth_LoginWithHuawei:"login-with-huawei",URL_Auth_Logout:"logout",URL_Auth_ResetPassword:"reset-password",URL_BecomeReseller:"become-reseller",URL_ComparePlans:"compare-counting-plans",URL_Contact:"#contact",URL_CountingTemplates:"counting-templates",URL_CreateAccount:"login?&isFromLogin=false",URL_Download:"#download",URL_Facebook:"https://www.facebook.com/CountThings/",URL_GetFreeTrial:"get-free-trial",URL_Home:"",URL_HowTo:"guides",URL_HowTo_Old:"count",URL_HowTo_PurchaseWithPayPal:"guides/0001",URL_HowTo_AccessPasswordForUsers:"guides/0002",URL_HowTo_BatchGP_M:"guides/0003",URL_HowTo_ChangeCountingTemplate_M:"guides/0004",URL_HowTo_CorrectingResults:"guides/0005",URL_HowTo_CorrectingResults_M:"guides/0006",URL_HowTo_CountReview:"guides/0007",URL_HowTo_CreateCustomizeForms:"guides/0008",URL_HowTo_CreateCustomizeForms_M:"guides/0009",URL_HowTo_DatabaseIntegration:"guides/0010",URL_HowTo_DefineArea:"guides/0011",URL_HowTo_DefineArea_M:"guides/0012",URL_HowTo_GrapeBerries:"guides/0013",URL_HowTo_GrapeBerries_M:"guides/0014",URL_HowTo_Houses:"guides/0015",URL_HowTo_Houses_M:"guides/0016",URL_HowTo_IntegrateWithWorkflow_M:"guides/0017",URL_HowTo_LearnApp:"guides/0018",URL_HowTo_LearnApp_M:"guides/0019",URL_HowTo_Industry_Anchor:"#industry",URL_HowTo_LearnFeatures_Anchor:"#advanced",URL_HowTo_Livestock:"guides/0020",URL_HowTo_Logs:"guides/0021",URL_HowTo_Logs_M:"guides/0022",URL_HowTo_LongSteel:"guides/0023",URL_HowTo_LongSteel_M:"guides/0024",URL_HowTo_Manual:"guides/0025",URL_HowTo_Manual_M:"guides/0026",URL_HowTo_MetalSheets:"guides/0027",URL_HowTo_MetalSheets_M:"guides/0028",URL_HowTo_MobileApps:"count/mobile-app",URL_HowTo_PatternMatching:"guides/0029",URL_HowTo_LicensesAndPayments:"guides/0030",URL_HowTo_LicensesAndPaymentsiOS:"guides/0031",URL_HowTo_LicensesAndPayments_Anchor:"#getting-licenses",URL_HowTo_SendEmails:"guides/0032",URL_HowTo_SingleColor:"guides/0033",URL_HowTo_TubesPipes:"guides/0034",URL_HowTo_TubesPipes_M:"guides/0035",URL_HowTo_UAC:"guides/0036",URL_HowTo_WrongResults_M:"guides/0037",URL_HowTo_PipesInPipesWin:"guides/0038",URL_HowTo_PipesInPipesMob:"guides/0039",URL_HowTo_MultiLayerMob:"guides/0040",URL_HowTo_WebServiceIntegrationMob:"guides/0041",URL_HowTo_IntegrationWithSensorsWin:"guides/0042",URL_HowTo_SetUpEnterpriseAccount:"guides/0043",URL_QAndA_Pricing:"guides/0044",URL_LinkedIn:"https://www.linkedin.com/company/dynamic-ventures-inc.-d-b-a-countthings",URL_OldCountingTemplates:"templates",URL_Platform:"platform",URL_ResellerUserLicenses:"reseller/licenses",URL_ResellerUserLoginHistory:"reseller/user-login-history",URL_ResellerUsers:"reseller/users",URL_ResellerUserSupportTickets:"reseller/support-tickets",URL_TryAppAndroid:"try-app-android",URL_TryAppHuawei:"try-app-huawei",URL_TryAppiOS:"try-app-ios",URL_TryAppSamsung:"try-app-samsung",URL_TryAppAll:"try-app-all",URL_HowItWorks:"how-it-works-mobile-devices",URL_HowItWorksQR:"how-it-works-QR",URL_HowItWorksAndroid:"how-it-works-android",URL_HowItWorksiOS:"how-it-works-ios",URL_HowItWorksSamsung:"how-it-works-samsung",URL_HowItWorksHuawei:"how-it-works-huawei",URL_QuoteRequest:"quote-request",URL_EnterpriseLicenseRequest:"enterprise",URL_Accuracy:"accuracy",URL_Twitter:"https://twitter.com/countthings",URL_UpdateStripeBillingInfo:"update-stripe-billing-info",URL_User_Devices:"devices",URL_User_DevicesAndLicenses:"devices-and-licenses",URL_User_PaymentComplete:"payment-complete",URL_User_Profile:"profile",URL_User_PurchasePlan:"purchase-plan",URL_User_Transactions:"transactions",URL_Youtube:"https://www.youtube.com/channel/UC-ngVdIw3JqoUvcZdGsJF7A",URL_HowTo_Basic_Anchor:"#basic",URL_HowTo_LicensingAndAccounts_Anchor:"#licensing-accounts",URL_HowTo_Advanced_Anchor:"#advanced",URL_AdminUserChats:"admin/chats",URL_AdminUserNewChat:"admin/new-chat",URL_CaseStudies_Pearls:"case-studies/0001",URL_CaseStudies_Crayfish:"case-studies/0002",URL_CaseStudies_Plastilit:"case-studies/0003",URL_CaseStudies_ErnstYoung:"case-studies/0004",URL_CaseStudies_TTC:"case-studies/0005",URL_CaseStudies_Pevesul:"case-studies/0006",URL_CaseStudies:"case-studies",URL_CookiesPolicy:"cookies-policy",URL_Careers:"careers",URL_Security:"security",URL_Integration:"integration",URL_AddOperators:"add-operators",URL_ManageAdminsAndOperators:"manage-admins-and-operators",LinkTitle_User_ManageAdminsAndOperators:"Users",URL_Overview:"overview",URL_Questionnaire:"questionnaire",URL_OperatorHome:"users",URL_ConfigProfiles:"configuration-profiles",LinkTitle_User_ConfigurationProfiles:"Configuration Profiles"};MessageDialog.prototype=new Dialog;"use strict";var ENAttentionType={1:"Google Payment not validated",2:"Plan Expired",3:"Show Reviewed Attentions",4:"Plan about to expire",5:"Free Trial",6:"New Purchase From Paypal",7:"New Purchase From Apple",8:"New Purchase",9:"New Purchase From Google",10:"Plan Changed By User",16:"Unlock Device",32:"Migrate Device",64:"Assign User",128:"User Configuration File",256:"Assign From Admin",512:"Profile Change",1024:"Note",2048:"New User",4096:"Application Version Change",8192:"Marked By Admin"},ENLanguage={English:"en",Spanish:"es",Portuguese:"pt",Japanese:"ja",Russian:"ru",Arabic:"ar",Romanian:"ro",Vietnamese:"vi",French:"fr",German:"de",Hungarian:"hu",Swedish:"sv",Italian:"it",Polish:"pl",Hebrew:"he",Chinese:"zh",Korean:"ko",Turkish:"tr",Indonesian:"id",Malay:"ms",Thai:"th",Serbian:"sr"},ENHttpMethods={GET:"GET",POST:"POST",PATCH:"PATCH",DELETE:"DELETE"},ENWebApiMethods={GetPaymentsAndLicensesInfo:"api/Admin/GetPaymentsAndLicensesInfo",GetNumberOfPayments:"api/Admin/GetNumberOfPayments",GetPayments:"api/Admin/GetPayments",GetPaymentTypes:"api/Admin/GetPaymentTypes",UploadInvoice:"api/Admin/UploadInvoiceByAdmin",CreateNewPayment:"api/Admin/InsertPaymentByAdmin",UpdatePayment:"api/Admin/UpdatePaymentByAdmin",GetAdminDevicesPerHierarchy:"api/Admin/GetDevicesPerHierarchy",GetAdminDevicesAndSubscriptions:"api/Admin/GetDevicesAndSubscriptions",GetAllUserDevicesWithListOfCurrentComputedSubscriptions:"api/Admin/GetAllUserDevicesWithListOfCurrentComputedSubscriptions",GetDevicesWithSameRecurringSubscription:"api/Admin/GetDevicesWithSameRecurringSubscription",CancelRecurringSubscriptionByAdmin:"api/Admin/CancelRecurringSubscription",GetPlanTypes:"api/Admin/GetPlanTypes",GetLicenseTypes:"api/Admin/GetLicenseTypes",GetAdminUserDevices:"api/Admin/GetUserDevices",GetDevicesAvailableForLicenseMigrationAdmin:"api/Admin/GetDevicesAvailableForLicenseMigration",GetAdminFastUserDevices:"api/Admin/GetAdminUserDevices",GetAdminFastNumberOfUserDevices:"api/Admin/GetAdminNumberOfUserDevices",UpdateUnlockDevice:"api/Admin/UpdateUnlockDevice",UpdateIsBlockedDevice:"api/Admin/UpdateIsBlockedDevice",UpdateIsHiddenDevice:"api/Admin/UpdateIsHiddenDevice",AddTimeToSubscriptions:"api/Admin/AddTimeToSubscriptions",ChangeEndDateForSubscriptions:"api/Admin/ChangeEndDateForSubscriptions",GetAllSubscriptionsForDevice:"api/Admin/GetAllSubscriptionsForDevice",EndLicense:"api/Admin/EndSubscription",PermanentlyDeleteLicense:"api/Admin/PermanentlyDeleteSubscription",UpgradeLicence:"api/Admin/UpgradeSubscription",AdminMoveLicense:"api/Admin/MoveSubscription",ChangeGracePeriodEndDate:"api/admin/ChangeGracePeriodEndDate",GetPaymentsToLinkToLicence:"api/Admin/GetPaymentsToLinkToSubscription",LinkPaymentToLincence:"api/Admin/LinkPaymentToSubscriptions",RemovePaymentForSubscription:"api/Admin/RemovePaymentForSubscription",CheckIfDeviceHasMissingPayments:"api/Admin/CheckIfDeviceHasMissingPayments",CreateNewUnassignedLicence:"api/Admin/InsertUnassignedSubscriptionByAdmin",CreateNewOnDemandLicence:"api/Admin/InsertOnDemandSubscriptionByAdmin",GetUnassignedLicence:"api/Admin/GetUnassignedSubscription",GetOnDemandLicences:"api/Admin/GetOnDemandSubscriptions",GetPaymentForSubscription:"api/Admin/GetPaymentForSubscription",GetSubscriptionsWithNoPayments:"api/Admin/GetSubscriptionsWithNoPayments",DeletePayment:"api/Admin/DeletePaymentByAdmin",GetUserById:"api/Admin/GetUserById",GetUserTicketInfo:"api/Admin/GetUserTicketInfo",GetUserChatInfo:"api/Admin/GetUserChatInfo",GetApplications:"api/Admin/GetApplications",GetPlatforms:"api/Admin/GetPlatforms",QualifyUser:"api/Admin/QualifyUser",GetNumberOfInquiries:"api/Admin/GetNumberOfInquiries",GetInquiries:"api/Admin/GetInquiries",UpdateResolvedStateForInquiry:"api/Admin/UpdateResolvedStateForInquiry",GetUsers:"api/Admin/GetUsers",GetNumberOfUsers:"api/Admin/GetNumberOfUsers",GetUsersLazyData:"api/Admin/GetUsersLazyData",UpdateIsPayPalTest:"api/Admin/UpdateIsPayPalTest",UpdateIsTemplateTester:"api/Admin/UpdateIsTemplateTester",UpdateIsAllowed24Hours:"api/Admin/UpdateIsAllowed24Hours",UpdateRequiresAttention:"api/Admin/UpdateRequiresAttention",UpdateIsInactiveUser:"api/Admin/UpdateIsInactiveUser",GetNumberOfUserDevicesForView:"api/Admin/GetNumberOfUserDevicesForView",GetUserDevicesForView:"api/Admin/GetUserDevicesForView",IsTestUser:"api/Admin/IsTestUser",UpdateDeviceLockState:"api/Admin/UpdateDeviceLockState",GetNumberOfDevices:"api/Admin/GetNumberOfDevices",GetDevices:"api/Admin/GetDevices",GetNumberOfDeviceLoginHistory:"api/Admin/GetNumberOfDeviceLoginHistory",GetDeviceLoginHistory:"api/Admin/GetDeviceLoginHistory",DeleteDevice:"api/Admin/DeleteDevice",GetUserDevicesForDelete:"api/Admin/GetUserDevicesForDelete",DeleteDeviceForUser:"api/Admin/DeleteDeviceForUser",DeleteUser:"api/Admin/DeleteUser",GetNoOfDistinctEndDatesForLicenses:"api/Admin/GetNoOfDistinctEndDatesForLicenses",GetNumberOfInAppChats:"api/InAppChat/GetNumberOfInAppChats",GetInAppChats:"api/InAppChat/GetInAppChats",GetInAppChatMessages:"api/InAppChat/GetInAppChatMessages",GetDevicesForInAppChat:"api/InAppChat/GetDevicesForInAppChat",GetNumberOfDevicesForInAppChat:"api/InAppChat/GetNumberOfDevicesForInAppChat",SaveAndPushInAppChatMessage:"api/InAppChat/SaveAndPushInAppChatMessage",CloseInAppChat:"api/InAppChat/CloseInAppChat",AssignChatToAdmin:"api/InAppChat/AssignChatToAdmin",GetExpiringLongTermSubscriptions:"api/Admin/GetExpiringLongTermSubscriptions",GetExpiringShortTermSubscriptions:"api/Admin/GetExpiringShortTermSubscriptions",SetSubscriptionNotificationSent:"api/Admin/SetSubscriptionNotificationSent",GetNumberOfTickets:"api/Admin/GetNumberOfTickets",GetTickets:"api/Admin/GetTickets",UpdateIsResolved:"api/Admin/UpdateIsResolved",GetAdminsForTickets:"api/Admin/GetAdminsForTickets",UpdateTicketAssignedTo:"api/Admin/UpdateTicketAssignedTo",GetNumberOfContacts:"api/Admin/GetNumberOfContacts",GetContacts:"api/Admin/GetContacts",AddEditContact:"api/Admin/AddEditContact",DeleteContact:"api/Admin/DeleteContact",GetContactById:"api/Admin/GetContactById",UpdateIsLead:"api/Admin/UpdateIsLead",QualifyContact:"api/Admin/QualifyContact",GetLanguages:"api/Admin/GetLanguages",GetTranslatedCategories:"api/Admin/GetTranslatedCategories",UpdateTemplateCategoriesTranslations:"api/Admin/UpdateTemplateCategoriesTranslations",GetTranslatedTemplates:"api/Admin/GetTranslatedTemplates",UpdateTemplateTranslations:"api/Admin/UpdateTemplateTranslations",GetDropboxFileRequests:"api/Admin/GetDropboxFileRequests",DeleteAllClosedFileRequests:"api/Admin/DeleteAllClosedFileRequests",DeleteEmptyFolders:"api/Admin/DeleteEmptyFolders",CloseFileRequests:"api/Admin/CloseFileRequests",ReopenFileRequests:"api/Admin/ReopenFileRequests",CreateFileRequest:"api/Admin/CreateFileRequest",CreateUserFileRequest:"api/Admin/CreateUserFileRequest",DeleteFileRequests:"api/Admin/DeleteFileRequests",MoveFileRequests:"api/Admin/MoveFileRequests",ExportUserToHubspot:"api/Admin/ExportUserToHubspot",GetNumberOfUserHistories:"api/Admin/GetNumberOfUserHistories",GetUserAccountHistory:"api/Admin/GetUserAccountHistory",UpdateRequiresAttentionForUserHistory:"api/Admin/UpdateRequiresAttentionForUserHistory",AddUserAccountHistoryNote:"api/Admin/AddUserAccountHistoryNote",GetHistoryRecordInAthenaLatestDate:"api/Admin/GetHistoryRecordInAthenaLatestDate",GetAthenaUserHistory:"api/Admin/GetAthenaUserHistory",GetNumberOfUserLoginHistories:"api/Admin/GetNumberOfUserLoginHistories",GetUserLoginHistory:"api/Admin/GetUserLoginHistory",GetNumberOfUserStatistics:"api/Statistics/GetNumberOfUserStatistics",GetUserStatistics:"api/Statistics/GetUserStatistics",GetUserStatisticsTotals:"api/Statistics/GetUserStatisticsTotals",GetTopUsersHighCountForInfoBoard:"api/Statistics/GetTopUsersHighCountForInfoBoard",GetTopUsersHighErrorForInfoBoard:"api/Statistics/GetTopUsersHighErrorForInfoBoard",GetTopUsersHighMedianForInfoBoard:"api/Statistics/GetTopUsersHighMedianForInfoBoard",GetTopStatsByTemplateForInfoBoard:"api/Statistics/GetTopStatsByTemplateForInfoBoard",GetTopCourtesyStatsByTemplateForInfoBoard:"api/Statistics/GetTopCourtesyStatsByTemplateForInfoBoard",GetNoOfSubscriptionsForInfoBoard:"api/Statistics/GetNoOfSubscriptionsForInfoBoard",GetHighestNumberOfCountsPerDay:"api/Statistics/GetHighestNumberOfCountsPerDay",GetNoOfPayingAccountsForInfoBoard:"api/Statistics/GetNoOfPayingAccountsForInfoBoard",GetUsersWithBiggestNoOfSubscriptions:"api/Statistics/GetUsersWithBiggestNoOfSubscriptions",GetNewUsersGroupedByMonth:"api/Statistics/GetNewUsersGroupedByMonth",GetLastMonthNewUsersGroupedByDay:"api/Statistics/GetLastMonthNewUsersGroupedByDay",GetLastYearNewSubscriptionsGroupedByMonth:"api/Statistics/GetLastYearNewSubscriptionsGroupedByMonth",ClearStatsCache:"api/Statistics/ClearStatsCache",GetUserCountingTemplatesNames:"api/Admin/GetUserCountingTemplatesNames",FormatUserActionsEmail:"api/Admin/FormatUserActionsEmail",GetTemplatesForAdmin:"api/CountingTemplates/GetTemplatesForAdmin",GetTemplatesForAdminAdditionalInfo:"api/CountingTemplates/GetTemplatesForAdminAdditionalInfo",GetTemplateForAdminAdditionalInfo:"api/CountingTemplates/GetTemplateForAdminAdditionalInfo",DeleteTemplate:"api/CountingTemplates/DeleteTemplate",RecoverTemplate:"api/CountingTemplates/RecoverTemplate",ChangeTemplateState:"api/CountingTemplates/ChangeTemplateState",GetTemplateOptions:"api/CountingTemplates/GetTemplateOptionsForAdmin",GetTemplateGeneralInfo:"api/CountingTemplates/GetTemplateGeneralInfoForAdmin",SaveTemplateGeneralInfo:"api/CountingTemplates/SaveTemplateGeneralInfo",GetCountingTriggers:"api/CountingTriggers/GetCountingTriggers",UploadCountingTrigger:"api/CountingTriggers/UploadCountingTrigger",AssignCountingTrigger:"api/CountingTriggers/AssignCountingTrigger",UnassignCountingTrigger:"api/CountingTriggers/UnassignCountingTrigger",DeleteCountingTrigger:"api/CountingTriggers/DeleteCountingTrigger",GetTriggerAssignedUsers:"api/CountingTriggers/GetTriggerAssignedUsers",AdminAddOperators:"api/Admin/AddOperators",AdminUploadOperators:"api/Admin/UploadOperators",AdminUpdateUser:"api/Admin/UpdateUser",AdminDeleteOperator:"api/Admin/DeleteOperator",AdminSendOperatorInvitation:"api/Admin/SendOperatorInvitation",MoveAccountIntoOrganization:"api/Admin/MoveAccountIntoOrganization",GetActiveLicenseTypes:"api/Admin/GetActiveLicenseTypes",AdminGetAdminsAndOperatorsCount:"api/Admin/GetAdminsAndOperatorsCount",AdminGetAdminsAndOperators:"api/Admin/GetAdminsAndOperators",GetTemplatesForPackageUser:"api/CountingTemplates/GetTemplatesForPackageUser",GetNumberOfTemplatesForPackageUser:"api/CountingTemplates/GetNumberOfTemplatesForPackageUser",DeleteTemplateFromPackageUsers:"api/CountingTemplates/DeleteTemplateFromPackageUsers",AddTemplatesForPackageUser:"api/CountingTemplates/AddTemplatesForPackageUser",GetTemplatesNameByMajorVersion:"api/CountingTemplates/GetTemplatesNameByMajorVersion",GetLoginAndAccountInfo:"api/Users/GetLoginAndAccountInfo",GetDevicesPerHierarchy:"api/Users/GetDevicesPerHierarchy",GetDevicesAvailableForLicenseMigration:"api/Users/GetDevicesAvailableForLicenseMigration",GetDevicesWithSubscriptionsPerHierarchy:"api/Users/GetDevicesWithSubscriptionsPerHierarchy",GetUserDevicesWithSubscriptions:"api/Users/GetUserDevicesWithSubscriptions",SearchForDevicesWithSubscriptionsPerHierarchy:"api/Users/SearchForDevicesWithSubscriptionsPerHierarchy",GetUserPlans:"api/Users/GetPlans",ToggleIsHiddenDevice:"api/Users/ToggleIsHiddenDevice",PurchasePlans:"api/Users/PurchasePlans",GetSelectedDeviceFromSessionToken:"api/Users/GetSelectedDeviceFromSessionToken",IsPaypalProcessComplete:"api/Users/IsPaypalProcessComplete",GetExpirationDateAfterUpgrade:"api/Users/GetExpirationDateAfterUpgrade",Logout:"api/Users/Logout",PerformLogin:"api/Users/PerformLogin",GetOneTimePurchaseDescription:"api/Users/GetOneTimePurchaseDescription",GetOverviewInfo:"api/Users/GetOverviewInfo",GetUnassignedLicenseInfoForUser:"api/Users/GetUnassignedSubscription",GetLicensePoolInformation:"api/Users/GetLicensePoolInformation",GetOnDemandLicenseInfoForUser:"api/Users/GetOnDemandSubscription",CancelRecurringPayment:"api/Users/CancelRecurringPayment",UpdateStripeBillingInfo:"api/Users/UpdateStripeBillingInfo",GetDeviceNames:"api/Users/GetDeviceNames",MoveLicense:"api/Users/MoveLicense",DeleteFreeTrialLicense:"api/Users/DeleteFreeTrialLicense",RemoveLicenseFromDevice:"api/Users/RemoveLicenseFromDevice",AssignLicenseFromUnassigned:"api/Users/AssignLicenseFromUnassigned",ActivateOnDemandLicense:"api/Users/ActivateOnDemandLicense",GetPermissions:"api/Website/GetPermissions",AddOperators:"api/Users/AddOperators",UpdateUser:"api/Users/UpdateUser",DeleteOperator:"api/Users/DeleteOperator",AddAdmins:"api/Users/AddAdmins",SendOperatorInvitation:"api/Users/SendOperatorInvitation",GetAdminsAndOperatorsCount:"api/Users/GetAdminsAndOperatorsCount",GetAdminsAndOperators:"api/Users/GetAdminsAndOperators",GetConfigProfiles:"api/Users/GetConfigProfiles",DeleteConfigProfile:"api/Users/DeleteConfigProfile",GetAccountInfo:"api/Operators/GetAccountInfo",GetWindowsApplicationVersion:"api/Website/GetWindowsApplicationVersion",UploadInquiry:"api/Website/UploadInquiry",ProcessResellerInquiry:"api/Website/ProcessResellerInquiry",OneTimeOfferClicked:"api/Website/OneTimeOfferClicked",OneTimeOfferFormFilled:"api/Website/OneTimeOfferFormFilled",UnsubscribeFromEmails:"api/Website/UnsubscribeFromEmails",QuoteRequestFormFilled:"api/Website/QuoteRequestFormFilled",EnterpriseLicenseRequestFormFilled:"api/Website/EnterpriseLicenseRequestFormFilled",AccuracySecurityIntegrationFormFilled:"api/Website/AccuracySecurityIntegrationFormFilled",QuestionnaireFormFilled:"api/Website/QuestionnaireFormFilled",SaveTestForm:"api/Forms/SaveTestForm",GetWindowsReleaseNotes:"api/WindowsReleaseNotes/GetWindowsReleaseVersions",GetWindowsReleaseNote:"api/WindowsReleaseNotes/GetWindowsReleaseVersion",DeleteWindowsReleaseNotes:"api/WindowsReleaseNotes/DeleteWindowsReleaseVersion",SaveWindowsReleaseVersion:"api/WindowsReleaseNotes/SaveWindowsReleaseVersion",GetException:"api/Experiments/GetException",ClearCache:"api/Website/ClearCache"},ENDeviceType={None:"None",Android:"Android",Ios:"Ios",Windows:"Windows"},ENPlanType={PRO:"PRO",BASIC:"BASIC",NOPLAN:"No Plan"},ENPlanPeriod={TwoDays:"TwoDays",Month:"Month",Year:"Year"},ENPlanTypes={Basic:"Basic",Pro:"PRO"},ENPaymentServiceProvider={Stripe:"Stripe",Paypal:"Paypal"},ENEmailOptions={SupportEmail:"Support@CountThings.com",ArEmail:"ar@CountThings.com"},ENSignatureOptions={SignatureNone:"None",SignatureAdinaManea:"Adina Manea",SignatureAndreiHenegar:"Andrei Henegar",SignatureCatalinaToma:"Catalina Toma",SignatureCristiGarnet:"Cristi Garnet",SignatureItzak:"Itzak",SignatureMarcelaPaler:"Marcela Paler",SignatureMariusPaltanea:"Marius Paltanea",SignatureSimonaTurcu:"Simona Turcu",SignatureTaniaMoisei:"Tania Moisei",SignatureVladAvanu:"Vlad Avanu"},ENTemplateOptions={TemplateNone:"None",TemplateEnglish:"FollowUp English",TemplateSpanish:"FollowUp Spanish",TemplateRomanian:"FollowUp Romanian",TemplateItalian:"FollowUp Italian",TemplateRussian:"FollowUp Russian",TemplateFrench:"FollowUp French",TemplateGerman:"FollowUp German",TemplatePortuguese:"FollowUp Portuguese",TemplateAndreiEnglish:"Andrei English"},ENInAppChatState={WaitingForUser:"WaitingForUser",WaitingForAdmin:"WaitingForAdmin",Closed:"Closed"},ENInAppChatMessagState={New:"New",NotificationSent:"NotificationSent",NotificationError:"NotificationError",Seen:"Seen"},ENSupportCategory={CountingTemplateRequest:"Counting Template Request",InaccurateCount:"Inaccurate Count",PricingAndPayment:"Pricing And Payment",IntegrateInCompanyWorkflow:"Integrate In Company Workflow",NeedsGuidanceUsingTheApp:"Needs Guidance Using The App",BugsFeaturesAndFeedback:"Bugs Features And Feedback",Other:"Other",CountingError:"Counting Error",FailedTransaction:"Failed Transaction",ContactInformation:"Contact Information"},ENInAppChatMessageItemType={Text:"Text",CountingTemplateLink:"CountingTemplateLink",DropboxLink:"DropboxLink"},StatisticsPeriod={LastMonth:"Last Month",LastHalfYear:"Last Half Year",LastYear:"Last Year",All:"All"};Date.prototype.toDateString=function(){let i=this.getFullYear(),n=this.getMonth()+1;n<10&&(n="0"+n);let t=this.getDate();return t<10&&(t="0"+t),i+"-"+n+"-"+t};jQuery.expr[":"].containscaseinsensitive=function(n,t,i){return jQuery(n).text().toUpperCase().indexOf(i[3].toUpperCase())>=0};Math.trunc||(Math.trunc=function(n){return n<0?Math.ceil(n):Math.floor(n)});String.prototype.repeat=function(n){for(var t="";n>0;)t+=this,n--;return t};String.prototype.includes=function(n){var t=!1;return this.indexOf(n)!==-1&&(t=!0),t},function(n,t){function f(r,f,e,o,s){function it(){if(ut=n.devicePixelRatio>1,e=rt(e),f.delay>=0&&setTimeout(function(){p(!0)},f.delay),f.delay<0||f.combined){o.e=lt(f.throttle,function(n){n.type==="resize"&&(w=b=-1);p(n.all)});o.a=function(n){n=rt(n);e.push.apply(e,n)};o.g=function(){return e=i(e).filter(function(){return!i(this).data(f.loadedName)})};o.f=function(n){for(var t,i=0;i<n.length;i++)t=e.filter(function(){return this===n[i]}),t.length&&p(!1,t)};p();i(f.appendScroll).on("scroll."+s+" resize."+s,o.e)}}function rt(n){var v=f.defaultImage,p=f.placeholder,k=f.imageBase,s=f.srcsetAttribute,c=f.loaderAttribute,a=f._f||{},e,w;for(n=i(n).filter(function(){var n=i(this),r=g(this);return!n.data(f.handledName)&&(n.attr(f.attribute)||n.attr(s)||n.attr(c)||a[r]!==t)}).data("plugin_"+f.name,r),e=0,w=n.length;e<w;e++){var u=i(n[e]),o=g(n[e]),b=u.attr(f.imageBaseAttribute)||k;o===l&&b&&u.attr(s)&&u.attr(s,ct(u.attr(s),b));a[o]===t||u.attr(c)||u.attr(c,a[o]);o===l&&v&&!u.attr(h)?u.attr(h,v):o!==l&&p&&(!u.css(y)||u.css(y)==="none")&&u.css(y,"url('"+p+"')")}return n}function p(n,t){var o;if(!e.length){f.autoDestroy&&r.destroy();return}var s=t||e,w=!1,nt=f.imageBase||"",b=f.srcsetAttribute,c=f.handledName;for(o=0;o<s.length;o++)if(n||t||ot(s[o])){var u=i(s[o]),a=g(s[o]),v=u.attr(f.attribute),p=u.attr(f.imageBaseAttribute)||nt,d=u.attr(f.loaderAttribute);!u.data(c)&&(!f.visibleOnly||u.is(":visible"))&&((v||u.attr(b))&&(a===l&&(p+v!==u.attr(h)||u.attr(b)!==u.attr(k))||a!==l&&p+v!==u.css(y))||d)&&(w=!0,u.data(c,!0),et(u,a,p,d))}w&&(e=i(e).filter(function(){return!i(this).data(c)}))}function et(n,t,r,u){var o,s,e,p;++tt;o=function(){c("onError",n);nt();o=i.noop};c("beforeLoad",n);var b=f.attribute,g=f.srcsetAttribute,w=f.sizesAttribute,it=f.retinaAttribute,rt=f.removeAttribute,et=f.loadedName,ot=n.attr(it);if(u){s=function(){rt&&n.removeAttr(f.loaderAttribute);n.data(et,!0);c(ft,n);setTimeout(nt,1);s=i.noop};n.off(v).one(v,o).one(a,s);c(u,n,function(t){t?(n.off(a),s()):(n.off(v),o())})||n.trigger(v)}else{e=i("<img>");e.one(v,o).one(a,function(){n.hide();t===l?(n.attr(d,e.attr(d)),n.attr(k,e.attr(k)),n.attr(h,e.attr(h))):n.css(y,"url('"+e.attr(h)+"')");n[f.effect](f.effectTime);rt&&(n.removeAttr(b+" "+g+" "+it+" "+f.imageBaseAttribute),w!==d&&n.removeAttr(w));n.data(et,!0);c(ft,n);e.remove();nt()});p=(ut&&ot?ot:n.attr(b))||"";e.attr(d,n.attr(w));e.attr(k,n.attr(g));e.attr(h,p?r+p:null);e.complete&&e.trigger(a)}}function ot(n){var t=n.getBoundingClientRect(),r=f.scrollDirection,i=f.threshold,u=ht()+i>t.top&&-i<t.bottom,e=st()+i>t.left&&-i<t.right;return r==="vertical"?u:r==="horizontal"?e:u&&e}function st(){return w>=0?w:w=i(n).width()}function ht(){return b>=0?b:b=i(n).height()}function g(n){return n.tagName.toLowerCase()}function ct(n,t){var r,i,u;if(t)for(r=n.split(","),n="",i=0,u=r.length;i<u;i++)n+=t+r[i].trim()+(i!==u-1?",":"");return n}function lt(n,t){var i,u=0;return function(e,o){function s(){u=+new Date;t.call(r,e)}var h=+new Date-u;i&&clearTimeout(i);h>n||!f.enableThrottle||o?s():i=setTimeout(s,n-h)}}function nt(){--tt;e.length||tt||c("onFinishedAll")}function c(n){return(n=f[n])?(n.apply(r,[].slice.call(arguments,1)),!0):!1}var tt=0,w=-1,b=-1,ut=!1,ft="afterLoad",a="load",v="error",l="img",h="src",k="srcset",d="sizes",y="background-image";if(f.bind==="event"||u)it();else i(n).on(a+"."+s,it)}function r(r,u){var o=this,h=i.extend({},o.config,u),s={},c=h.name+"-"+ ++e;return o.config=function(n,i){return i===t?h[n]:(h[n]=i,o)},o.addItems=function(n){return s.a&&s.a(i.type(n)==="string"?i(n):n),o},o.getItems=function(){return s.g?s.g():{}},o.update=function(n){return s.e&&s.e({},!n),o},o.force=function(n){return s.f&&s.f(i.type(n)==="string"?i(n):n),o},o.loadAll=function(){return s.e&&s.e({all:!0},!0),o},o.destroy=function(){return i(h.appendScroll).off("."+c,s.e),i(n).off("."+c),s={},t},f(o,h,r,s,c),h.chainable?r:o}var i=n.jQuery||n.Zepto,e=0,u=!1;i.fn.Lazy=i.fn.lazy=function(n){return new r(this,n)};i.Lazy=i.lazy=function(n,u,f){var e,h,o,c,s,l;if(i.isFunction(u)&&(f=u,u=[]),i.isFunction(f)){for(n=i.isArray(n)?n:[n],u=i.isArray(u)?u:[u],e=r.prototype.config,h=e._f||(e._f={}),o=0,c=n.length;o<c;o++)(e[n[o]]===t||i.isFunction(e[n[o]]))&&(e[n[o]]=f);for(s=0,l=u.length;s<l;s++)h[u[s]]=n[0]}};r.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:n,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:t,afterLoad:t,onError:t,onFinishedAll:t};i(n).on("load",function(){u=!0})}(window)