1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[6027],{36027(O,g,$){$.d(g,{r:()=>x});var a=$(97201),R=$(4499),T=$(35547),w=$(85802);let x=(()=>{class b extends R.d{createOutboundRule(e,c="body"){const r=e?.pbxOutboundRule;if(null==r)throw new Error("Required parameter pbxOutboundRule was null or undefined when calling createOutboundRule.");let s=this.defaultHeaders;s=this.configuration.addCredentialToHeaders("Application","Authorization",s,"Bearer ");const t=this.configuration.selectHeaderAccept(["application/json"]);void 0!==t&&(s=s.set("Accept",t));const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(s=s.set("Content-Type",d));let i="json";t&&(i=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");const{basePath:h,withCredentials:o}=this.configuration;return this.httpClient.request("post",`${h}/OutboundRules`,{body:r,responseType:i,...o?{withCredentials:o}:{},headers:s,observe:c})}createOutboundRuleQuery(e,c="body",r=!1,s){if(null==e.pbxOutboundRule)throw new Error("Required parameter pbxOutboundRule was null or undefined when calling createOutboundRule.");return"/OutboundRules"}deleteOutboundRule(e,c="body"){const r=e?.id;if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteOutboundRule.");const s=e?.ifMatch;let t=this.defaultHeaders;null!=s&&(t=t.set("If-Match",String(s))),t=this.configuration.addCredentialToHeaders("Application","Authorization",t,"Bearer ");const l=this.configuration.selectHeaderAccept(["application/json"]);void 0!==l&&(t=t.set("Accept",l));let d="json";l&&(d=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let i=`/OutboundRules(${this.configuration.encodeParam({name:"id",value:r,in:"path",style:"simple",explode:!1,dataType:"number",dataFormat:"int32"})})`;const{basePath:u,withCredentials:h}=this.configuration;return this.httpClient.request("delete",`${u}${i}`,{responseType:d,...h?{withCredentials:h}:{},headers:t,observe:c})}deleteOutboundRuleQuery(e,c="body",r=!1,s){const t=e.id;if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteOutboundRule.");return`/OutboundRules(${this.configuration.encodeParam({name:"id",value:t,in:"path",style:"simple",explode:!1,dataType:"number",dataFormat:"int32"})})`}getEmergencyOutboundRules(e,c="body"){const r=e?.$top,s=e?.$skip,t=e?.$search,l=e?.$filter,d=e?.$count,i=e?.$select,u=e?.$orderby,h=e?.$expand;let o=new a.rx(this.encoder);o=this.addToHttpParams(o,"$top",r,a.l2.Form,!1),o=this.addToHttpParams(o,"$skip",s,a.l2.Form,!1),o=this.addToHttpParams(o,"$search",t,a.l2.Form,!1),o=this.addToHttpParams(o,"$filter",l,a.l2.Form,!1),o=this.addToHttpParams(o,"$count",d,a.l2.Form,!1),o=this.addToHttpParams(o,"$select",i,a.l2.Form,!1),o=this.addToHttpParams(o,"$orderby",u,a.l2.Form,!1),o=this.addToHttpParams(o,"$expand",h,a.l2.Form,!1);let p=this.defaultHeaders;p=this.configuration.addCredentialToHeaders("Application","Authorization",p,"Bearer ");const n=this.configuration.selectHeaderAccept(["application/json"]);void 0!==n&&(p=p.set("Accept",n));let f="json";n&&(f=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");const{basePath:H,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${H}/OutboundRules/Pbx.GetEmergencyOutboundRules()`,{params:o.toHttpParams(),responseType:f,...m?{withCredentials:m}:{},headers:p,observe:c})}getEmergencyOutboundRulesQuery(e,c="body",r=!1,s){const t=e.$top,l=e.$skip,d=e.$search,i=e.$filter,u=e.$count,h=e.$select,o=e.$orderby,p=e.$expand;let n=new a.rx(this.encoder);return n=this.addToHttpParams(n,"$top",t,a.l2.Form,!1),n=this.addToHttpParams(n,"$skip",l,a.l2.Form,!1),n=this.addToHttpParams(n,"$search",d,a.l2.Form,!1),n=this.addToHttpParams(n,"$filter",i,a.l2.Form,!1),n=this.addToHttpParams(n,"$count",u,a.l2.Form,!1),n=this.addToHttpParams(n,"$select",h,a.l2.Form,!1),n=this.addToHttpParams(n,"$orderby",o,a.l2.Form,!1),n=this.addToHttpParams(n,"$expand",p,a.l2.Form,!1),"/OutboundRules/Pbx.GetEmergencyOutboundRules()?"+n.toString()}getOutboundRule(e,c="body"){const r=e?.id;if(null==r)throw new Error("Required parameter id was null or undefined when calling getOutboundRule.");const s=e?.$select,t=e?.$expand;let l=new a.rx(this.encoder);l=this.addToHttpParams(l,"$select",s,a.l2.Form,!1),l=this.addToHttpParams(l,"$expand",t,a.l2.Form,!1);let d=this.defaultHeaders;d=this.configuration.addCredentialToHeaders("Application","Authorization",d,"Bearer ");const i=this.configuration.selectHeaderAccept(["application/json"]);
1void 0!==i&&(d=d.set("Accept",i));let u="json";i&&(u=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let h=`/OutboundRules(${this.configuration.encodeParam({name:"id",value:r,in:"path",style:"simple",explode:!1,dataType:"number",dataFormat:"int32"})})`;const{basePath:o,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${o}${h}`,{params:l.toHttpParams(),responseType:u,...p?{withCredentials:p}:{},headers:d,observe:c})}getOutboundRuleQuery(e,c="body",r=!1,s){const t=e.id;if(null==t)throw new Error("Required parameter id was null or undefined when calling getOutboundRule.");const l=e.$select,d=e.$expand;let i=new a.rx(this.encoder);return i=this.addToHttpParams(i,"$select",l,a.l2.Form,!1),i=this.addToHttpParams(i,"$expand",d,a.l2.Form,!1),`/OutboundRules(${this.configuration.encodeParam({name:"id",value:t,in:"path",style:"simple",explode:!1,dataType:"number",dataFormat:"int32"})})?`+i.toString()}listOutboundRule(e,c="body"){const r=e?.$top,s=e?.$skip,t=e?.$search,l=e?.$filter,d=e?.$count,i=e?.$orderby,u=e?.$select,h=e?.$expand;let o=new a.rx(this.encoder);o=this.addToHttpParams(o,"$top",r,a.l2.Form,!1),o=this.addToHttpParams(o,"$skip",s,a.l2.Form,!1),o=this.addToHttpParams(o,"$search",t,a.l2.Form,!1),o=this.addToHttpParams(o,"$filter",l,a.l2.Form,!1),o=this.addToHttpParams(o,"$count",d,a.l2.Form,!1),o=this.addToHttpParams(o,"$orderby",i,a.l2.Form,!1),o=this.addToHttpParams(o,"$select",u,a.l2.Form,!1),o=this.addToHttpParams(o,"$expand",h,a.l2.Form,!1);let p=this.defaultHeaders;p=this.configuration.addCredentialToHeaders("Application","Authorization",p,"Bearer ");const n=this.configuration.selectHeaderAccept(["application/json"]);void 0!==n&&(p=p.set("Accept",n));let f="json";n&&(f=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");const{basePath:H,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${H}/OutboundRules`,{params:o.toHttpParams(),responseType:f,...m?{withCredentials:m}:{},headers:p,observe:c})}listOutboundRuleQuery(e,c="body",r=!1,s){const t=e.$top,l=e.$skip,d=e.$search,i=e.$filter,u=e.$count,h=e.$orderby,o=e.$select,p=e.$expand;let n=new a.rx(this.encoder);return n=this.addToHttpParams(n,"$top",t,a.l2.Form,!1),n=this.addToHttpParams(n,"$skip",l,a.l2.Form,!1),n=this.addToHttpParams(n,"$search",d,a.l2.Form,!1),n=this.addToHttpParams(n,"$filter",i,a.l2.Form,!1),n=this.addToHttpParams(n,"$count",u,a.l2.Form,!1),n=this.addToHttpParams(n,"$orderby",h,a.l2.Form,!1),n=this.addToHttpParams(n,"$select",o,a.l2.Form,!1),n=this.addToHttpParams(n,"$expand",p,a.l2.Form,!1),"/OutboundRules?"+n.toString()}moveUpDown(e,c="body"){const r=e?.outboundRulesMoveUpDownRequestBody;if(null==r)throw new Error("Required parameter outboundRulesMoveUpDownRequestBody was null or undefined when calling moveUpDown.");let s=this.defaultHeaders;s=this.configuration.addCredentialToHeaders("Application","Authorization",s,"Bearer ");const t=this.configuration.selectHeaderAccept(["application/json"]);void 0!==t&&(s=s.set("Accept",t));const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(s=s.set("Content-Type",d));let i="json";t&&(i=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");const{basePath:h,withCredentials:o}=this.configuration;return this.httpClient.request("post",`${h}/OutboundRules/Pbx.MoveUpDown`,{body:r,responseType:i,...o?{withCredentials:o}:{},headers:s,observe:c})}moveUpDownQuery(e,c="body",r=!1,s){if(null==e.outboundRulesMoveUpDownRequestBody)throw new Error("Required parameter outboundRulesMoveUpDownRequestBody was null or undefined when calling moveUpDown.");return"/OutboundRules/Pbx.MoveUpDown"}purge(e,c="body"){const r=e?.outboundRulesPurgeRequestBody;let s=this.defaultHeaders;s=this.configuration.addCredentialToHeaders("Application","Authorization",s,"Bearer ");const t=this.configuration.selectHeaderAccept(["application/json"]);void 0!==t&&(s=s.set("Accept",t));const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(s=s.set("Content-Type",d));let i="json";t&&(i=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");const{basePath:h,withCredentials:o}=this.configuration;return this.httpClient.request("post",`${h}/OutboundRules/Pbx.Purge`,{body:r,responseType:i,...o?{withCredentials:o}:{},headers:s,observe:c})}purgeQuery(e,c="body",r=!1,s){return"/OutboundRules/Pbx.Purge"}updateOutboundRule(e,c="body"){const r=e?.id;if(null==r)throw new Error("Required parameter id was null or undefined when calling updateOutboundRule.");const s=e?.pbxOutboundRule;if(null==s)throw new Error("Required parameter pbxOutboundRule was null or undefined when calling updateOutboundRule.");let t=this.defaultHeaders;t=this.configuration.addCredentialToHeaders("Application","Authorization",t,"Bearer ");const l=this.configuration.selectHeaderAccept(["application/json"]);void 0!==l&&(t=t.set("Accept",l));const i=this.configuration.selectHeaderContentType(["application/json"]);
1void 0!==i&&(t=t.set("Content-Type",i));let u="json";l&&(u=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let h=`/OutboundRules(${this.configuration.encodeParam({name:"id",value:r,in:"path",style:"simple",explode:!1,dataType:"number",dataFormat:"int32"})})`;const{basePath:o,withCredentials:p}=this.configuration;return this.httpClient.request("patch",`${o}${h}`,{body:s,responseType:u,...p?{withCredentials:p}:{},headers:t,observe:c})}updateOutboundRuleQuery(e,c="body",r=!1,s){const t=e.id;if(null==t)throw new Error("Required parameter id was null or undefined when calling updateOutboundRule.");if(null==e.pbxOutboundRule)throw new Error("Required parameter pbxOutboundRule was null or undefined when calling updateOutboundRule.");return`/OutboundRules(${this.configuration.encodeParam({name:"id",value:t,in:"path",style:"simple",explode:!1,dataType:"number",dataFormat:"int32"})})`}static \u0275fac=(()=>{let e;return function(r){return(e||(e=T.xGo(b)))(r||b)}})();static \u0275prov=w.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()}}]);
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.