PageSourceSearch

https://app.textmagic.com/assets/CWMZE_q4.js

js textmagic.com collected 2026-10-01 08:41:24 UTC 77,995 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`20261001-39361-126a85bd`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:textmagic-web-app":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`aab43fbf-3ebd-42ef-8434-1294975081b8`,e._sentryDebugIdIdentifier=`sentry-dbid-aab43fbf-3ebd-42ef-8434-1294975081b8`)}catch{}})();import{a as e}from"./fWYCr6o0.js";import{$n as t,Gn as n,Ir as r,Jt as i,Xt as a,Yt as o,Zt as s,_ as c,tr as l,v as u,z as ee}from"./D1KcagSz.js";import{S as te}from"./DAD6CFn-.js";import{$ as ne,A as re,An as ie,B as ae,Bp as d,C as oe,Ct as f,D as se,Dt as p,E as ce,Et as le,F as ue,Ft as de,G as fe,Gn as m,H as pe,Hn as me,I as he,J as ge,Jp as h,K as _e,L as ve,M as ye,Mn as be,Mt as g,N as xe,Nt as Se,O as Ce,On as we,Ot as Te,P as Ee,Pt as De,Q as _,R as Oe,S as ke,St as v,T as Ae,Tt as je,U as Me,V as Ne,Vn as y,W as Pe,X as Fe,Y as Ie,Z as Le,_i as b,_n as Re,an as ze,at as Be,b as Ve,bt as x,cn as S,dt as He,et as Ue,gn as C,hn as We,in as w,it as Ge,j as Ke,ji as qe,jt as Je,k as Ye,kc as Xe,mn as Ze,nn as Qe,nt as $e,on as et,pn as tt,q as nt,rn as rt,rt as it,sn as T,tt as E,un as at,vn as D,w as ot,wt as st,x as ct,xt as O,z as lt}from"./TmSZSC_3.js";var ut=`https://my.textmagic.com`,dt=`https://file.textmagic.com`,ft=`https://my.textmagic.com/s3/`,pt=`https://app.textmagictesting.com`;r();var k=function(e){return e.countries=`/api/v3/countries/fetch`,e.unauthenticatedCountry=`/api/v3/countries/detect-country`,e.timezones=`/api/v3/timezones`,e.blockedContacts=`/api/v3/contacts/blocked/fetch`,e.blockedContact=`/api/v3/contacts/blocked/{0}`,e.blockContact=`/api/v3/contacts/block`,e.blockContactById=`/api/v3/contacts/{0}/block`,e.updateShowSharedContacts=`/api/v3/user/show/shared`,e.unblockContactById=`/api/v3/contacts/{0}/unblock`,e.bulkUnblockContact=`/api/v3/contacts/unblock/bulk`,e.blockedContactBulkDelete=`/api/v3/contacts/blocked/delete`,e.bulkBlockedContactExport=`/api/v3/contacts/blocked/export`,e.sentSmsShort=`/api/v3/history/messages/fetch`,e.sentSmsSingle=`/api/v3/history/messages/{0}`,e.sentSmsBulkDelete=`/api/v3/history/messages/delete`,e.sentSmsPdfDownload=`/api/v3/history/messages/{0}/pdf`,e.historyFacet=`/api/v3/history/messages/facets/count`,e.sentSmsCounter=`/api/v3/history/count`,e.bulkSentSms=`/api/v3/sessions/{0}/messages/fetch`,e.bulkSentSmsExport=`/api/v3/sessions/{0}/messages/export`,e.sessionSingle=`/api/v3/sessions/{0}`,e.sessionArchive=`/api/v3/sessions/{0}/archive`,e.sessionUnarchive=`/api/v3/sessions/{0}/unarchive`,e.sessionsRecipients=`/api/v3/sessions/{0}/recipients`,e.sessionBulkArchive=`/api/v3/sms-campaigns/archive`,e.sessionBulkUnarchive=`/api/v3/sms-campaigns/unarchive`,e.sessionBulkDelete=`/api/v3/sessions/delete`,e.sessionsIndexStat=`/api/v3/sessions/{0}/stat`,e.sessionsIndexUpdateTitle=`/api/v3/sessions/{0}/update-title`,e.sessionsEmailToSmsEmail=`/api/v3/sessions/{0}/e2s-email`,e.sentSmsExport=`/api/v3/history/messages/export/new`,e.sentSmsRecently=`/api/v3/history/messages/recently`,e.receivedSms=`/api/v3/history/replies/fetch`,e.receivedSmsCounter=`/api/v3/history/replies/count`,e.receivedSmsSingle=`/api/v3/history/replies/{0}`,e.receivedSmsBulkDelete=`/api/v3/history/replies/delete`,e.receivedSmsPdfDownload=`/api/v3/history/replies/{0}/pdf`,e.receivedSmsExport=`/api/v3/history/replies/export`,e.list=`/api/v3/lists/{0}`,e.listCreate=`/api/v3/lists`,e.lists=`/api/v3/lists/fetch`,e.allLists=`/api/v3/lists/fetch/all`,e.listsBulkDelete=`/api/v3/lists/delete`,e.removeContactFromContactList=`/api/v3/lists/{0}/contacts/delete`,e.listExport=`/api/v3/lists/export`,e.contactListDetails=`/api/v3/lists/{0}/contacts`,e.bulkShareContactList=`/api/v3/contacts/share`,e.hideContactList=`/api/v3/lists/hide/bulk`,e.unhideContactList=`/api/v3/lists/unhide/bulk`,e.listCreateTemp=`/api/v3/lists/temp/contacts`,e.listCreateTempExpand=`/api/v3/lists/temp/{0}/contacts`,e.bulkEmailCampaignlistCreateTemp=`/api/v3/email-campaigns/{0}/lists/temp`,e.contact=`/api/v3/contacts/{0}`,e.contacts=`/api/v3/contacts/fetch/new`,e.contactCreate=`/api/v3/contacts`,e.contactsBulkDelete=`/api/v3/contacts/delete/new`,e.contactsBulkUpdate=`/api/v3/contact/bulk-update`,e.contactsExport=`/api/v3/contacts/export`,e.contactsAutocomplete=`/api/v3/contacts/autocomplete`,e.recipientsAutocomplete=`/api/v3/recipients/autocomplete`,e.contactsFacet=`/api/v3/contacts/facets/count`,e.contactUploadAvatar=`/api/v3/image/contact/upload`,e.contactCounter=`/api/v3/contacts/count/new`,e.contactByPhone=`/api/v3/contacts/phone/{0}`,e.contactDownloadPdf=`/api/v3/contacts/{0}/pdf`,e.pinnedContacts=`/api/v3/pinned/contact/items`,e.contactsForPinningAutocomplete=`/api/v3/pinned/contact/autocomplete`,e.deletePinnedContact=`/api/v3/pinned/contact/{0}`,e.updatePinnedContactOrder=`/api/v3/pinned/contact/items/reorder`,e.contactCustomFieldsSingle=`/api/v3/contact/{0}/customfields`,e.contactCustomFieldsSingleNew=`/api/v3/contact/{0}/custom-contact-field_values/fetch`,e.contactCustomFieldsUpdateNew=`/api/v3/contact/{0}/custom-contact-fields-values`,e.userCustomFields=`/api/v3/customfields/fetch`,e.userCustomFieldsAll=`/api/v3/customfields/fetch/all`,e.userCustomFieldSingle=`/api/v3/customfields/{0}`,e.userCustomFieldCreate=`/api/v3/customfields`,e.userCustomFieldsBulkDelete=`/api/v3/customfields/delete`,e.customFieldSchemaAll=`/api/v3/custom-fields/fetch`,e.customFieldSchemaSingle=`/api/v3/custom-fields/{0}`,e.customFieldSchemaCreate=`/api/v3/custom-fields`,e.customFieldSchemaBulkDelete=`/api/v3/custom-fields/delete`,e.customFieldSchemaSort=`/api/v3/contacts/custom-contact-fields/sort`,e.contactCustomFieldOrderAll=`/api/v3/contacts/custom-contact-fields/order`,e.tags=`/api/v3/tags`,e.tagSingle=`/api/v3/tags/{0}`,e.tagsAutocomplete=`/api/v3/tags/autocomplete`,e.tagsBulkDelete=`/api/v3/tags/bulk/delete`,e.labels=`/api/v3/labels`,e.labelAttachmentsCount=`/api/v3/labels/{0}/attachments-count`,e.labelsAttach=`/api/v3/labels/attach`,e.labelsDetach=`/api/v3/labels/detach`,e.userAnalyticsFieldsUpdate=`/api/v3/user/analytics-fields`,e.assigneeFetch=`/api/v3/assignee/fetch`,e.messagesPrice=`/api/v3/messages/price`,e.messagesPriceForCountries=`/api/v3/messages/countries/price`,e.messagesPriceCreate=`/api/v3/messages`,e.messagesPreview=`/api/v3/messages/preview`,e.messagesBulksProgress=`/api/v3/bulks/{0}`,e.messagesAttachmentFileSms=`/api/v3/messages/attachment`,e.messagesAttachmentFileMms=`/api/v3/messages/mms/attachment`,e.messagesAttachmentFileMessenger=`/api/v3/messages/messenger/attachment`,e.messagesAttachmentFileFacebook=`/api/v3/messages/facebook/attachment`,e.messagesAttachmentFileInstagram=`/api/v3/messages/instagram/attachment`,e.contactImport=`/api/v3/import/contacts/sessions/{0}`,e.contactImports=`/api/v3/import/contacts/sessions/fetch`,e.contactImportDownload=`/api/v3/import/contacts/sessions/{0}/file/original`,e.contactImportLookupDownload=`/api/v3/import/contacts/sessions/{0}/file/lookup`,e.contactImportBulkDelete=`/api/v3/import/contacts/sessions/delete`,e.contactImportResults=`/api/v3/import/contacts/sessions/{0}/details/{1}/fetch`,e.contactImportResultsFacet=`/api/v3/import/contacts/sessions/{0}/facets/count`,e.contactImportSessionsFileUpload=`/api/v3/import/contacts/sessions/file/upload`,e.contactImportSessionsFileUploadCarrierLookup=`/api/v3/import/contacts/sessions/file/upload-carrier-lookup`,e.contactImportSessions=`/api/v3/import/contacts/sessions`,e.contactImportFields=`/api/v3/import/contacts/fields`,e.contactImportSessionPreview=`/api/v3/import/contacts/sessions/{0}/preview`,e.contactImportSessionNumbersFormat=`/api/v3/import/contacts/sessions/{0}/numbers-format/{1}`,e.contactImportSessionProcess=`/api/v3/import/contacts/sessions/{0}/process`,e.contactImportSessionProgress=`/api/v3/import/contacts/progress`,e.contactImportEmailLookupPreview=`/api/v3/import/contacts/sessions/{0}/email-lookup/preview`,e.importContact=`/api/v3/import/contacts/{0}/new`,e.importContactsIndexValidate=`/api/v3/import/contacts/{0}/validate`,e.distributions=`/api/v3/emailtosms/distribution-lists`,e.distribution=`/api/v3/emailtosms/distribution-lists/{0}`,e.distributionsBulkDelete=`/api/v3/emailtosms/distribution-lists/delete`,e.unsubscribedContacts=`/api/v3/contacts/unsubscribers/fetch`,e.unsubscribeContact=`/api/v3/contacts/unsubscribe`,e.resubscribeContact=`/api/v3/contacts/resubscribe`,e.resubscribeContactById=`/api/v3/contacts/resubscribe/id`,e.checkUnsubscribedContact=`/api/v3/contacts/subscription/info`,e.toggleBlockIncomingMessages=`/api/v3/contacts/unsubscribers/{0}/block`,e.bulkUnsubscribersExport=`/api/v3/contacts/unsubscribers/export`,e.unsubscribedEmailContacts=`/api/v3/contacts/email/unsubscribes/fetch`,e.unsubscribedEmailContactsExport=`/api/v3/contacts/email/unsubscribes/export`,e.templates=`/api/v3/templates/fetch`,e.templateCreate=`/api/v3/templates`,e.templatesSingle=`/api/v3/templates/{0}`,e.templatesBulkDelete=`/api/v3/templates/delete`,e.templatesExport=`/api/v3/templates/export`,e.templatesEditCategory=`/api/v3/templates/categories/{0}/edit`,e.templatesShare=`/api/v3/templates/share`,e.templateSort=`/api/v3/templates/categories/sort`,e.templatesUse=`/api/v3/templates/{0}/use`,e.emailTemplates=`/api/v3/email-templates/fetch`,e.emailTemplatesCreate=`/api/v3/email-templates`,e.emailTemplatesSingle=`/api/v3/email-templates/{0}`,e.emailTemplatesUse=`/api/v3/email-templates/{0}/use`,e.templateCategories=`/api/v3/templates/categories/fetch`,e.templateCategoriesCreate=`/api/v3/templates/categories`,e.templateCategoriesSingle=`/api/v3/templates/categories/{0}`,e.allowedEmails=`/api/v3/allowed-email/fetch`,e.allowedEmailsBulkDelete=`/api/v3/allowed-email/delete`,e.allowedEmailsCreate=`/api/v3/allowed-email/list`,e.allowedEmailsSingle=`/api/v3/allowed-email/{0}`,e.sendReceiveSetting=`/api/v3/send-and-receive-setting`,e.surveys=`/api/v3/surveys`,e.surveysBulkDelete=`/api/v3/surveys/delete`,e.surveySingle=`/api/v3/surveys/{0}`,e.surveyCancel=`/api/v3/surveys/{0}/cancel`,e.surveyDuplicate=`/api/v3/surveys/{0}/duplicate`,e.surveyReplies=`/api/v3/surveys/nodes/{0}/reply/fetch`,e.surveyReset=`/api/v3/surveys/{0}
1/reset`,e.surveyStart=`/api/v3/surveys/{0}/start`,e.surveyExport=`/api/v3/surveys/{0}/replies/export`,e.surveyRecipientCountries=`/api/v3/surveys/{0}/country-recipients`,e.surveyAnalytics=`/api/v3/surveys/{0}/analytics`,e.surveyRepliesCounts=`/api/v3/surveys/{0}/replies/stats`,e.surveyNodes=`/api/v3/surveys/{0}/nodes`,e.surveyNode=`/api/v3/surveys/nodes/{0}`,e.surveyNodesTree=`/api/v3/surveys/{0}/nodes/tree`,e.formDelete=`/api/v3/form/{0}`,e.formClickToText=`/api/v3/form/click-to-text`,e.formClickToTextItem=`/api/v3/form/click-to-text/{0}`,e.formClickToTextFetch=`/api/v3/form/click-to-text/fetch`,e.formClickToTextDelete=`/api/v3/form/click-to-text/delete`,e.formSubscribe=`/api/v3/form/subscribe`,e.formSubscribeItem=`/api/v3/form/subscribe/{0}`,e.formSubscribeIndexEmbed=`/api/v3/form/subscribe/{0}/embed`,e.formSubscribeFetch=`/api/v3/form/subscribe/fetch`,e.formSubscribeDelete=`/api/v3/form/subscribe/delete`,e.automationRule=`/api/v3/automation-rule`,e.automationRules=`/api/v3/automation-rule/fetch`,e.automationRulesSingle=`/api/v3/automation-rule/{0}`,e.automationRulesChangeStatus=`/api/v3/automation-rule/status/{0}`,e.automationRuleLogs=`/api/v3/automation-rule/log/fetch`,e.automationRuleLogsSingle=`/api/v3/automation-rule/log/{0}`,e.automationRuleLogsExport=`/api/v3/automation-rule/log/export`,e.automationRuleLogsDownloadPdf=`/api/v3/automation-rule/log/{0}/pdf`,e.automationRulesKeywords=`/api/v3/automation-rule/keyword/fetch`,e.automationRulesKeywordsSingle=`/api/v3/automation-rule/keyword/{0}`,e.automationRulesKeywordsCreate=`/api/v3/automation-rule/keyword`,e.automationFlows=`/api/v3/automation/flows`,e.automationFlowFetch=`/api/v3/automation/flows/fetch`,e.automationFlowSingle=`/api/v3/automation/flows/{0}`,e.automationFlowSteps=`/api/v3/automation/flows/{0}/steps`,e.automationFlowDuplicate=`/api/v3/automation/flows/{0}/duplicate`,e.automationFlowStatus=`/api/v3/automation/flows/{0}/status`,e.automationFlowStepsSingle=`/api/v3/automation/steps/{0}`,e.automationFlowDraft=`/api/v3/automation/flows/draft/{0}`,e.automationFlowsDelete=`/api/v3/automation/flows/delete`,e.automationFlowsPause=`/api/v3/automation/flows/pause`,e.automationFlowsResume=`/api/v3/automation/flows/resume`,e.automationFlowsStop=`/api/v3/automation/flows/stop`,e.automationLogs=`/api/v3/automation-logs/fetch`,e.automationLogSingle=`/api/v3/automation-logs/{0}`,e.automationLogRetry=`/api/v3/automation-logs/{0}/retry`,e.automationLogExit=`/api/v3/automation-logs/{0}/exit`,e.automationLogStepRetry=`/api/v3/automation-logs/step/{0}/retry`,e.automationLogsExport=`/api/v3/automation-logs/export`,e.automationFlowStepsAnalyze=`/api/v3/automation/flows/steps/analyze`,e.automationFlowStepsStats=`/api/v3/automation/flows/{0}/steps/stats`,e.automationTemplates=`/api/v3/automation/flows/templates`,e.automationSplitBranches=`/api/v3/automation/splits/{0}/branches`,e.automationFlowStepsTags=`/api/v3/automation/flows/steps/variables`,e.automationFlowStepsEmailLinks=`/api/v3/automation/flows/steps/email-links`,e.automationAiAvailability=`/api/v3/automation/ai/availability`,e.automationAiPromptSuggestions=`/api/v3/automation/ai/prompt-suggestions`,e.automationAiConversations=`/api/v3/automation/ai/conversations`,e.automationAiConversationByAutomationId=`/api/v3/automation/ai/conversations/by-automation/{0}`,e.automationAiConversationHistory=`/api/v3/automation/ai/conversations/{0}/history`,e.automationAiConversationMessages=`/api/v3/automation/ai/conversations/{0}/messages`,e.automationAiConversationStop=`/api/v3/automation/ai/conversations/{0}/stop`,e.automationAiConversationLink=`/api/v3/automation/ai/conversations/{0}/link`,e.automationFlowWebhookSecrets=`/api/v3/automation/flows/webhook/secrets`,e.automationFlowWebhookSecret=`/api/v3/automation/flows/webhook/secrets/{0}`,e.automationFlowWebhookTestRequest=`/api/v3/automation/flows/webhook/test-request`,e.automationLogWebhookRequest=`/api/v3/automation-logs/{0}/webhook/request`,e.automationLogWebhookResponse=`/api/v3/automation-logs/{0}/webhook/response`,e.phoneNumbers=`/api/v3/numbers/fetch`,e.phoneNumbersSingle=`/api/v3/numbers/{0}`,e.phoneNumberLabelUpdate=`/api/v3/numbers/{0}/label`,e.phoneNumberBuy=`/api/v3/numbers/buy`,e.phoneNumberChangeForwarding=`/api/v3/numbers/forwarding`,e.phoneNumberByPhone=`/api/v3/numbers/phone/{0}`,e.phoneNumbersRestore=`/api/v3/numbers/{0}/restore`,e.availableToBuyNumbers=`/api/v3/numbers/available`,e.twilioAvailableToBuyNumbers=`/api/v3/verifications/ten-dlc/numbers`,e.numberAvailableCountries=`/api/v3/numbers/countries`,e.numberUnlink=`/api/v3/verifications/ten-dlc/requests/bind/unlink-number`,e.areaCodes=`/api/v3/numbers/codes`,e.numberPrice=`/api/v3/numbers/forwarding/price`,e.sipCallSingle=`/api/v3/calls/{0}`,e.sipCallsBulkDelete=`/api/v3/calls/delete`,e.sipCallExport=`/api/v3/calls/export`,e.sipCallPdf=`/api/v3/calls/{0}
1/export`,e.inboundCalls=`/api/v3/calls/inbound/fetch`,e.outboundCalls=`/api/v3/calls/outbound/fetch`,e.forwardedCalls=`/api/v3/forwarded-calls/fetch`,e.forwardedCallSingle=`/api/v3/forwarded-calls/{0}`,e.forwardedCallsBulkDelete=`/api/v3/forwarded-calls/delete`,e.forwardedCallsExport=`/api/v3/forwarded-calls/export`,e.forwardedCallsPdfExport=`/api/v3/forwarded-calls/{0}/export`,e.login=`/api/v3/auth`,e.authLogout=`/api/v3/auth/logout`,e.resendEmailCode=`/api/v3/auth/resend-email-code/{0}`,e.resendPhoneCode=`/api/v3/auth/resend-phone-code/{0}`,e.reopenAccount=`/api/v3/accounts/reopen`,e.googleAuth=`/api/v3/oauth/google`,e.googleAuthLink=`/api/v3/oauth/google-auth-url`,e.appleAuth=`/api/v3/oauth/apple`,e.appleAuthLink=`/api/v3/oauth/apple-auth-url`,e.microsoftAuth=`/api/v3/oauth/microsoft`,e.microsoftAuthLink=`/api/v3/oauth/microsoft-auth-url`,e.mcpOauthConsent=`/api/v3/oauth/consent/{0}`,e.ssoAuthUrl=`/api/v3/oauth/sso-url`,e.accountsNotifications=`/api/v3/account/notifications/settings`,e.accountsResetPasswordById=`/api/v3/accounts/{0}/password/reset`,e.closeAccount=`/api/v3/accounts/close`,e.accountSsoSettings=`/api/v3/account/sso/settings`,e.closeSubAccount=`/api/v3/accounts/close-subaccounts`,e.accountTokenUnlock=`/api/v3/account/token/unlock`,e.accountTokenFetch=`/api/v3/account/token/fetch`,e.pointAiAssistant=`/api/v3/ai/assistant`,e.pointAiAssistantDelete=`/api/v3/ai/assistant/{0}`,e.pointAiSyncKnowledgeBase=`/api/v3/ai/sync-knowledge-base`,e.pointAiWebsite=`/api/v3/ai/assistant/{0}/links`,e.pointAiWebsiteDelete=`/api/v3/ai/assistant/{0}/links/delete`,e.pointAiWebsiteDownloaded=`/api/v3/ai/assistant/{0}/links/{1}/downloaded`,e.currentUser=`/api/v3/user`,e.changePassword=`/api/v3/user/password/change`,e.userPasswordVerify=`/api/v3/user/password/verify`,e.userPasswordResendCode=`/api/v3/user/password/resend-code`,e.userEmailVerify=`/api/v3/user/email/verify`,e.userEmailResendCode=`/api/v3/user/email/resend-code`,e.userVoiceCallSettings=`/api/v3/voice-call-settings`,e.userAcceptPrivacyPolicy=`/api/v3/user/accept-terms-update`,e.currentUserPresence=`/api/v3/users/presence`,e.userPresence=`/api/v3/users/{0}/presence`,e.userMarketingData=`/api/v3/user/marketing-data`,e.userMarketingDataSkip=`/api/v3/user/marketing-data/skip`,e.userNumbers=`/api/v3/numbers/all`,e.myDataExport=`/api/v3/accounts/my-data/export`,e.myDataDeleteAllMessages=`/api/v3/history/messages/delete/all`,e.myDataDeleteAllContacts=`/api/v3/contact/all`,e.myDataCounters=`/api/v3/accounts/my-data/{0}/facets/count`,e.accountMessageRetentionPeriod=`/api/v3/accounts/my-data/data-messages-lifetime`,e.subAccountPermissions=`/api/v3/account/sub-accounts/{0}/permissions`,e.subaccounts=`/api/v3/subaccounts/fetch`,e.subaccountsAll=`/api/v3/subaccounts/fetch/all`,e.subaccount=`/api/v3/subaccounts/{0}`,e.inviteSubAccount=`/api/v3/accounts/sub-account`,e.reinviteSubAccount=`/api/v3/accounts/sub-account/resend`,e.usersFacet=`/api/v3/users/facets/count`,e.taxNumber=`/api/v3/accounts/tax`,e.userBillingDetails=`/api/v3/accounts/billing-details`,e.userAdmins=`/api/v3/user/administrators/fetch`,e.subAccountReopen=`/api/v3/accounts/sub-account/{0}/reopen`,e.subAccountImportSessions=`/api/v3/import/subaccounts/sessions`,e.subAccountImportSessionsFileUpload=`/api/v3/import/subaccounts/sessions/file/upload`,e.subAccountImportSessionsFetch=`/api/v3/import/subaccounts/sessions/fetch`,e.subAccountImportFields=`/api/v3/import/subaccounts/fields`,e.subAccountImportSessionPreview=`/api/v3/import/subaccounts/sessions/{0}/preview`,e.subAccountImportSessionProcess=`/api/v3/import/subaccounts/sessions/{0}/process`,e.importSubAccountsIndexValidate=`/api/v3/import/subaccounts/{0}/validate`,e.statementsFetch=`/api/v3/reporting/statements/fetch`,e.statementsExport=`/api/v3/reporting/statements/export`,e.statementsSummary=`/api/v3/reporting/statements/summary`,e.unsubscribedSettings=`/api/v3/contacts/unsubscribers/settings/fetch`,e.unsubscribedSettingsUpdate=`/api/v3/contacts/unsubscribers/settings`,e.invoices=`/api/v3/invoices/fetch`,e.invoiceSingle=`/api/v3/invoices/{0}`,e.invoicesSend=`/api/v3/invoices/send`,e.invoiceDownload=`/api/v3/invoices/{0}/download`,e.bulkInvoicesExport=`/api/v3/invoices/export`,e.notes=`/api/v3/contacts/{0}/notes/fetch`,e.note=`/api/v3/notes/{0}`,e.noteCreate=`/api/v3/contacts/{0}/notes`,e.noteBulkDelete=`/api/v3/contacts/{0}/notes/delete`,e.baseFiltersTest=`/api/test/filters`,e.scheduledSingleMessage=`/api/v3/schedules/{0}`,e.scheduledSingleMessageGet=`/api/v3/sms/schedules/{0}`,e.schedulesFetchLight=`/api/v3/schedules/fetch/light`,e.schedulesCalendarFetchNew=`/api/v3/schedules/calendar/fetch/new`,e.scheduledBulkDeleteMessages=`/api/v3/schedules/delete`,e.scheduledExport=`/api/v3/schedules/export`,e.scheduledPause=`/api/v3/schedules/pause`,e.scheduledResume=`/api/v3/schedules/resume`,e.scheduledDownloadPdf=`/api/v3/schedules/{0}/pdf`,e.scheduledEdit=`/api/v3/schedules/{0}/edit`,e.schedulesIndexUpdateTitle=`/api/v3/schedules/{0}/update-title`,e.scheduledContactMessage=`/api/v3/schedules/contact/{0}/fetch`,e.scheduledFacet=`/api/v3/scheduled/facets/count`,e.scheduledFetchNotSent=`/api/v3/scheduled/not-sent/fetch`,e.scheduledDeleteNotSent=`/api/v3/scheduled/not-sent/delete/{0}`,e.scheduledExportNotSent=`/api/v3/scheduled/not-sent/export`,e.scheduledBulkDeleteNotSent=`/api/v3/scheduled/not-sent/delete`,e.scheduledBulkResent=`/api/v3/scheduled/not-sent/bulk-resent`,e.scheduledBulkPriceNotSent=`/api/v3/scheduled/not-sent/price`,e.scheduledEmail=`/api/v3/email-campaigns/schedule`,e.scheduledEmailSingle=`/api/v3/email-campaigns/schedule/{0}`,e.scheduledEmailFetch=`/api/v3/email-campaigns/schedule/fetch`,e.scheduledEmailRecipients=`/api/v3/email-campaigns/schedule/{0}/recipients`,e.scheduledEmailDelete=`/api/v3/email-campaigns/schedule/delete`,e.scheduledEmailPause=`/api/v3/email-campaigns/schedule/pause`,e.scheduledEmailResume=`/api/v3/email-campaigns/schedule/resume`,e.scheduledEmailFailedFetch=`/api/v3/email-campaigns/attempts/fetch`,e.scheduledEmailFailedSingle=`/api/v3/email-campaigns/{0}/attempt`,e.scheduledEmailFailedDelete=`/api/v3/email-campaigns/attempts/delete`,e.scheduledEmailFailedResend=`/api/v3/email-campaigns/attempts/resend`,e.scheduledEmailFailedPrice=`/api/v3/email-campaigns/attempts/price`,e.reportingOverview=`/api/v3/reporting/overview`,e.reportingOverviewPdf=`/api/v3/reporting/overview/pdf`,e.reportingEmailAvailability=`/api/v3/reporting/email/availability`,e.reportingEmailOverview=`/api/v3/reporting/email/overview`,e.reportingEmailTrends=`/api/v3/reporting/email/trends`,e.reportingEmailTrendsExport=`/api/v3/reporting/email/trends/export`,e.reportingEmailSenders=`/api/v3/reporting/email/senders/fetch`,e.reportingEmailSendersExport=`/api/v3/reporting/email/senders/export`,e.reportingEmailLinks=`/api/v3/reporting/email/links/fetch`,e.reportingEmailLinksExport=`/api/v3/reporting/email/links/export`,e.reportingEmailUsers=`/api/v3/reporting/email/users/fetch`,e.reportingEmailUsersExport=`/api/v3/reporting/email/users/export`,e.auditLogs=`/api/v3/reporting/audit-logs`,e.auditLogDownloadPdf=`/api/v3/reporting/audit-logs/{0}/pdf`,e.reportingAuditLogsExport=`/api/v3/reporting/audit-logs/export`,e.reportingNumbers=`/api/v3/reporting/numbers/fetch`,e.reportingNumberExport=`/api/v3/reporting/numbers/export`,e.reportingSubAccounts=`/api/v3/reporting/sub-accounts/fetch`,e.reportingSubAccountsExport=`/api/v3/reporting/sub-accounts/export`,e.reportingUsers=`/api/v3/reporting/users/fetch`,e.reportingUsersExport=`/api/v3/reporting/users/export`,e.reportingCalls=`/api/v3/reporting/all-calls/fetch`,e.reportingCallsExport=`/api/v3/reporting/calls/export`,e.reportingMessages=`/api/v3/reporting/messages/fetch`,e.reportingMessagesExport=`/api/v3/reporting/messages/export`,e.chatSettings=`/api/v3/chats/settings/fetch`,e.chatSettingsUpdate=`/api/v3/chats/settings`,e.chats=`/api/v3/chats/fetch`,e.chatSingle=`/api/v3/chats/{0}`,e.chatBulk=`/api/v3/chats/bulk`,e.chatMute=`/api/v3/chats/bulk/mute`,e.chatAssignee=`/api/v3/chats/bulk/assignee`,e.chatStatistics=`/api/v3/chats/unread/count`,e.chatFacets=`/api/v3/chats/facets-count`,e.chatDelete=`/api/v3/chats/bulk/delete`,e.chatCloseRead=`/api/v3/chats/close/read`,e.chatConversationSenderSettings=`/api/v3/sender-settings/c
1hat/{0}`,e.chatCreate=`/api/v3/chats`,e.chatByPhone=`/api/v3/chats/phone/{0}`,e.chatUp=`/api/v3/chats/{0}/up`,e.chatAISummary=`/api/v3/chats/{0}/summary`,e.chatAISuggestion=`/api/v3/chats/{0}/suggested-reply`,e.chatMmsInfo=`/api/v3/chats/{0}/mms-info`,e.chatTakeNextRequest=`/api/v3/chats/take-next`,e.chatPreviewNext=`/api/v3/chats/preview-next`,e.chatReject=`/api/v3/chats/{0}/reject`,e.chatBlockIP=`/api/v3/chats/{0}/block-ip`,e.chatDetails=`/api/v3/chats/{0}/details`,e.chatMessages=`/api/v3/chats/{0}/messages`,e.chatMessagesSearch=`/api/v3/chats/messages/fetch`,e.chatMessageDelete=`/api/v3/chats/{0}/messages/delete`,e.chatMessageExport=`/api/v3/chats/{0}/export`,e.chatMessageExportPdf=`/api/v3/chats/{0}/pdf`,e.chatMessageInitialMessage=`/api/v3/chats/{0}/initial-message`,e.messengerChatMessages=`/api/v3/messenger/chat/{0}/message/fetch`,e.messengerChatMessage=`/api/v3/messenger/chat/{0}/message`,e.messengerSingleMessage=`/api/v3/messenger/message/{0}`,e.messengerMessageDelete=`/api/v3/messenger/chat/{0}/message/delete`,e.messengerChatMessageThread=`/api/v3/messenger/chat/{0}/thread/fetch`,e.messengerMessagePreview=`/api/v3/messenger/chat/{0}/message/preview`,e.messengerContactThread=`/api/v3/messenger/chat/contact/{0}/thread/fetch`,e.messengerLiveChatMessage=`/api/v3/messenger/live-chat-message/{0}`,e.messengerNoteMessage=`/api/v3/messenger/note/{0}`,e.attachment=`/api/v3/messages/attachments/{0}`,e.attachmentDownload=`/api/v3/messages/attachments/{0}/download`,e.audio=`/api/v3/audio/{0}`,e.audios=`/api/v3/audio/fetch`,e.audioUpload=`/api/v3/audio/upload`,e.audioDownload=`/api/v3/audio/{0}/download`,e.senderIds=`/api/v3/senderids`,e.senderIdsFetch=`/api/v3/senderids/fetch`,e.senderIdsItem=`/api/v3/senderids/{0}`,e.senderIdPrice=`/api/v3/senderids/price`,e.senderIdRestore=`/api/v3/senderids/{0}/restore`,e.activitySentSms=`/api/v3/contact/{0}/messages/fetch`,e.activityCalls=`/api/v3/contact/{0}/calls/fetch`,e.activityReplies=`/api/v3/contact/{0}/replies/fetch`,e.activityEmailCampaigns=`/api/v3/contact/{0}/emails/fetch`,e.activityLiveChat=`/api/v3/messenger/live-chat/contact/{0}/fetch`,e.activityFacebook=`/api/v3/messenger/chat/contact/{0}/facebook/fetch`,e.activityInstagram=`/api/v3/messenger/chat/contact/{0}/instagram/fetch`,e.registrationAllow=`/api/v3/registration/form`,e.registration=`/api/v3/registration`,e.registrationByInvite=`/api/v3/registration/invite/complete`,e.registrationByOAuth=`/api/v3/registration/oauth/complete`,e.registrationConfirm=`/api/v3/registration/confirm`,e.registrationEmailResend=`/api/v3/registration/email/resend`,e.registrationByInviteTokenCheck=`/api/v3/registration/invite/check`,e.registrationEmailIsAvailable=`/api/v3/registration/email/is-available`,e.registrationResendAvailability=`/api/v3/registration/resend-availability`,e.registrationConfirmCodeFromEmail=`/api/v3/registration/confirm-code`,e.registrationBySSOInvitationTokenCheck=`/api/v3/registration/sso/invite/check`,e.registrationBySSOInvitation=`/api/v3/registration/sso/invite/complete`,e.registrationPhoneProvide=`/api/v3/registration/phone/provide`,e.registrationPhoneConfirmCode=`/api/v3/registration/phone/confirm-code`,e.registrationPhoneResendCode=`/api/v3/registration/phone/resend-code`,e.resetPasswordByEmail=`/api/v3/password/reset/send-email`,e.passwordResetValidateToken=`/api/v3/password/reset/validate-token`,e.passwordResetSetPassword=`/api/v3/password/reset/set-password`,e.columns=`/api/v3/columns`,e.columnsEntity=`/api/v3/columns/{0}`,e.accountSettingsSecurity=`/api/v3/account/settings/security`,e.accountSettingsSecurity2fa=`/api/v3/account/settings/security/2fa`,e.accountSettingsSecurity2faIpWhiteList=`/api/v3/account/settings/security/2fa/ip-white-list`,e.sendVerifyCodeOnEmail=`/api/v3/verify/email/send`,e.sendVerifyCodeOnPhone=`/api/v3/user/verify/phone/send`,e.checkVerifyCodeOnPhone=`/api/v3/user/verify/phone/check`,e.userVerifyPhoneCancel=`/api/v3/user/verify/phone/cancel`,e.verifyEmailVerify=`/api/v3/verify/email/verify`,e.accountSettingsSecurityTotpQr=`/api/v3/user/verify/totp/qr`,e.accountSettingsSecurityTotpSetupKey=`/api/v3/user/verify/totp/setup-key`,e.accountSettingsSecurityDisableTotp2fa=`/api/v3/user/verify/totp/cancel`,e.accountSettingsSecurityApplyTotpCode=`/api/v3/user/verify/totp/apply`,e.accountSettingsSecurityGetBackupCodes=`/api/v3/user/verify/get-auth-backup-codes`,e.runImpersonate=`/api/v3/user/impersonate/{0}`,e.stopImpersonate=`/api/v3/user/impersonation/stop`,e.subAccountImportSession=`/api/v3/import/subaccounts/sessions/{0}`,e.subAccountExport=`/api/v3/subaccounts/export`,e.subAccountImportsBulkDelete=`/api/v3/import/subaccounts/sessions/delete`,e.subAccountImportDetails=`/api/v3/import/subaccounts/sessions/{0}/details/{1}/fetch`,e.subAccountImportDetailsFacets=`/api/v3/import/subaccounts/sessions/{0}/facets/count`,e.subAccountImport=`/api/v3/import/subaccounts/{0}`,e.carrierLookupPhone=`/api/v3/carrier-lookup/phone/{0}`,e.carrierLookupPrice=`/api/v3/carrier-lookup/price`,e.carrierLookupFetch=`/api/v3/carrier-lookup/history/fetch`,e.carrierLookupSingle=`/api/v3/carrier-lookup/history/{0}`,e.carrierLookupExport=`/api/v3/carrier-lookup/history/export`,e.carrierLookupBulkDelete=`/api/v3/carrier-lookup/history/delete`,e.emailLookupEmail=`/api/v3/email-lookup/email/{0}`,e.emailLookupPrice=`/api/v3/email-lookup/price`,e.emailLookupFetch=`/api/v3/email-lookup/history/fetch`,e.emailLookupSingle=`/api/v3/email-lookup/history/{0}`,e.emailLookupBulkDelete=`/api/v3/email-lookup/history/delete`,e.emailLookupExport=`/api/v3/email-lookup/history/export`,e.emailLookupBulkSingle=`/api/v3/email-lookup/bulk/{0}`,e.emailLookupBulkFetch=`/api/v3/email-lookup/bulk/fetch`,e.emailLookupBulkBulkDelete=`/api/v3/email-lookup/bulk/delete`,e.emailLookupBulkUpload=`/api/v3/email-lookup/bulk/upload`,e.emailLookupBulkUploadFile=`/api/v3/email-lookup/bulk/upload/file`,e.emailLookupBulkIndexPreview=`/api/v3/email-lookup/bulk/{0}/preview`,e.emailLookupBulkUploadFields=`/api/v3/email-lookup/bulk/upload/fields`,e.emailLookupBulkIndexProcess=`/api/v3/email-lookup/bulk/{0}/process`,e.emailLookupBulkIndexResult=`/api/v3/email-lookup/bulk/{0}/result`,e.emailLookupBulkIndexOriginal=`/api/v3/email-lookup/bulk/{0}/original`,e.emailLookupBulkProgress=`/api/v3/email-lookup/bulk/progress`,e.senderSettingsCountries=`/api/v3/sender-settings/countries`,e.senderSettingsRestore=`/api/v3/sender-settings/restore`,e.senderSettingsRestoreForCountry=`/api/v3/sender-settings/countries/restore`,e.loginHistory=`/api/v3/accounts/login-history/fetch`,e.logoutAll=`/api/v3/account/logout-from-all-devices`,e.apiV2TokenCreate=`/api/v3/tokens`,e.apiV2TokenSingle=`/api/v3/tokens/{0}`,e.apiV2TokensFetch=`/api/v3/tokens/fetch`,e.apiV2TokensFlushCache=`/api/v3/tokens/flush-cache`,e.apiV1Settings=`/api/v3/api-settings`,e.apiV1SettingsPassword=`/api/v3/api-settings/password`,e.apiV2Settings=`/api/v3/api-settings-v2`,e.apiSettingsTestCallbackUrl=`/api/v3/api-settings/test-callback-url`,e.carrierLookupBulk=`/api/v3/carrier-lookup/bulk`,e.carrierLookupSessionBulkDelete=`/api/v3/carrier-lookup/bulk/delete`,e.carrierLookupBulkFetch=`/api/v3/carrier-lookup/bulk/fetch`,e.carrierLookupBulkFields=`/api/v3/carrier-lookup/bulk/fields`,e.carrierLookupBulkFileUpload=`/api/v3/carrier-lookup/bulk/file/upload`,e.carrierLookupBulkIndex=`/api/v3/carrier-lookup/bulk/{0}`,e.carrierLookupBulkIndexPreview=`/api/v3/carrier-lookup/bulk/{0}/preview`,e.carrierLookupBulkIndexProcess=`/api/v3/carrier-lookup/bulk/{0}/process`,e.carrierLookupBulkIndexNumbersFormatIndex=`/api/v3/carrier-lookup/bulk/{0}/numbers-format/{1}`,e.carrierLookupBulkIndexResult=`/api/v3/carrier-lookup/bulk/{0}/result`,e.carrierLookupBulkIndexOriginal=`/api/v3/carrier-lookup/bulk/{0}/original`,e.billingInfo=`/api/v3/billing/info`,e.billingPayAsYouGoAutoRecharge=`/api/v3/billing/pay-as-you-go/auto-recharge`,e.billingVerifyIdentity=`/api/v3/billing/verify-identity`,e.billingPlansByMessagesCount=`/api/v3/billing/plans/by-messages-count`,e.billingValidatePromoCode=`/api/v3/billing/validate-promo-code/{0}`,e.regulationsStatus=`/api/v3/getting-started/verifications/state`,e.gettingStartedInfo=`/api/v3/getting-started/info`,e.uiSettings=`/api/v3/ui-settings`,e.uiSettingsNew=`/api/v3/ui-settings/new`,e.tenDlcRequestsApply=`/api/v3/verifications/ten-dlc/requests/appl
1y`,e.tenDlcRequestsGetSingle=`/api/v3/verifications/ten-dlc/requests/{0}`,e.tenDlcRequestsStartPreFill=`/api/v3/verifications/ten-dlc/requests/{0}/start-pre-fill`,e.tenDlcRequestsGetPreFill=`/api/v3/verifications/ten-dlc/requests/{0}/get-pre-fill`,e.tenDlcGetPricing=`/api/v3/verifications/ten-dlc/prices`,e.tenDlcGetVerticalTypes=`/api/v3/ten-dlc/enum/vertical`,e.tenDlcGetStockExchange=`/api/v3/ten-dlc/enum/stock-exchange`,e.tenDlcGetUseCase=`/api/v3/ten-dlc/enum/use-case`,e.tenDlcValidateTaxNumber=`/api/v3/ten-dlc/utils/validate-tax-number`,e.tenDlcPhoneNumbers=`/api/v3/verifications/ten-dlc/inbound/numbers/fetch`,e.tenDlcCampaign=`/api/v3/verifications/ten-dlc/campaigns/fetch`,e.tenDlcCampaignSingle=`/api/v3/verifications/ten-dlc/campaign/{0}`,e.tenDlcTwilioBrand=`/api/v3/verifications/ten-dlc/brand`,e.tenDlcBrandInfoForStep=`/api/v3/verifications/ten-dlc/info/brand`,e.tenDlcCampaignByRequest=`/api/v3/verifications/ten-dlc/requests/{0}/campaign`,e.tenDlcCampaignRestore=`/api/v3/verifications/ten-dlc/campaign/{0}/restore`,e.tenDlcSummary=`/api/v3/verifications/ten-dlc/requests/{0}/summary`,e.tenDlcCost=`/api/v3/ten-dlc/requests/{0}/cost`,e.tenDlcRequestsSubscribeFormScreenshot=`/api/v3/verifications/ten-dlc/screenshot`,e.tenDlcNumberLinkToCampaign=`/api/v3/verifications/ten-dlc/campaign/number/link`,e.tenDlcGetComplianceCheck=`/api/v3/verifications/ten-dlc/requests/{0}/get-compliance-check`,e.tenDlcStartComplianceCheck=`/api/v3/verifications/ten-dlc/requests/{0}/start-compliance-check`,e.tenDlcApplyComplianceCheckAutoFix=`/api/v3/verifications/ten-dlc/requests/{0}/apply-compliance-check-auto-fix/{1}`,e.tollFreeRequestsApply=`/api/v3/toll-free/requests/apply`,e.tollFreeRequestsGetSingle=`/api/v3/toll-free/requests/{0}`,e.tollFreeBrandInfoForStep=`/api/v3/info/brand/tollfree`,e.tollFreeRequestsOptInScreenshot=`/api/v3/toll-free/requests/opt-in-screenshot`,e.tollFreeSummary=`/api/v3/toll-free/requests/{0}/summary`,e.tollFreePhoneNumbers=`/api/v3/toll-free/numbers/fetch`,e.tollFreeRequestsStartPreFill=`/api/v3/toll-free/requests/{0}/start-pre-fill`,e.tollFreeRequestsGetPreFill=`/api/v3/toll-free/requests/{0}/get-pre-fill`,e.getComplianceCheck=`/api/v3/toll-free/requests/{0}/get-compliance-check`,e.startComplianceCheck=`/api/v3/toll-free/requests/{0}/start-compliance-check`,e.generateComplianceCheckAutoFix=`/api/v3/toll-free/requests/{0}/generate-compliance-check-auto-fix/{1}`,e.applyComplianceCheckAutoFix=`/api/v3/toll-free/requests/{0}/apply-compliance-check-auto-fix/{1}`,e.byoc=`/api/v3/byoc`,e.byocCarrierIndex=`/api/v3/byoc/carrier/{0}`,e.byocCarrierIndexIndex=`/api/v3/byoc/carrier/{0}/{1}`,e.byocCarrierIndexCheckCredentials=`/api/v3/byoc/carrier/{0}/check-credentials`,e.byocCarrierIndexGet=`/api/v3/byoc/carrier/{0}/get`,e.byocCarrierIndexPhoneIndex=`/api/v3/byoc/carrier/{0}/phone/{1}`,e.byocCarrierIndexPhoneIndexIndex=`/api/v3/byoc/carrier/{0}/phone/{1}/{2}`,e.byocCarrierIndexPhoneIndexIndexSync=`/api/v3/byoc/carrier/{0}/phone/{1}/{2}/sync`,e.byocCarrierIndexSenderIdIndex=`/api/v3/byoc/carrier/{0}/sender-id/{1}`,e.byocCarrierFetch=`/api/v3/byoc/carrier/fetch`,e.byocCarrierPhoneFetch=`/api/v3/byoc/carrier/phone/fetch`,e.byocCarrierSenderIdIndex=`/api/v3/byoc/carrier/sender-id/{0}`,e.byocCarrierSenderIdFetch=`/api/v3/byoc/carrier/sender-id/fetch`,e.byocProviderCarrierIndexPhoneIndex=`/api/v3/byoc/provider/carrier/{0}/phone/{1}`,e.byocProviderCarrierIndexPhoneCountIndex=`/api/v3/byoc/provider/carrier/{0}/phone/count/{1}`,e.byocProviderCarrierIndexSenderIdIndex=`/api/v3/byoc/provider/carrier/{0}/sender-id/{1}`,e.byocProviderCarrierIndexSenderIdCountIndex=`/api/v3/byoc/provider/carrier/{0}/sender-id/count/{1}`,e.byocProviderPhoneIndex=`/api/v3/byoc/provider/phone/{0}`,e.byocProviderPhoneCountIndex=`/api/v3/byoc/provider/phone/count/{0}`,e.byocProviderSenderIdIndex=`/api/v3/byoc/provider/sender-id/{0}`,e.byocProviderSenderIdCountIndex=`/api/v3/byoc/provider/sender-id/count/{0}`,e.byocUserCarrierPhoneIndexForwarding=`/api/v3/byoc/user-carrier-phone/{0}/forwarding`,e.userTrialByType=`/api/v3/trial/user/{0}`,e.wizardState=`/api/v3/wizard-new/state`,e.wizardApply=`/api/v3/wizard-new/apply`,e.wizardPrices=`/api/v3/wizard/sender-prices`,e.taskBoard=`/api/v3/task-boards`,e.taskBoardSingle=`/api/v3/task-boards/{0}`,e.taskBoardStages=`/api/v3/task-boards/{0}/stages`,e.taskBoardReorder=`/api/v3/task-boards/{0}/reorder`,e.taskBoardStagesSingle=`/api/v3/task-boards/stages/{0}`,e.taskBoardStagesReorder=`/api/v3/task-boards/stages/{0}/reorder`,e.tasks=`/api/v3/task-boards/{0}/tasks`,e.tasksFetch=`/api/v3/task-boards/{0}/tasks/fetch`,e.contactTasksFetch=`/api/v3/contacts/{0}/tasks/fetch`,e.tasksSingle=`/api/v3/task-boards/tasks/{0}`,e.tasksReorder=`/api/v3/task-boards/tasks/{0}/reorder`,e.tasksMoveAll=`/api/v3/task-boards/stages/{0}/move-tasks`,e.taskDuplicate=`/api/v3/task-boards/tasks/{0}/duplicate`,e.taskArchive=`/api/v3/task-boards/{0}/archive`,e.taskUnarchive=`/api/v3/task-boards/{0}/unarchive`,e.taskGenerateAITitle=`/api/v3/task-boards/tasks/generate-title`,e.taskChecklists=`/api/v3/task-boards/tasks/{0}/checklists`,e.taskChecklistSingle=`/api/v3/task-boards/checklists/{0}`,e.taskChecklistBulkMark=`/api/v3/task-boards/checklists/{0}/bulk-mark-items`,e.taskChecklistItems=`/api/v3/task-boards/checklists/{0}/checklist-items`,e.taskChecklistItemsSingle=`/api/v3/task-boards/checklist-items/{0}`,e.taskCommentCreate=`/api/v3/task-boards/tasks/{0}/comments`,e.taskCommentDelete=`/api/v3/task-boards/comments/{0}`,e.taskCommentFetch=`/api/v3/task-boards/tasks/{0}/comments/fetch`,e.dealPipelines=`/api/v3/deal-pipelines`,e.dealPipelineSingle=`/api/v3/deal-pipelines/{0}`,e.dealPipelineReorder=`/api/v3/deal-pipelines/{0}/reorder`,e.dealPipelineArchive=`/api/v3/deal-pipelines/{0}
1/archive`,e.dealPipelineUnarchive=`/api/v3/deal-pipelines/{0}/unarchive`,e.dealPipelineDefaultOwner=`/api/v3/deal-pipelines/{0}/change-assignee`,e.dealPipelineStageSingle=`/api/v3/deal-pipelines/stages/{0}`,e.dealPipelineStages=`/api/v3/deal-pipelines/{0}/stages`,e.dealPipelineStagesReorder=`/api/v3/deal-pipelines/stages/{0}/reorder`,e.deals=`/api/v3/deal-pipelines/{0}/deals`,e.dealsFetch=`/api/v3/deal-pipelines/{0}/deals/fetch`,e.dealsMove=`/api/v3/deal-pipelines/stages/{0}/move-deals`,e.dealStageUpdate=`/api/v3/deal-pipelines/stages/custom/{0}`,e.dealSystemStageUpdate=`/api/v3/deal-pipelines/stages/system/{0}`,e.dealDuplicate=`/api/v3/deal-pipelines/deals/{0}/duplicate`,e.dealSingle=`/api/v3/deal-pipelines/deals/{0}`,e.dealTimelineItemCreate=`/api/v3/deal-pipelines/deals/{0}/timeline-items`,e.dealTimelineItemDelete=`/api/v3/deal-pipelines/timeline-items/{0}`,e.dealTimelineItemFetch=`/api/v3/deal-pipelines/deals/{0}/timeline-items/fetch`,e.dealActivity=`/api/v3/deal-pipelines/deals/{0}/activity`,e.dealActivitySingle=`/api/v3/deal-pipelines/activities/{0}`,e.dealActivityItems=`/api/v3/deal-pipelines/activities/{0}/activity-items`,e.dealActivityItem=`/api/v3/deal-pipelines/activity-items/{0}`,e.dealActivityItemBulkMark=`/api/v3/deal-pipelines/activities/{0}/bulk-mark`,e.loadNavigationOrder=`/api/v3/navigation/{0}/orders`,e.updateNavigationOrder=`/api/v3/navigation/{0}/settings`,e.emailUnsubscribeAction=`/api/v3/user/unsubscribe`,e.emailUnsubscribeData=`/api/v3/user/unsubscribe/state/{0}`,e.facebookDataDeletionStatus=`/api/v3/facebook/messenger/check-account-status`,e.webWidgets=`/api/v3/web-widgets/fetch`,e.webWidgetSingle=`/api/v3/web-widgets/{0}`,e.webWidgetCreate=`/api/v3/web-widgets`,e.webWidgetDetailsUpdate=`/api/v3/web-widgets/{0}/settings`,e.webWidgetsBulkDelete=`/api/v3/web-widgets/delete`,e.webWidgetDuplicate=`/api/v3/web-widgets/{0}/clone`,e.webWidgetSendInstructions=`/api/v3/web-widgets/{0}/email/instructions`,e.stripeBillingPaygPricesFetch=`/api/v3/billing/stripe/pay-as-you-go/prices/fetch`,e.stripeBillingMonthlyPlanPricesFetch=`/api/v3/billing/stripe/monthly-billing/prices/fetch`,e.stripeBillingMonthlyPlanChange=`/api/v3/billing/stripe/monthly-billing/change`,e.stripeBillingDowngradeToPayg=`/api/v3/billing/stripe/monthly-billing/downgrade`,e.stripeBillingPaygGenerateLink=`/api/v3/billing/stripe/pay-as-you-go/payment`,e.stripeBillingGetInvoiceBySessionId=`/api/v3/billing/stripe/invoice/{0}`,e.stripeBillingGenerateCustomerPortalLink=`/api/v3/billing/stripe/customer-portal`,e.stripeBillingPaymentMethods=`/api/v3/billing/stripe/payment-methods/fetch`,e.centrifugeToken=`/api/v3/centrifugo/tokens`,e.whatsappConfig=`/api/v3/whatsapp/business/config`,e.whatsappAccountFetch=`/api/v3/whatsapp/business/account/fetch`,e.whatsappAccountSingle=`/api/v3/whatsapp/business/account/{0}`,e.whatsappAccountCreate=`/api/v3/whatsapp/business/account`,e.whatsappPhonesFetch=`/api/v3/whatsapp/business/platform/{0}/phones`,e.whatsappPhoneSingle=`/api/v3/whatsapp/business/phone/{0}`,e.facebookMessengerConnectPages=`/api/v3/facebook/messenger/connect-pages`,e.facebookMessengerLoginConfig=`/api/v3/facebook/messenger/login-config`,e.facebookMessengerPagesFetch=`/api/v3/facebook/messenger/pages/fetch`,e.facebookMessengerPagesSingle=`/api/v3/facebook/messenger/pages/{0}`,e.facebookMessengerPageByChat=`/api/v3/facebook/messenger/pages/by-chat/{0}`,e.facebookMessengerPageByPlatformPageId=`/api/v3/facebook/messenger/pages/by-platform-page-id/{0}`,e.instagramLoginLink=`/api/v3/instagram/login-link`,e.instagramConnectAccount=`/api/v3/instagram/connect-account`,e.instagramAccountsFetch=`/api/v3/instagram/accounts/fetch`,e.instagramAccountSingle=`/api/v3/instagram/accounts/{0}`,e.instagramAccountByPlatformId=`/api/v3/instagram/accounts/by-platform-account-id/{0}`,e.ticketsFetch=`/api/v3/tickets`,e.ticketsWithLasMessage=`/api/v3/tickets/with-last-message`,e.ticketsSingle=`/api/v3/tickets/{0}`,e.ticketsSingleByWorkspaceId=`/api/v3/tickets/workspace/{0}`,e.ticketsMarkSpam=`/api/v3/tickets/{0}/mark-spam`,e.ticketsUnmarkSpam=`/api/v3/tickets/{0}/unmark-spam`,e.ticketsCount=`/api/v3/tickets/count`,e.ticketsSimulateNew=`/api/v3/demo-tickets`,e.ticketsFetchMessagesCount=`/api/v3/tickets/message-count`,e.ticketsBulkDelete=`/api/v3/tickets/bulk-delete`,e.ticketsBulkUpdate=`/api/v3/tickets/bulk-update`,e.ticketInboxesFetch=`/api/v3/inboxes`,e.ticketInboxesSingle=`/api/v3/inboxes/{0}
1`,e.ticketInboxCreateWorkspace=`/api/v3/workspace`,e.ticketInboxChangeVerificationStatus=`/api/v3/inboxes/{0}/change-verification-status`,e.ticketInboxCheckForwarding=`/api/v3/inboxes/{0}/check-forwarding`,e.ticketStatusesFetch=`/api/v3/ticket-statuses`,e.ticketMessagesFetch=`/api/v3/tickets/{0}/messages`,e.ticketInternalNoteSingle=`/api/v3/ticket-messages/{0}`,e.ticketMessageTrimmedContent=`/api/v3/tickets/messages/{0}/show-trimmed-content`,e.ticketSpamFilter=`/api/v3/spam-filters`,e.filteredViewsCreate=`/api/v3/filtered-views`,e.filteredViewsIndex=`/api/v3/filtered-views/{0}`,e.filteredViewsFetch=`/api/v3/filtered-views/{0}/fetch`,e.filteredViewsBulkDelete=`/api/v3/filtered-views/{0}/bulk-delete`,e.filteredViewsCounters=`/api/v3/filtered-views/{0}/counters`,e.filteredViewsIndexReorder=`/api/v3/filtered-views/{0}/reorder`,e.filteredViewsContainsEntry=`/api/v3/filtered-views/{0}/contains/{1}`,e.imageFormUpload=`/api/v3/image/form/upload`,e.uploadFile=`/api/v3/files`,e.attachFiles=`/api/v3/files/attach`,e.files=`/api/v3/files/fetch`,e.downloadFile=`/api/v3/files/{0}/{1}/download`,e.detachFile=`/api/v3/files/detach`,e.schemaFilters=`/api/schema/filters`,e.loginHistoryExport=`/api/login-history/export`,e.widgetChatTokens=`/api/webwidgets/chat/tokens/{0}`,e.baseTest=`/api/test`,e.baseTestSingle=`/api/test/{0}`,e.childTest=`/api/child/test`,e.emailCampaignsFetch=`/api/v3/email-campaigns/fetch`,e.emailCampaignsIndex=`/api/v3/email-campaigns/{0}`,e.emailCampaignsSingleIndex=`/api/v3/email-campaigns/{0}/emails/{1}`,e.emailCampaignsArchive=`/api/v3/email-campaigns/archive`,e.emailCampaignsRecipients=`/api/v3/email-campaigns/{0}/recipients`,e.emailCampaignsProgress=`/api/v3/email-campaigns/progress`,e.emailCampaignsReviewTemplate=`/api/v3/email-campaigns/review-template`,e.emailCampaignsImproveTemplate=`/api/v3/email-campaigns/improve-template`,e.emailCampaignsDownloadTemplate=`/api/v3/email-campaigns/download-template`,e.emailCampaignsMessages=`/api/v3/email-campaigns/{0}/emails/fetch`,e.emailCampaignsOpen=`/api/v3/email-campaigns/{0}/open/emails/fetch`,e.emailCampaignsUnsubscribe=`/api/v3/email-campaigns/{0}/unsubscribe/emails/fetch`,e.emailCampaignsSpamReport=`/api/v3/email-campaigns/{0}/spam-report/emails/fetch`,e.emailCampaignsClickSummary=`/api/v3/email-campaigns/{0}/click/emails/summary`,e.emailCampaignsClick=`/api/v3/email-campaigns/{0}/click/emails/fetch`,e.emailCampaignsExport=`/api/v3/email-campaigns/{0}/engagement/emails/export`,e.emailCampaignsClickSummaryExport=`/api/v3/email-campaigns/{0}/engagement/click/summary/export`,e.emailCampaignsOutboundEmailsExport=`/api/v3/email-campaigns/{0}/emails/export`,e.emailCampaignsEmailSenders=`/api/v3/email-campaigns/email-senders`,e.emailCampaignsEmailSendersIndex=`/api/v3/email-campaigns/email-senders/{0}`,e.emailCampaignPricing=`/api/v3/email-campaigns/pricing`,e.emailCampaignsDomain=`/api/v3/email-campaigns/domains/{0}`,e.emailCampaignsDomains=`/api/v3/email-campaigns/domains`,e.emailCampaignsDomainsIndexBulkEmailSenders=`/api/v3/email-campaigns/domains/{0}/bulk/email-senders`,e.emailCampaignsDomainsIndexEmailSenders=`/api/v3/email-campaigns/domains/{0}/email-senders`,e.emailCampaignsDomainsIndexSendInstructions=`/api/v3/email-campaigns/domains/{0}/send-instructions`,e.emailCampaignsDomainsIndexVerify=`/api/v3/email-campaigns/domains/{0}/check-domain-verification`,e.emailCampaignsSettings=`/api/v3/email-campaigns/settings`,e.emailCampaignsDomainsEntriToken=`/api/v3/email-campaigns/domains/entri-token`,e.emailCampaignsDomainsEntriSellToken=`/api/v3/email-campaigns/domains/entri-sell-token`,e.composeEmail=`/api/v3/email-campaigns`,e.composeTestEmail=`/api/v3/email-campaigns/send/test-email`,e.composeEmailPreview=`/api/v3/email-campaigns/calculation-preview`,e.composeEmailPreviewMessages=`/api/v3/email-campaigns/emails/preview`,e.composeEmailFrequentlySent=`/api/v3/email-campaigns/emails/frequently-used`,e.emailCampaignSubscriptionUnsubscribe=`/api/v3/email-campaigns/subscription/unsubscribe`,e.emailCampaignSubscriptionResubscribe=`/api/v3/email-campaigns/subscription/resubscribe`,e.emailCampaignSubscriptionState=`/api/v3/email-campaigns/subscription/state/{0}`,e.stripoAuth=`/api/v3/stripo/auth`,e.stripoPrebuiltTemplatesFetch=`/api/v3/stripo/templates/fetch`,e.stripoPrebuiltTemplateDetails=`/api/v3/stripo/templates/{0}`,e.stripoTemplateTypes=`/api/v3/stripo/templates/types/fetch`,e.stripoTemplateSeasons=`/api/v3/stripo/templates/seasons/fetch`,e.stripoTemplateFeatures=`/api/v3/stripo/templates/features/fetch`,e.stripoTemplateIndustries=`/api/v3/stripo/templates/industries/fetch`,e.stripoPrebuiltTemplatesSimpleFetch=`/api/v3/stripo/templates/simple/fetch`,e.bonusInfo=`/api/v3/bonus/info`,e.externalIntegrationStatuses=`/api/v3/integration/states`,e.externalIntegrationSingle=`/api/v3/integrations/{0}`,e.externalIntegrationCustomersSync=`/api/v3/integrations/{0}/customers/sync`,e.externalIntegrationReconnectUrl=`/api/v3/integrations/{0}/reconnect-url`,e.externalIntegrationsInstallShopify=`/api/v3/integration/shopify/install-url`,e.externalIntegrationsInstallWooCommerce=`/api/v3/integration/woocommerce/install-url`,e.externalIntegrationsInstallHubspot=`/api/v3/integration/hubspot/install-url`,e.externalIntegrationsHubspotMarketplaceAuthorize=`/api/v3/integration/hubspot/marketplace/authorize`,e.externalIntegrationHubspotTimelineLogging=`/api/v3/integration/hubspot/{0}/timeline-logging`,e.externalIntegrationHubspotContactProperties=`/api/v3/integration/hubspot/{0}/contact-properties`,e.externalIntegrationHubspotDealProperties=`/api/v3/integration/hubspot/{0}/deal-properties`,e.externalIntegrationHubspotTicketProperties=`/api/v3/integration/hubspot/{0}/ticket-properties`,e.externalIntegrationHubspotConversationProperties=`/api/v3/integration/hubspot/{0}/conversation-properties`,e.externalIntegrationHubspotTaskProperties=`/api/v3/integration/hubspot/{0}/task-properties`,e.externalIntegrationHubspotOrderProperties=`/api/v3/integration/hubspot/{0}/order-properties`,e.externalIntegrationHubspotMeetingProperties=`/api/v3/integration/hubspot/{0}/meeting-properties`,e.externalIntegrationHubspotOwners=`/api/v3/integration/hubspot/{0}/owners`,e.externalIntegrationHubspotDealPipelines=`/api/v3/integration/hubspot/{0}/deal-pipelines`,e.externalIntegrationHubspotTicketPipelines=`/api/v3/integration/hubspot/{0}/ticket-pipelines`,e.externalIntegrationHubspotOrderPipelines=`/api/v3/integration/hubspot/{0}/order-pipelines`,e.externalIntegrationHubspotConversationInboxes=`/api/v3/integration/hubspot/{0}/conversation-inboxes`,e.externalIntegrationHubspotLists=`/api/v3/integration/hubspot/{0}/lists`,e.externalIntegrationHubspotContactRoutingRules=`/api/v3/integration/hubspot/{0}/contact-routing-rules`,e.externalIntegrationHubspotStartSync=`/api/v3/integration/hubspot/{0}/start-sync`,e.externalIntegrationFieldMapping=`/api/v3/integrations/{0}/field-mapping`,e.externalIntegrationStartSync=`/api/v3/integrations/{0}/start-sync`,e.externalIntegrationManualSync=`/api/v3/integrations/{0}/manual-sync`,e.externalIntegrationAbandonedCartDelay=`/api/v3/integrations/{0}/abandoned-cart-delay`,e.externalIntegrationCategories=`/api/v3/integrations/{0}/categories`,e.externalIntegrationProducts=`/api/v3/integrations/{0}/products`,e.externalIntegrationResolveProducts=`/api/v3/integrations/{0}/resolve-products`,e.externalIntegrationResolveCategories=`/api/v3/integrations/{0}/resolve-categories`,e.wooCommerceCustomFields=`/api/v3/integration/woocommerce/{0}/custom-fields`,e.npsSurvey=`/api/v3/nps/{0}`,e.connectedAppsFetch=`/api/v3/oauth/connected-clients`,e.connectedAppsSingle=`/api/v3/oauth/connected-clients/{0}`,e.connectedAppsRevoke=`/api/v3/oauth/connected-clients/revoke`,e.zendeskMessagingToken=`/api/v3/zendesk/messaging-token`,e}({}),A=(e,...t)=>t.reduce((e,t)=>
1(e=e.endsWith(`/`)?e.slice(0,-1):e,t=t.startsWith(`/`)?t.slice(1):t,`${e}/${t}`),e),mt=e=>encodeURIComponent(e).replace(/!/g,`%21`).replace(/'/g,`%27`).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/\*/g,`%2A`),ht=e=>mt(e).replace(/~/g,`%7E`).replace(/%20/g,`+`),gt=e=>e===`PHP_QUERY_RFC3986`?mt:ht,_t=(e,t,n,r)=>Object.entries(t).filter(([e,t])=>t!==null).map(([t,i])=>yt(e?`${e}[${t}]`:t,i,n,r)).join(n),vt=(e,t,n)=>{let r=String(t);return`${n(e)}=${n(r)}`},yt=(e,t,n,r)=>{if(typeof t==`function`)throw Error(`There was an error processing for http_build_query().`);return t===null?``:typeof t==`object`?_t(e,t,n,r):vt(e,t,r)},bt=(e,t=`&`,n)=>_t(``,e,t,gt(n)),xt=e=>bt(e),St=(e,t=null,n=``)=>Object.keys(e).reduce((r,i)=>{let a=e[i],o=Array.isArray(e)?`${t||``}[${i}]`:[t,`[${i}]`].filter(Boolean).join(n);return[typeof a==`object`,a!==null,!(a instanceof Date),!(a instanceof RegExp),!(Array.isArray(a)&&a.length===0)].every(Boolean)?{...r,...St(a,o,n)}:{...r,[o]:a}},{}),Ct=e=>e?A(ut,e):``,wt=e=>e?A(dt,e):``,Tt=e=>{let t=new URL(e);return t.search=``,t.toString()},j=e(ee()),M=class{constructor(e){this._config=e,this.source=j.default.create(),this.cache=new Map}getAxios(){return this.source}getCancelToken(){return j.default.CancelToken.source()}create(e){this.source=j.default.create(this.config(e))}request(e){return this.source.request(this.config(e))}get(e,t){let n=this.getUri(e,t);return this.cache.has(n)||this.cache.set(n,this.source.get(e,this.config(t)).finally(()=>{this.cache.delete(n)})),this.cache.get(n)}async getFile(e,t){return await this.get(e,{...t,responseType:`blob`})}delete(e,t){return this.source.delete(e,this.config(t))}head(e,t){return this.source.head(e,this.config(t))}post(e,t,n){let r=this.config(n,!this.hasFile(t));return this.source.post(e,t,r)}put(e,t,n){return this.source.put(e,t,this.config(n))}patch(e,t,n){return this.source.patch(e,t,this.config(n))}success(e){return e.data}constructSearchQueryObject(e,t,n){let r={searchQuery:n,searchFields:t};return this.get(e,{params:r,paramsSerializer:e=>xt(e)})}getUri(e,t){return j.default.getUri({url:e,...this.config(t)})}config(e,t=!0){return{timeout:t?6e4:void 0,...e||{},baseURL:this._config.apiUrl,withCredentials:!0}}hasFile(e){if(e instanceof FormData)for(let t of e.values()){let e=t instanceof Blob,n=t instanceof File;if(e||n)return!0}return!1}};M=b([o(),m(0,i(h.Config))],M);function Et(e,t){Reflect.getMetadataKeys(e).forEach(n=>{let r=Reflect.getMetadata(n,e);Reflect.defineMetadata(n,r,t)})}var Dt=(e,t,n=!1,r=[],i=!0)=>(a,o,s)=>{if(s)return Ot(s,e,t,n,i);for(let o of Reflect.ownKeys(a.prototype).filter(e=>e!==`constructor`)){if(r?.includes(o))continue;let s=Object.getOwnPropertyDescriptor(a.prototype,o);s.value instanceof Function&&Object.defineProperty(a.prototype,o,Ot(s,e,t,n,i))}};function Ot(e,t,n,r=!1,i=!0){let a=e.value;return e.value=function(...e){if(!i)return a.apply(this,e);try{let i=a.apply(this,e);return i&&i instanceof Promise?i.catch(e=>(r?At:kt)(this,t,n,e)):i}catch(e){e instanceof Error&&(r?At:kt)(this,t,n,e);return}},a!==e.value&&Et(a,e.value),e}function kt(e,t,n,r){if(l(n)&&r instanceof t)n(r,e);else throw r}function At(e,t,n,r){if(!l(n)||r instanceof t)throw r;l(n)&&n(r,e)}var jt=e=>Dt(e,t=>{throw Nt(t,e),d.is(t)?new e(t.message,t.getData(),t.stack):new e(t.message,{},t.stack)}
1,!0),Mt=(e,t=`error`,n,r=!0)=>Dt(e,(e,r)=>{throw Xe().log(t,`${e.name}:${e.message}`,n||r.constructor?.name||r.prototype?.constructor?.name||``),e},!1,[],r),Nt=(e,t)=>{Xe().log(`exception`,`Exception "${e.constructor.name}" converted to "${t.name}"`,`forDebug`)};{let e=[];class t{constructor(t){this._name=``,this._closed=!1,this.id=`$BroadcastChannel$${t}$`,e[this.id]=e[this.id]||[],e[this.id].push(this),this._name=t,this._mc=new MessageChannel,this._mc.port1.start(),this._mc.port2.start(),this._onStorageHandler=this.onStorageHandler.bind(this),window.addEventListener(`storage`,this._onStorageHandler)}get name(){return this._name}postMessage(t){if(this._closed){let e=Error();throw e.name=`InvalidStateError`,e}let n=t?JSON.stringify(t):``,r=`${this.id+String(Date.now())}$${String(Math.random())}`;window.localStorage.setItem(r,n),setTimeout(()=>{window.localStorage.removeItem(r)},500),e[this.id].forEach(e=>{e!==this&&e._mc.port2.postMessage(JSON.parse(n))})}close(){if(this._closed)return;this._closed=!0,window.removeEventListener(`storage`,this._onStorageHandler),this._mc.port1.close(),this._mc.port2.close();let t=e[this.id].indexOf(this);e[this.id].splice(t,1)}get onmessage(){return this._mc.port1.onmessage}set onmessage(e){this._mc.port1.onmessage=e}onmessageerror(){}addEventListener(e,t,n){return this._mc.port1.addEventListener.call(this._mc.port1,e,t,n)}removeEventListener(e,t,n){return this._mc.port1.removeEventListener.call(this._mc.port1,e,t,n)}dispatchEvent(e){return this._mc.port1.dispatchEvent.call(this._mc.port1,e)}onStorageHandler(e){if(e.storageArea!==window.localStorage||e.newValue==null||e.key?.substring(0,this.id.length)!==this.id)return;let t=e.newValue===``?null:JSON.parse(e.newValue);this._mc.port2.postMessage(t)}}window.BroadcastChannel=window.BroadcastChannel||t}var N=class{constructor(e){this.logger=e,this.subscriptions={},this.broadcastChannels={}}subscribeWithSubscriptionKey(e,t,n,r=!1){if(e=this.normalizeEventName(e),this.exist(n))throw new Je(`Already subscribed to key = ${n}`);return this.subscriptions[n]={key:n,eventName:e,callback:t,lastTriggerTime:0,isPersistent:r},this.logger.log(`bus`,`subscribed with key #eventName ${e} #key ${n}`,`internal`),n}subscribe(e,t,n=!1){e=this.normalizeEventName(e);let r=Math.random().toString();for(;this.exist(r);)r=Math.random().toString();return this.subscriptions[r]={key:r,eventName:e,callback:t,lastTriggerTime:0,isPersistent:n},this.logger.log(`bus`,`subscribed #eventName ${e} #key ${r}`,`internal`),r}subscribeBroadcast(e,t){this.innerSubscribeBroadcast(e,t)}unsubscribe(e,t=!1){!t&&this.subscriptions[e]&&this.subscriptions[e].isPersistent||(this.logger.log(`bus`,`unsubscribed #key ${e}, eventName ${this.subscriptions[e]?.eventName}`,`internal`),delete this.subscriptions[e])}unsubscribeBroadcast(e,t){let n=this.broadcastChannels[e];if(n){if(t){let e=n.callbacks.findIndex(e=>e===t);e>=0&&n.callbacks.splice(e,1)}(!t||!n.callbacks.length)&&(n.channel.close(),delete this.broadcastChannels[e])}}broadcastEmit(e,t){let n=this.broadcastChannels[e];n||(this.innerSubscribeBroadcast(e),n=this.broadcastChannels[e]),n.channel.postMessage(t)}emit(e,t,n=0){for(let r of this.expandEventName(this.normalizeEventName(e)))this.emit_(r,t,n)}emit_(e,t,n=0){let r=new Date().getTime();Object.values(this.subscriptions).forEach(i=>{i.eventName===e&&r-i.lastTriggerTime>=n&&(this.logger.log(`bus`,`fired ${e} ${i.key}`,`internal`),i.callback(t),i.lastTriggerTime=r)})}exist(e){return this.subscriptions[e]!==void 0}unsubscribeFromAll(e=!1){Object.keys(this.subscriptions).forEach(t=>{this.unsubscribe(t,e)})}normalizeEventName(e){return e.split(`/`).filter(e=>e&&e!==`*`).join(`/`)}expandEventName(e){return e.split(`/`).reduce((e,t)=>(e.push(e.length?[e[e.length-1],t].join(`/`):t),e),[])}cloneSubscriptions(){return n(this.subscriptions)}innerSubscribeBroadcast(e,t){let n=this.broadcastChannels[e];n?n.callbacks.push(t):(n={channel:new BroadcastChannel(e),callbacks:t?[t]:[]},this.broadcastChannels[e]=n,n.channel.onmessage=e=>{n.callbacks.forEach(t=>{typeof t==`function`&&t(e.data)})})}};N=b([o(),m(0,i(h.LoggerService))],N);var Pt=N,P=class{constructor(e,t){this.logger=e,this.subscriptionService=t}subscribeByModels(e,t){return e.map(e=>this.subscribeByModel(e,n=>{t(n,e)}))}subscribeByModel(e,t,n=!1){return this.subscribe(e.entity,e=>{t(e)},n)}
1emitByModel(e,t,n=0){this.emit(e.entity,t,n)}emit(e,t,n=0){return this.subscriptionService.emit(e,t,n)}subscribe(e,t,n=!1){return this.subscriptionService.subscribe(e,t,n)}unsubscribe(e){e.forEach(e=>this.subscriptionService.unsubscribe(e))}log(e){this.logger.shouldLogByChannel(`bus`,[`internal`])&&this.logger.log(`bus`,e,`internal`)}};P=b([o(),m(0,i(h.LoggerService)),m(1,i(h.SubscriptionService))],P);var Ft=P,F=class{constructor(e,t){this.api=e,this.get=t}addService(e){this.register(this.get(e.id))}register(e){this.api.getAxios().interceptors.request.use(async t=>e.request?e.request(t):t,async t=>{if(e.requestError)return e.requestError(t)}),this.api.getAxios().interceptors.response.use(async t=>e.response?e.response(t):t,async t=>e.responseError?e.responseError(t):Promise.reject(t instanceof Error?t:Error(`Axios error`,{cause:t})))}};F=b([o(),m(0,i(h.Api)),m(1,i(`GetLocator`))],F);var It=F,I=class{constructor(e){this.errorSerializerService=e}responseError(e){if(j.default.isCancel(e))return Promise.reject(new le);if(this.isResponseError(e)){let t=this.errorSerializerService.getErrorClass(e);if(t){let n=new t(e.message,e.response,e.stack);return n instanceof me&&n.setApiMethodInfo({method:e.config.method,url:e.config.url}),Promise.reject(n)}}let t;return t=j.default.isAxiosError(e)&&e.message?.toLowerCase()===`network error`?new we(e.message,void 0,e.stack):e instanceof Error?new d(`Unknown ApiErrorInterceptor error: ${e.message}`,{},e.stack):new d(`Unknown ApiErrorInterceptor error`,{}),Promise.reject(t)}isResponseError(e){return e instanceof Error&&`response`in e&&e.response!==void 0}};I=b([o(),m(0,i(h.ErrorSerializerService))],I);var Lt=I,L=class{response(e){if(!e.status)throw new je(`Response with no status`,{method:e.config.method,url:e.config.url});return e}};L=b([o()],L);var Rt=L,R=class{request(e){return e.headers=e.headers??{},e.headers[`X-App-Version`]=`20261001-39361-126a85bd`,e}};R=b([o()],R);var zt=R,z=class{constructor(e,t,n,r,i,a,o,s){this.authService=e,this.loggedInStatusService=t,this.routerService=n,this.reopenAccountService=r,this.notificationService=i,this.authLoaderService=a,this.restrictionPagesRouterService=o,this.translateService=s}async responseError(e){if(e instanceof f)return await this.reopenAccountService.storeReopenAccountData({loginOrEmail:e.getLoginOrEmail(),fullName:e.getFullName()}),await this.restrictionPagesRouterService.goToReopenAccountRoute(),Promise.reject(new O);if(e instanceof v)return await this.restrictionPagesRouterService.goToLoginPersonalRoute(),Promise.reject(new O);if(e instanceof x||e instanceof st)return await this.restrictionPagesRouterService.goToAccountSuspendedRoute(),Promise.reject(new O);let t=this.routerService.getCurrentRoute(),n=t.meta.pageAvailableFor;return e instanceof T&&(n===void 0||n===te.authenticated)?((t.name===void 0||t.name!==`auth.logout`)&&this.authService.saveCurrentRouteForRedirectAfterLogin(),this.loggedInStatusService.isUserLoggedIn()&&(await this.authService.logoutRedirect(),this.notificationService.notifyError(this.translateService.t(`systemExitResolver.successNotification`))),Promise.reject(e)):(e instanceof T&&this.routerService.getCurrentRoute().name===`auth.login`&&(await this.authLoaderService.hideLoader(),this.notificationService.contactSupport(),await this.authService.toInitialRoute()),Promise.reject(e))}};z=b([o(),m(0,i(h.AuthService)),m(1,i(h.LoggedInStatusService)),m(2,i(h.RouterService)),m(3,i(h.ReopenAccountService)),m(4,i(h.NotificationService)),m(5,i(h.AuthLoaderService)),m(6,i(h.RestrictionPagesRouterService)),m(7,i(h.TranslateService))],z);var Bt=z,B=class{constructor(e,t){this.subscriptionService=e,this.newQueryParamsService=t}notifyCreated(e,t,n,r=`modalParams`){this.subscriptionService.emit(`/form-submitted/${e}`,{data:t,response:n,queryParams:this.newQueryParamsService.getQueryParams()[r]})}subscribe(e,t){this.subscriptionService.subscribe(`/form-submitted/${e}`,t)}unsubscribe(e){this.subscriptionService.unsubscribe(`/form-submitted/${e}`)}};B=b([o(),m(0,i(h.SubscriptionService)),m(1,i(h.NewQueryParamsService))],B);var Vt=B,V=class{constructor(e){this.localStorageService=e}get(e){return this.localStorageService.get(e)}set(e,t){this.localStorageService.set(e,t)}delete(e){this.localStorageService.delete(e)}getJSON(e){return this.localStorageService.getJSON(e)}setJSON(e,t){this.localStorageService.setJSON(e,t)}};V=b([o(),m(0,i(h.LocalStorageService))],V);var Ht=V,H=class{constructor(e){this.repoSeparator=`/`,this.storage=e}getPathSeparator(){return this.repoSeparator}async get(e){let[t,n]=e.split(this.repoSeparator),r=this.storage.getJSON(t)||{},i=r;return n&&(i=r[n]||{}),{data:i}}async getFile(e){throw new D(`Not implemented`)}async delete(e){let[t,n]=e.split(this.repoSeparator),r=this.storage.getJSON(t);if(!n)this.storage.delete(e);else{let e=r;e&&(delete e[n],this.storage.setJSON(t,e))}return{data:{}}}async post(e,t){if(t===void 0)throw new D(`Cannot post in storage without data providen`);let[n,r]=e.split(this.repoSeparator),i=await this.get(n);if(!r)throw new D(`Cannot post data to Storage, Id should be presented`);let a={[r]:t},o={...i.data,...a};return this.storage.setJSON(n,o),{data:o}}async put(e,t){if(t===void 0)throw new D(`Cannot put in storage without data providen`);let[n,r]=e.split(this.repoSeparator);if(!r)throw new D(`Cannot put data to Storage, Id should be presented`);let i=await this.get(n),a={...i.data,[r]:{...i.data[r],...t}};return this.storage.setJSON(n,a),{data:a}}async patch(e,t){throw new qe(`Not implemented`)}};H=b([jt(D),o(),m(0,s())],H);var Ut=H,U=class extends Ut{constructor(e){super(e),this.localStorageAdapter=e}};U=b([o(),a(),m(0,i(h.LocalStorageAdapter))],U);var Wt=U,Gt=`X-App-Old-Version`,W=class{constructor(e){this.globalStateService=e}response(e){return e&&e.headers[Gt]===`true`&&this.globalStateService.setFieldValueIfChanged(`oldVersion`,!0),e}};W=b([o(),m(0,i(h.GlobalStateService))],W);var Kt=W,G=class{constructor(e,t){this.windowService=e,this.userSettingsService=t}async responseError(e){return this.userSettingsService.currentUserSettingsOrNull()?.isImpersonated&&e instanceof p&&this.windowService.self().location.reload(),Promise.reject(e)}};
1G=b([o(),m(0,i(h.WindowService)),m(1,i(h.UserSettingsService))],G);var qt=G,K=class{constructor(e){this.errorsCustomRulesByStatusesMap=e}getErrorClass(e){let t=this.errorsCustomRulesByStatusesMap[e.response.status];if(!t)return;let{customRules:n=[]}=t;if(n.length===0)return t.default;let r=e.response.data?.errorCode,i=e.config.method,a=e.config.url,o=n.filter(t=>{let n=t.endpoint===void 0||t.endpoint===a,o=t.subCodes===void 0||t.subCodes.length===0||t.subCodes.includes(r),s=t.methods===void 0||t.methods.length===0||t.methods.includes(i),c=t.predicateFn===void 0||(e=>{try{return t.predicateFn(e)}catch{return!1}})(e);return n&&o&&s&&c}),s=o.filter(e=>e.subCodes!==void 0&&e.subCodes.length>0);return s.length>0?s[0].klass:o[0]?.klass||t.default}};K=b([o(),m(0,i(h.ErrorsCustomRulesByStatusesMap))],K);var Jt=K,Yt={klass:ze,endpoint:k.registrationEmailResend,methods:[`post`],predicateFn:e=>!!(`availableToResendAt`in e.response.data&&e.response.data.availableToResendAt)},Xt={klass:w,endpoint:k.registrationAllow},Zt={endpoint:k.registrationEmailIsAvailable,klass:E},Qt={endpoint:k.registrationEmailIsAvailable,klass:E,subCodes:[`request.too_many_requests`]},$t={endpoint:k.registrationEmailIsAvailable,klass:Ue},en={endpoint:k.registrationEmailIsAvailable,klass:S},tn={endpoint:k.login,subCodes:[`auth.email_not_verified`],klass:S},nn={endpoint:k.checkVerifyCodeOnPhone,subCodes:[`user.verification.invalid_code`],klass:ne},rn={endpoint:k.login,subCodes:[`auth.enter_two_factor_code`],klass:C},an={endpoint:k.login,klass:Ze},on={endpoint:k.login,subCodes:[`auth.account_closed`],klass:f},sn={endpoint:k.login,subCodes:[`auth.app_for_business_only`],klass:v},cn={endpoint:k.login,subCodes:[`auth.subaccount_closed`],klass:x},ln={endpoint:k.registrationConfirmCodeFromEmail,subCodes:[`registration.invalid_code`],klass:_},un={endpoint:k.login,subCodes:[`auth.incorrect_login_code`,`auth.two_factor_request_failed`,`user.verification.totp_tfa_code_is_wrong`],klass:_},dn={endpoint:k.registration,subCodes:[`registration.user_denied`],klass:w},fn={endpoint:k.reopenAccount,klass:Ze},pn={endpoint:k.reopenAccount,subCodes:[`auth.enter_two_factor_code`],klass:C},q=e=>[k.googleAuth,k.appleAuth,k.microsoftAuth].includes(e.config.url),mn={predicateFn:q,subCodes:[`auth.subaccount_closed`],klass:x},hn={predicateFn:q,subCodes:[`auth.app_for_business_only`],klass:v},gn={predicateFn:q,subCodes:[`auth.account_closed`],klass:f},_n={klass:He,subCodes:[`auth.only_using_sso`]},vn={subCodes:[`balance.insufficient_funds`],klass:Le},yn={subCodes:[`number.already_in_use`],klass:Fe},bn={endpoint:k.senderIds,subCodes:[`user.sender.mark_as_pending`],klass:Ie},xn={klass:ge,predicateFn:e=>e.response.data.message.includes(`TaskStage object not found`)||e.response.data.errorCode===`tasks.stage_not_found`},Sn={klass:nt,predicateFn:e=>e.response.data.message.includes(`TaskBoard object not found`)},Cn={klass:_e,predicateFn:e=>e.response.data.message.includes(`Task object not found`)},wn={subCodes:[`user.token.is_locked`],klass:fe},Tn={subCodes:[`whatsapp_business.invalid_pin`,`whatsapp_business.phone_already_exists`],klass:Pe},En={endpoint:k.stripeBillingPaygGenerateLink,klass:g},Dn={endpoint:k.stripeBillingMonthlyPlanChange,klass:g},On={klass:Me,methods:[`put`,`post`],predicateFn:e=>kn(e)||An(e)},kn=e=>{let t=e.config.url;if(!t)return!1;let n=RegExp(`${k.taskChecklistSingle.replace(`{0}`,`([0-9]+)`)}`),r=RegExp(`${k.taskChecklistBulkMark.replace(`{0}`,`([0-9]+)`)}`);return e.config.method===`put`&&n.test(t)||r.test(t)},An=e=>{let t=e.config.url;if(!t)return!1;let n=RegExp(`${k.taskChecklistItems.replace(`{0}`,`([0-9]+)`)}`);return e.config.method===`post`&&n.test(t)},jn={klass:pe,methods:[`put`],predicateFn:e=>{let t=e.config.url;return t?RegExp(`${k.taskChecklistItemsSingle.replace(`{0}`,`([0-9]+)`)}`).test(t):!1}},Mn={endpoint:k.login,methods:[`post`],klass:Ne},Nn={klass:ie,endpoint:k.login,methods:[`post`],predicateFn:e=>e.response.headers[`cf-mitigated`]===`challenge`},Pn={klass:ae,predicateFn:e=>e.response.data.message.includes(`TaskComment object not found`)},Fn={endpoint:k.registrationEmailResend,klass:E},In={subCodes:[`auth.enter_two_factor_code`],klass:C,predicateFn:q},Ln={endpoint:k.uploadFile,methods:[`post`],klass:lt,predicateFn:e=>(t(e,`response.data.errors.fields.file.0`)||``).toLowerCase().indexOf(`file size`)!==-1},Rn={klass:Oe,predicateFn:e=>e.response.data.message.includes(`DealPipeline object not found`)},zn={klass:ve,predicateFn:e=>e.response.data.message.includes(`DealStage object not found`)||e.response.data.message.includes(`Deal stage not found`)||e.response.data.errorCode===`deals.stage_not_found`},Bn={klass:he,predicateFn:e=>e.response.data.message.includes(`Deal object not found`)},Vn={klass:ue,methods:[`put`,`post`],predicateFn:e=>Hn(e)||Un(e)}
1,Hn=e=>{let t=e.config.url;if(!t)return!1;let n=RegExp(`${k.dealActivitySingle.replace(`{0}`,`([0-9]+)`)}`);return e.config.method===`put`&&n.test(t)},Un=e=>{let t=e.config.url;if(!t)return!1;let n=RegExp(`${k.dealActivityItems.replace(`{0}`,`([0-9]+)`)}`);return e.config.method===`post`&&n.test(t)},Wn={klass:Ee,methods:[`put`],predicateFn:e=>{let t=e.config.url;return t?RegExp(`${k.dealActivityItems.replace(`{0}`,`([0-9]+)`)}`).test(t):!1}},Gn={subCodes:[`auth.required.no_error`],klass:xe},Kn={klass:ye,predicateFn:e=>e.response.data.message.includes(`already been accepted`)},qn={klass:Ke,endpoint:k.sendVerifyCodeOnPhone,predicateFn:e=>e.response.data.message.includes(`already verified`)},Jn={endpoint:k.registrationPhoneProvide,subCodes:[`registration.phone_used_too_frequently`],klass:re},Yn={endpoint:k.login,subCodes:[`auth.enter_totp_two_factor_code`],klass:rt},Xn={subCodes:[`auth.enter_totp_two_factor_code`],klass:rt,predicateFn:q},Zn={subCodes:[`email_campaign.empty_recipients`],klass:Ye},Qn={endpoint:k.byocCarrierIndex,subCodes:[`byoc.bandwidth.uc_trunking_not_supported`],klass:Ce},$n={subCodes:[`byoc.credentials.twilio.not_enough_permission`],klass:se},er={subCodes:[`byoc.credentials.bandwidth.not_enough_permission`],klass:ce},tr={subCodes:[`auth.phone_not_verified`],klass:Qe},nr={endpoint:k.registrationPhoneConfirmCode,subCodes:[`user.verification.invalid_code`],klass:_},rr={endpoint:k.registrationPhoneConfirmCode,subCodes:[`registration.user_denied`],klass:w},ir={klass:Ae,endpoint:k.messagesPrice,predicateFn:e=>{let t=e.response.data.errors;if(!t||!t.fields||!t.fields.text)return!1;let n=t.fields.text;return Array.isArray(n)?n[0].includes(`Message text should not exceed`):!1}},ar={klass:ot,subCodes:[`survey.recipient_countries_not_covered`]},or={subCodes:[`messages.session.rejected`],klass:oe},sr={subCodes:[`auth.two_factor_session_expired`],klass:ct},cr={endpoint:k.sendVerifyCodeOnPhone,subCodes:[`user.verification.try_again_in_time`],klass:Ve},lr={303:{default:Te},400:{default:be,customRules:[Qt,nn,ln,un,dn,yn,vn,bn,Tn,Ln,Kn,qn,Zn,Qn,nr,rr,ir,or]},401:{default:T,customRules:[Gn,sr]},402:{default:Be},403:{default:at,customRules:[on,Yt,Xt,$t,sn,cn,mn,hn,gn,_n,wn,$n,er]},404:{default:De,customRules:[xn,Sn,Cn,On,jn,Pn,Rn,zn,Bn,Vn,Wn]},405:{default:Ge},406:{default:st},409:{default:it,customRules:[Jn]},410:{default:de,customRules:[]},412:{default:p},413:{default:$e},417:{default:et},422:{default:ke,customRules:[ar]},423:{default:We,customRules:[an,fn]},428:{default:Re,customRules:[en,tn,tr,rn,Yn,pn,En,Dn,In,Xn]},429:{default:ie,customRules:[Fn,Zt,Nn,Mn,cr]},430:{default:Se},500:{default:y},501:{default:y},502:{default:y},503:{default:y}},J=class{constructor(e){this.routerService=e}async responseError(e){if(e instanceof fe){let t=this.routerService.getCurrentRoute();if(t.name===`tokenIsLocked`)return Promise.reject(e);let n={name:`tokenIsLocked`,query:{fromUrl:t.fullPath}};this.routerService.replace(n)}return Promise.reject(e)}};J=b([o(),m(0,i(h.RouterService))],J);var ur=J,dr=`stripeInvalidBillingDetailsEventName`,Y=class{constructor(e){this.subscriptionService=e}async responseError(e){return e instanceof g&&this.subscriptionService.emit(dr,{}),Promise.reject(e)}};Y=b([o(),m(0,i(h.SubscriptionService))],Y);var fr=Y,X=class{create(e,t){return new c(e,t)}};X=b([o()],X);var pr=X,mr=(e,t)=>{let n=e.split(`/`),r=n.indexOf(`connection`);if(r===-1)return`${e}/${t}`;let i=n.slice(0,r);return t===`emulation`?[...i,t].join(`/`):[...i,`connection`,t].join(`/`)},hr=(e,t)=>{let n=new URL(e);return t!==`websocket`&&(n.protocol=document.location.protocol),n.pathname=mr(n.pathname,t),n.toString()},gr=e=>{let t=new URL(e);return t.protocol=document.location.protocol,t.pathname=mr(t.pathname,`emulation`),t.toString()},_r=(e,t)=>({transport:t,endpoint:hr(e,t)}),vr=class{constructor(e,t){this.centrifuge=e,this.getChannelName=t}get state(){return this.centrifuge.state}onDisconnected(e){this.centrifuge.on(`disconnected`,e)}onConnected(e){this.centrifuge.on(`connected`,e)}onPublication(e){this.centrifuge.on(`publication`,e)}removeAllListeners(){return this.centrifuge.removeAllListeners()}publish(e,t){return this.centrifuge.publish(this.getChannelName(),{type:e,payload:t})}connect(){return this.centrifuge.connect()}disconnect(){return this.centrifuge.disconnect()}},yr=class extends vr{constructor(e,t,n){super(e,n),this.centrifuge=e,this.userService=t,this.getChannelName=n}onPublication(e){this.centrifuge.on(`publication`,t=>{let n=t.data;n&&n.type&&(`user_id`in n&&n.user_id.toString()!==this.userService.currentUserId()||e(t))})}},br=class extends vr{constructor(e,t,n){super(e,n),this.centrifuge=e,this.subscription=t,this.getChannelName=n}onPublication(e){this.subscription.on(`publication`,e)}},Z=class{constructor(e,t,n,r,i){this.userService=e,this.userSettingsService=t,this.centrifugeClient=n,this.centrifugeService=r,this.config=i}getSocketUrl(){return this.config.socketUrl}async createConnectionForMainServerSubscription(){let e=this.getSocketUrl()||`wss://wire.textmagic.com/connection/websocket`,t=[`websocket`,`http_stream`,`sse`],n=t.map(t=>_r(e,t)),r=t.some(e=>e===`http_stream`||e===`sse`);return new yr(this.centrifugeClient.create(n,{emulationEndpoint:r?gr(e):void 0}),this.userService,()=>{throw new qe(`Not implemented "getChannelName" callback`)})}
1createConnectionForWorkspaceServerSubscription(){let{parentId:e}=this.userSettingsService.currentUserSettingsOrFail(),t=()=>tt(e);return this.createConnectionWithSubscription(t,()=>{let e=t();return this.centrifugeService.getTokens([e])})}async createConnectionWithSubscription(e,t){let n=await t({}),r=this.centrifugeClient.create(this.getSocketUrl(),{token:n.connectionToken,getToken:async()=>{let{connectionToken:e}=await t({isTokenRefreshing:!0});if(!e)throw new u(`No token provided`);return e}}),i=r.newSubscription(n.subscriptionTokens[0].channel,{token:n.subscriptionTokens[0].subscriptionToken,getToken:async()=>{let{subscriptionTokens:e}=await t({isTokenRefreshing:!0});if(!e.length||!e[0].subscriptionToken)throw new u(`No token provided`);return e[0].subscriptionToken}});return i.subscribe(),new br(r,i,e)}};Z=b([o(),m(0,i(h.UserService)),m(1,i(h.UserSettingsService)),m(2,i(h.CentrifugeClient)),m(3,i(h.CentrifugeService)),m(4,i(h.Config))],Z);var xr=Z,Q=class{constructor(e){this.createConnection=e,this.eventListeners={},this.statusChangeListeners=[],this.connection=null,this.initConnectPromise=null}subscribe(e,t){this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t),this.getOrCreateConnection()}unsubscribe(e,t){let n=this.eventListeners[e];if(!n)return;let r=n.indexOf(t);r>=0&&n.splice(r,1)}unsubscribeAll(e){this.eventListeners[e]&&delete this.eventListeners[e]}async publish(e,t){await(await this.getOrCreateConnection()).publish(e,t)}addStatusChangeListener(e){this.statusChangeListeners.push(e),e(this.connection?.state===`connected`),this.getOrCreateConnection()}removeStatusChangeListener(e){let t=this.statusChangeListeners.indexOf(e);t>=0&&this.statusChangeListeners.splice(t,1)}runEventHandlers(e){let t=this.eventListeners[e.type];t&&t.forEach(t=>t(e))}serverEventHandler(e){let t=e.data;typeof t==`object`&&t&&`type`in t&&typeof t.type==`string`&&this.runEventHandlers(t)}async initCentrifuge(){let e=await this.createConnection();return e.onDisconnected(()=>{this.statusChangeListeners.forEach(e=>e(!1))}),e.onConnected(()=>{this.statusChangeListeners.forEach(e=>e(!0))}),e.onPublication(e=>{this.serverEventHandler(e)}),e}async getInitConnection(){return this.initConnectPromise||(this.initConnectPromise=this.initCentrifuge()),this.initConnectPromise}async getOrCreateConnection(){return this.connection||(this.connection=await this.getInitConnection(),this.initConnectPromise=null),this.connection.state!==`connected`&&this.connection.state!==`connecting`&&this.connection.connect(),this.connection}async disconnectIfConnected(){let e=this.connection;!e&&this.initConnectPromise&&(e=await this.initConnectPromise),e&&(e.disconnect(),e.removeAllListeners(),this.connection=null)}},$=class{constructor(e,t,n){this.chatService=e,this.widgetChatCentrifugeTokenService=t,this.serverEventsSubscriptionConnectionBuilderService=n,this.connectionList={}}getOrCreateConnectionByChatId(e){let t=this.connectionList[e];return t||(t=new Q(async()=>this.serverEventsSubscriptionConnectionBuilderService.createConnectionWithSubscription(()=>this.getChannelName(e),()=>this.getTokens(e,{}))),this.connectionList[e]=t),t}async disconnectIfConnectedByChatId(e){let t=this.connectionList[e];t&&(await t.disconnectIfConnected(),delete this.connectionList[e])}disconnectIfConnected(){Object.values(this.connectionList).forEach(e=>e?.disconnectIfConnected()),this.connectionList={}}async getTokens(e,t){let n=this.chatService.getChat(e)?.token||``;return this.widgetChatCentrifugeTokenService.getTokens(e,n,t)}getChannelName(e){return`web-widget-chat#${e}`}};$=b([o(),m(0,i(h.ChatService)),m(1,i(h.WidgetChatCentrifugeTokenService)),m(2,i(h.ServerEventsSubscriptionConnectionBuilderService))],$);var Sr=$;export{Tt as A,Mt as C,Ct as D,wt as E,ut as F,k as M,ft as N,bt as O,pt as P,Pt as S,St as T,zt as _,dr as a,It as b,lr as c,Kt as d,Wt as f,Bt as g,Vt as h,pr as i,A as j,xt as k,Jt as l,Ht as m,Q as n,fr as o,Ut as p,xr as r,ur as s,Sr as t,qt as u,Rt as v,M as w,Ft as x,Lt as y};
2//# sourceMappingURL=CWMZE_q4.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.