1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[1848],{15707(A,P,i){i.d(P,{H:()=>n,s:()=>a});var c=i(85802),E=i(35844),h=i(92361),T=i(7673),C=i(25558),g=i(99437),M=i(96354),e=i(19037),r=i(22673);let a=(()=>{class t{crmIntegrationApiService=(0,c.WQX)(E.W);crmTemplateApiService=(0,c.WQX)(h.H);getData(){return this.crmIntegrationApiService.getCrmIntegration({$select:["Country","Name","PossibleValues","VariableChoices","PhonebookSynchronization","PhonebookPriorityOptions","EnabledForExternalCalls","EnabledForDidCalls"],$expand:["PossibleValues"]}).pipe((0,C.n)(s=>(s.Name&&s.Name!==r.zH?this.crmTemplateApiService.getCrmTemplate({name:s.Name}):(0,T.of)(void 0)).pipe((0,M.T)(d=>({crmIntegration:s,crmTemplate:d})))))}static \u0275fac=function(o){return new(o||t)};static \u0275prov=c.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const n=()=>{const t=(0,c.WQX)(a),l=(0,c.WQX)(e.s);return t.getData().pipe((0,g.W)(s=>l.handleError(s)))}},22673(A,P,i){i.d(P,{GV:()=>g,HB:()=>h,Tr:()=>t,V2:()=>l,Wz:()=>C,_:()=>M,nw:()=>s,zH:()=>T});var c=i(83204),E=i(49413),h=function(o){return o.General="General Configuration",o.CallJournaling="ReportCallEnabled",o.ChatJournaling="ReportChatEnabled",o.CreateContact="CreateContactEnabled",o}(h||{});const T="CRM.NoneCrmSelected",C="RefreshToken",g=(o,d,m,p,y=f=>f)=>(p?.forEach(f=>{m=m.replace("["+f.Key+"]",y(f.Value||""))}),m=(m=(m=m.replace("[RedirectUri]",y(o))).replace("[State]",y(d.State||""))).replace("[CodeChallenge]",y(d.CodeChallenge||"")));function M(o,d){return o.group({PossibleValues:o.control(d.PossibleValues??[],{nonNullable:!0}),Name:o.control(d.Name??"",{nonNullable:!0}),PhonebookPriorityOptions:o.control(d.PhonebookPriorityOptions??E.i.AlwaysQuery),PhonebookSynchronization:o.control(d.PhonebookSynchronization??!1),EnabledForDidCalls:o.control(d.EnabledForDidCalls,{nonNullable:!0}),EnabledForExternalCalls:o.control(d.EnabledForExternalCalls,{nonNullable:!0})})}function e(o){return"true"===o?.toLowerCase()}function r(o,d,m=!1){return o.Type===c.Y.Boolean?e(m||!d?o.Default:d?.Value):m?o.Default:d?.Value??o.Default??""}function a(o){const d=o.toString();return d[0].toUpperCase()+d.slice(1)}function n(o,d){return{Key:o,Value:"boolean"==typeof d?a(d):d}}function t(o,d,m,p){const y=[];if(o){const f=Object.entries(o.value).map(([u,b])=>n(u,b));y.push(...f)}if(d){const f=Object.entries(d.value).map(([u,b])=>n(u,b));y.push(...f)}if(m){const f=Object.entries(m.value).map(([u,b])=>n(u,b));y.push(...f)}if(p){const f=Object.entries(p.value).map(([u,b])=>n(u,b));y.push(...f)}return y}function l(o,d,m,p){const y=m.VariableChoices,f={},u={},b={},v={},x=d.Parameters?.find(_=>_.Name===h.CallJournaling)?.Default,O=d.Parameters?.find(_=>_.Name===h.ChatJournaling)?.Default,$=d.Parameters?.find(_=>_.Name===h.CreateContact)?.Default,I=e(p?x:m.VariableChoices?.find(_=>_.Key===h.CallJournaling)?.Value),D=e(p?O:m.VariableChoices?.find(_=>_.Key===h.ChatJournaling)?.Value),R=e(p?$:m.VariableChoices?.find(_=>_.Key===h.CreateContact)?.Value);return d.Parameters?.forEach(_=>{const H=y?.find(W=>W.Key===_.Name);_.Parent===h.General&&_.Name&&(f[_.Name]=o.control({value:r(_,H,p),disabled:_.Type===c.Y.OAuth})),(_.Parent===h.CallJournaling||_.Name===h.CallJournaling&&_.Parent!==h.General)&&_.Name&&(u[_.Name]=o.control({value:r(_,H,p),disabled:_.Name!==h.CallJournaling&&!I})),(_.Parent===h.ChatJournaling||_.Name===h.ChatJournaling&&_.Parent!==h.General)&&_.Name&&(b[_.Name]=o.control({value:r(_,H,p),disabled:_.Name!==h.ChatJournaling&&!D})),(_.Parent===h.CreateContact||_.Name===h.CreateContact&&_.Parent!==h.General)&&_.Name&&(v[_.Name]=o.control({value:r(_,H,p),disabled:_.Name!==h.CreateContact&&!R}))}),{generalForm:o.group(f),callControlsForm:o.group(u),chatControlsForm:o.group(b),createContactsForm:o.group(v)}}function s(o){switch(o){case"1C":return"_i18n.1CGuideLink";case"amocrm":return"_i18n.amoCrmGuideLink";case"Bitrix":return"_i18n.bitrixGuideLink";case"connectWise":return"_i18n.connectwiseGuideLink";case"Freshdesk":return"_i18n.freshdeskGuideLink";case"HubSpot":return"_i18n.hubSpotGuideLink";case"Salesforce":case"SalesforceV2":return"_i18n.salesforceGuideLink";
1case"Zendesk":case"ZendeskV2":case"ZendeskV3":return"_i18n.zendeskGuideLink";case"Zoho":return"_i18n.zohoGuideLink";case"Vtiger":return"_i18n.vTigerGuideLink";case"Microsoft Dynamics 365":return"_i18n.microsoftDynamicsGuideLink";case"Database MongoDB":return"_i18n.databaseMongoGuideLink";case"Database MySQL":return"_i18n.databaseMySqlGuideLink";case"Database MsSQL":return"_i18n.databaseMsSqlGuideLink";case"Database PostgreSQL":return"_i18n.databasePostgreSQLGuideLink";case"Jetpack CRM":return"_i18n.jetpackCrmGuideLink";case"Kommo":return"_i18n.kommoGuideLink";case"PipeDrive":return"_i18n.pipedriveCrmGuideLink";default:return""}}},48072(A,P,i){i.d(P,{L:()=>M});var c=i(85802),E=i(54381),h=i(19037),T=i(99437),C=i(96354);const M=()=>{const e=(0,c.WQX)(E.G),r=(0,c.WQX)(h.s);return function g(e){return e.getLicenseParameters().pipe((0,C.T)(r=>r.MaxSimCalls??0))}(e).pipe((0,T.W)(a=>r.handleError(a)))}},30689(A,P,i){i.d(P,{s:()=>r});var c=i(85802),E=i(16444),h=i(99437),T=i(96354),C=i(25558),g=i(96697),M=i(19037);const r=()=>{const a=(0,c.WQX)(E.gx),n=(0,c.WQX)(M.s);return function e(a){return a.myPhoneSession.pipe((0,C.n)(n=>n.systemParameters$),(0,T.T)(n=>n.MultiCompanyMode))}(a).pipe((0,g.s)(1),(0,h.W)(t=>n.handleError(t)))}},65787(A,P,i){i.d(P,{G:()=>g});var c=i(22972),E=i(40953),h=i(70299),T=i(68018),C=i(35547);let g=(()=>{class M extends c.m{token;static \u0275fac=(()=>{let r;return function(n){return(r||(r=C.xGo(M)))(n||M)}})();static \u0275cmp=C.VBU({type:M,selectors:[["app-token-integration-modal"]],inputs:{token:"token"},features:[C.Vt3],decls:4,vars:3,consts:[[3,"header"],["translate","_i18n.TokenGenerateSuccess"],["label","_i18n.APIToken",3,"conceal","data"],["translate","_i18n.TokenSaveNotice"]],template:function(a,n){1&a&&(C.j41(0,"app-modal-dialog",0),C.nrm(1,"p",1)(2,"app-input-copy-to-clipboard",2)(3,"p",3),C.k0s()),2&a&&(C.Y8G("header","_i18n.APIToken"),C.R7$(2),C.Y8G("conceal",!0)("data",n.token))},dependencies:[T.Mm,E.p,h.Y],encapsulation:2})}return M})()},72009(A,P,i){i.d(P,{z:()=>h});var c=i(35547),E=i(85802);let h=(()=>{class T{static \u0275fac=function(M){return new(M||T)};static \u0275cmp=c.VBU({type:T,selectors:[["app-chevron-down-solid-icon"],["","app-chevron-down-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]],template:function(M,e){1&M&&(E.qSk(),c.rj2(0,"svg",0),c.Hgh(1,"path",1),c.eux())},encapsulation:2})}return T})()},87018(A,P,i){i.d(P,{I:()=>f});var c=i(85802),E=i(59882),h=i(93049),T=i(49769),C=i(68018),g=i(68580),M=i(92151),e=i(35547);const r=["*"],a=u=>({exact:u}),n=(u,b)=>b.routeLink;function t(u,b){1&u&&(e.j41(0,"small",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&u&&(e.R7$(),e.SpI("(",e.bMT(2,1,b),")"))}function l(u,b){1&u&&e.nrm(0,"app-badge",12),2&u&&e.Y8G("badge",b)}function s(u,b){if(1&u&&(e.j41(0,"li",8)(1,"a",9)(2,"span",10),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nVh(5,t,3,3,"small",11),e.nVh(6,l,1,1,"app-badge",12),e.nI1(7,"async"),e.k0s()()),2&u){let v,x;const O=e.XpG().$implicit;e.R7$(),e.Y8G("routerLink",O.routeLink)("routerLinkActiveOptions",e.eq3(10,a,O.activeExact??!1)),e.BMQ("data-qa",O.routeLink),e.R7$(2),e.JRh(e.bMT(4,6,O.routeLabel)),e.R7$(2),e.vxM((v=O.remark)?5:-1,v),e.R7$(),e.vxM((x=e.bMT(7,8,O.badge$&&O.badge$))?6:-1,x)}}function o(u,b){if(1&u&&(e.nVh(0,s,8,12,"li",8),e.nI1(1,"async")),2&u){const v=b.$implicit;e.vxM(!v.visible$||e.bMT(1,1,v.visible$)?0:-1)}}function d(u,b){if(1&u&&e.Z7z(0,o,2,3,null,null,n),2&u){const v=e.XpG();e.Dyx(v.menuItems)}}function m(u,b){1&u&&e.eu8(0)}function p(u,b){if(1&u&&(e.j41(0,"ul",13),e.DNE(1,m,1,0,"ng-container",6),e.k0s()),2&u){e.XpG();const v=e.sdS(1);e.R7$(),e.Y8G("ngTemplateOutlet",v)}}function y(u,b){1&u&&e.eu8(0)}let f=(()=>{class u{route=(0,c.WQX)(E.nX);menuItems;get title(){const v=this.route.firstChild?.snapshot.data?.navTitle,x=this.route.firstChild?.firstChild?.snapshot.data?.navTitle;return v||x}static \u0275fac=function(x){return new(x||u)};static \u0275cmp=e.VBU({type:u,selectors:[["app-layout-with-sidebar"]],inputs:{menuItems:"menuItems"},ngContentSelectors:r,decls:13,vars:4,consts:[["navMenuItems",""],["role","menu"],["dropdown",""],["type","button","dropdownToggle","","data-qa","nav-menu-toggle",1,"btn","btn-plain","dropdown-toggle"],["class","dropdown-menu dropdown-menu-right",4,"dropdownMenu"],["role","menubar","data-qa","nav-menu-options"],[4,"ngTemplateOutlet"],[1,"flex-child"],["role","menuitem","data-qa","sidebar-menu-item"],["routerLinkActive","selected",1,"selectable","dropdown-item",3,"routerLink","routerLinkActiveOptions"],["data-qa","name",1,"line-clamp-2"],["data-qa","remark"],[3,"badge"],[1,"dropdown-menu","dropdown-menu-right"]],template:function(x,O){if(1&x&&(e.NAR(),e.DNE(0,d,2,0,"ng-template",null,0,e.C5r),e.j41(2,"nav",1)(3,"div",2)(4,"button",3),e.
1EFF(5),e.nI1(6,"translate"),e.k0s(),e.DNE(7,p,2,1,"ul",4),e.k0s()(),e.j41(8,"aside")(9,"ul",5),e.DNE(10,y,1,0,"ng-container",6),e.k0s()(),e.j41(11,"div",7),e.SdG(12),e.k0s()),2&x){const $=e.sdS(1);e.R7$(5),e.SpI(" ",e.bMT(6,2,O.title)," "),e.R7$(5),e.Y8G("ngTemplateOutlet",$)}},dependencies:[T.T3,h.iI,h.Wk,h.wQ,g.Kk,g.UL,g.hs,M.n,T.Jj,C.D9],styles:["@media(max-width:1399.98px){.d-xxl-down-none[_ngcontent-%COMP%], .xxl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:1199.98px){.d-xl-down-none[_ngcontent-%COMP%], .xl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:991.98px){.d-lg-down-none[_ngcontent-%COMP%], .lg-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:767.98px){.d-md-down-none[_ngcontent-%COMP%], .md-visible[_ngcontent-%COMP%]{display:none!important}}@media(max-width:575.98px){.d-sm-down-none[_ngcontent-%COMP%], .sm-visible[_ngcontent-%COMP%]{display:none!important}}[_nghost-%COMP%]{width:100%;height:100%;display:flex}[_nghost-%COMP%] aside[_ngcontent-%COMP%], [_nghost-%COMP%] nav[_ngcontent-%COMP%]{display:none}@media(max-width:767.98px){[_nghost-%COMP%]{flex-direction:column}[_nghost-%COMP%]:has(li[role=menuitem]:nth-child(2)) nav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;border-bottom:1px solid var(--border-color);height:var(--aside-folded-nav-height)}}@media(min-width:768px){[_nghost-%COMP%]:has(li[role=menuitem]:nth-child(2)) aside[_ngcontent-%COMP%]{display:block;width:150px;height:100%;flex-shrink:0;overflow-y:auto;margin:0;border-right:1px solid var(--border-color)}}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}.dropdown-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacer-s)}.dropdown-item[_ngcontent-%COMP%] app-badge[_ngcontent-%COMP%]{position:relative;top:-6px;right:calc(var(--spacer-s) - 2px)}aside[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{padding:0 var(--spacer-s);gap:var(--spacer-xs);height:var(--aside-folded-nav-height);border-bottom:1px solid var(--border-color);background:var(--current-background, var(--bg-primary))}aside[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] app-badge[_ngcontent-%COMP%]{right:calc(var(--spacer-xs) - 2px)}"],changeDetection:0})}return u})()},19158(A,P,i){i.d(P,{$:()=>T});var c=i(85802),E=i(345),h=i(35547);let T=(()=>{class C{sanitizer=(0,c.WQX)(E.up);transform(M){return M&&this.sanitizer.bypassSecurityTrustHtml(M)}static \u0275fac=function(e){return new(e||C)};static \u0275pipe=h.EJ8({name:"safeHtml",type:C,pure:!0})}return C})()},35844(A,P,i){i.d(P,{W:()=>C});var c=i(97201),E=i(4499),h=i(35547),T=i(85802);let C=(()=>{class g extends E.d{deleteCrmContacts(e="body"){let r=this.defaultHeaders;r=this.configuration.addCredentialToHeaders("Application","Authorization",r,"Bearer ");const a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(r=r.set("Accept",a));let n="json";a&&(n=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");const{basePath:l,withCredentials:s}=this.configuration;return this.httpClient.request("post",`${l}/CrmIntegration/Pbx.DeleteCrmContacts`,{responseType:n,...s?{withCredentials:s}:{},headers:r,observe:e})}deleteCrmContactsQuery(e="body",r=!1,a){return"/CrmIntegration/Pbx.DeleteCrmContacts"}getCrmIntegration(e,r="body"){const a=e?.$select,n=e?.$expand;let t=new c.rx(this.encoder);t=this.addToHttpParams(t,"$select",a,c.l2.Form,!1),t=this.addToHttpParams(t,"$expand",n,c.l2.Form,!1);let l=this.defaultHeaders;l=this.configuration.addCredentialToHeaders("Application","Authorization",l,"Bearer ");const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(l=l.set("Accept",s));let o="json";s&&(o=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");const{basePath:m,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${m}/CrmIntegration`,{params:t.toHttpParams(),responseType:o,...p?{withCredentials:p}:{},headers:l,observe:r})}getCrmIntegrationQuery(e,r="body",a=!1,n){const t=e.$select,l=e.$expand;let s=new c.rx(this.encoder);return s=this.addToHttpParams(s,"$select",t,c.l2.Form,!1),s=this.addToHttpParams(s,"$expand",l,c.l2.Form,!1),"/CrmIntegration?"+s.toString()}getCrmTemplateSource(e,r="body"){const a=e?.name;if(null==a)throw new Error("Required parameter name was null or undefined when calling getCrmTemplateSource.");let n=this.defaultHeaders;n=this.configuration.addCredentialToHeaders("Application","Authorization",n,"Bearer ");const t=this.configuration.selectHeaderAccept(["application/json"]);void 0!==t&&(n=n.set("Accept",t));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let s=`/CrmIntegration/Pbx.GetCrmTemplateSource(name=${this.configuration.encodeParam({name:"name",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:o,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${o}${s}`,{responseType:l,...d?{withCredentials:d}:{},headers:n,observe:r})}getCrmTemplateSourceQuery(e,r="body",a=!1,n){const t=e.name;if(null==t)throw new Error("Required parameter name was null or undefined when calling getCrmTemplateSource.");return`/CrmIntegration/Pbx.GetCrmTemplateSource(name=${this.configuration.encodeParam({name:"name",value:t,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`}getOAuth(e,r="body"){const a=e?.variable;if(null==a)throw new Error("Required parameter variable was null or undefined when calling getOAuth.");let n=this.defaultHeaders;n=this.configuration.addCredentialToHeaders("Application","Authorization",n,"Bearer ");const t=this.configuration.selectHeaderAccept(["application/json"]);void 0!==t&&(n=n.set("Accept",t));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let s=`/CrmIntegration/Pbx.GetOAuth(variable=${this.configuration.encodeParam({name:"variable",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:o,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${o}${s}`,{responseType:l,...d?{withCredentials:d}:{},headers:n,observe:r})}getOAuthQuery(e,r="body",a=!1,n){const t=e.variable;if(null==t)throw new Error("Required parameter variable was null or undefined when calling getOAuth.");return`/CrmIntegration/Pbx.GetOAuth(variable=${this.configuration.encodeParam({name:"variable",value:t,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`}setOAuthState(e,r="body"){const a=e?.crmIntegrationSetOAuthStateRequestBody;if(null==a)throw new Error("Required parameter crmIntegrationSetOAuthStateRequestBody was null or undefined when calling setOAuthState.");let n=this.defaultHeaders;n=this.configuration.addCredentialToHeaders("Application","Authorization",n,"Bearer ");const t=this.configuration.selectHeaderAccept(["application/json"]);void 0!==t&&(n=n.set("Accept",t));const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(n=n.set("Content-Type",s));let o="json";t&&(o=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");const{basePath:m,withCredentials:p}=this.configuration;return this.httpClient.request("post",`${m}/CrmIntegration/Pbx.SetOAuthState`,{body:a,responseType:o,...p?{withCredentials:p}:{},headers:n,observe:r})}
1setOAuthStateQuery(e,r="body",a=!1,n){if(null==e.crmIntegrationSetOAuthStateRequestBody)throw new Error("Required parameter crmIntegrationSetOAuthStateRequestBody was null or undefined when calling setOAuthState.");return"/CrmIntegration/Pbx.SetOAuthState"}test(e,r="body"){const a=e?.crmIntegrationTestRequestBody;if(null==a)throw new Error("Required parameter crmIntegrationTestRequestBody was null or undefined when calling test.");let n=this.defaultHeaders;n=this.configuration.addCredentialToHeaders("Application","Authorization",n,"Bearer ");const t=this.configuration.selectHeaderAccept(["application/json"]);void 0!==t&&(n=n.set("Accept",t));const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(n=n.set("Content-Type",s));let o="json";t&&(o=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");const{basePath:m,withCredentials:p}=this.configuration;return this.httpClient.request("post",`${m}/CrmIntegration/Pbx.Test`,{body:a,responseType:o,...p?{withCredentials:p}:{},headers:n,observe:r})}testQuery(e,r="body",a=!1,n){if(null==e.crmIntegrationTestRequestBody)throw new Error("Required parameter crmIntegrationTestRequestBody was null or undefined when calling test.");return"/CrmIntegration/Pbx.Test"}updateCrmIntegration(e,r="body"){const a=e?.pbxCrmIntegration;if(null==a)throw new Error("Required parameter pbxCrmIntegration was null or undefined when calling updateCrmIntegration.");let n=this.defaultHeaders;n=this.configuration.addCredentialToHeaders("Application","Authorization",n,"Bearer ");const t=this.configuration.selectHeaderAccept(["application/json"]);void 0!==t&&(n=n.set("Accept",t));const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(n=n.set("Content-Type",s));let o="json";t&&(o=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");const{basePath:m,withCredentials:p}=this.configuration;return this.httpClient.request("patch",`${m}/CrmIntegration`,{body:a,responseType:o,...p?{withCredentials:p}:{},headers:n,observe:r})}updateCrmIntegrationQuery(e,r="body",a=!1,n){if(null==e.pbxCrmIntegration)throw new Error("Required parameter pbxCrmIntegration was null or undefined when calling updateCrmIntegration.");return"/CrmIntegration"}static \u0275fac=(()=>{let e;return function(a){return(e||(e=h.xGo(g)))(a||g)}})();static \u0275prov=T.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})()},92361(A,P,i){i.d(P,{H:()=>C});var c=i(97201),E=i(4499),h=i(35547),T=i(85802);let C=(()=>{class g extends E.d{deleteCrmTemplate(e,r="body"){const a=e?.name;if(null==a)throw new Error("Required parameter name was null or undefined when calling deleteCrmTemplate.");const n=e?.ifMatch;let t=this.defaultHeaders;null!=n&&(t=t.set("If-Match",String(n))),t=this.configuration.addCredentialToHeaders("Application","Authorization",t,"Bearer ");const l=this.configuration.selectHeaderAccept(["application/json"]);void 0!==l&&(t=t.set("Accept",l));let s="json";l&&(s=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let o=`/CrmTemplates(${this.configuration.encodeParam({name:"name",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:d,withCredentials:m}=this.configuration;return this.httpClient.request("delete",`${d}${o}`,{responseType:s,...m?{withCredentials:m}:{},headers:t,observe:r})}deleteCrmTemplateQuery(e,r="body",a=!1,n){const t=e.name;if(null==t)throw new Error("Required parameter name was null or undefined when calling deleteCrmTemplate.");return`/CrmTemplates(${this.configuration.encodeParam({name:"name",value:t,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`}geCrmtTemplates(e,r="body"){const a=e?.$top,n=e?.$skip,t=e?.$search,l=e?.$filter,s=e?.$count,o=e?.$select,d=e?.$orderby,m=e?.$expand;let p=new c.rx(this.encoder);p=this.addToHttpParams(p,"$top",a,c.l2.Form,!1),p=this.addToHttpParams(p,"$skip",n,c.l2.Form,!1),p=this.addToHttpParams(p,"$search",t,c.l2.Form,!1),p=this.addToHttpParams(p,"$filter",l,c.l2.Form,!1),p=this.addToHttpParams(p,"$count",s,c.l2.Form,!1),p=this.addToHttpParams(p,"$select",o,c.l2.Form,!1),p=this.addToHttpParams(p,"$orderby",d,c.l2.Form,!1),p=this.addToHttpParams(p,"$expand",m,c.l2.Form,!1);let y=this.defaultHeaders;y=this.configuration.addCredentialToHeaders("Application","Authorization",y,"Bearer ");const f=this.configuration.selectHeaderAccept(["application/json"]);void 0!==f&&(y=y.set("Accept",f));let u="json";f&&(u=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");const{basePath:v,withCredentials:x}=this.configuration;return this.httpClient.request("get",`${v}/CrmTemplates/Pbx.GeCrmtTemplates()`,{params:p.toHttpParams(),responseType:u,...x?{withCredentials:x}:{},headers:y,observe:r})}geCrmtTemplatesQuery(e,r="body",a=!1,n){const t=e.$top,l=e.$skip,s=e.$search,o=e.$filter,d=e.$count,m=e.$select,p=e.$orderby,y=e.$expand;let f=new c.rx(this.encoder);
1return f=this.addToHttpParams(f,"$top",t,c.l2.Form,!1),f=this.addToHttpParams(f,"$skip",l,c.l2.Form,!1),f=this.addToHttpParams(f,"$search",s,c.l2.Form,!1),f=this.addToHttpParams(f,"$filter",o,c.l2.Form,!1),f=this.addToHttpParams(f,"$count",d,c.l2.Form,!1),f=this.addToHttpParams(f,"$select",m,c.l2.Form,!1),f=this.addToHttpParams(f,"$orderby",p,c.l2.Form,!1),f=this.addToHttpParams(f,"$expand",y,c.l2.Form,!1),"/CrmTemplates/Pbx.GeCrmtTemplates()?"+f.toString()}getCrmTemplate(e,r="body"){const a=e?.name;if(null==a)throw new Error("Required parameter name was null or undefined when calling getCrmTemplate.");const n=e?.$select,t=e?.$expand;let l=new c.rx(this.encoder);l=this.addToHttpParams(l,"$select",n,c.l2.Form,!1),l=this.addToHttpParams(l,"$expand",t,c.l2.Form,!1);let s=this.defaultHeaders;s=this.configuration.addCredentialToHeaders("Application","Authorization",s,"Bearer ");const o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(s=s.set("Accept",o));let d="json";o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`/CrmTemplates(${this.configuration.encodeParam({name:"name",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:p,withCredentials:y}=this.configuration;return this.httpClient.request("get",`${p}${m}`,{params:l.toHttpParams(),responseType:d,...y?{withCredentials:y}:{},headers:s,observe:r})}getCrmTemplateQuery(e,r="body",a=!1,n){const t=e.name;if(null==t)throw new Error("Required parameter name was null or undefined when calling getCrmTemplate.");const l=e.$select,s=e.$expand;let o=new c.rx(this.encoder);return o=this.addToHttpParams(o,"$select",l,c.l2.Form,!1),o=this.addToHttpParams(o,"$expand",s,c.l2.Form,!1),`/CrmTemplates(${this.configuration.encodeParam({name:"name",value:t,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})?`+o.toString()}static \u0275fac=(()=>{let e;return function(a){return(e||(e=h.xGo(g)))(a||g)}})();static \u0275prov=T.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})()},12421(A,P,i){i.d(P,{a:()=>C});var c=i(97201),E=i(4499),h=i(35547),T=i(85802);let C=(()=>{class g extends E.d{checkFqdnRecord(e,r="body"){const a=e?.fqdn;if(null==a)throw new Error("Required parameter fqdn was null or undefined when calling checkFqdnRecord.");let n=this.defaultHeaders;n=this.configuration.addCredentialToHeaders("Application","Authorization",n,"Bearer ");const t=this.configuration.selectHeaderAccept(["application/json"]);void 0!==t&&(n=n.set("Accept",t));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let s=`/Microsoft365TeamsIntegration/Pbx.CheckFqdnRecord(fqdn=${this.configuration.encodeParam({name:"fqdn",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:o,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${o}${s}`,{responseType:l,...d?{withCredentials:d}:{},headers:n,observe:r})}checkFqdnRecordQuery(e,r="body",a=!1,n){const t=e.fqdn;if(null==t)throw new Error("Required parameter fqdn was null or undefined when calling checkFqdnRecord.");return`/Microsoft365TeamsIntegration/Pbx.CheckFqdnRecord(fqdn=${this.configuration.encodeParam({name:"fqdn",value:t,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`}checkMapUsersScript(e="body"){let r=this.defaultHeaders;r=this.configuration.addCredentialToHeaders("Application","Authorization",r,"Bearer ");const a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(r=r.set("Accept",a));let n="json";a&&(n=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");const{basePath:l,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${l}/Microsoft365TeamsIntegration/Pbx.CheckMapUsersScript()`,{responseType:n,...s?{withCredentials:s}:{},headers:r,observe:e})}checkMapUsersScriptQuery(e="body",r=!1,a){return"/Microsoft365TeamsIntegration/Pbx.CheckMapUsersScript()"}getDialPlanScript(e="body"){let r=this.defaultHeaders;r=this.configuration.addCredentialToHeaders("Application","Authorization",r,"Bearer ");const a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(r=r.set("Accept",a));let n="json";a&&(n=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");const{basePath:l,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${l}/Microsoft365TeamsIntegration/Pbx.GetDialPlanScript()`,{responseType:n,...s?{withCredentials:s}:{},headers:r,observe:e})}getDialPlanScriptQuery(e="body",r=!1,a){return"/Microsoft365TeamsIntegration/Pbx.GetDialPlanScript()"}getMapUsersScript(e="body"){let r=this.defaultHeaders;r=this.configuration.addCredentialToHeaders("Application","Authorization",r,"Bearer ");const a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(r=r.set("Accept",a));let n="json";a&&(n=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");const{basePath:l,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${l}/Microsoft365TeamsIntegration/Pbx.GetMapUsersScript()`,{responseType:n,...s?{withCredentials:s}:{},headers:r,observe:e})}getMapUsersScriptQuery(e="body",r=!1,a){return"/Microsoft365TeamsIntegration/Pbx.GetMapUsersScript()"}getMicrosoft365TeamsIntegration(e,r="body"){const a=e?.$select,n=e?.$expand;let t=new c.rx(this.encoder);t=this.addToHttpParams(t,"$select",a,c.l2.Form,!1),t=this.addToHttpParams(t,"$expand",n,c.l2.Form,!1);let l=this.defaultHeaders;l=this.configuration.addCredentialToHeaders("Application","Authorization",l,"Bearer ");const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(l=l.set("Accept",s));let o="json";s&&(o=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");const{basePath:m,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${m}/Microsoft365TeamsIntegration`,{params:t.toHttpParams(),responseType:o,...p?{withCredentials:p}:{},headers:l,observe:r})}getMicrosoft365TeamsIntegrationQuery(e,r="body",a=!1,n){const t=e.$select,l=e.$expand;let s=new c.rx(this.encoder);return s=this.addToHttpParams(s,"$select",t,c.l2.Form,!1),s=this.addToHttpParams(s,"$expand",l,c.l2.Form,!1),"/Microsoft365TeamsIntegration?"+s.toString()}updateMicrosoft365TeamsIntegration(e,r="body"){const a=e?.pbxMicrosoft365TeamsIntegration;let n=this.defaultHeaders;n=this.configuration.addCredentialToHeaders("Application","Authorization",n,"Bearer ");const t=this.configuration.selectHeaderAccept(["application/json"]);void 0!==t&&(n=n.set("Accept",t));const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(n=n.set("Content-Type",s));let o="json";t&&(o=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");const{basePath:m,withCredentials:p}=this.configuration;return this.httpClient.request("patch",`${m}/Microsoft365TeamsIntegration`,{body:a,responseType:o,...p?{withCredentials:p}:{},headers:n,observe:r})}updateMicrosoft365TeamsIntegrationQuery(e,r="body",a=!1,n){return"/Microsoft365TeamsIntegration"}static \u0275fac=(()=>{let e;return function(a){return(e||(e=h.xGo(g)))(a||g)}})();static \u0275prov=T.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})()},83204(A,P,i){i.d(P,{Y:()=>c});const c={String:"String",Integer:"Integer",Double:"Double",Boolean:"Boolean",DateTime:"DateTime",Password:"Password",OAuth:"OAuth",List:"List"}},49413(A,P,i){i.d(P,{i:()=>c});
1const c={NotQueryIfInPhonebookFound:"NotQueryIfInPhonebookFound",AlwaysQuery:"AlwaysQuery"}}}]);
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.