PageSourceSearch

https://legistel.es/3cx.myphone.worker.ca07e120faeedd44.js

js legistel.es collected 2026-10-06 22:15:54 UTC 480,593 bytes, 1 lines download raw bytes

vendor: 5,261 bytes, line 1
1(()=>{var fe={74714(F){"use strict";F.exports=function g(G,h){for(var T=new Array(arguments.length-1),R=0,k=2,y=!0;k<arguments.length;)T[R++]=arguments[k++];return new Promise(function(p,M){T[R]=function(v){if(y)if(y=!1,v)M(v);else{for(var w=new Array(arguments.length-1),O=0;O<w.length;)w[O++]=arguments[O];p.apply(null,w)}};try{G.apply(h||null,T)}catch(C){y&&(y=!1,M(C))}})}},87530(F,g){"use strict";var G=g;G.length=function(r){var p=r.length;if(!p)return 0;for(var M=0;--p%4>1&&"="===r.charAt(p);)++M;return Math.ceil(3*r.length)/4-M};for(var h=new Array(64),T=new Array(123),R=0;R<64;)T[h[R]=R<26?R+65:R<52?R+71:R<62?R-4:R-59|43]=R++;G.encode=function(r,p,M){for(var b,C=null,v=[],w=0,O=0;p<M;){var N=r[p++];switch(O){case 0:v[w++]=h[N>>2],b=(3&N)<<4,O=1;break;case 1:v[w++]=h[b|N>>4],b=(15&N)<<2,O=2;break;case 2:v[w++]=h[b|N>>6],v[w++]=h[63&N],O=0}w>8191&&((C||(C=[])).push(String.fromCharCode.apply(String,v)),w=0)}return O&&(v[w++]=h[b],v[w++]=61,1===O&&(v[w++]=61)),C?(w&&C.push(String.fromCharCode.apply(String,v.slice(0,w))),C.join("")):String.fromCharCode.apply(String,v.slice(0,w))};var k="invalid encoding";G.decode=function(r,p,M){for(var w,C=M,v=0,O=0;O<r.length;){var b=r.charCodeAt(O++);if(61===b&&v>1)break;if(void 0===(b=T[b]))throw Error(k);switch(v){case 0:w=b,v=1;break;case 1:p[M++]=w<<2|(48&b)>>4,w=b,v=2;break;case 2:p[M++]=(15&w)<<4|(60&b)>>2,w=b,v=3;break;case 3:p[M++]=(3&w)<<6|b,v=0}}if(1===v)throw Error(k);return M-C},G.test=function(r){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(r)}},13911(F){"use strict";function g(){this._listeners={}}F.exports=g,g.prototype.on=function(h,T,R){return(this._listeners[h]||(this._listeners[h]=[])).push({fn:T,ctx:R||this}),this},g.prototype.off=function(h,T){if(void 0===h)this._listeners={};else if(void 0===T)this._listeners[h]=[];else for(var R=this._listeners[h],k=0;k<R.length;)R[k].fn===T?R.splice(k,1):++k;return this},g.prototype.emit=function(h){var T=this._listeners[h];if(T){for(var R=[],k=1;k<arguments.length;)R.push(arguments[k++]);for(k=0;k<T.length;)T[k].fn.apply(T[k++].ctx,R)}return this}},61353(F){"use strict";function g(k){return typeof Float32Array<"u"?function(){var y=new Float32Array([-0]),r=new Uint8Array(y.buffer),p=128===r[3];function M(O,b,N){y[0]=O,b[N]=r[0],b[N+1]=r[1],b[N+2]=r[2],b[N+3]=r[3]}function C(O,b,N){y[0]=O,b[N]=r[3],b[N+1]=r[2],b[N+2]=r[1],b[N+3]=r[0]}function v(O,b){return r[0]=O[b],r[1]=O[b+1],r[2]=O[b+2],r[3]=O[b+3],y[0]}function w(O,b){return r[3]=O[b],r[2]=O[b+1],r[1]=O[b+2],r[0]=O[b+3],y[0]}k.writeFloatLE=p?M:C,k.writeFloatBE=p?C:M,k.readFloatLE=p?v:w,k.readFloatBE=p?w:v}():function(){function y(p,M,C,v){var w=M<0?1:0;if(w&&(M=-M),0===M)p(1/M>0?0:2147483648,C,v);else if(isNaN(M))p(2143289344,C,v);else if(M>34028234663852886e22)p((w<<31|2139095040)>>>0,C,v);else if(M<11754943508222875e-54)p((w<<31|Math.round(M/1401298464324817e-60))>>>0,C,v);else{var O=Math.floor(Math.log(M)/Math.LN2);p((w<<31|O+127<<23|8388607&Math.round(M*Math.pow(2,-O)*8388608))>>>0,C,v)}}function r(p,M,C){var v=p(M,C),w=2*(v>>31)+1,O=v>>>23&255,b=8388607&v;return 255===O?b?NaN:w*(1/0):0===O?1401298464324817e-60*w*b:w*Math.pow(2,O-150)*(b+8388608)}k.writeFloatLE=y.bind(null,G),k.writeFloatBE=y.bind(null,h),k.readFloatLE=r.bind(null,T),k.readFloatBE=r.bind(null,R)}(),typeof Float64Array<"u"?function(){var y=new Float64Array([-0]),r=new Uint8Array(y.buffer),p=128===r[7];function M(O,b,N){y[0]=O,b[N]=r[0],b[N+1]=r[1],b[N+2]=r[2],b[N+3]=r[3],b[N+4]=r[4],b[N+5]=r[5],b[N+6]=r[6],b[N+7]=r[7]}function C(O,b,N){y[0]=O,b[N]=r[7],b[N+1]=r[6],b[N+2]=r[5],b[N+3]=r[4],b[N+4]=r[3],b[N+5]=r[2],b[N+6]=r[1],b[N+7]=r[0]}function v(O,b){return r[0]=O[b],r[1]=O[b+1],r[2]=O[b+2],r[3]=O[b+3],r[4]=O[b+4],r[5]=O[b+5],r[6]=O[b+6],r[7]=O[b+7],y[0]}function w(O,b){return r[7]=O[b],r[6]=O[b+1],r[5]=O[b+2],r[4]=O[b+3],r[3]=O[b+4],r[2]=O[b+5],r[1]=O[b+6],r[0]=O[b+7],y[0]}k.writeDoubleLE=p?M:C,k.writeDoubleBE=p?C:M,k.readDoubleLE=p?v:w,k.readDoubleBE=p?w:v}():function(){function y(p,M,C,v,w,O){var b=v<0?1:0;if(b&&(v=-v),0===v)p(0,w,O+M),p(1/v>0?0:2147483648,w,O+C);else if(isNaN(v))p(0,w,O+M),p(2146959360,w,O+C);else if(v>17976931348623157e292)p(0,w,O+M),p((b<<31|2146435072)>>>0,w,O+C);else{var N;if(v<22250738585072014e-324)p((N=v/5e-324)>>>0,w,O+M),p((b<<31|N/4294967296)>>>0,w,O+C);else{var Q=Math.floor(Math.log(v)/Math.LN2);1024===Q&&(Q=1023),p(4503599627370496*(N=v*Math.pow(2,-Q))>>>0,w,O+M),p((b<<31|Q+1023<<20|1048576*N&1048575)>>>0,w,O+C)}}}function r(p,M,C,v,w){var O=p(v,w+M),b=p(v,w+C),N=2*(b>>31)+1,Q=b>>>20&2047,J=4294967296*(1048575&b)+O;return 2047===Q?J?NaN:N*(1/0):0===Q?5e-324*N*J:N*Math.pow(2,Q-1075)*(J+4503599627370496)}k.writeDoubleLE=y.bind(null,G,0,4),k.writeDoubleBE=y.bind(null,h,4,0),k.readDoubleLE=r.bind(null,T,0,4),k.readDoubleBE=r.bind(null,R,4,0)}(),k}function G(k,y,r){y[r]=255&k,y[r+1]=k>>>8&255,y[r+2]=k>>>16&255,y[r+3]=k>>>24}function h(k,y,r){y[r]=k>>>24,y[r+1]=k>>>16&255,y[r+2]=k>>>8&255,y[r+3]=255&k}function T(k,y){return(k[y]|k[y+1]<<8|k[y+2]<<16|k[y+3]<<24)>>>0}function R(k,y){return(k[y]<<24|k[y+1]<<16|k[y+2]<<8|k[y+3])>>>0}F.exports=g(g)},11059(F){"use strict";F.exports=function g(G,h,T){var R=T||8192,k=R>>>1,y=null,r=R;return function(M){if(M<1||M>k)return G(M);r+M>R&&(y=G(R),r=0);
1var C=h.call(y,r,r+=M);return 7&r&&(r=1+(7|r)),C}}},60338(F,g){"use strict";var G=g;G.length=function(R){for(var k=0,y=0,r=0;r<R.length;++r)(y=R.charCodeAt(r))<128?k+=1:y<2048?k+=2:55296==(64512&y)&&56320==(64512&R.charCodeAt(r+1))?(++r,k+=4):k+=3;return k},G.read=function(R,k,y){if(y-k<1)return"";for(var r="",p=k;p<y;){var M=R[p++];if(M<=127)r+=String.fromCharCode(M);else if(M>=192&&M<224){var C=(31&M)<<6|63&R[p++];r+=C>=128?String.fromCharCode(C):"\ufffd"}else if(M>=224&&M<240){var v=(15&M)<<12|(63&R[p++])<<6|63&R[p++];r+=v>=2048?String.fromCharCode(v):"\ufffd"}else if(M>=240){var w=(7&M)<<18|(63&R[p++])<<12|(63&R[p++])<<6|63&R[p++];w<65536||w>1114111?r+="\ufffd":(w-=65536,r+=String.fromCharCode(55296+(w>>10)),r+=String.fromCharCode(56320+(1023&w)))}}return r},G.write=function(R,k,y){for(var p,M,r=y,C=0;C<R.length;++C)(p=R.charCodeAt(C))<128?k[y++]=p:p<2048?(k[y++]=p>>6|192,k[y++]=63&p|128):55296==(64512&p)&&56320==(64512&(M=R.charCodeAt(C+1)))?(++C,k[y++]=(p=65536+((1023&p)<<10)+(1023&M))>>18|240,k[y++]=p>>12&63|128,k[y++]=p>>6&63|128,k[y++]=63&p|128):(k[y++]=p>>12|224,k[y++]=p>>6&63|128,k[y++]=63&p|128);return y-r}},56443(F,g,G){"use strict";F.exports=G(36055)},96370(F,g,G){"use strict";F.exports=function h(T){try{var R=G(12300)(T);return R&&(R.length||Object.keys(R).length)?R:null}catch{return null}}},36055(F,g,G){"use strict";var h=g;function T(){h.util._configure(),h.Writer._configure(h.BufferWriter),h.Reader._configure(h.BufferReader)}h.build="minimal",h.Writer=G(86874),h.BufferWriter=G(42523),h.Reader=G(95082),h.BufferReader=G(58187),h.util=G(67829),h.rpc=G(36222),h.roots=G(85608),h.configure=T,T()},95082(F,g,G){"use strict";F.exports=r;var T,h=G(67829),R=h.LongBits,k=h.utf8;function y(O,b){return RangeError("index out of range: "+O.pos+" + "+(b||1)+" > "+O.len)}function r(O){this.buf=O,this.pos=0,this.len=O.length}var p=typeof Uint8Array<"u"?function(b){if(b instanceof Uint8Array||Array.isArray(b))return new r(b);throw Error("illegal buffer")}:function(b){if(Array.isArray(b))return new r(b);throw Error("illegal buffer")},M=function(){return h.Buffer?function(N){return(r.create=function(J){return h.Buffer.isBuffer(J)?new T(J):p(J)})(N)}:p};function C(){var O=new R(0,0),b=0;if(!(this.len-this.pos>4)){for(;b<3;++b){if(this.pos>=this.len)throw y(this);if(O.lo=(O.lo|(127&this.buf[this.pos])<<7*b)>>>0,this.buf[this.pos++]<128)return O}return O.lo=(O.lo|(127&this.buf[this.pos++])<<7*b)>>>0,O}for(;b<4;++b)if(O.lo=(O.lo|(127&this.buf[this.pos])<<7*b)>>>0,this.buf[this.pos++]<128)return O;if(O.lo=(O.lo|(127&this.buf[this.pos])<<28)>>>0,O.hi=(O.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return O;if(b=0,this.len-this.pos>4){for(;b<5;++b)if(O.hi=(O.hi|(127&this.buf[this.pos])<<7*b+3)>>>0,this.buf[this.pos++]<128)return O}else for(;b<5;++b){if(this.pos>=this.len)throw y(this);if(O.hi=(O.hi|(127&this.buf[this.pos])<<7*b+3)>>>0,this.buf[this.pos++]<128)return O}throw Error("invalid varint encoding")}function v(O,b){return(O[b-4]|O[b-3]<<8|O[b-2]<<16|O[b-1]<<24)>>>0}function w(){if(this.pos+8>this.len)throw y(this,8);return new R(v(this.buf,this.pos+=4),v(this.buf,this.pos+=4))}r.create=M(),r.prototype._slice=h.Array.prototype.subarray||h.Array.prototype.slice,r.prototype.uint32=function(){var b=4294967295;return function(){if(b=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(b=(b|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(b=(b|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(b=(b|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(b=(b|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return b;if((this.pos+=5)>this.len)throw this.pos=this.len,y(this,10);return b}}(),r.prototype.int32=function(){return 0|this.uint32()},r.prototype.sint32=function(){var b=this.uint32();return b>>>1^-(1&b)},r.prototype.bool=function(){return 0!==this.uint32()},r.prototype.fixed32=function(){if(this.pos+4>this.len)throw y(this,4);return v(this.buf,this.pos+=4)},r.prototype.sfixed32=function(){if(this.pos+4>this.len)throw y(this,4);return 0|v(this.buf,this.pos+=4)},r.prototype.float=function(){if(this.pos+4>this.len)throw y(this,4);var b=h.float.readFloatLE(this.buf,this.pos);return this.pos+=4,b},r.prototype.double=function(){if(this.pos+8>this.len)throw y(this,4);var b=h.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,b},r.prototype.bytes=function(){var b=this.uint32(),N=this.pos,Q=this.pos+b;if(Q>this.len)throw y(this,b);
1if(this.pos+=b,Array.isArray(this.buf))return this.buf.slice(N,Q);if(N===Q){var J=h.Buffer;return J?J.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,N,Q)},r.prototype.string=function(){var b=this.bytes();return k.read(b,0,b.length)},r.prototype.skip=function(b){if("number"==typeof b){if(this.pos+b>this.len)throw y(this,b);this.pos+=b}else do{if(this.pos>=this.len)throw y(this)}while(128&this.buf[this.pos++]);return this},r.recursionLimit=h.recursionLimit,r.prototype.skipType=function(O,b){if(void 0===b&&(b=0),b>r.recursionLimit)throw Error("maximum nesting depth exceeded");switch(O){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(O=7&this.uint32());)this.skipType(O,b+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+O+" at offset "+this.pos)}return this},r._configure=function(O){T=O,r.create=M(),T._configure();var b=h.Long?"toLong":"toNumber";h.merge(r.prototype,{int64:function(){return C.call(this)[b](!1)},uint64:function(){return C.call(this)[b](!0)},sint64:function(){return C.call(this).zzDecode()[b](!1)},fixed64:function(){return w.call(this)[b](!0)},sfixed64:function(){return w.call(this)[b](!1)}})}},58187(F,g,G){"use strict";F.exports=R;var h=G(95082);(R.prototype=Object.create(h.prototype)).constructor=R;var T=G(67829);function R(k){h.call(this,k)}R._configure=function(){T.Buffer&&(R.prototype._slice=T.Buffer.prototype.slice)},R.prototype.string=function(){var y=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+y,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+y,this.len))},R._configure()},85608(F){"use strict";F.exports={}},36222(F,g,G){"use strict";g.Service=G(50574)},50574(F,g,G){"use strict";F.exports=T;var h=G(67829);function T(R,k,y){if("function"!=typeof R)throw TypeError("rpcImpl must be a function");h.EventEmitter.call(this),this.rpcImpl=R,this.requestDelimited=!!k,this.responseDelimited=!!y}(T.prototype=Object.create(h.EventEmitter.prototype)).constructor=T,T.prototype.rpcCall=function R(k,y,r,p,M){if(!p)throw TypeError("request must be specified");var C=this;if(!M)return h.asPromise(R,C,k,y,r,p);if(C.rpcImpl)try{return C.rpcImpl(k,y[C.requestDelimited?"encodeDelimited":"encode"](p).finish(),function(w,O){if(w)return C.emit("error",w,k),M(w);if(null!==O){if(!(O instanceof r))try{O=r[C.responseDelimited?"decodeDelimited":"decode"](O)}catch(b){return C.emit("error",b,k),M(b)}return C.emit("data",O,k),M(null,O)}C.end(!0)})}catch(v){return C.emit("error",v,k),void setTimeout(function(){M(v)},0)}else setTimeout(function(){M(Error("already ended"))},0)},T.prototype.end=function(k){return this.rpcImpl&&(k||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},34446(F,g,G){"use strict";F.exports=T;var h=G(67829);function T(r,p){this.lo=r>>>0,this.hi=p>>>0}var R=T.zero=new T(0,0);R.toNumber=function(){return 0},R.zzEncode=R.zzDecode=function(){return this},R.length=function(){return 1};var k=T.zeroHash="\0\0\0\0\0\0\0\0";T.fromNumber=function(p){if(0===p)return R;var M=p<0;M&&(p=-p);var C=p>>>0,v=(p-C)/4294967296>>>0;return M&&(v=~v>>>0,C=~C>>>0,++C>4294967295&&(C=0,++v>4294967295&&(v=0))),new T(C,v)},T.from=function(p){if("number"==typeof p)return T.fromNumber(p);if(h.isString(p)){if(!h.Long)return T.fromNumber(parseInt(p,10));p=h.Long.fromString(p)}return p.low||p.high?new T(p.low>>>0,p.high>>>0):R},T.prototype.toNumber=function(p){if(!p&&this.hi>>>31){var M=1+~this.lo>>>0,C=~this.hi>>>0;return M||(C=C+1>>>0),-(M+4294967296*C)}return this.lo+4294967296*this.hi},T.prototype.toLong=function(p){return h.Long?new h.Long(0|this.lo,0|this.hi,!!p):{low:0|this.lo,high:0|this.hi,unsigned:!!p}};var y=String.prototype.charCodeAt;T.fromHash=function(p){return p===k?R:new T((y.call(p,0)|y.call(p,1)<<8|y.call(p,2)<<16|y.call(p,3)<<24)>>>0,(y.call(p,4)|y.call(p,5)<<8|y.call(p,6)<<16|y.call(p,7)<<24)>>>0)},T.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},T.prototype.zzEncode=function(){var p=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^p)>>>0,this.lo=(this.lo<<1^p)>>>0,this},T.prototype.zzDecode=function(){var p=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^p)>>>0,this.hi=(this.hi>>>1^p)>>>0,this},T.prototype.length=function(){var p=this.lo,M=(this.lo>>>28|this.hi<<4)>>>0,C=this.hi>>>24;return 0===C?0===M?p<16384?p<128?1:2:p<2097152?3:4:M<16384?M<128?5:6:M<2097152?7:8:C<128?9:10}},67829(F,g,G){"use strict";var h=g;function T(k,y,r){for(var p=Object.keys(y),M=0;M<p.length;++M)(void 0===k[p[M]]||!r)&&"__proto__"!==p[M]&&(k[p[M]]=y[p[M]]);return k}function R(k){function y(r,p){if(!(this instanceof y))return new y(r,p);Object.defineProperty(this,"message",{get:function(){return r}}),Error.captureStackTrace?Error.captureStackTrace(this,y):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),p&&T(this,p)}return y.prototype=Object.create(Error.prototype,{constructor:{value:y,writable:!0,enumerable:!1,
1configurable:!0},name:{get:function(){return k},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),y}h.asPromise=G(74714),h.base64=G(87530),h.EventEmitter=G(13911),h.float=G(61353),h.inquire=G(96370),h.utf8=G(60338),h.pool=G(11059),h.LongBits=G(34446),h.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node),h.global=h.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||this,h.emptyArray=Object.freeze?Object.freeze([]):[],h.emptyObject=Object.freeze?Object.freeze({}):{},h.isInteger=Number.isInteger||function(y){return"number"==typeof y&&isFinite(y)&&Math.floor(y)===y},h.isString=function(y){return"string"==typeof y||y instanceof String},h.isObject=function(y){return y&&"object"==typeof y},h.isset=h.isSet=function(y,r){var p=y[r];return!(null==p||!y.hasOwnProperty(r))&&("object"!=typeof p||(Array.isArray(p)?p.length:Object.keys(p).length)>0)},h.Buffer=function(){try{var k=h.inquire("buffer").Buffer;return k.prototype.utf8Write?k:null}catch{return null}}(),h._Buffer_from=null,h._Buffer_allocUnsafe=null,h.newBuffer=function(y){return"number"==typeof y?h.Buffer?h._Buffer_allocUnsafe(y):new h.Array(y):h.Buffer?h._Buffer_from(y):typeof Uint8Array>"u"?y:new Uint8Array(y)},h.Array=typeof Uint8Array<"u"?Uint8Array:Array,h.Long=h.global.dcodeIO&&h.global.dcodeIO.Long||h.global.Long||h.inquire("long"),h.key2Re=/^true|false|0|1$/,h.key32Re=/^-?(?:0|[1-9][0-9]*)$/,h.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,h.longToHash=function(y){return y?h.LongBits.from(y).toHash():h.LongBits.zeroHash},h.longFromHash=function(y,r){var p=h.LongBits.fromHash(y);return h.Long?h.Long.fromBits(p.lo,p.hi,r):p.toNumber(!!r)},h.merge=T,h.recursionLimit=100,h.makeProp=function(y,r){Object.defineProperty(y,r,{enumerable:!0,configurable:!0,writable:!0})},h.lcFirst=function(y){return y.charAt(0).toLowerCase()+y.substring(1)},h.newError=R,h.ProtocolError=R("ProtocolError"),h.oneOfGetter=function(y){for(var r={},p=0;p<y.length;++p)r[y[p]]=1;return function(){for(var M=Object.keys(this),C=M.length-1;C>-1;--C)if(1===r[M[C]]&&null!=this[M[C]])return M[C]}},h.oneOfSetter=function(y){return function(r){for(var p=0;p<y.length;++p)y[p]!==r&&delete this[y[p]]}},h.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},h._configure=function(){var k=h.Buffer;k?(h._Buffer_from=k.from!==Uint8Array.from&&k.from||function(r,p){return new k(r,p)},h._Buffer_allocUnsafe=k.allocUnsafe||function(r){return new k(r)}):h._Buffer_from=h._Buffer_allocUnsafe=null}},86874(F,g,G){"use strict";F.exports=C;var T,h=G(67829),R=h.LongBits,k=h.base64,y=h.utf8;function r(D,S,E){this.fn=D,this.len=S,this.next=void 0,this.val=E}function p(){}function M(D){this.head=D.head,this.tail=D.tail,this.len=D.len,this.next=D.states}function C(){this.len=0,this.head=new r(p,0,0),this.tail=this.head,this.states=null}var v=function(){return h.Buffer?function(){return(C.create=function(){return new T})()}:function(){return new C}};function w(D,S,E){S[E]=255&D}function b(D,S){this.len=D,this.next=void 0,this.val=S}function N(D,S,E){for(;D.hi;)S[E++]=127&D.lo|128,D.lo=(D.lo>>>7|D.hi<<25)>>>0,D.hi>>>=7;for(;D.lo>127;)S[E++]=127&D.lo|128,D.lo=D.lo>>>7;S[E++]=D.lo}function Q(D,S,E){S[E]=255&D,S[E+1]=D>>>8&255,S[E+2]=D>>>16&255,S[E+3]=D>>>24}C.create=v(),C.alloc=function(S){return new h.Array(S)},h.Array!==Array&&(C.alloc=h.pool(C.alloc,h.Array.prototype.subarray)),C.prototype._push=function(S,E,z){return this.tail=this.tail.next=new r(S,E,z),this.len+=E,this},(b.prototype=Object.create(r.prototype)).fn=function O(D,S,E){for(;D>127;)S[E++]=127&D|128,D>>>=7;S[E]=D},C.prototype.uint32=function(S){return this.len+=(this.tail=this.tail.next=new b((S>>>=0)<128?1:S<16384?2:S<2097152?3:S<268435456?4:5,S)).len,this},C.prototype.int32=function(S){return S<0?this._push(N,10,R.fromNumber(S)):this.uint32(S)},C.prototype.sint32=function(S){return this.uint32((S<<1^S>>31)>>>0)},C.prototype.int64=C.prototype.uint64=function(S){var E=R.from(S);return this._push(N,E.length(),E)},C.prototype.sint64=function(S){var E=R.from(S).zzEncode();return this._push(N,E.length(),E)},C.prototype.bool=function(S){return this._push(w,1,S?1:0)},C.prototype.sfixed32=C.prototype.fixed32=function(S){return this._push(Q,4,S>>>0)},C.prototype.sfixed64=C.prototype.fixed64=function(S){var E=R.from(S);return this._push(Q,4,E.lo)._push(Q,4,E.hi)},C.prototype.float=function(S){return this._push(h.float.writeFloatLE,4,S)},C.prototype.double=function(S){return this._push(h.float.writeDoubleLE,8,S)};var J=h.Array.prototype.set?function(S,E,z){E.set(S,z)}:function(S,E,z){for(var lt=0;lt<S.length;++lt)E[z+lt]=S[lt]};C.prototype.bytes=function(S){var E=S.length>>>0;if(!E)return this._push(w,1,0);if(h.isString(S)){var z=C.alloc(E=k.length(S));k.decode(S,z,0),S=z}return this.uint32(E)._push(J,E,S)},C.prototype.string=function(S){var E=y.length(S);return E?this.uint32(E)._push(y.write,E,S):this._push(w,1,0)},C.prototype.fork=function(){return this.states=new M(this),this.head=this.tail=new r(p,0,0),this.len=0,this},C.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new r(p,0,0),this.len=0),this},C.prototype.ldelim=function(){var S=this.head,E=this.tail,z=this.len;return this.reset().uint32(z),z&&(this.tail.next=S.next,this.tail=E,this.len+=z),this},C.prototype.finish=function(){for(var S=this.head.next,E=this.constructor.alloc(this.len),z=0;S;)S.fn(S.val,E,z),z+=S.len,S=S.next;return E},C._configure=function(D){T=D,C.create=v(),T._configure()}},42523(F,g,G){"use strict";F.exports=R;var h=G(86874);(R.prototype=Object.create(h.prototype)).constructor=R;var T=G(67829);function R(){h.call(this)}function k(y,r,p){y.length<40?T.utf8.write(y,r,p):r.utf8Write?r.utf8Write(y,p):r.write(y,p)}R._configure=function(){R.alloc=T._Buffer_allocUnsafe,R.writeBytesBuffer=T.Buffer&&T.Buffer.prototype instanceof Uint8Array&&"set"===T.Buffer.prototype.set.name?function(r,p,M){p.set(r,M)}:function(r,p,M){if(r.copy)r.copy(p,M,0,r.length);else for(var C=0;C<r.length;)p[M++]=r[C++]}},R.prototype.bytes=function(r){T.isString(r)&&(r=T._Buffer_from(r,"base64"));var p=r.length>>>0;return this.uint32(p),p&&this._push(R.writeBytesBuffer,p,r),this},R.prototype.string=function(r){var p=T.Buffer.byteLength(r);return this.uint32(p),p&&this._push(k,p,r),this},R._configure()},12300(F){function g(G){var h=new Error("Cannot find module '"+G+"'");throw h.code="MODULE_NOT_FOUND",h}g.keys=()=>[],g.resolve=g,g.id=12300,F.exports=g}},sn={};function jt(F){var g=sn[F];if(void 0!==g)return g.exports;var G=sn[F]={exports:{}};
1return fe[F].call(G.exports,G,G.exports,jt),G.exports}jt.o=(F,g)=>Object.prototype.hasOwnProperty.call(F,g),(()=>{"use strict";function F(i,e,t,n,u,a,o){try{var c=i[a](o),d=c.value}catch(P){return void t(P)}c.done?e(d):Promise.resolve(d).then(n,u)}function g(i){return function(){var e=this,t=arguments;return new Promise(function(n,u){var a=i.apply(e,t);function o(d){F(a,n,u,o,c,"next",d)}function c(d){F(a,n,u,o,c,"throw",d)}o(void 0)})}}const h="http://localhost".replace(/\/+$/,"");class T{configuration;constructor(e={}){this.configuration=e}set config(e){this.configuration=e}get basePath(){return null!=this.configuration.basePath?this.configuration.basePath:h}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||w}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return"function"==typeof e?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return"function"==typeof e?e:g(function*(){return e})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const R=new T;class k{configuration;static jsonRegex=new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$","i");middleware;constructor(e=R){this.configuration=e,this.middleware=e.middleware}withMiddleware(...e){const t=this.clone();return t.middleware=t.middleware.concat(...e),t}withPreMiddleware(...e){const t=e.map(n=>({pre:n}));return this.withMiddleware(...t)}withPostMiddleware(...e){const t=e.map(n=>({post:n}));return this.withMiddleware(...t)}isJsonMime(e){return!!e&&k.jsonRegex.test(e)}request(e,t){var n=this;return g(function*(){const{url:u,init:a}=yield n.createFetchParams(e,t),o=yield n.fetchApi(u,a);if(o&&o.status>=200&&o.status<300)return o;throw new p(o,"Response returned an error code")})()}createFetchParams(e,t){var n=this;return g(function*(){let u=n.configuration.basePath+e.path;void 0!==e.query&&0!==Object.keys(e.query).length&&(u+="?"+n.configuration.queryParamsStringify(e.query));const a=Object.assign({},n.configuration.headers,e.headers);Object.keys(a).forEach(A=>void 0===a[A]?delete a[A]:{});const o="function"==typeof t?t:g(function*(){return t}),c={method:e.method,headers:a,body:e.body,credentials:n.configuration.credentials},d={...c,...yield o({init:c,context:e})};let P;return P=function r(i){return typeof FormData<"u"&&i instanceof FormData}(d.body)||d.body instanceof URLSearchParams||function y(i){return typeof Blob<"u"&&i instanceof Blob}(d.body)?d.body:n.isJsonMime(a["Content-Type"])?JSON.stringify(d.body):d.body,{url:u,init:{...d,body:P}}})()}fetchApi=(()=>{var t,e=this;return t=g(function*(n,u){let o,a={url:n,init:u};for(const c of e.middleware)c.pre&&(a=(yield c.pre({fetch:e.fetchApi,...a}))||a);try{o=yield(e.configuration.fetchApi||fetch)(a.url,a.init)}catch(c){for(const d of e.middleware)d.onError&&(o=(yield d.onError({fetch:e.fetchApi,url:a.url,init:a.init,error:c,response:o?o.clone():void 0}))||o);if(void 0===o)throw c instanceof Error?new M(c,"The request failed and the interceptors did not return an alternative response"):c}for(const c of e.middleware)c.post&&(o=(yield c.post({fetch:e.fetchApi,url:a.url,init:a.init,response:o.clone()}))||o);return o}
1),function(n,u){return t.apply(this,arguments)}})();clone(){const t=new(0,this.constructor)(this.configuration);return t.middleware=this.middleware.slice(),t}}class p extends Error{response;name="ResponseError";constructor(e,t){super(t),this.response=e}}class M extends Error{cause;name="FetchError";constructor(e,t){super(t),this.cause=e}}class C extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}}function w(i,e=""){return Object.keys(i).map(t=>O(t,i[t],e)).filter(t=>t.length>0).join("&")}function O(i,e,t=""){const n=t+(t.length?`[${i}]`:i);if(e instanceof Array){const u=e.map(a=>encodeURIComponent(String(a))).join(`&${encodeURIComponent(n)}=`);return`${encodeURIComponent(n)}=${u}`}return e instanceof Set?O(i,Array.from(e),t):e instanceof Date?`${encodeURIComponent(n)}=${encodeURIComponent(e.toISOString())}`:e instanceof Object?w(e,n):`${encodeURIComponent(n)}=${encodeURIComponent(String(e))}`}class J{raw;transformer;constructor(e,t=n=>n){this.raw=e,this.transformer=t}value(){var e=this;return g(function*(){return e.transformer(yield e.raw.json())})()}}class D{raw;constructor(e){this.raw=e}value(){return g(function*(){})()}}function ye(i){return function he(i){return i}(i)}function fn(i){return function Oe(i){return null==i?i:{sessionKey:i.sessionKey,pass:i.pass,addpTimeout:i.addpTimeout,licenseType:null==i.licenseType?void 0:i.licenseType,licenseProduct:i.licenseProduct,licenseExpiredAt:null==i.licenseExpiredAt?void 0:i.licenseExpiredAt,version:i.version,welcome:ye(i.welcome)}}(i)}class Re extends k{myPhoneLogRaw(e,t){var n=this;return g(function*(){if(null==e.logMessageVM)throw new C("logMessageVM",'Required parameter "logMessageVM" was null or undefined when calling myPhoneLog().');const a={"Content-Type":"application/json"};n.configuration&&n.configuration.accessToken&&(a.Authorization=yield n.configuration.accessToken("Application",[]));const c=yield n.request({path:"/webclient/api/MyPhone/log",method:"POST",headers:a,query:{},body:(i=e.logMessageVM,function be(i){return null==i?i:{message:i.message,stack:i.stack}}(i,!1))},t);var i;return new D(c)})()}myPhoneLog(e,t){var n=this;return g(function*(){yield n.myPhoneLogRaw(e,t)})()}myPhonePostRaw(e){var t=this;return g(function*(){const u={};t.configuration&&t.configuration.accessToken&&(u.Authorization=yield t.configuration.accessToken("Application",[]));const o=yield t.request({path:"/webclient/api/MyPhone",method:"POST",headers:u,query:{}},e);return new J(o,c=>fn(c))})()}myPhonePost(e){var t=this;return g(function*(){return yield(yield t.myPhonePostRaw(e)).value()})()}myPhoneSessionRaw(e,t){var n=this;return g(function*(){if(null==e.loginFingerprintVM)throw new C("loginFingerprintVM",'Required parameter "loginFingerprintVM" was null or undefined when calling myPhoneSession().');const a={"Content-Type":"application/json"};n.configuration&&n.configuration.accessToken&&(a.Authorization=yield n.configuration.accessToken("Application",[]));const c=yield n.request({path:"/webclient/api/MyPhone/session",method:"POST",headers:a,query:{},body:(i=e.loginFingerprintVM,function Me(i){return null==i?i:{name:i.name,version:i.version,isHuman:i.isHuman,impersonate:i.impersonate}}(i,!1))},t);var i;return new J(c,d=>fn(d))})()}myPhoneSession(e,t){var n=this;return g(function*(){return yield(yield n.myPhoneSessionRaw(e,t)).value()})()}}class Ie extends k{logoutGetRaw(e){var t=this;return g(function*(){const u={};t.configuration&&t.configuration.accessToken&&(u.Authorization=yield t.configuration.accessToken("Application",[]));const o=yield t.request({path:"/webclient/api/Logout",method:"POST",headers:u,query:{}},e);return new D(o)})()}logoutGet(e){var t=this;return g(function*(){yield t.logoutGetRaw(e)})()}}const rn="Webclient",je={name:rn,version:"20.0.9.0",isHuman:!0};function pn(i){const e={accessToken:()=>{const t=new FormData;return t.append("grant_type","refresh_token"),t.append("client_id",rn),fetch("connect/token",{method:"POST",body:t}).then(n=>200!==n.status?"":n.json().then(u=>"Bearer "+u.access_token))}};return e.basePath=i,e.fetchApi=fetch.bind(e.fetchApi),new T(e)}class St{type;payload;id;constructor(e){Object.assign(this,e)}}function H(i){return"function"==typeof i}function vt(i){const t=i(n=>{Error.call(n),n.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const wt=vt(i=>function(t){i(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((n,u)=>`${u+1}) ${n.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t});function ft(i,e){if(i){const t=i.indexOf(e);0<=t&&i.splice(t,1)}}class Z{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}
vendor: 6,349 bytes, line 1
1unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const a of t)a.remove(this);else t.remove(this);const{initialTeardown:n}=this;if(H(n))try{n()}catch(a){e=a instanceof wt?a.errors:[a]}const{_finalizers:u}=this;if(u){this._finalizers=null;for(const a of u)try{hn(a)}catch(o){e=e??[],o instanceof wt?e=[...e,...o.errors]:e.push(o)}}if(e)throw new wt(e)}}add(e){var t;if(e&&e!==this)if(this.closed)hn(e);else{if(e instanceof Z){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&ft(t,e)}remove(e){const{_finalizers:t}=this;t&&ft(t,e),e instanceof Z&&e._removeParent(this)}}Z.EMPTY=(()=>{const i=new Z;return i.closed=!0,i})();const bn=Z.EMPTY;function yn(i){return i instanceof Z||i&&"closed"in i&&H(i.remove)&&H(i.add)&&H(i.unsubscribe)}function hn(i){H(i)?i():i.unsubscribe()}const nt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},rt={setTimeout(i,e,...t){const{delegate:n}=rt;return n?.setTimeout?n.setTimeout(i,e,...t):setTimeout(i,e,...t)},clearTimeout(i){const{delegate:e}=rt;return(e?.clearTimeout||clearTimeout)(i)},delegate:void 0};function dn(i){rt.setTimeout(()=>{const{onUnhandledError:e}=nt;if(!e)throw i;e(i)})}function Gt(){}const Te=At("C",void 0,void 0);function At(i,e,t){return{kind:i,value:e,error:t}}let et=null;function pt(i){if(nt.useDeprecatedSynchronousErrorHandling){const e=!et;if(e&&(et={errorThrown:!1,error:null}),i(),e){const{errorThrown:t,error:n}=et;if(et=null,t)throw n}}else i()}class Nt extends Z{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,yn(e)&&e.add(this)):this.destination=ge}static create(e,t,n){return new ct(e,t,n)}next(e){this.isStopped?Dt(function ve(i){return At("N",i,void 0)}(e),this):this._next(e)}error(e){this.isStopped?Dt(function Se(i){return At("E",void 0,i)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Dt(Te,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ge=Function.prototype.bind;function gt(i,e){return Ge.call(i,e)}class Ae{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){bt(n)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){bt(n)}else bt(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){bt(t)}}}class ct extends Nt{constructor(e,t,n){let u;if(super(),H(e)||!e)u={next:e??void 0,error:t??void 0,complete:n??void 0};else{let a;this&&nt.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=()=>this.unsubscribe(),u={next:e.next&&gt(e.next,a),error:e.error&&gt(e.error,a),complete:e.complete&&gt(e.complete,a)}):u=e}this.destination=new Ae(u)}}function bt(i){nt.useDeprecatedSynchronousErrorHandling?function we(i){nt.useDeprecatedSynchronousErrorHandling&&et&&(et.errorThrown=!0,et.error=i)}(i):dn(i)}function Dt(i,e){const{onStoppedNotification:t}=nt;t&&rt.setTimeout(()=>t(i,e))}const ge={closed:!0,next:Gt,error:function Ne(i){throw i},complete:Gt},Et="function"==typeof Symbol&&Symbol.observable||"@@observable";function qt(i){return i}let V=(()=>{class i{constructor(t){t&&(this._subscribe=t)}lift(t){const n=new i;return n.source=this,n.operator=t,n}subscribe(t,n,u){const a=function Ee(i){return i&&i instanceof Nt||function De(i){return i&&H(i.next)&&H(i.error)&&H(i.complete)}(i)&&yn(i)}(t)?t:new ct(t,n,u);return pt(()=>{const{operator:o,source:c}=this;a.add(o?o.call(a,c):c?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return new(n=kn(n))((u,a)=>{const o=new ct({next:c=>{try{t(c)}catch(d){a(d),o.unsubscribe()}},error:a,complete:u});this.subscribe(o)})}_subscribe(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)}[Et](){return this}pipe(...t){return function On(i){return 0===i.length?qt:1===i.length?i[0]:function(t){return i.reduce((n,u)=>u(n),t)}}(t)(this)}toPromise(t){return new(t=kn(t))((n,u)=>{let a;this.subscribe(o=>a=o,o=>u(o),()=>n(a))})}}return i.create=e=>new i(e),i})();function kn(i){var e;return null!==(e=i??nt.Promise)&&void 0!==e?e:Promise}const qe=vt(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let yt=(()=>{class i extends V{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const n=new Cn(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new qe}next(t){pt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(t)}})}error(t){pt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){pt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:n,isStopped:u,observers:a}=this;return n||u?bn:(this.currentObservers=null,a.push(t),new Z(()=>{this.currentObservers=null,ft(a,t)}))}_checkFinalizedStatuses(t){const{hasError:n,thrownError:u,isStopped:a}=this;n?t.error(u):a&&t.complete()}asObservable(){const t=new V;return t.source=this,t}}return i.create=(e,t)=>
vendor: 4,825 bytes, line 1
1new Cn(e,t),i})();class Cn extends yt{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)}error(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:bn}}const Ft={now:()=>(Ft.delegate||Date).now(),delegate:void 0};class Pn extends yt{constructor(e=1/0,t=1/0,n=Ft){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:n,_infiniteTimeWindow:u,_timestampProvider:a,_windowTime:o}=this;t||(n.push(e),!u&&n.push(a.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:u}=this,a=u.slice();for(let o=0;o<a.length&&!e.closed;o+=n?1:2)e.next(a[o]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){const{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:u}=this,a=(u?1:2)*e;if(e<1/0&&a<n.length&&n.splice(0,n.length-a),!u){const o=t.now();let c=0;for(let d=1;d<n.length&&n[d]<=o;d+=2)c=d;c&&n.splice(0,c+1)}}}function Y(i){return e=>{if(function Fe(i){return H(i?.lift)}(e))return e.lift(function(t){try{return i(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function $(i,e,t,n,u){return new Le(i,e,t,n,u)}class Le extends Nt{constructor(e,t,n,u,a,o){super(e),this.onFinalize=a,this.shouldUnsubscribe=o,this._next=t?function(c){try{t(c)}catch(d){e.error(d)}}:super._next,this._error=u?function(c){try{u(c)}catch(d){e.error(d)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function _e(i,e){return i===e}function it(i,e){return Y((t,n)=>{let u=0;t.subscribe($(n,a=>{n.next(i.call(e,a,u++))}))})}function tt(i){return this instanceof tt?(this.v=i,this):new tt(i)}function Tn(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=i[Symbol.asyncIterator];return e?e.call(i):(i=function Bt(i){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&i[e],n=0;if(t)return t.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=i[a]&&function(o){return new Promise(function(c,d){!function u(a,o,c,d){Promise.resolve(d).then(function(P){a({value:P,done:c})},o)}(c,d,(o=i[a](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Sn=i=>i&&"number"==typeof i.length&&"function"!=typeof i;function vn(i){return H(i?.then)}function wn(i){return H(i[Et])}function Gn(i){return Symbol.asyncIterator&&H(i?.[Symbol.asyncIterator])}function An(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Nn=function ri(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function gn(i){return H(i?.[Nn])}function Dn(i){return function jn(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,n=t.apply(i,e||[]),a=[];return u=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",function o(q){return function(_){return Promise.resolve(_).then(q,A)}}),u[Symbol.asyncIterator]=function(){return this},u;function c(q,_){n[q]&&(u[q]=function(x){return new Promise(function(W,U){a.push([q,x,W,U])>1||d(q,x)})},_&&(u[q]=_(u[q])))}function d(q,_){try{!function P(q){q.value instanceof tt?Promise.resolve(q.value.v).then(j,A):L(a[0][2],q)}(n[q](_))}catch(x){L(a[0][3],x)}}function j(q){d("next",q)}function A(q){d("throw",q)}function L(q,_){q(_),a.shift(),a.length&&d(a[0][0],a[0][1])}}(this,arguments,function*(){const t=i.getReader();try{for(;;){const{value:n,done:u}=yield tt(t.read());if(u)return yield tt(void 0);yield yield tt(n)}}finally{t.releaseLock()}})}function En(i){return H(i?.getReader)}
vendor: 4,278 bytes, line 1
1function X(i){if(i instanceof V)return i;if(null!=i){if(wn(i))return function pi(i){return new V(e=>{const t=i[Et]();if(H(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(Sn(i))return function bi(i){return new V(e=>{for(let t=0;t<i.length&&!e.closed;t++)e.next(i[t]);e.complete()})}(i);if(vn(i))return function yi(i){return new V(e=>{i.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,dn)})}(i);if(Gn(i))return qn(i);if(gn(i))return function hi(i){return new V(e=>{for(const t of i)if(e.next(t),e.closed)return;e.complete()})}(i);if(En(i))return function di(i){return qn(Dn(i))}(i)}throw An(i)}function qn(i){return new V(e=>{(function Oi(i,e){var t,n,u,a;return function Rn(i,e,t,n){return new(t||(t=Promise))(function(a,o){function c(j){try{P(n.next(j))}catch(A){o(A)}}function d(j){try{P(n.throw(j))}catch(A){o(A)}}function P(j){j.done?a(j.value):function u(a){return a instanceof t?a:new t(function(o){o(a)})}(j.value).then(c,d)}P((n=n.apply(i,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Tn(i);!(n=yield t.next()).done;)if(e.next(n.value),e.closed)return}catch(o){u={error:o}}finally{try{n&&!n.done&&(a=t.return)&&(yield a.call(t))}finally{if(u)throw u.error}}e.complete()})})(i,e).catch(t=>e.error(t))})}function Ut(i,e){return Y((t,n)=>{let u=null,a=0,o=!1;const c=()=>o&&!u&&n.complete();t.subscribe($(n,d=>{u?.unsubscribe();let P=0;const j=a++;X(i(d,j)).subscribe(u=$(n,A=>n.next(e?e(d,A,j,P++):A),()=>{u=null,c()}))},()=>{o=!0,c()}))})}function Fn(i,e,t){const n=H(i)||e||t?{next:i,error:e,complete:t}:i;return n?Y((u,a)=>{var o;null===(o=n.subscribe)||void 0===o||o.call(n);let c=!0;u.subscribe($(a,d=>{var P;null===(P=n.next)||void 0===P||P.call(n,d),a.next(d)},()=>{var d;c=!1,null===(d=n.complete)||void 0===d||d.call(n),a.complete()},d=>{var P;c=!1,null===(P=n.error)||void 0===P||P.call(n,d),a.error(d)},()=>{var d,P;c&&(null===(d=n.unsubscribe)||void 0===d||d.call(n)),null===(P=n.finalize)||void 0===P||P.call(n)}))}):qt}function m(i,e,t,n=0,u=!1){const a=e.schedule(function(){t(),u?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(a),!u)return a}function Ln(i,e=0){return Y((t,n)=>{t.subscribe($(n,u=>m(n,i,()=>n.next(u),e),()=>m(n,i,()=>n.complete(),e),u=>m(n,i,()=>n.error(u),e)))})}function xn(i,e=0){return Y((t,n)=>{n.add(i.schedule(()=>t.subscribe(n),e))})}function _n(i,e){if(!i)throw new Error("Iterable cannot be null");return new V(t=>{m(t,e,()=>{const n=i[Symbol.asyncIterator]();m(t,e,()=>{n.next().then(u=>{u.done?t.complete():t.next(u.value)})},0,!0)})})}function Bn(i,e){return e?function Si(i,e){if(null!=i){if(wn(i))return function Mi(i,e){return X(i).pipe(xn(e),Ln(e))}(i,e);if(Sn(i))return function Ii(i,e){return new V(t=>{let n=0;return e.schedule(function(){n===i.length?t.complete():(t.next(i[n++]),t.closed||this.schedule())})})}(i,e);if(vn(i))return function Ri(i,e){return X(i).pipe(xn(e),Ln(e))}(i,e);if(Gn(i))return _n(i,e);if(gn(i))return function ji(i,e){return new V(t=>{let n;return m(t,e,()=>{n=i[Nn](),m(t,e,()=>{let u,a;try{({value:u,done:a}=n.next())}catch(o){return void t.error(o)}a?t.complete():t.next(u)},0,!0)}),()=>H(n?.return)&&n.return()})}(i,e);if(En(i))return function Ti(i,e){return _n(Dn(i),e)}(i,e)}throw An(i)}(i,e):X(i)}function ut(...i){return Bn(i,function Pi(i){return function ki(i){return i&&H(i.schedule)}(function Ht(i){return i[i.length-1]}(i))?i.pop():void 0}(i))}const Qt=new V(i=>i.complete());class Gi extends Z{constructor(e,t){super()}schedule(e,t=0){return this}}const ht={setInterval(i,e,...t){const{delegate:n}=ht;return n?.setInterval?n.setInterval(i,e,...t):setInterval(i,e,...t)},clearInterval(i){const{delegate:e}=ht;return(e?.clearInterval||clearInterval)(i)},delegate:void 0};class at{constructor(e,t=at.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,n){return new this.schedulerActionCtor(this,e).schedule(n,t)}}at.now=Ft.now;const gi=new class Ni extends at{constructor(e,t=at.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}
1(class Ai extends Gi{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var n;if(this.closed)return this;this.state=e;const u=this.id,a=this.scheduler;return null!=u&&(this.id=this.recycleAsyncId(a,u,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(a,this.id,t),this}requestAsyncId(e,t,n=0){return ht.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&ht.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let u,n=!1;try{this.work(e)}catch(a){n=!0,u=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),u}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,ft(n,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}),Ei=vt(i=>function(t=null){i(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function Fi(i){throw new Ei(i)}function dt(i,e){return Y((t,n)=>{let u=0;t.subscribe($(n,a=>i.call(e,a,u++)&&n.next(a)))})}function Vt(i,e,t=1/0){return H(e)?Vt((n,u)=>it((a,o)=>e(n,a,u,o))(X(i(n,u))),t):("number"==typeof e&&(t=e),Y((n,u)=>function xi(i,e,t,n,u,a,o,c){const d=[];let P=0,j=0,A=!1;const L=()=>{A&&!d.length&&!P&&e.complete()},q=x=>P<n?_(x):d.push(x),_=x=>{a&&e.next(x),P++;let W=!1;X(t(x,j++)).subscribe($(e,U=>{u?.(U),a?q(U):e.next(U)},()=>{W=!0},void 0,()=>{if(W)try{for(P--;d.length&&P<n;){const U=d.shift();o?m(e,o,()=>_(U)):_(U)}L()}catch(U){e.error(U)}}))};return i.subscribe($(e,q,()=>{A=!0,L()})),()=>{c?.()}}(n,u,i,t)))}class Ot extends Error{status;constructor(e,t){super(e),this.status=t,Object.setPrototypeOf(this,Ot.prototype)}}function io(i,e,t,n){const u=e.addpTimeout||1e3;return function Bi(i,e,t){return new V(u=>{const a=t.protocol.replace("http","ws")+"//",d=e(a+t.host+"/ws/webclient?sessionId="+i.sessionKey+"&pass="+i.pass);return d.binaryType="arraybuffer",d.onopen=()=>{},d.onmessage=P=>{"NOT AUTH"===P.data||"STOP"===P.data?u.error(new Ot("Notification channel cancelled by server",1e3)):u.next(P.data)},d.onclose=P=>{u.error(P)},()=>d.close()}).pipe(it(u=>u instanceof ArrayBuffer?new Uint8Array(u):u))}(e,t,new URL(n)).pipe(function qi(i,e){const{first:t,each:n,with:u=Fi,scheduler:a=e??gi,meta:o=null}=function Di(i){return i instanceof Date&&!isNaN(i)}(i)?{first:i}:"number"==typeof i?{each:i}:i;if(null==t&&null==n)throw new TypeError("No timeout provided.");return Y((c,d)=>{let P,j,A=null,L=0;const q=_=>{j=m(d,a,()=>{try{P.unsubscribe(),X(u({meta:o,lastValue:A,seen:L})).subscribe(d)}catch(x){d.error(x)}},_)};P=c.subscribe($(d,_=>{j?.unsubscribe(),L++,d.next(A=_),n>0&&q(n)},void 0,void 0,()=>{j?.closed||j?.unsubscribe(),A=null})),!L&&q(null!=t?"number"==typeof t?t:+t-a.now():n)})}(2*u),dt(a=>"ADDP"!==a),function Li(i){return Y((e,t)=>{let n=!1,u=0;e.subscribe($(t,a=>(n||(n=!i(a,u++)))&&t.next(a)))})}(a=>"START"!==a),dt(a=>"START"!==a),function _i(i,e){return H(e)?Vt(i,e,1):Vt(i,1)}(a=>{const o=i.decode(a);return o?ut(o):Qt}),(i=>e=>new V(t=>{let n,u=[];const a=()=>{void 0!==n&&(self.clearTimeout(n),n=void 0)},c=e.subscribe({next:d=>{void 0===n?(t.next([d]),n=self.setTimeout(()=>{u.length>0&&(t.next(u),u=[]),n=void 0},i)):u.push(d)},error:d=>{a(),t.error(d)},complete:()=>{a(),t.complete()}});return()=>{a(),c.unsubscribe()}}))(100),dt(a=>a.length>0))}var st=jt(56443);const s=st.Reader,f=st.Writer,I=st.util,l=st.roots.default||(st.roots.default={}),B=(l.ErrorCodes=(()=>{const i={},e=Object.create(i);return e[i[-1]="ConferenceWithPinDoesNotExist"]=-1,e[i[-2]="ConferenceWithPinAlreadyExists"]=-2,e[i[-3]="ConferencePinAndIdDoesNotMatch"]=-3,e[i[-4]="ConferenceAccessDenied"]=-4,e[i[-5]="ConferenceIsCancelled"]=-5,e[i[-6]="ConferencePinIsReadOnly"]=-6,e[i[-7]="ConferenceInvalidPin"]=-7,e[i[-8]="CannotGeneratePin"]=-8,e[i[-9]="FwdProfileDoesNotExist"]=-9,e[i[-10]="FwdProfileOverrideExpirationRequired"]=-10,e[i[0]="Success"]=0,e[i[1]="NoSuchRequest"]=1,e[i[2]="ExceptionOccured"]=2,e[i[3]="RequestIsNotSupported"]=3,e[i[4]="ServerIsBusy"]=4,e[i[5]="BridgeNotFound"]=5,e[i[6]="CannotCleanOwnExtension"]=6,e[i[7]="SetWakeupCallResult"]=7,e[i[8]="ExtensionNotFound"]=8,e[i[9]="NoPermission"]=9,e[i[
112]="WebMeetingNoEmail"]=12,e[i[13]="WebMeetingNoAccess"]=13,e[i[16]="WebMeetingInvalidOrganizer"]=16,e[i[17]="WebMeetingInvalidParameters"]=17,e[i[18]="WebMeetingInvalidParticipant"]=18,e[i[19]="WebMeetingInvalidPin"]=19,e[i[20]="WebMeetingAccessDenied"]=20,e[i[21]="WebMeetingNotFound"]=21,e[i[22]="WebMeetingCannotDeleteQM"]=22,e[i[23]="WebMeetingPinIsReadonly"]=23,e[i[24]="WebMeetingNumberToCallIsReadonly"]=24,e[i[25]="WebMeetingInvalidWmUser"]=25,e[i[30]="ExtensionEmailRequired"]=30,e[i[31]="QueueNumberRequired"]=31,e[i[32]="ChatIsDisabled"]=32,e[i[33]="PersonalContactRequired"]=33,e[i[34]="RequiredFieldIsEmpty"]=34,e[i[35]="ContactNotFound"]=35,e[i[36]="ContactIsReadonly"]=36,e[i[37]="ActionIsNotAllowed"]=37,e[i[38]="FileNotFound"]=38,e[i[39]="OwnRecordingsDenied"]=39,e[i[40]="InvalidValue"]=40,e[i[41]="InvalidMedia"]=41,e[i[42]="InvalidOperation"]=42,e[i[43]="OperationFailed"]=43,e[i[44]="StillProcessing"]=44,e[i[45]="BlockedCountryCode"]=45,e[i[46]="ProLicenseRequired"]=46,e})(),l.RecordingAction=(()=>{const i={},e=Object.create(i);return e[i[0]="Start"]=0,e[i[1]="Stop"]=1,e[i[2]="Pause"]=2,e[i[3]="Resume"]=3,e})(),l.ActionType=(()=>{const i={},e=Object.create(i);return e[i[0]="NoUpdates"]=0,e[i[1]="FullUpdate"]=1,e[i[2]="Inserted"]=2,e[i[3]="Updated"]=3,e[i[4]="Deleted"]=4,e})()),lo=(l.CallHistoryType=(()=>{const i={},e=Object.create(i);return e[i[0]="AllCalls"]=0,e[i[1]="Missed"]=1,e[i[2]="Received"]=2,e[i[3]="Outgoing"]=3,e})(),l.DayOfWeek=(()=>{const i={},e=Object.create(i);return e[i[0]="Sunday"]=0,e[i[1]="Monday"]=1,e[i[2]="Tuesday"]=2,e[i[3]="Wednesday"]=3,e[i[4]="Thursday"]=4,e[i[5]="Friday"]=5,e[i[6]="Saturday"]=6,e})(),l.HoursType=(()=>{const i={},e=Object.create(i);return e[i[1]="AllHours"]=1,e[i[2]="OfficeHours"]=2,e[i[3]="OutOfOfficeHours"]=3,e[i[4]="SpecificHours"]=4,e[i[5]="SpecificHoursExcludingHolidays"]=5,e[i[6]="OutOfSpecificHours"]=6,e[i[7]="OutOfSpecificHoursIncludingHolidays"]=7,e[i[8]="Never"]=8,e[i[9]="BreakTime"]=9,e})(),l.SortContactsBy=(()=>{const i={},e=Object.create(i);return e[i[1]="FirstName"]=1,e[i[2]="LastName"]=2,e[i[3]="Number"]=3,e[i[4]="ExtNumberThenFirst"]=4,e[i[5]="ExtNumberThenLast"]=5,e})(),l.SearchByMask=(()=>{const i={},e=Object.create(i);return e[i[1]="SBM_FirstName"]=1,e[i[2]="SBM_LastName"]=2,e[i[4]="SBM_Company"]=4,e[i[8]="SBM_Email"]=8,e[i[16]="SBM_ExtNumber"]=16,e[i[32]="SBM_OtherNumber"]=32,e})(),l.DnType=(()=>{const i={},e=Object.create(i);return e[i[0]="None"]=0,e[i[1]="Extension"]=1,e[i[2]="Queue"]=2,e[i[4]="RingGroup"]=4,e[i[8]="IVR"]=8,e[i[16]="Fax"]=16,e[i[32]="Conference"]=32,e[i[64]="Parking"]=64,e[i[128]="ExternalLine"]=128,e[i[256]="SpecialMenu"]=256,e[i[512]="Service"]=512,e})(),l.UsersFolder=(()=>{const i={},e=Object.create(i);return e[i[0]="VoiceMailFolder"]=0,e[i[1]="RecordingFolder"]=1,e[i[2]="ConfigurationFolder"]=2,e[i[3]="GreetingsFolder"]=3,e[i[4]="NotificationsFolder"]=4,e[i[5]="GroupPrompts"]=5,e})(),l.ContactType=(()=>{const i={},e=Object.create(i);return e[i[0]="LocalUser"]=0,e[i[1]="CompanyPhonebook"]=1,e[i[2]="PersonalPhonebook"]=2,e[i[3]="BridgeExtension"]=3,e[i[4]="ExternalContact"]=4,e[i[5]="GroupPhonebook"]=5,e})(),l.ContactOptionMask=(()=>{const i={},e=Object.create(i);return e[i[1]="CO_3CX"]=1,e[i[2]="CO_CRM"]=2,e[i[4]="CO_M365"]=4,e[i[8]="CO_GOOGLE"]=8,e})(),l.DeleteHistoryType=(()=>{const i={},e=Object.create(i);return e[i[0]="IdList"]=0,e[i[1]="All"]=1,e[i[2]="StartingFrom"]=2,e[i[3]="ConnectionIdList"]=3,e})(),l.QueueCallDealStatus=(()=>{const i={},e=Object.create(i);return e[i[0]="NotDealt"]=0,e[i[1]="Dealing"]=1,e[i[2]="Dealt"]=2,e})(),l.ChatStatusType=(()=>{const i={},e=Object.create(i);return e[i[0]="Online"]=0,e[i[1]="Away"]=1,e[i[2]="DoNotDisturb"]=2,e[i[3]="Invisible"]=3,e[i[4]="Offline"]=4,e})(),l.WebMeetingRole=(()=>{const i={},e=Object.create(i);return e[i[0]="Organizer"]=0,e[i[1]="Moderator"]=1,e[i[2]="Participant"]=2,e})(),l.MeetingType=(()=>{const i={},e=Object.create(i);return e[i[0]="AudioConference"]=0,e[i[1]="WebMeeting"]=1,e[i[2]="Mixed"]=2,e})(),l.WebMeetingProfile=(()=>{const i={},e=Object.create(i);return e[i[0]="Webmeeting"]=0,e[i[1]="Webinar"]=1,e})(),l.CalendarServiceType=(()=>{const i={},e=Object.create(i);return e[i[0]="NoService"]=0,e[i[1]="Google"]=1,e[i[2]="Office365"]=2,e[i[3]="Outlook"]=3,e[i[4]="IcsFile"]=4,e[i[5]="Tcx"]=5,e})(),l.ChatFileState=(()=>{const i={},e=Object.create(i);return e[i[0]="CF_Uploading"]=0,e[i[1]="CF_Available"]=1,e[i[2]="CF_Deleted"]=2,e})(),l.ContactAddedByEnum=(()=>{const i={},e=Object.create(i);return e[i[0]="AB_Tcx"]=0,e[i[1]="AB_Crm"]=1,e[i[2]="AB_Office365"]=2,e[i[3]="AB_Google"]=3,e})(),l.ChatMessageType=(()=>{const i={},e=Object.create(i);return e[i[0]="CMT_Normal"]=0,e[i[1]="CMT_Closed"]=1,e[i[2]="CMT_Dealt"]=2,e[i[3]="CMT_Reserved"]=3,e[i[4]="CMT_Taken"]=4,e[i[5]="CMT_Transferred"]=5,e[i[6]="CMT_Whisper"]=6,e[i[7]="CMT_Emergency"]=7,e[i[8]="CMT_License"]=8,e[i[9]="CMT_WebMeeting"]=9,e[i[
110]="CMT_Blocked"]=10,e[i[11]="CMT_AutoReply"]=11,e[i[12]="CMT_ClosedByProvider"]=12,e[i[13]="CMT_PersonInDnd"]=13,e[i[14]="CMT_MessageTooLong"]=14,e[i[15]="CMT_GenericError"]=15,e[i[16]="CMT_AutoClosed"]=16,e[i[17]="CMT_ParticipantAdded"]=17,e[i[18]="CMT_ParticipantRemoved"]=18,e[i[19]="CMT_Muted"]=19,e[i[20]="CMT_CallInitiated"]=20,e[i[21]="CMT_NumberBlocked"]=21,e[i[22]="CMT_NumberUnblocked"]=22,e})(),l.ChatRecipientType=(()=>{const i={},e=Object.create(i);return e[i[0]="CRT_Local"]=0,e[i[1]="CRT_3cxBridge"]=1,e[i[2]="CRT_Anonymous"]=2,e[i[3]="CRT_External"]=3,e[i[5]="CRT_System"]=5,e})(),l.ChatRecipientStatus=(()=>{const i={},e=Object.create(i);return e[i[0]="CRS_Available"]=0,e[i[1]="CRS_Offline"]=1,e[i[2]="CRS_Busy"]=2,e})(),l.ExternalChatCloseReason=(()=>{const i={},e=Object.create(i);return e[i[0]="ECCR_LogoutByAnonymous"]=0,e[i[1]="ECCR_LogoutByExtension"]=1,e[i[2]="ECCR_BlockedByExtension"]=2,e[i[3]="ECCR_IsHandled"]=3,e[i[4]="ECCR_NoAgentsAvailable"]=4,e[i[5]="ECCR_NotAvailable"]=5,e[i[6]="ECCR_AutoClose"]=6,e})(),l.ChatDeliveryStatus=(()=>{const i={},e=Object.create(i);return e[i[0]="CDS_NotDelivered"]=0,e[i[1]="CDS_Delivered"]=1,e[i[2]="CDS_Failed"]=2,e})(),l.ForwardDestinationType=(()=>{const i={},e=Object.create(i);return e[i[0]="FD_Disconnect"]=0,e[i[1]="FD_VoiceMail"]=1,e[i[2]="FD_Internal"]=2,e[i[3]="FD_External"]=3,e[i[4]="FD_Rebound"]=4,e[i[5]="FD_Deflect"]=5,e})(),l.GroupHoursMode=(()=>{const i={},e=Object.create(i);return e[i[0]="GHM_Default"]=0,e[i[1]="GHM_ForceOpened"]=1,e[i[2]="GHM_ForceClosed"]=2,e[i[4]="GHM_ForceBreak"]=4,e[i[8]="GHM_ForceCustomOperator"]=8,e[i[16]="GHM_ForceHoliday"]=16,e})(),l.FileType=(()=>{const i={},e=Object.create(i);return e[i[0]="FT_Uknown"]=0,e[i[1]="FT_Image"]=1,e[i[2]="FT_Audio"]=2,e[i[3]="FT_Video"]=3,e})(),l.CrmRequestState=(()=>{const i={},e=Object.create(i);return e[i[0]="CRS_Preparing"]=0,e[i[1]="CRS_Ready"]=1,e[i[2]="CRS_Error"]=2,e})(),l.ContactFields=(()=>{const i={},e=Object.create(i);return e[i[1]="CF_ExtensionNumber"]=1,e[i[2]="CF_FirstName"]=2,e[i[4]="CF_LastName"]=4,e[i[8]="CF_Company"]=8,e[i[16]="CF_Title"]=16,e[i[32]="CF_Department"]=32,e[i[64]="CF_Email"]=64,e[i[128]="CF_Mobile"]=128,e[i[256]="CF_Mobile2"]=256,e[i[512]="CF_Home"]=512,e[i[1024]="CF_Business"]=1024,e[i[2048]="CF_Business2"]=2048,e[i[4096]="CF_BusinessFax"]=4096,e[i[8192]="CF_Other"]=8192,e})(),l.ContactSource=(()=>{const i={},e=Object.create(i);return e[i[1]="CS_Extension"]=1,e[i[2]="CS_Queue"]=2,e[i[4]="CS_RingGroup"]=4,e[i[8]="CS_IVR"]=8,e[i[16]="CS_Fax"]=16,e[i[32]="CS_Conference"]=32,e[i[64]="CS_Parking"]=64,e[i[128]="CS_ExternalLine"]=128,e[i[256]="CS_SpecialMenu"]=256,e[i[512]="CS_Service"]=512,e[i[1024]="CS_Bridges"]=1024,e[i[2048]="CS_Company_3CX"]=2048,e[i[4096]="CS_Personal_3CX"]=4096,e[i[8192]="CS_Company_CRM"]=8192,e[i[16384]="CS_Personal_CRM"]=16384,e[i[32768]="CS_Company_M365"]=32768,e[i[65536]="CS_Personal_M365"]=65536,e[i[131072]="CS_Company_GOOGLE"]=131072,e[i[262144]="CS_Personal_GOOGLE"]=262144,e[i[524288]="CS_Group_3CX"]=524288,e})(),l.Login=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.User&&Object.hasOwnProperty.call(t,"User")&&n.uint32(10).string(t.User),null!=t.Password&&Object.hasOwnProperty.call(t,"Password")&&n.uint32(18).string(t.Password),null!=t.ClientVersion&&Object.hasOwnProperty.call(t,"ClientVersion")&&n.uint32(26).string(t.ClientVersion),null!=t.ClientInfo&&Object.hasOwnProperty.call(t,"ClientInfo")&&n.uint32(34).string(t.ClientInfo),null!=t.ProtocolVersion&&Object.hasOwnProperty.call(t,"ProtocolVersion")&&n.uint32(42).string(t.ProtocolVersion),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Login;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.User=t.string();break;case 2:o.Password=t.string();break;case 3:o.ClientVersion=t.string();break;case 4:o.ClientInfo=t.string();break;case 5:o.ProtocolVersion=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:100,LoginRequest:this})},i.prototype.typeId=100,i.prototype.typeName="LoginRequest",i})()),co=l.LoginInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ExtensionId&&Object.hasOwnProperty.call(t,"ExtensionId")&&n.uint32(8).int32(t.ExtensionId),null!=t.IsAuthenticated&&Object.hasOwnProperty.call(t,"IsAuthenticated")&&n.uint32(16).bool(t.IsAuthenticated),null!=t.ValidationMessage&&Object.hasOwnProperty.call(t,"ValidationMessage")&&n.uint32(26).string(t.ValidationMessage),null!=t.Nonce&&Object.hasOwnProperty.call(t,"Nonce")&&n.uint32(34).string(t.Nonce),null!=t.SessionId&&Object.hasOwnProperty.call(t,"SessionId")&&n.uint32(42).string(t.SessionId),null!=t.AddpTimeout&&Object.hasOwnProperty.call(t,"AddpTimeout")&&n.uint32(48).int32(t.AddpTimeout),null!=t.ServerVersion&&Object.hasOwnProperty.call(t,"ServerVersion")&&n.uint32(58).string(t.ServerVersion),null!=t.UpdateAvailable&&Object.hasOwnProperty.call(t,"UpdateAvailable")&&n.uint32(64).bool(t.UpdateAvailable),null!=t.LicenseType&&Object.hasOwnProperty.call(t,"LicenseType")&&n.uint32(72).int32(t.LicenseType),null!=t.LicenseProduct&&Object.hasOwnProperty.call(t,"LicenseProduct")&&n.uint32(82).string(t.LicenseProduct),null!=t.PbxVersion&&Object.hasOwnProperty.call(t,"PbxVersion")&&n.uint32(90).string(t.PbxVersion),null!=t.LicenseExpiredAt&&Object.hasOwnProperty.call(t,"LicenseExpiredAt")&&l.DateTime.encode(t.LicenseExpiredAt,n.uint32(98).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.LoginInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>
13){case 1:o.ExtensionId=t.int32();break;case 2:o.IsAuthenticated=t.bool();break;case 3:o.ValidationMessage=t.string();break;case 4:o.Nonce=t.string();break;case 5:o.SessionId=t.string();break;case 6:o.AddpTimeout=t.int32();break;case 7:o.ServerVersion=t.string();break;case 8:o.UpdateAvailable=t.bool();break;case 9:o.LicenseType=t.int32();break;case 10:o.LicenseProduct=t.string();break;case 11:o.PbxVersion=t.string();break;case 12:o.LicenseExpiredAt=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:200,LoginResponse:this})},i.prototype.typeId=200,i.prototype.typeName="LoginResponse",i})(),uo=l.Logout=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Logout;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:101,LogoutRequest:this})},i.prototype.typeId=101,i.prototype.typeName="LogoutRequest",i})(),ao=(l.Timestamp=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.seconds&&Object.hasOwnProperty.call(t,"seconds")&&n.uint32(8).int64(t.seconds),null!=t.nanos&&Object.hasOwnProperty.call(t,"nanos")&&n.uint32(16).int32(t.nanos),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Timestamp;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.seconds=t.int64();break;case 2:o.nanos=t.int32();break;default:t.skipType(7&c)}}return o},i})(),l.DateTime=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Year&&Object.hasOwnProperty.call(t,"Year")&&n.uint32(8).int32(t.Year),null!=t.Month&&Object.hasOwnProperty.call(t,"Month")&&n.uint32(16).int32(t.Month),null!=t.Day&&Object.hasOwnProperty.call(t,"Day")&&n.uint32(24).int32(t.Day),null!=t.Hour&&Object.hasOwnProperty.call(t,"Hour")&&n.uint32(32).int32(t.Hour),null!=t.Minute&&Object.hasOwnProperty.call(t,"Minute")&&n.uint32(40).int32(t.Minute),null!=t.Second&&Object.hasOwnProperty.call(t,"Second")&&n.uint32(48).int32(t.Second),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.DateTime;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Year=t.int32();break;case 2:o.Month=t.int32();break;case 3:o.Day=t.int32();break;case 4:o.Hour=t.int32();break;case 5:o.Minute=t.int32();break;case 6:o.Second=t.int32();break;default:t.skipType(7&c)}}return o},i})()),so=(l.ForwardDestination=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.FwdType&&Object.hasOwnProperty.call(t,"FwdType")&&n.uint32(8).int32(t.FwdType),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(18).string(t.Number),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ForwardDestination;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.FwdType=t.int32();break;case 2:o.Number=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.AvailableFPType=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.NoAnswerTimeout&&Object.hasOwnProperty.call(t,"NoAnswerTimeout")&&n.uint32(8).int32(t.NoAnswerTimeout),null!=t.RingMyMobile&&Object.hasOwnProperty.call(t,"RingMyMobile")&&n.uint32(16).bool(t.RingMyMobile),null!=t.UsePhoneBusyStatus&&Object.hasOwnProperty.call(t,"UsePhoneBusyStatus")&&n.uint32(24).bool(t.UsePhoneBusyStatus),null!=t.NoAnswerAllCalls&&Object.hasOwnProperty.call(t,"NoAnswerAllCalls")&&n.uint32(32).bool(t.NoAnswerAllCalls),null!=t.NoAnswerExternal&&Object.hasOwnProperty.call(t,"NoAnswerExternal")&&l.ForwardDestination.encode(t.NoAnswerExternal,n.uint32(42).fork()).ldelim(),null!=t.NoAnswerInternal&&Object.hasOwnProperty.call(t,"NoAnswerInternal")&&l.ForwardDestination.encode(t.NoAnswerInternal,n.uint32(50).fork()).ldelim(),null!=t.BusyAllCalls&&Object.hasOwnProperty.call(t,"BusyAllCalls")&&n.uint32(56).bool(t.BusyAllCalls),null!=t.BusyExternal&&Object.hasOwnProperty.call(t,"BusyExternal")&&l.ForwardDestination.encode(t.BusyExternal,n.uint32(66).fork()).ldelim(),null!=t.BusyInternal&&Object.hasOwnProperty.call(t,"BusyInternal")&&l.ForwardDestination.encode(t.BusyInternal,n.uint32(74).fork()).ldelim(),null!=t.NotRegisteredAllCalls&&Object.hasOwnProperty.call(t,"NotRegisteredAllCalls")&&n.uint32(80).bool(t.NotRegisteredAllCalls),null!=t.NotRegisteredExternal&&Object.hasOwnProperty.call(t,"NotRegisteredExternal")&&l.ForwardDestination.encode(t.NotRegisteredExternal,n.uint32(90).fork()).ldelim(),null!=t.NotRegisteredInternal&&Object.hasOwnProperty.call(t,"NotRegisteredInternal")&&l.ForwardDestination.encode(t.NotRegisteredInternal,n.uint32(98).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.AvailableFPType;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.NoAnswerTimeout=t.int32();break;case 2:o.RingMyMobile=t.bool();break;case 3:o.UsePhoneBusyStatus=t.bool();break;case 4:o.NoAnswerAllCalls=t.bool();break;case 5:o.NoAnswerExternal=l.ForwardDestination.decode(t,t.uint32());break;case 6:o.NoAnswerInternal=l.ForwardDestination.decode(t,t.uint32());break;case 7:o.BusyAllCalls=t.bool();break;case 8:o.BusyExternal=l.ForwardDestination.decode(t,t.uint32());break;case 9:o.BusyInternal=l.ForwardDestination.decode(t,t.uint32());break;case 10:o.NotRegisteredAllCalls=t.bool();break;case 11:o.NotRegisteredExternal=l.ForwardDestination.decode(t,t.uint32());break;case 12:o.NotRegisteredInternal=l.ForwardDestination.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.AwayFPType=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.AllHoursInternal&&Object.hasOwnProperty.call(t,"AllHoursInternal")&&n.uint32(8).bool(t.AllHoursInternal),null!=t.AllHoursExternal&&Object.hasOwnProperty.call(t,"AllHoursExternal")&&n.uint32(16).bool(t.AllHoursExternal),null!=t.InternalRule&&Object.hasOwnProperty.call(t,"InternalRule")&&l.ForwardDestination.encode(t.InternalRule,n.uint32(26).fork()).ldelim(),null!=t.ExternalRule&&Object.hasOwnProperty.call(t,"ExternalRule")&&l.ForwardDestination.encode(t.ExternalRule,n.uint32(34).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.AwayFPType;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.AllHoursInternal=t.bool();break;case 2:o.AllHoursExternal=t.bool();break;case 3:o.InternalRule=l.ForwardDestination.decode(t,t.uint32());break;case 4:o.ExternalRule=l.ForwardDestination.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.RuleCallType=(()=>{const i={},e=Object.create(i);return e[i[1]="RCT_AllCalls"]=1,e[i[2]="RCT_InternalCallsOnly"]=2,e[i[3]="RCT_ExternalCallsOnly"]=3,e})(),l.BossSecretaryRule=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.AdditionalSecretary&&Object.hasOwnProperty.call(t,"AdditionalSecretary")&&n.uint32(10).string(t.AdditionalSecretary),null!=t.Hours&&Object.hasOwnProperty.call(t,"Hours")&&l.OfficeHoursRule.encode(t.Hours,n.uint32(18).fork()).ldelim(),null!=t.Destination&&Object.hasOwnProperty.call(t,"Destination")&&l.ForwardDestination.encode(t.Destination,n.uint32(26).fork()).ldelim(),null!=t.Enabled&&Object.hasOwnProperty.call(t,"Enabled")&&n.uint32(32).bool(t.Enabled),null!=t.AllowedDirectCalls&&Object.hasOwnProperty.call(t,"AllowedDirectCalls")&&n.uint32(42).string(t.AllowedDirectCalls),null!=t.CallType&&Object.hasOwnProperty.call(t,"CallType")&&n.uint32(48).int32(t.CallType),null!=t.Allowed&&Object.hasOwnProperty.call(t,"Allowed")&&n.uint32(56).bool(t.Allowed),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.BossSecretaryRule;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.AdditionalSecretary=t.string();break;case 2:o.Hours=l.OfficeHoursRule.decode(t,t.uint32());break;case 3:o.Destination=l.ForwardDestination.decode(t,t.uint32());break;case 4:o.Enabled=t.bool();break;case 5:o.AllowedDirectCalls=t.string();break;case 6:o.CallType=t.int32();break;case 7:o.Allowed=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.ExceptionFPType=(()=>{function i(e){if(this.Exceptions=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Exceptions=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Exceptions&&t.Exceptions.length)for(let u=0;u<t.Exceptions.length;++u)l.ExceptionRule.encode(t.Exceptions[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ExceptionFPType;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Exceptions&&o.Exceptions.length||(o.Exceptions=[]),o.Exceptions.push(l.ExceptionRule.decode(t,t.uint32()))):t.skipType(7&c)}return o},i})(),l.ExceptionRule=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.CallerId&&Object.hasOwnProperty.call(t,"CallerId")&&n.uint32(10).string(t.CallerId),null!=t.Hours&&Object.hasOwnProperty.call(t,"Hours")&&l.OfficeHoursRule.encode(t.Hours,n.uint32(18).fork()).ldelim(),null!=t.Destination&&Object.hasOwnProperty.call(t,"Destination")&&l.ForwardDestination.encode(t.Destination,n.uint32(26).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ExceptionRule;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.CallerId=t.string();break;case 2:o.Hours=l.OfficeHoursRule.decode(t,t.uint32());break;case 3:o.Destination=l.ForwardDestination.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.ForwardingProfile=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(26).string(t.Name),null!=t.CustomMessage&&Object.hasOwnProperty.call(t,"CustomMessage")&&n.uint32(34).string(t.CustomMessage),null!=t.CustomName&&Object.hasOwnProperty.call(t,"CustomName")&&n.uint32(42).string(t.CustomName),null!=t.Available&&Object.hasOwnProperty.call(t,"Available")&&l.AvailableFPType.encode(t.Available,n.uint32(50).fork()).ldelim(),null!=t.Away&&Object.hasOwnProperty.call(t,"Away")&&l.AwayFPType.encode(t.Away,n.uint32(58).fork()).ldelim(),null!=t.DefaultHours&&Object.hasOwnProperty.call(t,"DefaultHours")&&l.OfficeHoursFPType.encode(t.DefaultHours,n.uint32(66).fork()).ldelim(),null!=t.Exceptions&&Object.hasOwnProperty.call(t,"Exceptions")&&l.ExceptionFPType.encode(t.Exceptions,n.uint32(74).fork()).ldelim(),null!=t.BlockPush&&Object.hasOwnProperty.call(t,"BlockPush")&&n.uint32(80).bool(t.BlockPush),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ForwardingProfile;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Name=t.string();break;case 4:o.CustomMessage=t.string();break;case 5:o.CustomName=t.string();break;case 6:o.Available=l.AvailableFPType.decode(t,t.uint32());break;case 7:o.Away=l.AwayFPType.decode(t,t.uint32());break;case 8:o.DefaultHours=l.OfficeHoursFPType.decode(t,t.uint32());break;case 9:o.Exceptions=l.ExceptionFPType.decode(t,t.uint32());break;case 10:o.BlockPush=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.ForwardingProfiles=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.ForwardingProfile.encode(t.Items[u],n.uint32(18).fork()).ldelim();return null!=t.BossSecretary&&Object.hasOwnProperty.call(t,"BossSecretary")&&l.BossSecretaryRule.encode(t.BossSecretary,n.uint32(26).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ForwardingProfiles;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.ForwardingProfile.decode(t,t.uint32()));break;case 3:o.BossSecretary=l.BossSecretaryRule.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.OfficeHoursFPType=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ExtSpecHours&&Object.hasOwnProperty.call(t,"ExtSpecHours")&&l.OfficeHoursRule.encode(t.ExtSpecHours,n.uint32(10).fork()).ldelim(),null!=t.AwayHours&&Object.hasOwnProperty.call(t,"AwayHours")&&l.OfficeHoursRule.encode(t.AwayHours,n.uint32(18).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.OfficeHoursFPType;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>
13){case 1:o.ExtSpecHours=l.OfficeHoursRule.decode(t,t.uint32());break;case 2:o.AwayHours=l.OfficeHoursRule.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.OfficeHoursRule=(()=>{function i(e){if(this.Days=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Days=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.RuleHoursType&&Object.hasOwnProperty.call(t,"RuleHoursType")&&n.uint32(8).int32(t.RuleHoursType),null!=t.Days&&t.Days.length)for(let u=0;u<t.Days.length;++u)l.TimeRange.encode(t.Days[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.OfficeHoursRule;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.RuleHoursType=t.int32();break;case 2:o.Days&&o.Days.length||(o.Days=[]),o.Days.push(l.TimeRange.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.TimeRange=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Day&&Object.hasOwnProperty.call(t,"Day")&&n.uint32(8).int32(t.Day),null!=t.From&&Object.hasOwnProperty.call(t,"From")&&l.DateTime.encode(t.From,n.uint32(18).fork()).ldelim(),null!=t.To&&Object.hasOwnProperty.call(t,"To")&&l.DateTime.encode(t.To,n.uint32(26).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.TimeRange;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Day=t.int32();break;case 2:o.From=l.DateTime.decode(t,t.uint32());break;case 3:o.To=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.RequestUpdateFwdProfile=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Update&&Object.hasOwnProperty.call(t,"Update")&&l.ForwardingProfiles.encode(t.Update,n.uint32(10).fork()).ldelim(),null!=t.TargetExtension&&Object.hasOwnProperty.call(t,"TargetExtension")&&n.uint32(18).string(t.TargetExtension),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdateFwdProfile;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Update=l.ForwardingProfiles.decode(t,t.uint32());break;case 2:o.TargetExtension=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:108,UpdateFwdProfiles:this})},i.prototype.typeId=108,i.prototype.typeName="UpdateFwdProfiles",i})()),fo=l.RequestGetFwdProfiles=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.TargetExtension&&Object.hasOwnProperty.call(t,"TargetExtension")&&n.uint32(10).string(t.TargetExtension),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetFwdProfiles;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.TargetExtension=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:561,GetFwdProfiles:this})},i.prototype.typeId=561,i.prototype.typeName="GetFwdProfiles",i})(),ro=l.ResponseGetFwdProfiles=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Profiles&&Object.hasOwnProperty.call(t,"Profiles")&&l.ForwardingProfiles.encode(t.Profiles,n.uint32(10).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGetFwdProfiles;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Profiles=l.ForwardingProfiles.decode(t,t.uint32()):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:266,FwdProfiles:this})},i.prototype.typeId=266,i.prototype.typeName="FwdProfiles",i})(),po=l.RequestUpdateFavorites=(()=>{function i(e){if(this.ExtensionNumbers=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.ExtensionNumbers=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.ExtensionNumbers&&t.ExtensionNumbers.length)for(let u=0;u<t.ExtensionNumbers.length;++u)n.uint32(18).string(t.ExtensionNumbers[u]);return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdateFavorites;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.ExtensionNumbers&&o.ExtensionNumbers.length||(o.ExtensionNumbers=[]),o.ExtensionNumbers.push(t.string());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:169,UpdateFavorites:this})},i.prototype.typeId=169,i.prototype.typeName="UpdateFavorites",i})(),bo=(l.Registration=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Contact&&Object.hasOwnProperty.call(t,"Contact")&&n.uint32(26).string(t.Contact),null!=t.SourceAddress&&Object.hasOwnProperty.call(t,"SourceAddress")&&n.uint32(34).string(t.SourceAddress),null!=t.UserAgent&&Object.hasOwnProperty.call(t,"UserAgent")&&n.uint32(42).string(t.UserAgent),null!=t.ExpiresAt&&Object.hasOwnProperty.call(t,"ExpiresAt")&&l.DateTime.encode(t.ExpiresAt,n.uint32(50).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Registration;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Contact=t.string();break;case 4:o.SourceAddress=t.string();break;case 5:o.UserAgent=t.string();break;case 6:o.ExpiresAt=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.Registrations=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.Registration.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Registrations;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.Registration.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.VoiceMail=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Folder&&Ob
1ject.hasOwnProperty.call(t,"Folder")&&n.uint32(24).int32(t.Folder),null!=t.Filename&&Object.hasOwnProperty.call(t,"Filename")&&n.uint32(34).string(t.Filename),null!=t.CallerId&&Object.hasOwnProperty.call(t,"CallerId")&&n.uint32(42).string(t.CallerId),null!=t.CallerName&&Object.hasOwnProperty.call(t,"CallerName")&&n.uint32(50).string(t.CallerName),null!=t.ReceivedAt&&Object.hasOwnProperty.call(t,"ReceivedAt")&&l.DateTime.encode(t.ReceivedAt,n.uint32(58).fork()).ldelim(),null!=t.Duration&&Object.hasOwnProperty.call(t,"Duration")&&n.uint32(64).int32(t.Duration),null!=t.IsNew&&Object.hasOwnProperty.call(t,"IsNew")&&n.uint32(72).bool(t.IsNew),null!=t.Transcription&&Object.hasOwnProperty.call(t,"Transcription")&&n.uint32(82).string(t.Transcription),null!=t.CallerContact&&Object.hasOwnProperty.call(t,"CallerContact")&&l.Contact.encode(t.CallerContact,n.uint32(90).fork()).ldelim(),null!=t.IsArchived&&Object.hasOwnProperty.call(t,"IsArchived")&&n.uint32(96).bool(t.IsArchived),null!=t.GroupBox&&Object.hasOwnProperty.call(t,"GroupBox")&&n.uint32(106).string(t.GroupBox),null!=t.HeardBy&&Object.hasOwnProperty.call(t,"HeardBy")&&n.uint32(114).string(t.HeardBy),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.VoiceMail;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Folder=t.int32();break;case 4:o.Filename=t.string();break;case 5:o.CallerId=t.string();break;case 6:o.CallerName=t.string();break;case 7:o.ReceivedAt=l.DateTime.decode(t,t.uint32());break;case 8:o.Duration=t.int32();break;case 9:o.IsNew=t.bool();break;case 10:o.Transcription=t.string();break;case 11:o.CallerContact=l.Contact.decode(t,t.uint32());break;case 12:o.IsArchived=t.bool();break;case 13:o.GroupBox=t.string();break;case 14:o.HeardBy=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.VoiceMails=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.VoiceMail.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.VoiceMails;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.VoiceMail.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:268,ResponseVoiceMails:this})},i.prototype.typeId=268,i.prototype.typeName="ResponseVoiceMails",i})()),yo=l.RequestGetVoiceMails=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.After&&Object.hasOwnProperty.call(t,"After")&&l.Timestamp.encode(t.After,n.uint32(10).fork()).ldelim(),null!=t.Before&&Object.hasOwnProperty.call(t,"Before")&&l.Timestamp.encode(t.Before,n.uint32(18).fork()).ldelim(),null!=t.Offset&&Object.hasOwnProperty.call(t,"Offset")&&n.uint32(24).int32(t.Offset),null!=t.Limit&&Object.hasOwnProperty.call(t,"Limit")&&n.uint32(32).int32(t.Limit),null!=t.QueryString&&Object.hasOwnProperty.call(t,"QueryString")&&n.uint32(42).string(t.QueryString),null!=t.NewOld&&Object.hasOwnProperty.call(t,"NewOld")&&n.uint32(48).bool(t.NewOld),null!=t.StartFromId&&Object.hasOwnProperty.call(t,"StartFromId")&&n.uint32(56).int32(t.StartFromId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetVoiceMails;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.After=l.Timestamp.decode(t,t.uint32());break;case 2:o.Before=l.Timestamp.decode(t,t.uint32());break;case 3:o.Offset=t.int32();break;case 4:o.Limit=t.int32();break;case 5:o.QueryString=t.string();break;case 6:o.NewOld=t.bool();break;case 7:o.StartFromId=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:565,GetVoiceMails:this})},i.prototype.typeId=565,i.prototype.typeName="GetVoiceMails",i})(),Vn=(l.GroupMember=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.ExtensionNumber&&Object.hasOwnProperty.call(t,"ExtensionNumber")&&n.uint32(26).string(t.ExtensionNumber),null!=t.FirstName&&Object.hasOwnProperty.call(t,"FirstName")&&n.uint32(34).string(t.FirstName),null!=t.LastName&&Object.hasOwnProperty.call(t,"LastName")&&n.uint32(42).string(t.LastName),null!=t.IsReg
vendor: 22,020 bytes, line 1
1istered&&Object.hasOwnProperty.call(t,"IsRegistered")&&n.uint32(48).bool(t.IsRegistered),null!=t.IsDnd&&Object.hasOwnProperty.call(t,"IsDnd")&&n.uint32(56).bool(t.IsDnd),null!=t.CurrentProfile&&Object.hasOwnProperty.call(t,"CurrentProfile")&&n.uint32(66).string(t.CurrentProfile),null!=t.CurrentStatus&&Object.hasOwnProperty.call(t,"CurrentStatus")&&n.uint32(74).string(t.CurrentStatus),null!=t.QueueStatus&&Object.hasOwnProperty.call(t,"QueueStatus")&&n.uint32(80).bool(t.QueueStatus),null!=t.IsBusy&&Object.hasOwnProperty.call(t,"IsBusy")&&n.uint32(88).bool(t.IsBusy),null!=t.ChatStatus&&Object.hasOwnProperty.call(t,"ChatStatus")&&n.uint32(96).int32(t.ChatStatus),null!=t.MobileNumber&&Object.hasOwnProperty.call(t,"MobileNumber")&&n.uint32(106).string(t.MobileNumber),null!=t.CurrentProfileInternalName&&Object.hasOwnProperty.call(t,"CurrentProfileInternalName")&&n.uint32(114).string(t.CurrentProfileInternalName),null!=t.Connections&&Object.hasOwnProperty.call(t,"Connections")&&l.LocalConnections.encode(t.Connections,n.uint32(122).fork()).ldelim(),null!=t.AwayFwdType&&Object.hasOwnProperty.call(t,"AwayFwdType")&&n.uint32(128).int32(t.AwayFwdType),null!=t.AwayNumber&&Object.hasOwnProperty.call(t,"AwayNumber")&&n.uint32(138).string(t.AwayNumber),null!=t.EmailAddress&&Object.hasOwnProperty.call(t,"EmailAddress")&&n.uint32(146).string(t.EmailAddress),null!=t.StatusTemporarilyChanged&&Object.hasOwnProperty.call(t,"StatusTemporarilyChanged")&&n.uint32(152).bool(t.StatusTemporarilyChanged),null!=t.OverrideCurrentProfile&&Object.hasOwnProperty.call(t,"OverrideCurrentProfile")&&n.uint32(162).string(t.OverrideCurrentProfile),null!=t.OverrideCurrentStatus&&Object.hasOwnProperty.call(t,"OverrideCurrentStatus")&&n.uint32(170).string(t.OverrideCurrentStatus),null!=t.OverrideExpiresAtUTCTime&&Object.hasOwnProperty.call(t,"OverrideExpiresAtUTCTime")&&l.DateTime.encode(t.OverrideExpiresAtUTCTime,n.uint32(178).fork()).ldelim(),null!=t.OverrideCurrentProfileInternalName&&Object.hasOwnProperty.call(t,"OverrideCurrentProfileInternalName")&&n.uint32(186).string(t.OverrideCurrentProfileInternalName),null!=t.OverrideAttachedData&&Object.hasOwnProperty.call(t,"OverrideAttachedData")&&n.uint32(194).string(t.OverrideAttachedData),null!=t.OverrideFwdType&&Object.hasOwnProperty.call(t,"OverrideFwdType")&&n.uint32(200).int32(t.OverrideFwdType),null!=t.OverrideNumber&&Object.hasOwnProperty.call(t,"OverrideNumber")&&n.uint32(210).string(t.OverrideNumber),null!=t.IsRinging&&Object.hasOwnProperty.call(t,"IsRinging")&&n.uint32(216).bool(t.IsRinging),null!=t.ContactImage&&Object.hasOwnProperty.call(t,"ContactImage")&&n.uint32(226).string(t.ContactImage),null!=t.IsInternal&&Object.hasOwnProperty.call(t,"IsInternal")&&n.uint32(232).bool(t.IsInternal),null!=t.IsQueueAgent&&Object.hasOwnProperty.call(t,"IsQueueAgent")&&n.uint32(240).bool(t.IsQueueAgent),null!=t.MonitorExpiration&&Object.hasOwnProperty.call(t,"MonitorExpiration")&&l.DateTime.encode(t.MonitorExpiration,n.uint32(250).fork()).ldelim(),null!=t.ExtGuid&&Object.hasOwnProperty.call(t,"ExtGuid")&&n.uint32(258).string(t.ExtGuid),null!=t.IsAIAgent&&Object.hasOwnProperty.call(t,"IsAIAgent")&&n.uint32(264).bool(t.IsAIAgent),null!=t.VmailEnabled&&Object.hasOwnProperty.call(t,"VmailEnabled")&&n.uint32(272).bool(t.VmailEnabled),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.GroupMember;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.ExtensionNumber=t.string();break;case 4:o.FirstName=t.string();break;case 5:o.LastName=t.string();break;case 6:o.IsRegistered=t.bool();break;case 7:o.IsDnd=t.bool();break;case 8:o.CurrentProfile=t.string();break;case 9:o.CurrentStatus=t.string();break;case 10:o.QueueStatus=t.bool();break;case 11:o.IsBusy=t.bool();break;case 12:o.ChatStatus=t.int32();break;case 13:o.MobileNumber=t.string();break;case 14:o.CurrentProfileInternalName=t.string();break;case 15:o.Connections=l.LocalConnections.decode(t,t.uint32());break;case 16:o.AwayFwdType=t.int32();break;case 17:o.AwayNumber=t.string();break;case 18:o.EmailAddress=t.string();break;case 19:o.StatusTemporarilyChanged=t.bool();break;case 20:o.OverrideCurrentProfile=t.string();break;case 21:o.OverrideCurrentStatus=t.string();break;case 22:o.OverrideExpiresAtUTCTime=l.DateTime.decode(t,t.uint32());break;case 23:o.OverrideCurrentProfileInternalName=t.string();break;case 24:o.OverrideAttachedData=t.string();break;case 25:o.OverrideFwdType=t.int32();break;case 26:o.OverrideNumber=t.string();break;case 27:o.IsRinging=t.bool();break;case 28:o.ContactImage=t.string();break;case 29:o.IsInternal=t.bool();break;case 30:o.IsQueueAgent=t.bool();break;case 31:o.MonitorExpiration=l.DateTime.decode(t,t.uint32());break;case 32:o.ExtGuid=t.string();break;case 33:o.IsAIAgent=t.bool();break;case 34:o.VmailEnabled=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.GroupMembers=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.GroupMember.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.GroupMembers;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.GroupMember.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.Group=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(26).string(t.Name),null!=t.Members&&Object.hasOwnProperty.call(t,"Members")&&l.GroupMembers.encode(t.Members,n.uint32(42).fork()).ldelim(),null!=t.Language&&Object.hasOwnProperty.call(t,"Language")&&n.uint32(50).string(t.Language),null!=t.CurrentGroupHours&&Object.hasOwnProperty.call(t,"CurrentGroupHours")&&n.uint32(56).int32(t.CurrentGroupHours),null!=t.OverrideExpiresAt&&Object.hasOwnProperty.call(t,"OverrideExpiresAt")&&l.DateTime.encode(t.OverrideExpiresAt,n.uint32(66).fork()).ldelim(),null!=t.OpenedHoursOperator&&Object.hasOwnProperty.call(t,"OpenedHoursOperator")&&l.ForwardDestination.encode(t.OpenedHoursOperator,n.uint32(74).fork()).ldelim(),null!=t.BreakTimeOperator&&Object.hasOwnProperty.call(t,"BreakTimeOperator")&&l.ForwardDestination.encode(t.BreakTimeOperator,n.uint32(82).fork()).ldelim(),null!=t.ClosedHoursOperator&&Object.hasOwnProperty.call(t,"ClosedHoursOperator")&&l.ForwardDestination.encode(t.ClosedHoursOperator,n.uint32(90).fork()).ldelim(),null!=t.CustomOperator&&Object.hasOwnProperty.call(t,"CustomOperator")&&l.ForwardDestination.encode(t.CustomOperator,n.uint32(98).fork()).ldelim(),null!=t.OpenedHoursPrompt&&Object.hasOwnProperty.call(t,"OpenedHoursPrompt")&&n.uint32(106).string(t.OpenedHoursPrompt),null!=t.ClosedHoursPrompt&&Object.hasOwnProperty.call(t,"ClosedHoursPrompt")&&n.uint32(114).string(t.ClosedHoursPrompt),null!=t.BreakTimePrompt&&Object.hasOwnProperty.call(t,"BreakTimePrompt")&&n.uint32(122).string(t.BreakTimePrompt),null!=t.CustomPrompt&&Object.hasOwnProperty.call(t,"CustomPrompt")&&n.uint32(130).string(t.CustomPrompt),null!=t.DisableCustomPrompt&&Object.hasOwnProperty.call(t,"DisableCustomPrompt")&&n.uint32(136).bool(t.DisableCustomPrompt),null!=t.DisableOpenedHoursPrompt&&Object.hasOwnProperty.call(t,"DisableOpenedHoursPrompt")&&n.uint32(144).bool(t.DisableOpenedHoursPrompt),null!=t.DisableClosedHoursPrompt&&Object.hasOwnProperty.call(t,"DisableClosedHoursPrompt")&&n.uint32(152).bool(t.DisableClosedHoursPrompt),null!=t.DisableBreakTimePrompt&&Object.hasOwnProperty.call(t,"DisableBreakTimePrompt")&&n.uint32(160).bool(t.DisableBreakTimePrompt),null!=t.AllowCallService&&Object.hasOwnProperty.call(t,"AllowCallService")&&n.uint32(168).bool(t.AllowCallService),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Group;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Name=t.string();break;case 5:o.Members=l.GroupMembers.decode(t,t.uint32());break;case 6:o.Language=t.string();break;case 7:o.CurrentGroupHours=t.int32();break;case 8:o.OverrideExpiresAt=l.DateTime.decode(t,t.uint32());break;case 9:o.OpenedHoursOperator=l.ForwardDestination.decode(t,t.uint32());break;case 10:o.BreakTimeOperator=l.ForwardDestination.decode(t,t.uint32());break;case 11:o.ClosedHoursOperator=l.ForwardDestination.decode(t,t.uint32());break;case 12:o.CustomOperator=l.ForwardDestination.decode(t,t.uint32());break;case 13:o.OpenedHoursPrompt=t.string();break;case 14:o.ClosedHoursPrompt=t.string();break;case 15:o.BreakTimePrompt=t.string();break;case 16:o.CustomPrompt=t.string();break;case 17:o.DisableCustomPrompt=t.bool();break;case 18:o.DisableOpenedHoursPrompt=t.bool();break;case 19:o.DisableClosedHoursPrompt=t.bool();break;case 20:o.DisableBreakTimePrompt=t.bool();break;case 21:o.AllowCallService=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.Groups=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.Group.encode(t.Items[u],n.uint32(18).fork()).ldelim();return null!=t.FromLocalPbx&&Object.hasOwnProperty.call(t,"FromLocalPbx")&&n.uint32(24).bool(t.FromLocalPbx),null!=t.RemotePbx&&Object.hasOwnProperty.call(t,"RemotePbx")&&n.uint32(34).string(t.RemotePbx),null!=t.BridgeNumber&&Object.hasOwnProperty.call(t,"BridgeNumber")&&n.uint32(42).string(t.BridgeNumber),null!=t.IsConnected&&Object.hasOwnProperty.call(t,"IsConnected")&&n.uint32(48).bool(t.IsConnected),null!=t.IsAllowed&&Object.hasOwnProperty.call(t,"IsAllowed")&&n.uint32(56).bool(t.IsAllowed),null!=t.Prefix&&Object.hasOwnProperty.call(t,"Prefix")&&n.uint32(66).string(t.Prefix),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Groups;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.Group.decode(t,t.uint32()));break;case 3:o.FromLocalPbx=t.bool();break;case 4:o.RemotePbx=t.string();break;case 5:o.BridgeNumber=t.string();break;case 6:o.IsConnected=t.bool();break;case 7:o.IsAllowed=t.bool();break;case 8:o.Prefix=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:208,GroupsInfo:this})},i.prototype.typeId=208,i.prototype.typeName="GroupsInfo",i})()),$t=(l.GroupId=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(26).string(t.Name),null!=t.AllowChangePresence&&Object.hasOwnProperty.call(t,"AllowChangePresence")&&n.uint32(32).bool(t.AllowChangePresence),null!=t.ShowGroupMembers&&Object.hasOwnProperty.call(t,"ShowGroupMembers")&&n.uint32(40).bool(t.ShowGroupMembers),null!=t.ShowGroupCalls&&Object.hasOwnProperty.call(t,"ShowGroupCalls")&&n.uint32(48).bool(t.ShowGroupCalls),null!=t.ShowMyPresence&&Object.hasOwnProperty.call(t,"ShowMyPresence")&&n.uint32(56).bool(t.ShowMyPresence),null!=t.ShowMyCalls&&Object.hasOwnProperty.call(t,"ShowMyCalls")&&n.uint32(64).bool(t.ShowMyCalls),null!=t.PerformOperations&&Object.hasOwnProperty.call(t,"PerformOperations")&&n.uint32(72).bool(t.PerformOperations),null!=t.AssignClearOperations&&Object.hasOwnProperty.call(t,"AssignClearOperations")&&n.uint32(80).bool(t.AssignClearOperations),null!=t.AllowToManageCompanyBook&&Object.hasOwnProperty.call(t,"AllowToManageCompanyBook")&&n.uint32(88).bool(t.AllowToManageCompanyBook),null!=t.RoleName&&Object.hasOwnProperty.call(t,"RoleName")&&n.uint32(98).string(t.RoleName),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(106).string(t.Number),null!=t.IsPrimaryGroup&&Object.hasOwnProperty.call(t,"IsPrimaryGroup")&&n.uint32(112).bool(t.IsPrimaryGroup),null!=t.CanSeeGroupRecordings&&Object.hasOwnProperty.call(t,"CanSeeGroupRecordings")&&n.uint32(120).bool(t.CanSeeGroupRecordings),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.GroupId;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Name=t.string();break;case 4:o.AllowChangePresence=t.bool();break;case 5:o.ShowGroupMembers=t.bool();break;case 6:o.ShowGroupCalls=t.bool();break;case 7:o.ShowMyPresence=t.bool();break;case 8:o.ShowMyCalls=t.bool();break;case 9:o.PerformOperations=t.bool();break;case 10:o.AssignClearOperations=t.bool();break;case 11:o.AllowToManageCompanyBook=t.bool();break;case 12:o.RoleName=t.string();break;case 13:o.Number=t.string();break;case 14:o.IsPrimaryGroup=t.bool();break;case 15:o.CanSeeGroupRecordings=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.GroupIds=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.GroupId.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.GroupIds;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.GroupId.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.CallParticipant=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.CallerName&&Object.hasOwnProperty.call(t,"CallerName")&&n.uint32(26).string(t.CallerName),null!=t.CallerID&&Object.hasOwnProperty.call(t,"CallerID")&&n.uint32(34).string(t.CallerID),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.CallParticipant;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.CallerName=t.string();break;case 4:o.CallerID=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.CallParticipants=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.CallParticipant.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.CallParticipants;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.CallParticipant.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.CallState=(()=>{const i={},e=Object.create(i);return e[i[0]="Unknown"]=0,e[i[1]="Initiating"]=1,e[i[2]="Routing"]=2,e[i[3]="Talking"]=3,e[i[4]="Transferring"]=4,e[i[5]="Rerouting"]=5,e})(),l.LocalConnectionState=(()=>{const i={},e=Object.create(i);return e[i[0]="UnknownState"]=0,e[i[1]="Ringing"]=1,e[i[2]="Dialing"]=2,e[i[3]="Connected"]=3,e[i[4]="WaitingForNewParty"]=4,e[i[5]="TryingToTransfer"]=5,e})(),l.ConnectionCapabilities=(()=>{const i={},e=Object.create(i);return e[i[0]="CC_None"]=0,e[i[1]="CC_Drop"]=1,e[i[2]="CC_Divert"]=2,e[i[4]="CC_Transfer"]=4,e[i[8]="CC_Pickup"]=8,e[i[16]="CC_BargeIn"]=16,e[i[32]="CC_Quality"]=32,e})(),l.LocalConnectionConferenceType=(()=>{const i={},e=Object.create(i);return e[i[0]="LCCT_NotAConference"]=0,e[i[1]="LCCT_AdHocPublic"]=1,e[i[2]="LCCT_AdHocPrivate"]=2,e[i[3]="LCCT_Scheduled"]=3,e})(),l.LocalConnection=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.CallId&&Object.hasOwnProperty.call(t,"CallId")&&n.uint32(24).int32(t.CallId),null!=t.LegId&&Object.hasOwnProperty.call(t,"LegId")&&n.uint32(32).int32(t.LegId),null!=t.State&&Object.hasOwnProperty.call(t,"State")&&n.uint32(40).int32(t.State),null!=t.OriginatorType&&Object.hasOwnProperty.call(t,"OriginatorType")&&n.uint32(48).int32(t.OriginatorType),null!=t.OriginatorDn&&Object.hasOwnProperty.call(t,"OriginatorDn")&&n.uint32(58).string(t.OriginatorDn),null!=t.OriginatorName&&Object.hasOwnProperty.call(t,"OriginatorName")&&n.uint32(66).string(t.OriginatorName),null!=t.OtherPartyType&&Object.hasOwnProperty.call(t,"OtherPartyType")&&n.uint32(72).int32(t.OtherPartyType),null!=t.OtherPartyDisplayName&&Object.hasOwnProperty.call(t,"OtherPartyDisplayName")&&n.uint32(82).string(t.OtherPartyDisplayName),null!=t.OtherPartyCallerId&&Object.hasOwnProperty.call(t,"OtherPartyCallerId")&&n.uint32(90).string(t.OtherPartyCallerId),null!=t.IsIncoming&&Object.hasOwnProperty.call(t,"IsIncoming")&&n.uint32(96).bool(t.IsIncoming),null!=t.StartedAt&&Object.hasOwnProperty.call(t,"StartedAt")&&l.DateTime.encode(t.StartedAt,n.uint32(106).fork()).ldelim(),null!=t.AnsweredAt&&Object.hasOwnProperty.call(t,"AnsweredAt")&&l.DateTime.encode(t.AnsweredAt,n.uint32(114).fork()).ldelim(),null!=t.OwnerType&&Object.hasOwnProperty.call(t,"OwnerType")&&n.uint32(120).int32(t.OwnerType),null!=t.OwnerDn&&Object.hasOwnProperty.call(t,"OwnerDn")&&n.uint32(130).string(t.OwnerDn),null!=t.OwnerDisplayName&&Object.hasOwnProperty.call(t,"OwnerDisplayName")&&n.uint32(138).string(t.OwnerDisplayName),null!=t.LocalID&&Object.hasOwnProperty.call(t,"LocalID")&&n.uint32(146).string(t.LocalID),null!=t.CallCapabilitiesMask&&Object.hasOwnProperty.call(t,"CallCapabilitiesMask")&&n.uint32(152).int32(t.CallCapabilitiesMask),null!=t.ReplacesCall&&Object.hasOwnProperty.call(t,"ReplacesCall")&&n.uint32(160).int32(t.ReplacesCall),null!=t.ReplacesLeg&&Object.hasOwnProperty.call(t,"ReplacesLeg")&&n.uint32(168).int32(t.ReplacesLeg),null!=t.OtherPartyDn&&Object.hasOwnProperty.call(t,"OtherPartyDn")&&n.uint32(178).string(t.OtherPartyDn),null!=t.OwnerCallerId&&Object.hasOwnProperty.call(t,"OwnerCallerId")&&n.uint32(186).string(t.OwnerCallerId),null!=t.SLABreach&&Object.hasOwnProperty.call(t,"SLABreach")&&n.uint32(192).bool(t.SLABreach),null!=t.DeviceContact&&Object.hasOwnProperty.call(t,"DeviceContact")&&n.uint32(202).string(t.DeviceContact),null!=t.Recording&&Object.hasOwnProperty.call(t,"Recording")&&n.uint32(208).bool(t.Recording),null!=t.tag3cx&&Object.hasOwnProperty.call(t,"tag3cx")&&n.uint32(218).string(t.tag3cx),null!=t.RecordingPaused&&Object.hasOwnProperty.call(t,"RecordingPaused")&&n.uint32(224).bool(t.RecordingPaused),null!=t.DeviceDirectControl&&Object.hasOwnProperty.call(t,"DeviceDirectControl")&&n.uint32(232).bool(t.DeviceDirectControl),null!=t.OtherPartyCompanyContactRefs&&Object.hasOwnProperty.call(t,"OtherPartyCompanyContactRefs")&&n.uint32(242).string(t.OtherPartyCompanyContactRefs),null!=t.SIPDialogID&&Object.hasOwnProperty.call(t,"SIPDialogID")&&n.uint32(258).string(t.SIPDialogID),null!=t.CrmContactUrl&&Object.hasOwnProperty.call(t,"CrmContactUrl")&&n.uint32(266).string(t.CrmContactUrl),null!=t.ConferenceStateID&&Object.hasOwnProperty.call(t,"ConferenceStateID")&&n.uint32(272).int32(t.ConferenceStateID),null!=t.ConferenceType&&Object.hasOwnProperty.call(t,"ConferenceType")&&n.uint32(280).int32(t.ConferenceType),null!=t.ConferenceName&&Object.hasOwnProperty.call(t,"ConferenceName")&&n.uint32(290).string(t.ConferenceName),null!=t.ConferenceOwner&&Object.hasOwnProperty.call(t,"ConferenceOwner")&&n.uint32(298).string(t.ConferenceOwner),null!=t.CallScreening&&Object.hasOwnProperty.call(t,"CallScreening")&&n.uint32(306).string(t.CallScreening),null!=t.SIPPickupInfo&&Object.hasOwnProperty.call(t,"SIPPickupInfo")&&n.uint32(314).string(t.SIPPickupInfo),null!=t.SIPOtherPartyCID&&Object.hasOwnProperty.call(t,"SIPOtherPartyCID")&&n.uint32(322).string(t.SIPOtherPartyCID),null!=t.SIPOtherPartyCN&&Object.hasOwnProperty.call(t,"SIPOtherPartyCN")&&n.uint32(330).string(t.SIPOtherPartyCN),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.LocalConnection;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.CallId=t.int32();break;case 4:o.LegId=t.int32();break;case 5:o.State=t.int32();break;case 6:o.OriginatorType=t.int32();break;case 7:o.OriginatorDn=t.string();break;case 8:o.OriginatorName=t.string();break;case 9:o.OtherPartyType=t.int32();break;
1case 10:o.OtherPartyDisplayName=t.string();break;case 11:o.OtherPartyCallerId=t.string();break;case 12:o.IsIncoming=t.bool();break;case 13:o.StartedAt=l.DateTime.decode(t,t.uint32());break;case 14:o.AnsweredAt=l.DateTime.decode(t,t.uint32());break;case 15:o.OwnerType=t.int32();break;case 16:o.OwnerDn=t.string();break;case 17:o.OwnerDisplayName=t.string();break;case 18:o.LocalID=t.string();break;case 19:o.CallCapabilitiesMask=t.int32();break;case 20:o.ReplacesCall=t.int32();break;case 21:o.ReplacesLeg=t.int32();break;case 22:o.OtherPartyDn=t.string();break;case 23:o.OwnerCallerId=t.string();break;case 24:o.SLABreach=t.bool();break;case 25:o.DeviceContact=t.string();break;case 26:o.Recording=t.bool();break;case 27:o.tag3cx=t.string();break;case 28:o.RecordingPaused=t.bool();break;case 29:o.DeviceDirectControl=t.bool();break;case 30:o.OtherPartyCompanyContactRefs=t.string();break;case 32:o.SIPDialogID=t.string();break;case 33:o.CrmContactUrl=t.string();break;case 34:o.ConferenceStateID=t.int32();break;case 35:o.ConferenceType=t.int32();break;case 36:o.ConferenceName=t.string();break;case 37:o.ConferenceOwner=t.string();break;case 38:o.CallScreening=t.string();break;case 39:o.SIPPickupInfo=t.string();break;case 40:o.SIPOtherPartyCID=t.string();break;case 41:o.SIPOtherPartyCN=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.LocalConnections=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.LocalConnection.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.LocalConnections;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.LocalConnection.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.Call=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Owner&&Object.hasOwnProperty.call(t,"Owner")&&n.uint32(34).string(t.Owner),null!=t.TalkingTo&&Object.hasOwnProperty.call(t,"TalkingTo")&&n.uint32(42).string(t.TalkingTo),null!=t.RoutingTo&&Object.hasOwnProperty.call(t,"RoutingTo")&&n.uint32(50).string(t.RoutingTo),null!=t.StartedAt&&Object.hasOwnProperty.call(t,"StartedAt")&&l.DateTime.encode(t.StartedAt,n.uint32(58).fork()).ldelim(),null!=t.AnsweredAt&&Object.hasOwnProperty.call(t,"AnsweredAt")&&l.DateTime.encode(t.AnsweredAt,n.uint32(66).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Call;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 4:o.Owner=t.string();break;case 5:o.TalkingTo=t.string();break;case 6:o.RoutingTo=t.string();break;case 7:o.StartedAt=l.DateTime.decode(t,t.uint32());break;case 8:o.AnsweredAt=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.Calls=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.Call.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Calls;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.Call.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.ConferenceParticipantStatus=(()=>{const i={},e=Object.create(i);return e[i[0]="CONNECTED"]=0,e[i[1]="MUTED"]=1,e[i[2]="HELDBYCONFERENCE"]=2,e[i[3]="HELDBYPARTICIPANT"]=3,e[i[4]="JOINING"]=4,e[i[5]="FAILEDTOREACH"]=5,e[i[6]="DISCONNECTED"]=6,e})(),l.ConferenceParticipant=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(26).string(t.Number),null!=t.DisplayName&&Object.hasOwnProperty.call(t,"DisplayName")&&n.uint32(34).string(t.DisplayName),null!=t.Status&&Object.hasOwnProperty.call(t,"Status")&&n.uint32(40).int32(t.Status),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ConferenceParticipant;
vendor: 12,463 bytes, line 1
1for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Number=t.string();break;case 4:o.DisplayName=t.string();break;case 5:o.Status=t.int32();break;default:t.skipType(7&c)}}return o},i})(),l.ConferenceParticipants=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.ConferenceParticipant.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ConferenceParticipants;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.ConferenceParticipant.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.WebRtcInboundRule=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.IsEnabled&&Object.hasOwnProperty.call(t,"IsEnabled")&&n.uint32(24).bool(t.IsEnabled),null!=t.DID&&Object.hasOwnProperty.call(t,"DID")&&n.uint32(34).string(t.DID),null!=t.CallUrl&&Object.hasOwnProperty.call(t,"CallUrl")&&n.uint32(42).string(t.CallUrl),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WebRtcInboundRule;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.IsEnabled=t.bool();break;case 4:o.DID=t.string();break;case 5:o.CallUrl=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.WebRtcInboundRules=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.WebRtcInboundRule.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WebRtcInboundRules;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.WebRtcInboundRule.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.DIDRuleInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.ActiveHoursType&&Object.hasOwnProperty.call(t,"ActiveHoursType")&&n.uint32(24).int32(t.ActiveHoursType),null!=t.DIDName&&Object.hasOwnProperty.call(t,"DIDName")&&n.uint32(34).string(t.DIDName),null!=t.DIDNumber&&Object.hasOwnProperty.call(t,"DIDNumber")&&n.uint32(42).string(t.DIDNumber),null!=t.CalledAtSpecifiedTime&&Object.hasOwnProperty.call(t,"CalledAtSpecifiedTime")&&n.uint32(48).bool(t.CalledAtSpecifiedTime),null!=t.CalledOutOfSpecifiedTime&&Object.hasOwnProperty.call(t,"CalledOutOfSpecifiedTime")&&n.uint32(56).bool(t.CalledOutOfSpecifiedTime),null!=t.CalledOnHolidays&&Object.hasOwnProperty.call(t,"CalledOnHolidays")&&n.uint32(64).bool(t.CalledOnHolidays),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.DIDRuleInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.ActiveHoursType=t.int32();break;case 4:o.DIDName=t.string();break;case 5:o.DIDNumber=t.string();break;case 6:o.CalledAtSpecifiedTime=t.bool();break;case 7:o.CalledOutOfSpecifiedTime=t.bool();break;case 8:o.CalledOnHolidays=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.DIDRuleInfos=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.DIDRuleInfo.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.DIDRuleInfos;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.DIDRuleInfo.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.MyExtensionInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(26).string(t.Number),null!=t.MobileNumber&&Object.hasOwnProperty.call(t,"MobileNumber")&&n.uint32(34).string(t.MobileNumber),null!=t.Email&&Object.hasOwnProperty.call(t,"Email")&&n.uint32(42).string(t.Email),null!=t.QueueStatus&&Object.hasOwnProperty.call(t,"QueueStatus")&&n.uint32(48).bool(t.QueueStatus),null!=t.FirstName&&Object.hasOwnProperty.call(t,"FirstName")&&n.uint32(58).string(t.FirstName),null!=t.LastName&&Object.hasOwnProperty.call(t,"LastName")&&n.uint32(66).string(t.LastName),null!=t.ActiveDevices&&Object.hasOwnProperty.call(t,"ActiveDevices")&&l.Registrations.encode(t.ActiveDevices,n.uint32(74).fork()).ldelim(),null!=t.CurrentProfile&&Object.hasOwnProperty.call(t,"CurrentProfile")&&n.uint32(80).int32(t.CurrentProfile),null!=t.VoiceMailBox&&Object.hasOwnProperty.call(t,"VoiceMailBox")&&l.VoiceMails.encode(t.VoiceMailBox,n.uint32(90).fork()).ldelim(),null!=t.MyGroups&&Object.hasOwnProperty.call(t,"MyGroups")&&l.GroupIds.encode(t.MyGroups,n.uint32(98).fork()).ldelim(),null!=t.MyProfiles&&Object.hasOwnProperty.call(t,"MyProfiles")&&l.ForwardingProfiles.encode(t.MyProfiles,n.uint32(106).fork()).ldelim(),null!=t.DND&&Object.hasOwnProperty.call(t,"DND")&&n.uint32(112).bool(t.DND),null!=t.MyCalls&&Object.hasOwnProperty.call(t,"MyCalls")&&l.Calls.encode(t.MyCalls,n.uint32(122).fork()).ldelim(),null!=t.OfficeHours&&Object.hasOwnProperty.call(t,"OfficeHours")&&n.uint32(128).int32(t.OfficeHours),null!=t.ChatStatus&&Object.hasOwnProperty.call(t,"ChatStatus")&&n.uint32(136).int32(t.ChatStatus),null!=t.Connections&&Object.hasOwnProperty.call(t,"Connections")&&l.LocalConnections.encode(t.Connections,n.uint32(146).fork()).ldelim(),null!=t.OtherConnections&&Object.hasOwnProperty.call(t,"OtherConnections")&&l.LocalConnections.encode(t.OtherConnections,n.uint32(162).fork()).ldelim(),null!=t.PrivateConference&&Object.hasOwnProperty.call(t,"PrivateConference")&&l.ConferenceParticipants.encode(t.PrivateConference,n.uint32(170).fork()).ldelim(),null!=t.AllowEditFwRules&&Object.hasOwnProperty.call(t,"AllowEditFwRules")&&n.uint32(176).bool(t.AllowEditFwRules),null!=t.DeskphonePassword&&Object.hasOwnProperty.call(t,"DeskphonePassword")&&n.uint32(186).string(t.DeskphonePassword),null!=t.MissedCallsCount&&Object.hasOwnProperty.call(t,"MissedCallsCount")&&n.uint32(192).int32(t.MissedCallsCount),null!=t.WebMeetingMD5Password&&Object.hasOwnProperty.call(t,"WebMeetingMD5Password")&&n.uint32(202).string(t.WebMeetingMD5Password),null!=t.WebRtcInboundRules&&Object.hasOwnProperty.call(t,"WebRtcInboundRules")&&l.WebRtcInboundRules.encode(t.WebRtcInboundRules,n.uint32(210).fork()).ldelim(),null!=t.HasCurrentProfileOverride&&Object.hasOwnProperty.call(t,"HasCurrentProfileOverride")&&n.uint32(216).bool(t.HasCurrentProfileOverride),null!=t.CurrentProfileOverride&&Object.hasOwnProperty.call(t,"CurrentProfileOverride")&&n.uint32(224).int32(t.CurrentProfileOverride),null!=t.OverrideExpiresAtUTCTime&&Object.hasOwnProperty.call(t,"OverrideExpiresAtUTCTime")&&l.DateTime.encode(t.OverrideExpiresAtUTCTime,n.uint32(234).fork()).ldelim(),null!=t.OverrideCurrentStatus&&Object.hasOwnProperty.call(t,"OverrideCurrentStatus")&&n.uint32(242).string(t.OverrideCurrentStatus),null!=t.OverrideAttachedData&&Object.hasOwnProperty.call(t,"OverrideAttachedData")&&n.uint32(250).string(t.OverrideAttachedData),null!=t.SharedBlfs&&Object.hasOwnProperty.call(t,"SharedBlfs")&&n.uint32(258).string(t.SharedBlfs),null!=t.QuickMeetingLink&&Object.hasOwnProperty.call(t,"QuickMeetingLink")&&n.uint32(266).string(t.QuickMeetingLink),null!=t.WmFriendlyName&&Object.hasOwnProperty.call(t,"WmFriendlyName")&&n.uint32(274).string(t.WmFriendlyName),null!=t.WmPrivateRooms&&Object.hasOwnProperty.call(t,"WmPrivateRooms")&&n.uint32(280).bool(t.WmPrivateRooms),null!=t.WmModerateParticipants&&Object.hasOwnProperty.call(t,"WmModerateParticipants")&&n.uint32(288).bool(t.WmModerateParticipants),null!=t.QuickMeetingOpenLink&&Object.hasOwnProperty.call(t,"QuickMeetingOpenLink")&&n.uint32(298).string(t.QuickMeetingOpenLink),null!=t.ContactImage&&Object.hasOwnProperty.call(t,"ContactImage")&&n.uint32(306).string(t.ContactImage),null!=t.CanSeeRecordings&&Object.hasOwnProperty.call(t,"CanSeeRecordings")&&n.uint32(312).bool(t.CanSeeRecordings),null!=t.CanDeleteRecordings&&Object.hasOwnProperty.call(t,"CanDeleteRecordings")&&n.uint32(320).bool(t.CanDeleteRecordings),null!=t.ProvLink&&Object.hasOwnProperty.call(t,"ProvLink")&&n.uint32(330).string(t.ProvLink),null!=t.AllowControlOwnRecordings&&Object.hasOwnProperty.call(t,"AllowControlOwnRecordings")&&n.uint32(336).bool(t.AllowControlOwnRecordings),null!=t.Subscriptions&&Object.hasOwnProperty.call(t,"Subscriptions")&&l.PushSubscriptions.encode(t.Subscriptions,n.uint32(346).fork()).ldelim(),null!=t.AllowWebrtcEndpoint&&Object.hasOwnProperty.call(t,"AllowWebrtcEndpoint")&&n.uint32(352).bool(t.AllowWebrtcEndpoint),null!=t.Settings&&Object.hasOwnProperty.call(t,"Settings")&&l.UserSettings.encode(t.Settings,n.uint32(362).fork()).ldelim(),null!=t.ActiveDids&&Object.hasOwnProperty.call(t,"ActiveDids")&&l.DIDRuleInfos.encode(t.ActiveDids,n.uint32(370).fork()).ldelim(),null!=t.Language&&Object.hasOwnProperty.call(t,"Language")&&n.uint32(378).string(t.Language),null!=t.Office365Enabled&&Object.hasOwnProperty.call(t,"Office365Enabled")&&n.uint32(384).bool(t.Office365Enabled),null!=t.HasExchangeLicense&&Object.hasOwnProperty.call(t,"HasExchangeLicense")&&n.uint32(392).bool(t.HasExchangeLicense),null!=t.MonitorExpiration&&Object.hasOwnProperty.call(t,"MonitorExpiration")&&l.DateTime.encode(t.MonitorExpiration,n.uint32(402).fork()).ldelim(),null!=t.AgentSettings&&Object.hasOwnProperty.call(t,"AgentSettings")&&n.uint32(410).string(t.AgentSettings),null!=t.TotalVmails&&Object.hasOwnProperty.call(t,"TotalVmails")&&n.uint32(416).int32(t.TotalVmails),null!=t.NewVmails&&Object.hasOwnProperty.call(t,"NewVmails")&&n.uint32(424).int32(t.NewVmails),null!=t.VmailEnabled&&Object.hasOwnProperty.call(t,"VmailEnabled")&&n.uint32(432).bool(t.VmailEnabled),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.MyExtensionInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Number=t.string();break;case 4:o.MobileNumber=t.string();break;case 5:o.Email=t.string();break;case 6:o.QueueStatus=t.bool();break;case 7:o.FirstName=t.string();break;case 8:o.LastName=t.string();break;case 9:o.ActiveDevices=l.Registrations.decode(t,t.uint32());break;case 10:o.CurrentProfile=t.int32();break;case 11:o.VoiceMailBox=l.VoiceMails.decode(t,t.uint32());break;case 12:o.MyGroups=l.GroupIds.decode(t,t.uint32());break;case 13:o.MyProfiles=l.ForwardingProfiles.decode(t,t.uint32());break;case 14:o.DND=t.bool();break;case 15:o.MyCalls=l.Calls.decode(t,t.uint32());break;case 16:o.OfficeHours=t.int32();break;case 17:o.ChatStatus=t.int32();break;
1case 18:o.Connections=l.LocalConnections.decode(t,t.uint32());break;case 20:o.OtherConnections=l.LocalConnections.decode(t,t.uint32());break;case 21:o.PrivateConference=l.ConferenceParticipants.decode(t,t.uint32());break;case 22:o.AllowEditFwRules=t.bool();break;case 23:o.DeskphonePassword=t.string();break;case 24:o.MissedCallsCount=t.int32();break;case 25:o.WebMeetingMD5Password=t.string();break;case 26:o.WebRtcInboundRules=l.WebRtcInboundRules.decode(t,t.uint32());break;case 27:o.HasCurrentProfileOverride=t.bool();break;case 28:o.CurrentProfileOverride=t.int32();break;case 29:o.OverrideExpiresAtUTCTime=l.DateTime.decode(t,t.uint32());break;case 30:o.OverrideCurrentStatus=t.string();break;case 31:o.OverrideAttachedData=t.string();break;case 32:o.SharedBlfs=t.string();break;case 33:o.QuickMeetingLink=t.string();break;case 34:o.WmFriendlyName=t.string();break;case 35:o.WmPrivateRooms=t.bool();break;case 36:o.WmModerateParticipants=t.bool();break;case 37:o.QuickMeetingOpenLink=t.string();break;case 38:o.ContactImage=t.string();break;case 39:o.CanSeeRecordings=t.bool();break;case 40:o.CanDeleteRecordings=t.bool();break;case 41:o.ProvLink=t.string();break;case 42:o.AllowControlOwnRecordings=t.bool();break;case 43:o.Subscriptions=l.PushSubscriptions.decode(t,t.uint32());break;case 44:o.AllowWebrtcEndpoint=t.bool();break;case 45:o.Settings=l.UserSettings.decode(t,t.uint32());break;case 46:o.ActiveDids=l.DIDRuleInfos.decode(t,t.uint32());break;case 47:o.Language=t.string();break;case 48:o.Office365Enabled=t.bool();break;case 49:o.HasExchangeLicense=t.bool();break;case 50:o.MonitorExpiration=l.DateTime.decode(t,t.uint32());break;case 51:o.AgentSettings=t.string();break;case 52:o.TotalVmails=t.int32();break;case 53:o.NewVmails=t.int32();break;case 54:o.VmailEnabled=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:201,MyInfo:this})},i.prototype.typeId=201,i.prototype.typeName="MyInfo",i})()),ho=l.RequestSetLanguage=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Language&&Object.hasOwnProperty.call(t,"Language")&&n.uint32(10).string(t.Language),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetLanguage;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Language=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:514,SetLanguage:this})},i.prototype.typeId=514,i.prototype.typeName="SetLanguage",i})(),Oo=(l.UserSettings=(()=>{function i(e){if(this.ChatBlockedUsers=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.ChatBlockedUsers=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.ChatBlockedUsers&&t.ChatBlockedUsers.length)for(let u=0;u<t.ChatBlockedUsers.length;++u)n.uint32(10).string(t.ChatBlockedUsers[u]);return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.UserSettings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.ChatBlockedUsers&&o.ChatBlockedUsers.length||(o.ChatBlockedUsers=[]),o.ChatBlockedUsers.push(t.string())):t.skipType(7&c)}return o},i})(),l.RequestUpdateUserSettings=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Settings&&Object.hasOwnProperty.call(t,"Settings")&&l.UserSettings.encode(t.Settings,n.uint32(10).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdateUserSettings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Settings=l.UserSettings.decode(t,t.uint32()):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:192,UpdateUserSettings:this})},i.prototype.typeId=192,i.prototype.typeName="UpdateUserSettings",i})()),ko=l.ConferenceState=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Participants&&Object.hasOwnProperty.call(t,"Participants")&&l.ConferenceParticipants.encode(t.Participants,n.uint32(26).fork()).ldelim(),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(34).string(t.Name),null!=t.Description&&Object.hasOwnProperty.call(t,"Description")&&n.uint32(42).string(t.Description),null!=t.StartAt&&Object.hasOwnProperty.call(t,"StartAt")&&n.uint32(50).string(t.StartAt),null!=t.EndAt&&Object.hasOwnProperty.call(t,"EndAt")&&n.uint32(58).string(t.EndAt),null!=t.IsActive&&Object.hasOwnProperty.call(t,"IsActive")&&n.uint32(64).bool(t.IsActive),null!=t.IsScheduled&&Object.hasOwnProperty.call(t,"IsScheduled")&&n.uint32(72).bool(t.IsScheduled),null!=t.PinCode&&Ob
1ject.hasOwnProperty.call(t,"PinCode")&&n.uint32(82).string(t.PinCode),null!=t.ScheduleID&&Object.hasOwnProperty.call(t,"ScheduleID")&&n.uint32(88).int32(t.ScheduleID),null!=t.Cancelled&&Object.hasOwnProperty.call(t,"Cancelled")&&n.uint32(96).bool(t.Cancelled),null!=t.DisableUserInteractions&&Object.hasOwnProperty.call(t,"DisableUserInteractions")&&n.uint32(104).bool(t.DisableUserInteractions),null!=t.Type&&Object.hasOwnProperty.call(t,"Type")&&n.uint32(112).int32(t.Type),null!=t.webMeetingParticipants&&Object.hasOwnProperty.call(t,"webMeetingParticipants")&&l.ConferenceParticipants.encode(t.webMeetingParticipants,n.uint32(122).fork()).ldelim(),null!=t.OwnedBy&&Object.hasOwnProperty.call(t,"OwnedBy")&&n.uint32(130).string(t.OwnedBy),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ConferenceState;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Participants=l.ConferenceParticipants.decode(t,t.uint32());break;case 4:o.Name=t.string();break;case 5:o.Description=t.string();break;case 6:o.StartAt=t.string();break;case 7:o.EndAt=t.string();break;case 8:o.IsActive=t.bool();break;case 9:o.IsScheduled=t.bool();break;case 10:o.PinCode=t.string();break;case 11:o.ScheduleID=t.int32();break;case 12:o.Cancelled=t.bool();break;case 13:o.DisableUserInteractions=t.bool();break;case 14:o.Type=t.int32();break;case 15:o.webMeetingParticipants=l.ConferenceParticipants.decode(t,t.uint32());break;case 16:o.OwnedBy=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:181,UpdateWebMeetingParticipants:this})},i.prototype.typeId=181,i.prototype.typeName="UpdateWebMeetingParticipants",i})(),Co=l.RequestUpsertScheduledConference=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.StartAtUTC&&Object.hasOwnProperty.call(t,"StartAtUTC")&&n.uint32(18).string(t.StartAtUTC),null!=t.EndAtUTC&&Object.hasOwnProperty.call(t,"EndAtUTC")&&n.uint32(26).string(t.EndAtUTC),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(34).string(t.Name),null!=t.Description&&Object.hasOwnProperty.call(t,"Description")&&n.uint32(42).string(t.Description),null!=t.Moderators&&Object.hasOwnProperty.call(t,"Moderators")&&n.uint32(50).string(t.Moderators),null!=t.DisableUserInteractions&&Object.hasOwnProperty.call(t,"DisableUserInteractions")&&n.uint32(56).bool(t.DisableUserInteractions),null!=t.ConferencePIN&&Object.hasOwnProperty.call(t,"ConferencePIN")&&n.uint32(66).string(t.ConferencePIN),null!=t.ExternalNumberOfConference&&Object.hasOwnProperty.call(t,"ExternalNumberOfConference")&&n.uint32(74).string(t.ExternalNumberOfConference),null!=t.Emails&&Object.hasOwnProperty.call(t,"Emails")&&n.uint32(82).string(t.Emails),null!=t.EmailBody&&Object.hasOwnProperty.call(t,"EmailBody")&&n.uint32(90).string(t.EmailBody),null!=t.DeleteSchedule&&Object.hasOwnProperty.call(t,"DeleteSchedule")&&n.uint32(96).bool(t.DeleteSchedule),null!=t.InternalParticipants&&Object.hasOwnProperty.call(t,"InternalParticipants")&&n.uint32(106).string(t.InternalParticipants),null!=t.CallToExternalNumbers&&Object.hasOwnProperty.call(t,"CallToExternalNumbers")&&n.uint32(114).string(t.CallToExternalNumbers),null!=t.CalendarType&&Object.hasOwnProperty.call(t,"CalendarType")&&n.uint32(120).int32(t.CalendarType),null!=t.webMeetingScheduleState&&Object.hasOwnProperty.call(t,"webMeetingScheduleState")&&l.WebMeetingState.encode(t.webMeetingScheduleState,n.uint32(130).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpsertScheduledConference;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.StartAtUTC=t.string();break;case 3:o.EndAtUTC=t.string();break;case 4:o.Name=t.string();break;case 5:o.Description=t.string();break;case 6:o.Moderators=t.string();break;case 7:o.DisableUserInteractions=t.bool();break;case 8:o.ConferencePIN=t.string();break;case 9:o.ExternalNumberOfConference=t.string();break;case 10:o.Emails=t.string();break;case 11:o.EmailBody=t.string();break;case 12:o.DeleteSchedule=t.bool();break;case 13:o.InternalParticipants=t.string();break;case 14:o.CallToExternalNumbers=t.string();break;case 15:o.CalendarType=t.int32();break;case 16:o.webMeetingScheduleState=l.WebMeetingState.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:133,ScheduleConferenceRequest:this})},i.prototype.typeId=133,i.prototype.typeName="ScheduleConferenceRequest",i})(),Po=(l.WebMeetingParticipant=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Key&&Object.hasOwnProperty.call(t,"Key")&&n.uint32(18).string(t.Key),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(26).string(t.Name),null!=t.Email&&Object.hasOwnProperty.call(t,"Email")&&n.uint32(34).string(t.Email),null!=t.Moderator&&Object.hasOwnProperty.call(t,"Moderator")&&n.uint32(40).bool(t.Moderator),null!=t.ExtensionNumber&&Object.hasOwnProperty.call(t,"ExtensionNumber")&&n.uint32(50).string(t.ExtensionNumber),null!=t.NotificationStatus&&Object.hasOwnProperty.call(t,"NotificationStatus")&&n.uint32(58).string(t.NotificationStatus),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WebMeetingParticipant;
1for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Key=t.string();break;case 3:o.Name=t.string();break;case 4:o.Email=t.string();break;case 5:o.Moderator=t.bool();break;case 6:o.ExtensionNumber=t.string();break;case 7:o.NotificationStatus=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.WebMeetings=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.WebMeetingState.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WebMeetings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.WebMeetingState.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:224,ActiveWebMeetings:this})},i.prototype.typeId=224,i.prototype.typeName="ActiveWebMeetings",i})()),Mo=(l.WebMeetingParticipants=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.WebMeetingParticipant.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WebMeetingParticipants;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.WebMeetingParticipant.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.RequestGetWebMeetings=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetWebMeetings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:154,GetWebMeetings:this})},i.prototype.typeId=154,i.prototype.typeName="GetWebMeetings",i})()),Ro=l.WebMeetingState=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.StartAtUTC&&Object.hasOwnProperty.call(t,"StartAtUTC")&&n.uint32(26).string(t.StartAtUTC),null!=t.Duration&&Object.hasOwnProperty.call(t,"Duration")&&n.uint32(32).int32(t.Duration),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(42).string(t.Name),null!=t.Description&&Object.hasOwnProperty.call(t,"Description")&&n.uint32(50).string(t.Description),null!=t.Organizer&&Object.hasOwnProperty.call(t,"Organizer")&&l.WebMeetingParticipant.encode(t.Organizer,n.uint32(58).fork()).ldelim(),null!=t.HideParticipants&&Object.hasOwnProperty.call(t,"HideParticipants")&&n.uint32(64).bool(t.HideParticipants),null!=t.ForceModerator&&Object.hasOwnProperty.call(t,"ForceModerator")&&n.uint32(72).bool(t.ForceModerator),null!=t.CanChangeMedia&&Object.hasOwnProperty.call(t,"CanChangeMedia")&&n.uint32(80).bool(t.CanChangeMedia),null!=t.NeedOrganizer&&Object.hasOwnProperty.call(t,"NeedOrganizer")&&n.uint32(88).bool(t.NeedOrganizer),null!=t.PreferredMCU&&Object.hasOwnProperty.call(t,"PreferredMCU")&&n.uint32(98).string(t.PreferredMCU),null!=t.Participants&&Object.hasOwnProperty.call(t,"Participants")&&l.WebMeetingParticipants.encode(t.Participants,n.uint32(106).fork()).ldelim(),null!=t.UserRole&&Object.hasOwnProperty.call(t,"UserRole")&&n.uint32(112).int32(t.UserRole),null!=t.Type&&Object.hasOwnProperty.call(t,"Type")&&n.uint32(128).int32(t.Type),null!=t.Pin&&Object.hasOwnProperty.call(t,"Pin")&&n.uint32(138).string(t.P
1in),null!=t.NumberToCall&&Object.hasOwnProperty.call(t,"NumberToCall")&&n.uint32(146).string(t.NumberToCall),null!=t.DisableUserInteractions&&Object.hasOwnProperty.call(t,"DisableUserInteractions")&&n.uint32(152).bool(t.DisableUserInteractions),null!=t.BitrateData&&Object.hasOwnProperty.call(t,"BitrateData")&&n.uint32(160).int32(t.BitrateData),null!=t.BitrateVideo&&Object.hasOwnProperty.call(t,"BitrateVideo")&&n.uint32(168).int32(t.BitrateVideo),null!=t.VideoFormat&&Object.hasOwnProperty.call(t,"VideoFormat")&&n.uint32(178).string(t.VideoFormat),null!=t.ParticipantsProperties&&Object.hasOwnProperty.call(t,"ParticipantsProperties")&&n.uint32(186).string(t.ParticipantsProperties),null!=t.IsPrivateRoom&&Object.hasOwnProperty.call(t,"IsPrivateRoom")&&n.uint32(192).bool(t.IsPrivateRoom),null!=t.EmailBody&&Object.hasOwnProperty.call(t,"EmailBody")&&n.uint32(202).string(t.EmailBody),null!=t.MeetingProfile&&Object.hasOwnProperty.call(t,"MeetingProfile")&&n.uint32(208).int32(t.MeetingProfile),null!=t.CalendarType&&Object.hasOwnProperty.call(t,"CalendarType")&&n.uint32(216).int32(t.CalendarType),null!=t.JoinLink&&Object.hasOwnProperty.call(t,"JoinLink")&&n.uint32(226).string(t.JoinLink),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WebMeetingState;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.StartAtUTC=t.string();break;case 4:o.Duration=t.int32();break;case 5:o.Name=t.string();break;case 6:o.Description=t.string();break;case 7:o.Organizer=l.WebMeetingParticipant.decode(t,t.uint32());break;case 8:o.HideParticipants=t.bool();break;case 9:o.ForceModerator=t.bool();break;case 10:o.CanChangeMedia=t.bool();break;case 11:o.NeedOrganizer=t.bool();break;case 12:o.PreferredMCU=t.string();break;case 13:o.Participants=l.WebMeetingParticipants.decode(t,t.uint32());break;case 14:o.UserRole=t.int32();break;case 16:o.Type=t.int32();break;case 17:o.Pin=t.string();break;case 18:o.NumberToCall=t.string();break;case 19:o.DisableUserInteractions=t.bool();break;case 20:o.BitrateData=t.int32();break;case 21:o.BitrateVideo=t.int32();break;case 22:o.VideoFormat=t.string();break;case 23:o.ParticipantsProperties=t.string();break;case 24:o.IsPrivateRoom=t.bool();break;case 25:o.EmailBody=t.string();break;case 26:o.MeetingProfile=t.int32();break;case 27:o.CalendarType=t.int32();break;case 28:o.JoinLink=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:153,UpsertWebMeeting:this})},i.prototype.typeId=153,i.prototype.typeName="UpsertWebMeeting",i})(),Io=l.RequestWebMeetingPrivateRoom=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.MeetingTitle&&Object.hasOwnProperty.call(t,"MeetingTitle")&&n.uint32(10).string(t.MeetingTitle),null!=t.OrganizerProperties&&Object.hasOwnProperty.call(t,"OrganizerProperties")&&n.uint32(18).string(t.OrganizerProperties),null!=t.ParticipantsProperties&&Object.hasOwnProperty.call(t,"ParticipantsProperties")&&n.uint32(26).string(t.ParticipantsProperties),null!=t.HideParticipants&&Object.hasOwnProperty.call(t,"HideParticipants")&&n.uint32(32).bool(t.HideParticipants),null!=t.ForceModerator&&Object.hasOwnProperty.call(t,"ForceModerator")&&n.uint32(40).bool(t.ForceModerator),null!=t.CanChangeMedia&&Object.hasOwnProperty.call(t,"CanChangeMedia")&&n.uint32(48).bool(t.CanChangeMedia),null!=t.BitrateData&&Object.hasOwnProperty.call(t,"BitrateData")&&n.uint32(56).int32(t.BitrateData),null!=t.BitrateVideo&&Object.hasOwnProperty.call(t,"BitrateVideo")&&n.uint32(64).int32(t.BitrateVideo),null!=t.VideoFormat&&Object.hasOwnProperty.call(t,"VideoFormat")&&n.uint32(74).string(t.VideoFormat),null!=t.ParticipantName&&Object.hasOwnProperty.call(t,"ParticipantName")&&n.uint32(82).string(t.ParticipantName),null!=t.ClickToCall&&Object.hasOwnProperty.call(t,"ClickToCall")&&n.uint32(88).bool(t.ClickToCall),null!=t.OrganizerKey&&Object.hasOwnProperty.call(t,"OrganizerKey")&&n.uint32(98).string(t.OrganizerKey),null!=t.OpenLink&&Object.hasOwnProperty.call(t,"OpenLink")&&n.uint32(106).string(t.OpenLink),null!=t.MeetingRowId&&Object.hasOwnProperty.call(t,"MeetingRowId")&&n.uint32(112).int32(t.MeetingRowId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestWebMeetingPrivateRoom;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.MeetingTitle=t.string();break;case 2:o.OrganizerProperties=t.string();break;case 3:o.ParticipantsProperties=t.string();break;case 4:o.HideParticipants=t.bool();break;case 5:o.ForceModerator=t.bool();break;case 6:o.CanChangeMedia=t.bool();break;case 7:o.BitrateData=t.int32();break;case 8:o.BitrateVideo=t.int32();break;case 9:o.VideoFormat=t.string();break;case 10:o.ParticipantName=t.string();break;case 11:o.ClickToCall=t.bool();break;case 12:o.OrganizerKey=t.string();break;case 13:o.OpenLink=t.string();break;case 14:o.MeetingRowId=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:158,CreatePrivateRoom:this})},i.prototype.typeId=158,i.prototype.typeName="CreatePrivateRoom",i})(),jo=l.ResponseWebMeetingPrivateRoom=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.OpenLink&&Object.hasOwnProperty.call(t,"OpenLink")&&n.uint32(10).string(t.OpenLink),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseWebMeetingPrivateRoom;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.OpenLink=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:226,PrivateRoom:this})},i.prototype.typeId=226,i.prototype.typeName="PrivateRoom",i})(),To=l.RequestWebMeetingError=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ErrorMessage&&Object.hasOwnProperty.call(t,"ErrorMessage")&&n.uint32(10).string(t.ErrorMessage),null!=t.ErrorCode&&Object.hasOwnProperty.call(t,"ErrorCode")&&n.uint32(16).int32(t.ErrorCode),null!=t.Severity&&Object.hasOwnProperty.call(t,"Severity")&&n.uint32(24).int32(t.Severity),null!=t.AttachedData&&Object.hasOwnProperty.call(t,"AttachedData")&&n.uint32(34).string(t.AttachedData),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestWebMeetingError;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.ErrorMessage=t.string();break;case 2:o.ErrorCode=t.int32();break;case 3:o.Severity=t.int32();break;case 4:o.AttachedData=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:159,SendError:this})},i.prototype.typeId=159,i.prototype.typeName="SendError",i})(),So=l.RequestPutWebMeetingReports=(()=>{function i(e){if(this.Statistics=[],this.Reports=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Statistics=I.emptyArray,i.prototype.Reports=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Statistics&&t.Statistics.length)for(let u=0;u<t.Statistics.length;++u)n.uint32(10).string(t.Statistics[u]);if(null!=t.Reports&&t.Reports.length)for(let u=0;u<t.Reports.length;++u)n.uint32(18).string(t.Reports[u]);return null!=t.SessionId&&Object.hasOwnProperty.call(t,"SessionId")&&n.uint32(26).string(t.SessionId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestPutWebMeetingReports;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Statistics&&o.Statistics.length||(o.Statistics=[]),o.Statistics.push(t.string());break;case 2:o.Reports&&o.Reports.length||(o.Reports=[]),o.Reports.push(t.string());break;case 3:o.SessionId=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:157,PutWebMeetingReports:this})},i.prototype.typeId=157,i.prototype.typeName="PutWebMeetingReports",i})(),vo=l.RequestPutWebMeetingReports2=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.MeetingId&&Object.hasOwnProperty.call(t,"MeetingId")&&n.uint32(10).string(t.MeetingId),null!=t.SessionId&&Object.hasOwnProperty.call(t,"SessionId")&&n.uint32(18).string(t.SessionId),null!=t.Report&&Object.hasOwnProperty.call(t,"Report")&&n.uint32(26).string(t.Report),null!=t.MeetingTitle&&Object.hasOwnProperty.call(t,"MeetingTitle")&&n.uint32(34).string(t.MeetingTitle),null!=t.OrganizerExtension&&Object.hasOwnProperty.call(t,"OrganizerExtension")&&n.uint32(42).string(t.OrganizerExtension),null!=t.OrganizerName&&Object.hasOwnProperty.call(t,"OrganizerName")&&n.uint32(50).string(t.OrganizerName),null!=t.OrganizerEmail&&Object.hasOwnProperty.call(t,"OrganizerEmail")&&n.uint32(58).string(t.OrganizerEmail),null!=t.Duration&&Object.hasOwnProperty.call(t,"Duration")&&n.uint32(64).int32(t.Duration),null!=t.BandwidthUp&&Object.hasOwnProperty.call(t,"BandwidthUp")&&n.uint32(72).int32(t.BandwidthUp),null!=t.BandwidthDown&&Object.hasOwnProperty.call(t,"BandwidthDown")&&n.uint32(80).int32(t.BandwidthDown),null!=t.Participants&&Object.hasOwnProperty.call(t,"Participants")&&n.uint32(88).int32(t.Participants),null!=t.MaxParticipants&&Object.hasOwnProperty.call(t,"MaxParticipants")&&n.uint32(96).int32(t.MaxParticipants),null!=t.Invites&&Object.hasOwnProperty.call(t,"Invites")&&n.uint32(104).int32(t.Invites),null!=t.OpenLinks&&Object.hasOwnProperty.call(t,"OpenLinks")&&n.uint32(112).int32(t.OpenLinks),null!=t.Recorded&&Object.hasOwnProperty.call(t,"Recorded")&&n.uint32(120).bool(t.Recorded),null!=t.Mcu&&Object.hasOwnProperty.call(t,"Mcu")&&n.uint32(130).string(t.Mcu),null!=t.MeetingBegin&&Object.hasOwnProperty.call(t,"MeetingBegin")&&l.DateTime.encode(t.MeetingBegin,n.uint32(138).fork()).ldelim(),null!=t.MeetingRowId&&Object.hasOwnProperty.call(t,"MeetingRowId")&&n.uint32(144).int32(t.MeetingRowId),null!=t.MeetingObjects&&Object.hasOwnProperty.call(t,"MeetingObjects")&&n.uint32(154).string(t.MeetingObjects),null!=t.SentAt&&Object.hasOwnProperty.call(t,"SentAt")&&l.DateTime.encode(t.SentAt,n.uint32(162).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestPutWebMeetingReports2;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.MeetingId=t.string();break;case 2:o.SessionId=t.string();break;case 3:o.Report=t.string();break;case 4:o.MeetingTitle=t.string();break;case 5:o.OrganizerExtension=t.string();break;case 6:o.OrganizerName=t.string();break;case 7:o.OrganizerEmail=t.string();break;case 8:o.Duration=t.int32();break;case 9:o.BandwidthUp=t.int32();break;case 10:o.BandwidthDown=t.int32();break;case 11:o.Participants=t.int32();break;case 12:o.MaxParticipants=t.int32();break;case 13:o.Invites=t.int32();break;case 14:o.OpenLinks=t.int32();break;case 15:o.Recorded=t.bool();break;case 16:o.Mcu=t.string();break;case 17:o.MeetingBegin=l.DateTime.decode(t,t.uint32());break;case 18:o.MeetingRowId=t.int32();break;case 19:o.MeetingObjects=t.string();break;case 20:o.SentAt=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:509,PutWebMeetingReports2:this})},i.prototype.typeId=509,i.prototype.typeName="PutWebMeetingReports2",i})(),wo=l.RequestGetConferenceSchedule=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.PinCode&&Ob
1ject.hasOwnProperty.call(t,"PinCode")&&n.uint32(18).string(t.PinCode),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetConferenceSchedule;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.PinCode=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:134,GetSchedule:this})},i.prototype.typeId=134,i.prototype.typeName="GetSchedule",i})(),Go=l.RequestCreateConferenceScheduleTemplate=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestCreateConferenceScheduleTemplate;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:135,CreateConferenceScheduleTemplate:this})},i.prototype.typeId=135,i.prototype.typeName="CreateConferenceScheduleTemplate",i})(),Kt=l.Conferences=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.ConferenceState.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Conferences;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.ConferenceState.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:219,ActiveConferences:this})},i.prototype.typeId=219,i.prototype.typeName="ActiveConferences",i})(),zn=l.RequestMyInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.DontSendVM&&Object.hasOwnProperty.call(t,"DontSendVM")&&n.uint32(8).bool(t.DontSendVM),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestMyInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.DontSendVM=t.bool():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:102,GetMyInfo:this})},i.prototype.typeId=102,i.prototype.typeName="GetMyInfo",i})(),Ao=(l.FPStatusOverrideAction=(()=>{const i={},e=Object.create(i);return e[i[1]="FPOverride_ResetOverrideProfile"]=1,e[i[2]="FPOverride_SetAsOverrideProfile"]=2,e[i[3]="FPOverride_SetCurrentLeaveOverride"]=3,e})(),l.RequestChangeStatus=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ProfileId&&Object.hasOwnProperty.call(t,"ProfileId")&&n.uint32(8).int32(t.ProfileId),null!=t.CustomMessage&&Object.hasOwnProperty.call(t,"CustomMessage")&&n.uint32(18).string(t.CustomMessage),null!=t.QueueStatus&&Object.hasOwnProperty.call(t,"QueueStatus")&&n.uint32(24).bool(t.QueueStatus),null!=t.DND&&Object.hasOwnProperty.call(t,"DND")&&n.uint32(32).bool(t.DND),null!=t.FirstName&&Object.hasOwnProperty.call(t,"FirstName")&&n.uint32(42).string(t.FirstName),null!=t.LastName&&Object.hasOwnProperty.call(t,"LastName")&&n.uint32(50).string(t.LastName),null!=t.OfficeHours&&Object.hasOwnProperty.call(t,"OfficeHours")&&n.uint32(56).int32(t.OfficeHours),null!=t.ChatStatus&&Object.hasOwnProperty.call(t,"ChatStatus")&&n.uint32(64).int32(t.ChatStatus),null!=t.CustomName&&Object.hasOwnProperty.call(t,"CustomName")&&n.uint32(74).string(t.CustomName),null!=t.MyGroupSettings&&Object.hasOwnProperty.call(t,"MyGroupSettings")&&l.GroupIds.encode(t.MyGroupSettings,n.uint32(82).fork()).ldelim(),null!=t.MobileNumber&&Object.hasOwnProperty.call(t,"MobileNumber")&&n.uint32(90).string(t.MobileNumber),null!=t.OverrideProfileAction&&Object.hasOwnProperty.call(t,"OverrideProfileAction")&&n.uint32(96).int32(t.OverrideProfileAction),null!=t.OverrideExpiresAtUTCtime&&Object.hasOwnProperty.call(t,"OverrideExpiresAtUTCtime")&&l.DateTime.encode(t.OverrideExpiresAtUTCtime,n.uint32(106).fork()).ldelim(),null!=t.OverrideExpiresSeconds&&Object.hasOwnProperty.call(t,"OverrideExpiresSeconds")&&n.uint32(112).int32(t.OverrideExpiresSeconds),null!=t.OverrideAttachedData&&Object.hasOwnProperty.call(t,"OverrideAttachedData")&&n.uint32(122).string(t.OverrideAttachedData),null!=t.IsInternal&&Object.hasOwnProperty.call(t,"IsInternal")&&n.uint32(128).bool(t.IsInternal),null!=t.TargetExtension&&Object.hasOwnProperty.call(t,"TargetExtension")&&n.uint32(138).string(t.TargetExtension),null!=t.InternalProfileName&&Object.hasOwnProperty.call(t,"InternalProfileName")&&n.uint32(146).string(t.InternalProfileName),null!=t.Email&&Object.hasOwnProperty.call(t,"Email")&&n.uint32(154).string(t.Email),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestChangeStatus;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.ProfileId=t.int32();break;case 2:o.CustomMessage=t.string();break;case 3:o.QueueStatus=t.bool();break;case 4:o.DND=t.bool();break;case 5:o.FirstName=t.string();break;case 6:o.LastName=t.string();break;case 7:o.OfficeHours=t.int32();break;case 8:o.ChatStatus=t.int32();break;case 9:o.CustomName=t.string();break;case 10:o.MyGroupSettings=l.GroupIds.decode(t,t.uint32());break;case 11:o.MobileNumber=t.string();break;case 12:o.OverrideProfileAction=t.int32();break;case 13:o.OverrideExpiresAtUTCtime=l.DateTime.decode(t,t.uint32());break;case 14:o.OverrideExpiresSeconds=t.int32();break;case 15:o.OverrideAttachedData=t.string();break;case 16:o.IsInternal=t.bool();break;case 17:o.TargetExtension=t.string();break;case 18:o.InternalProfileName=t.string();break;case 19:o.Email=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:103,ChangeStatus:this})},i.prototype.typeId=103,i.prototype.typeName="ChangeStatus",i})()),No=(l.Contact=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.FirstName&&Object.hasOwnProperty.call(t,"FirstName")&&n.uint32(18).string(t.FirstName),null!=t.LastName&&Object.hasOwnProperty.call(t,"LastName")&&n.uint32(26).string(t.LastName),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(34).string(t.Number),null!=t.ExtensionNumber&&Object.hasOwnProperty.call(t,"ExtensionNumber")&&n.uint32(42).string(t.ExtensionNumber),null!=t.ContactType&&Object.hasOwnProperty.call(t,"ContactType")&&n.uint32(48).int32(t.ContactType),null!=t.Company&&Object.hasOwnProperty.call(t,"Company")&&n.uint32(58).string(t.Company),null!=t.AddressNumberOrData0&&Object.hasOwnProperty.call(t,"AddressNumberOrData0")&&n.uint32(66).string(t.AddressNumberOrData0),null!=t.AddressNumberOrData1&&Object.hasOwnProperty.call(t,"AddressNumberOrData1")&&n.uint32(74).string(t.AddressNumberOrData1),null!=t.AddressNumberOrData2&&Object.hasOwnProperty.call(t,"AddressNumberOrData2")&&n.uint32(82).string(t.AddressNumberOrData2),null!=t.AddressNumberOrData3&&Object.hasOwnProperty.call(t,"AddressNumberOrData3")&&n.uint32(90).string(t.AddressNumberOrData3),null!=t.AddressNumberOrData4&&Object.hasOwnProperty.call(t,"AddressNumberOrData4")&&n.uint32(98).string(t.AddressNumberOrData4),null!=t.AddressNumberOrData5&&Object.hasOwnProperty.call(t,"AddressNumberOrData5")&&n.uint32(106).string(t.AddressNumberOrData5),null!=t.AddressNumberOrData6&&Object.hasOwnProperty.call(t,"AddressNumberOrData6")&&n.uint32(114).string(t.AddressNumberOrData6),null!=t.AddressNumberOrData7&&Object.hasOwnProperty.call(t,"AddressNumberOrData7")&&n.uint32(122).string(t.AddressNumberOrData7),null!=t.AddressNumberOrData8&&Object.hasOwnProperty.call(t,"AddressNumberOrData8")&&n.uint32(130).string(t.AddressNumberOrData8),null!=t.AddressNumberOrData9&&Object.hasOwnProperty.call(t,"AddressNumberOrData9")&&n.uint32(138).string(t.AddressNumberOrData9),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(144).int32(t.Action),null!=t.ContactImage&&Object.hasOwnProperty.call(t,"ContactImage")&&n.uint32(154).string(t.ContactImage),null!=t.IsEditable&&Object.hasOwnProperty.call(t,"IsEditable")&&n.uint32(160).bool(t.IsEditable),null!=t.CrmContactData&&Object.hasOwnProperty.call(t,"CrmContactData")&&n.uint32(178).string(t.CrmContactData),null!=t.AddedBy&&Object.hasOwnProperty.call(t,"AddedBy")&&n.uint32(184).int32(t.AddedBy),null!=t.DnType&&Object.hasOwnProperty.call(t,"DnType")&&n.uint32(192).int32(t.DnType),null!=t.OpenLink&&Object.hasOwnProperty.call(t,"OpenLink")&&n.uint32(202).string(t.OpenLink),null!=t.AvailableForTransfer&&Object.hasOwnProperty.call(t,"AvailableForTransfer")&&n.uint32(208).bool(t.AvailableForTransfer),null!=t.GroupId&&Object.hasOwnProperty.call(t,"GroupId")&&n.uint32(216).int32(t.GroupId),null!=t.VmailEnabled&&Object.hasOwnProperty.call(t,"VmailEnabled")&&n.uint32(224).bool(t.VmailEnabled),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Contact;
1for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.FirstName=t.string();break;case 3:o.LastName=t.string();break;case 4:o.Number=t.string();break;case 5:o.ExtensionNumber=t.string();break;case 6:o.ContactType=t.int32();break;case 7:o.Company=t.string();break;case 8:o.AddressNumberOrData0=t.string();break;case 9:o.AddressNumberOrData1=t.string();break;case 10:o.AddressNumberOrData2=t.string();break;case 11:o.AddressNumberOrData3=t.string();break;case 12:o.AddressNumberOrData4=t.string();break;case 13:o.AddressNumberOrData5=t.string();break;case 14:o.AddressNumberOrData6=t.string();break;case 15:o.AddressNumberOrData7=t.string();break;case 16:o.AddressNumberOrData8=t.string();break;case 17:o.AddressNumberOrData9=t.string();break;case 18:o.Action=t.int32();break;case 19:o.ContactImage=t.string();break;case 20:o.IsEditable=t.bool();break;case 22:o.CrmContactData=t.string();break;case 23:o.AddedBy=t.int32();break;case 24:o.DnType=t.int32();break;case 25:o.OpenLink=t.string();break;case 26:o.AvailableForTransfer=t.bool();break;case 27:o.GroupId=t.int32();break;case 28:o.VmailEnabled=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.RequestLookupContact=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Input&&Object.hasOwnProperty.call(t,"Input")&&n.uint32(10).string(t.Input),null!=t.Offset&&Object.hasOwnProperty.call(t,"Offset")&&n.uint32(16).int32(t.Offset),null!=t.Count&&Object.hasOwnProperty.call(t,"Count")&&n.uint32(24).int32(t.Count),null!=t.ExtIncluded&&Object.hasOwnProperty.call(t,"ExtIncluded")&&n.uint32(32).bool(t.ExtIncluded),null!=t.SortBy&&Object.hasOwnProperty.call(t,"SortBy")&&n.uint32(40).int32(t.SortBy),null!=t.MustHaveEmail&&Object.hasOwnProperty.call(t,"MustHaveEmail")&&n.uint32(48).bool(t.MustHaveEmail),null!=t.SearchBy&&Object.hasOwnProperty.call(t,"SearchBy")&&n.uint32(56).int32(t.SearchBy),null!=t.SearchBridge&&Object.hasOwnProperty.call(t,"SearchBridge")&&n.uint32(64).bool(t.SearchBridge),null!=t.SearchCompany&&Object.hasOwnProperty.call(t,"SearchCompany")&&n.uint32(72).bool(t.SearchCompany),null!=t.SearchPersonal&&Object.hasOwnProperty.call(t,"SearchPersonal")&&n.uint32(80).bool(t.SearchPersonal),null!=t.SysExtsMask&&Object.hasOwnProperty.call(t,"SysExtsMask")&&n.uint32(88).int32(t.SysExtsMask),null!=t.MustHaveMobile&&Object.hasOwnProperty.call(t,"MustHaveMobile")&&n.uint32(96).bool(t.MustHaveMobile),null!=t.IncludeCompanyOptions&&Object.hasOwnProperty.call(t,"IncludeCompanyOptions")&&n.uint32(104).int32(t.IncludeCompanyOptions),null!=t.IncludePersonalOptions&&Object.hasOwnProperty.call(t,"IncludePersonalOptions")&&n.uint32(112).int32(t.IncludePersonalOptions),null!=t.SearchGroup&&Object.hasOwnProperty.call(t,"SearchGroup")&&n.uint32(120).bool(t.SearchGroup),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestLookupContact;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Input=t.string();break;case 2:o.Offset=t.int32();break;case 3:o.Count=t.int32();break;case 4:o.ExtIncluded=t.bool();break;case 5:o.SortBy=t.int32();break;case 6:o.MustHaveEmail=t.bool();break;case 7:o.SearchBy=t.int32();break;case 8:o.SearchBridge=t.bool();break;case 9:o.SearchCompany=t.bool();break;case 10:o.SearchPersonal=t.bool();break;case 11:o.SysExtsMask=t.int32();break;case 12:o.MustHaveMobile=t.bool();break;case 13:o.IncludeCompanyOptions=t.int32();break;case 14:o.IncludePersonalOptions=t.int32();break;case 15:o.SearchGroup=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:104,LookupContact:this})},i.prototype.typeId=104,i.prototype.typeName="LookupContact",i})()),go=l.RequestExactMatch=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(10).string(t.Number),null!=t.DnType&&Object.hasOwnProperty.call(t,"DnType")&&n.uint32(16).int32(t.DnType),null!=t.SearchCompany&&Object.hasOwnProperty.call(t,"SearchCompany")&&n.uint32(24).bool(t.SearchCompany),null!=t.SearchPersonal&&Object.hasOwnProperty.call(t,"SearchPersonal")&&n.uint32(32).bool(t.SearchPersonal),null!=t.SearchBridge&&Object.hasOwnProperty.call(t,"SearchBridge")&&n.uint32(40).bool(t.SearchBridge),null!=t.SearchGroup&&Object.hasOwnProperty.call(t,"SearchGroup")&&n.uint32(48).bool(t.SearchGroup),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestExactMatch;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Number=t.string();break;case 2:o.DnType=t.int32();break;case 3:o.SearchCompany=t.bool();break;case 4:o.SearchPersonal=t.bool();break;case 5:o.SearchBridge=t.bool();break;case 6:o.SearchGroup=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:193,ExactMatchRequest:this})},i.prototype.typeId=193,i.prototype.typeName="ExactMatchRequest",i}
1)(),Do=l.ResponseExactMatch=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Contact&&Object.hasOwnProperty.call(t,"Contact")&&l.Contact.encode(t.Contact,n.uint32(10).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseExactMatch;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Contact=l.Contact.decode(t,t.uint32()):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:240,ExactMatchResponse:this})},i.prototype.typeId=240,i.prototype.typeName="ExactMatchResponse",i})(),Eo=l.RequestBatchExactMatch=(()=>{function i(e){if(this.ToSearch=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.ToSearch=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.ToSearch&&t.ToSearch.length)for(let u=0;u<t.ToSearch.length;++u)l.RequestExactMatch.encode(t.ToSearch[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestBatchExactMatch;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.ToSearch&&o.ToSearch.length||(o.ToSearch=[]),o.ToSearch.push(l.RequestExactMatch.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:529,BatchExactMatch:this})},i.prototype.typeId=529,i.prototype.typeName="BatchExactMatch",i})(),qo=l.ResponseBatchExactMatch=(()=>{function i(e){if(this.Result=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Result=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Result&&t.Result.length)for(let u=0;u<t.Result.length;++u)l.ResponseExactMatch.encode(t.Result[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseBatchExactMatch;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Result&&o.Result.length||(o.Result=[]),o.Result.push(l.ResponseExactMatch.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:263,BatchExactMatchResult:this})},i.prototype.typeId=263,i.prototype.typeName="BatchExactMatchResult",i})(),Fo=l.RequestGetContactById=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.ContactType&&Object.hasOwnProperty.call(t,"ContactType")&&n.uint32(16).int32(t.ContactType),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetContactById;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.ContactType=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:194,GetContactById:this})},i.prototype.typeId=194,i.prototype.typeName="GetContactById",i})(),Lo=l.ResponseLookup=(()=>{function i(e){if(this.Entries=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Entries=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Entries&&t.Entries.length)for(let u=0;u<t.Entries.length;++u)l.Contact.encode(t.Entries[u],n.uint32(10).fork()).ldelim();return null!=t.TotalCount&&Object.hasOwnProperty.call(t,"TotalCount")&&n.uint32(16).int32(t.TotalCount),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseLookup;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Entries&&o.Entries.length||(o.Entries=[]),o.Entries.push(l.Contact.decode(t,t.uint32()));break;case 2:o.TotalCount=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:202,LookupResult:this})}
1,i.prototype.typeId=202,i.prototype.typeName="LookupResult",i})(),xo=l.RequestGetFile=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Folder&&Object.hasOwnProperty.call(t,"Folder")&&n.uint32(8).int32(t.Folder),null!=t.FileName&&Object.hasOwnProperty.call(t,"FileName")&&n.uint32(18).string(t.FileName),null!=t.Extension&&Object.hasOwnProperty.call(t,"Extension")&&n.uint32(26).string(t.Extension),null!=t.ItemId&&Object.hasOwnProperty.call(t,"ItemId")&&n.uint32(32).int32(t.ItemId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetFile;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Folder=t.int32();break;case 2:o.FileName=t.string();break;case 3:o.Extension=t.string();break;case 4:o.ItemId=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:105,GetFile:this})},i.prototype.typeId=105,i.prototype.typeName="GetFile",i})(),_o=l.RequestPutFile=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Folder&&Object.hasOwnProperty.call(t,"Folder")&&n.uint32(8).int32(t.Folder),null!=t.FileName&&Object.hasOwnProperty.call(t,"FileName")&&n.uint32(18).string(t.FileName),null!=t.Content&&Object.hasOwnProperty.call(t,"Content")&&n.uint32(26).bytes(t.Content),null!=t.Extension&&Object.hasOwnProperty.call(t,"Extension")&&n.uint32(34).string(t.Extension),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestPutFile;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Folder=t.int32();break;case 2:o.FileName=t.string();break;case 3:o.Content=t.bytes();break;case 4:o.Extension=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:113,PutFile:this})},i.prototype.typeId=113,i.prototype.typeName="PutFile",i})(),Bo=l.ResponseFile=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Content&&Object.hasOwnProperty.call(t,"Content")&&n.uint32(10).bytes(t.Content),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseFile;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Content=t.bytes():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:203,FileResult:this})},i.prototype.typeId=203,i.prototype.typeName="FileResult",i})(),Wo=(l.QueueCallRecord=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.QueueNumber&&Object.hasOwnProperty.call(t,"QueueNumber")&&n.uint32(18).string(t.QueueNumber),null!=t.TimeStart&&Object.hasOwnProperty.call(t,"TimeStart")&&l.DateTime.encode(t.TimeStart,n.uint32(26).fork()).ldelim(),null!=t.Waiting&&Object.hasOwnProperty.call(t,"Waiting")&&n.uint32(34).string(t.Waiting),null!=t.Polling&&Object.hasOwnProperty.call(t,"Polling")&&n.uint32(42).string(t.Polling),null!=t.FromUserPart&&Object.hasOwnProperty.call(t,"FromUserPart")&&n.uint32(50).string(t.FromUserPart),null!=t.FromDisplayName&&Object.hasOwnProperty.call(t,"FromDisplayName")&&n.uint32(58).string(t.FromDisplayName),null!=t.DealStatus&&Object.hasOwnProperty.call(t,"DealStatus")&&n.uint32(64).int32(t.DealStatus),null!=t.IsManager&&Object.hasOwnProperty.call(t,"IsManager")&&n.uint32(72).bool(t.IsManager),null!=t.Queue&&Object.hasOwnProperty.call(t,"Queue")&&l.Contact.encode(t.Queue,n.uint32(82).fork()).ldelim(),null!=t.User&&Object.hasOwnProperty.call(t,"User")&&l.Contact.encode(t.User,n.uint32(90).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.QueueCallRecord;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.QueueNumber=t.string();break;case 3:o.TimeStart=l.DateTime.decode(t,t.uint32());break;case 4:o.Waiting=t.string();break;case 5:o.Polling=t.string();break;case 6:o.FromUserPart=t.string();break;
1case 7:o.FromDisplayName=t.string();break;case 8:o.DealStatus=t.int32();break;case 9:o.IsManager=t.bool();break;case 10:o.Queue=l.Contact.decode(t,t.uint32());break;case 11:o.User=l.Contact.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.RequestQueueCalls=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.TimeStart&&Object.hasOwnProperty.call(t,"TimeStart")&&l.DateTime.encode(t.TimeStart,n.uint32(10).fork()).ldelim(),null!=t.RecordLimit&&Object.hasOwnProperty.call(t,"RecordLimit")&&n.uint32(16).int32(t.RecordLimit),null!=t.RecordOffset&&Object.hasOwnProperty.call(t,"RecordOffset")&&n.uint32(24).int32(t.RecordOffset),null!=t.Search&&Object.hasOwnProperty.call(t,"Search")&&n.uint32(34).string(t.Search),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestQueueCalls;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.TimeStart=l.DateTime.decode(t,t.uint32());break;case 2:o.RecordLimit=t.int32();break;case 3:o.RecordOffset=t.int32();break;case 4:o.Search=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:145,GetQueueCalls:this})},i.prototype.typeId=145,i.prototype.typeName="GetQueueCalls",i})()),Uo=l.RequestQueueCallsCount=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.TimeStart&&Object.hasOwnProperty.call(t,"TimeStart")&&l.DateTime.encode(t.TimeStart,n.uint32(10).fork()).ldelim(),null!=t.Search&&Object.hasOwnProperty.call(t,"Search")&&n.uint32(18).string(t.Search),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestQueueCallsCount;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.TimeStart=l.DateTime.decode(t,t.uint32());break;case 2:o.Search=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:146,GetQueueCallsCount:this})},i.prototype.typeId=146,i.prototype.typeName="GetQueueCallsCount",i})(),Ho=l.RequestSetQueueCallData=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.DealStatus&&Object.hasOwnProperty.call(t,"DealStatus")&&n.uint32(16).int32(t.DealStatus),null!=t.IsVisible&&Object.hasOwnProperty.call(t,"IsVisible")&&n.uint32(24).bool(t.IsVisible),null!=t.QueueNumber&&Object.hasOwnProperty.call(t,"QueueNumber")&&n.uint32(34).string(t.QueueNumber),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetQueueCallData;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.DealStatus=t.int32();break;case 3:o.IsVisible=t.bool();break;case 4:o.QueueNumber=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:147,SetQueueCallData:this})},i.prototype.typeId=147,i.prototype.typeName="SetQueueCallData",i})(),Qo=l.RequestSetQueueCallDataBulk=(()=>{function i(e){if(this.IdList=[],this.QueueNumbers=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.IdList=I.emptyArray,i.prototype.QueueNumbers=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.IdList&&t.IdList.length)for(let u=0;u<t.IdList.length;++u)n.uint32(8).int32(t.IdList[u]);if(null!=t.QueueNumbers&&t.QueueNumbers.length)for(let u=0;u<t.QueueNumbers.length;++u)n.uint32(18).string(t.QueueNumbers[u]);return null!=t.DealStatus&&Object.hasOwnProperty.call(t,"DealStatus")&&n.uint32(24).int32(t.DealStatus),null!=t.IsVisible&&Object.hasOwnProperty.call(t,"IsVisible")&&n.uint32(32).bool(t.IsVisible),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetQueueCallDataBulk;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:if(o.IdList&&o.IdList.length||(o.IdList=[]),2==(7&c)){let d=t.uint32()+t.pos;for(;t.pos<d;)o.IdList.push(t.int32())}else o.IdList.push(t.int32());break;case 2:o.QueueNumbers&&o.QueueNumbers.length||(o.QueueNumbers=[]),o.QueueNumbers.push(t.string());break;case 3:o.DealStatus=t.int32();break;case 4:o.IsVisible=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:149,SetQueueCallDataBulk:this})},i.prototype.typeId=149,i.prototype.typeName="SetQueueCallDataBulk",i})(),Vo=l.ResponseQueueCalls=(()=>{function i(e){if(this.Records=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Records=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Records&&t.Records.length)for(let u=0;u<t.Records.length;++u)l.QueueCallRecord.encode(t.Records[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseQueueCalls;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Records&&o.Records.length||(o.Records=[]),o.Records.push(l.QueueCallRecord.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:223,QueueCalls:this})},i.prototype.typeId=223,i.prototype.typeName="QueueCalls",i}
1)(),zo=(l.CallHistoryViaRole=(()=>{const i={},e=Object.create(i);return e[i[1]="ForwardedBy"]=1,e[i[2]="PickedUpFrom"]=2,e[i[3]="TransferredBy"]=3,e[i[4]="JoinedBy"]=4,e})(),l.CallHistoryParty=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.StartTime&&Object.hasOwnProperty.call(t,"StartTime")&&l.DateTime.encode(t.StartTime,n.uint32(18).fork()).ldelim(),null!=t.ConnectedAt&&Object.hasOwnProperty.call(t,"ConnectedAt")&&l.DateTime.encode(t.ConnectedAt,n.uint32(26).fork()).ldelim(),null!=t.EndedAt&&Object.hasOwnProperty.call(t,"EndedAt")&&l.DateTime.encode(t.EndedAt,n.uint32(34).fork()).ldelim(),null!=t.PartyDN&&Object.hasOwnProperty.call(t,"PartyDN")&&n.uint32(42).string(t.PartyDN),null!=t.PartyDNType&&Object.hasOwnProperty.call(t,"PartyDNType")&&n.uint32(48).int32(t.PartyDNType),null!=t.PartyDNName&&Object.hasOwnProperty.call(t,"PartyDNName")&&n.uint32(58).string(t.PartyDNName),null!=t.PartyCallerId&&Object.hasOwnProperty.call(t,"PartyCallerId")&&n.uint32(66).string(t.PartyCallerId),null!=t.ViaRole&&Object.hasOwnProperty.call(t,"ViaRole")&&n.uint32(72).int32(t.ViaRole),null!=t.ViaDN&&Object.hasOwnProperty.call(t,"ViaDN")&&n.uint32(82).string(t.ViaDN),null!=t.ViaDNType&&Object.hasOwnProperty.call(t,"ViaDNType")&&n.uint32(88).int32(t.ViaDNType),null!=t.ViaDNName&&Object.hasOwnProperty.call(t,"ViaDNName")&&n.uint32(98).string(t.ViaDNName),null!=t.ViaCallerId&&Object.hasOwnProperty.call(t,"ViaCallerId")&&n.uint32(106).string(t.ViaCallerId),null!=t.CallType&&Object.hasOwnProperty.call(t,"CallType")&&n.uint32(112).int32(t.CallType),null!=t.PartyContact&&Object.hasOwnProperty.call(t,"PartyContact")&&l.Contact.encode(t.PartyContact,n.uint32(122).fork()).ldelim(),null!=t.ViaContact&&Object.hasOwnProperty.call(t,"ViaContact")&&l.Contact.encode(t.ViaContact,n.uint32(130).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.CallHistoryParty;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.StartTime=l.DateTime.decode(t,t.uint32());break;case 3:o.ConnectedAt=l.DateTime.decode(t,t.uint32());break;case 4:o.EndedAt=l.DateTime.decode(t,t.uint32());break;case 5:o.PartyDN=t.string();break;case 6:o.PartyDNType=t.int32();break;case 7:o.PartyDNName=t.string();break;case 8:o.PartyCallerId=t.string();break;case 9:o.ViaRole=t.int32();break;case 10:o.ViaDN=t.string();break;case 11:o.ViaDNType=t.int32();break;case 12:o.ViaDNName=t.string();break;case 13:o.ViaCallerId=t.string();break;case 14:o.CallType=t.int32();break;case 15:o.PartyContact=l.Contact.decode(t,t.uint32());break;case 16:o.ViaContact=l.Contact.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.CallHistoryConnections=(()=>{function i(e){if(this.parties=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.parties=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.parties&&t.parties.length)for(let u=0;u<t.parties.length;++u)l.CallHistoryParty.encode(t.parties[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.CallHistoryConnections;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.parties&&o.parties.length||(o.parties=[]),o.parties.push(l.CallHistoryParty.decode(t,t.uint32()))):t.skipType(7&c)}return o},i})(),l.Quality=(()=>{const i={},e=Object.create(i);return e[i[0]="UnknownQuality"]=0,e[i[1]="AllGood"]=1,e[i[2]="NetworkToYou"]=2,e[i[3]="NetworkFromYou"]=3,e[i[4]="NetworkYouAndPbx"]=4,e[i[5]="NetworkToParty"]=5,e[i[6]="NetworkFromParty"]=6,e[i[7]="NetworkPartyAndPbx"]=7,e[i[8]="ToPBx"]=8,e[i[9]="FromPbx"]=9,e[i[10]="FromToPbx"]=10,e})(),l.MSEndpointType=(()=>{const i={},e=Object.create(i);return e[i[1]="Local"]=1,e[i[2]="External"]=2,e[i[3]="Stun"]=3,e[i[4]="Tunnel"]=4,e})(),l.RequestCallReport=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ActiveConnection&&Object.hasOwnProperty.call(t,"ActiveConnection")&&n.uint32(8).int32(t.ActiveConnection),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestCallReport;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.ActiveConnection=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:555,CallReport:this})},i.prototype.typeId=555,i.prototype.typeName="CallReport",i})()),Jo=l.RequestMonitor=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.DN&&Object.hasOwnProperty.call(t,"DN")&&n.uint32(10).string(t.DN),null!=t.Days&&Object.hasOwnProperty.call(t,"Days")&&n.uint32(16).int32(t.Days),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestMonitor;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.DN=t.string();break;case 2:o.Days=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:556,Monitor:this})},i.prototype.typeId=556,i.prototype.typeName="Monitor",i})(),$o=l.RequestRights=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.DN&&Object.hasOwnProperty.call(t,"DN")&&n.uint32(10).string(t.DN),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestRights;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.DN=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:559,GetRights:this})},i.prototype.typeId=559,i.prototype.typeName="GetRights",i})(),Ko=l.ResponseRights=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Monitor&&Object.hasOwnProperty.call(t,"Monitor")&&n.uint32(8).bool(t.Monitor),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseRights;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Monitor=t.bool():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:265,Rights:this})},i.prototype.typeId=265,i.prototype.typeName="Rights",i})(),Yo=(l.QualityReport=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.CallID&&Object.hasOwnProperty.call(t,"CallID")&&n.uint32(8).int32(t.CallID),null!=t.Summary&&Object.hasOwnProperty.call(t,"Summary")&&n.uint32(16).int32(t.Summary),null!=t.Party1&&Object.hasOwnProperty.call(t,"Party1")&&l.QualityReport.LegReport.encode(t.Party1,n.uint32(26).fork()).ldelim(),null!=t.Party2&&Object.hasOwnProperty.call(t,"Party2")&&l.QualityReport.LegReport.encode(t.Party2,n.uint32(34).fork()).ldelim(),null!=t.Transcoding&&Object.hasOwnProperty.call(t,"Transcoding")&&n.uint32(40).bool(t.Transcoding),null!=t.MOS&&Object.hasOwnProperty.call(t,"MOS")&&n.uint32(53).float(t.MOS),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.QualityReport;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.CallID=t.int32();break;case 2:o.Summary=t.int32();break;case 3:o.Party1=l.QualityReport.LegReport.decode(t,t.uint32());break;case 4:o.Party2=l.QualityReport.LegReport.decode(t,t.uint32());break;case 5:o.Transcoding=t.bool();break;case 6:o.MOS=t.float();break;default:t.skipType(7&c)}}return o},i.LegReport=function(){function e(t){if(t)for(let n=Object.keys(t),u=0;u<n.length;
1++u)null!=t[n[u]]&&(this[n[u]]=t[n[u]])}return e.encode=function(n,u){return u||(u=f.create()),null!=n.Number&&Object.hasOwnProperty.call(n,"Number")&&u.uint32(10).string(n.Number),null!=n.UserAgent&&Object.hasOwnProperty.call(n,"UserAgent")&&u.uint32(18).string(n.UserAgent),null!=n.Address&&Object.hasOwnProperty.call(n,"Address")&&u.uint32(26).string(n.Address),null!=n.Type&&Object.hasOwnProperty.call(n,"Type")&&u.uint32(32).int32(n.Type),null!=n.Codec&&Object.hasOwnProperty.call(n,"Codec")&&u.uint32(42).string(n.Codec),null!=n.MOSFromPBX&&Object.hasOwnProperty.call(n,"MOSFromPBX")&&u.uint32(53).float(n.MOSFromPBX),null!=n.RTT&&Object.hasOwnProperty.call(n,"RTT")&&u.uint32(61).float(n.RTT),null!=n.RxJitter&&Object.hasOwnProperty.call(n,"RxJitter")&&u.uint32(69).float(n.RxJitter),null!=n.RxLost&&Object.hasOwnProperty.call(n,"RxLost")&&u.uint32(77).float(n.RxLost),null!=n.RxPackets&&Object.hasOwnProperty.call(n,"RxPackets")&&u.uint32(80).int32(n.RxPackets),null!=n.MOSToPBX&&Object.hasOwnProperty.call(n,"MOSToPBX")&&u.uint32(93).float(n.MOSToPBX),null!=n.TxJitter&&Object.hasOwnProperty.call(n,"TxJitter")&&u.uint32(101).float(n.TxJitter),null!=n.TxLost&&Object.hasOwnProperty.call(n,"TxLost")&&u.uint32(109).float(n.TxLost),null!=n.TxPackets&&Object.hasOwnProperty.call(n,"TxPackets")&&u.uint32(112).int32(n.TxPackets),null!=n.TxBursts&&Object.hasOwnProperty.call(n,"TxBursts")&&u.uint32(120).int32(n.TxBursts),null!=n.TxBurstLen&&Object.hasOwnProperty.call(n,"TxBurstLen")&&u.uint32(128).int32(n.TxBurstLen),null!=n.Duration&&Object.hasOwnProperty.call(n,"Duration")&&u.uint32(136).int32(n.Duration),null!=n.TunnelAddress&&Object.hasOwnProperty.call(n,"TunnelAddress")&&u.uint32(146).string(n.TunnelAddress),u},e.decode=function(n,u,a){n instanceof s||(n=s.create(n));let o=void 0===u?n.len:n.pos+u,c=new l.QualityReport.LegReport;for(;n.pos<o;){let d=n.uint32();if(d===a)break;switch(d>>>3){case 1:c.Number=n.string();break;case 2:c.UserAgent=n.string();break;case 3:c.Address=n.string();break;case 4:c.Type=n.int32();break;case 5:c.Codec=n.string();break;case 6:c.MOSFromPBX=n.float();break;case 7:c.RTT=n.float();break;case 8:c.RxJitter=n.float();break;case 9:c.RxLost=n.float();break;case 10:c.RxPackets=n.int32();break;case 11:c.MOSToPBX=n.float();break;case 12:c.TxJitter=n.float();break;case 13:c.TxLost=n.float();break;case 14:c.TxPackets=n.int32();break;case 15:c.TxBursts=n.int32();break;case 16:c.TxBurstLen=n.int32();break;case 17:c.Duration=n.int32();break;case 18:c.TunnelAddress=n.string();break;default:n.skipType(7&d)}}return c},e}(),i})(),l.CallHistoryRecord=(()=>{function i(e){if(this.Quality=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Quality=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.DnOwner&&Object.hasOwnProperty.call(t,"DnOwner")&&n.uint32(10).string(t.DnOwner),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.connections&&Object.hasOwnProperty.call(t,"connections")&&l.CallHistoryConnections.encode(t.connections,n.uint32(26).fork()).ldelim(),null!=t.Quality&&t.Quality.length)for(let u=0;u<t.Quality.length;++u)l.QualityReport.encode(t.Quality[u],n.uint32(34).fork()).ldelim();return null!=t.HasQualityRecords&&Object.hasOwnProperty.call(t,"HasQualityRecords")&&n.uint32(40).bool(t.HasQualityRecords),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.CallHistoryRecord;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.DnOwner=t.string();break;case 2:o.Id=t.int32();break;case 3:o.connections=l.CallHistoryConnections.decode(t,t.uint32());break;case 4:o.Quality&&o.Quality.length||(o.Quality=[]),o.Quality.push(l.QualityReport.decode(t,t.uint32()));break;case 5:o.HasQualityRecords=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.RequestCallQualityReport=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.CallId&&Object.hasOwnProperty.call(t,"CallId")&&n.uint32(8).int32(t.CallId),null!=t.OwnerCdrId&&Object.hasOwnProperty.call(t,"OwnerCdrId")&&n.uint32(18).string(t.OwnerCdrId),null!=t.PartyCdrId&&Object.hasOwnProperty.call(t,"PartyCdrId")&&n.uint32(26).string(t.PartyCdrId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestCallQualityReport;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.CallId=t.int32();break;case 2:o.OwnerCdrId=t.string();break;case 3:o.PartyCdrId=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:558,GetCallQualityReport:this})},i.prototype.typeId=558,i.prototype.typeName="GetCallQualityReport",i})()),Xo=l.ResponseCallQualityReport=(()=>{function i(e){if(this.Quality=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Quality=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Quality&&t.Quality.length)for(let u=0;u<t.Quality.length;++u)l.QualityReport.encode(t.Quality[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseCallQualityReport;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Quality&&o.Quality.length||(o.Quality=[]),o.Quality.push(l.QualityReport.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:262,CallQualityReport:this})},i.prototype.typeId=262,i.prototype.typeName="CallQualityReport",i})(),Zo=l.RequestCallHistory=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.CallType&&Object.hasOwnProperty.call(t,"CallType")&&n.uint32(8).int32(t.CallType),null!=t.DnOwner&&Object.hasOwnProperty.call(t,"DnOwner")&&n.uint32(18).string(t.DnOwner),null!=t.RecordLimit&&Object.hasOwnProperty.call(t,"RecordLimit")&&n.uint32(24).int32(t.RecordLimit),null!=t.RecordOffset&&Object.hasOwnProperty.call(t,"RecordOffset")&&n.uint32(32).int32(t.RecordOffset),null!=t.Search&&Object.hasOwnProperty.call(t,"Search")&&n.uint32(42).string(t.Search),null!=t.From&&Object.hasOwnProperty.call(t,"From")&&l.DateTime.encode(t.From,n.uint32(50).fork()).ldelim(),null!=t.To&&Object.hasOwnProperty.call(t,"To")&&l.DateTime.encode(t.To,n.uint32(58).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestCallHistory;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.CallType=t.int32();break;case 2:o.DnOwner=t.string();break;case 3:o.RecordLimit=t.int32();break;case 4:o.RecordOffset=t.int32();break;case 5:o.Search=t.string();break;case 6:o.From=l.DateTime.decode(t,t.uint32());break;case 7:o.To=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:106,GetCallHistory:this})},i.prototype.typeId=106,i.prototype.typeName="GetCallHistory",i})(),mo=l.RequestCallHistoryCount=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.CallType&&Object.hasOwnProperty.call(t,"CallType")&&n.uint32(8).int32(t.CallType),null!=t.DnOwner&&Object.hasOwnProperty.call(t,"DnOwner")&&n.uint32(18).string(t.DnOwner),null!=t.Search&&Object.hasOwnProperty.call(t,"Search")&&n.uint32(26).string(t.Search),null!=t.From&&Object.hasOwnProperty.call(t,"From")&&l.DateTime.encode(t.From,n.uint32(34).fork()).ldelim(),null!=t.To&&Object.hasOwnProperty.call(t,"To")&&l.DateTime.encode(t.To,n.uint32(42).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestCallHistoryCount;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.CallType=t.int32();break;case 2:o.DnOwner=t.string();break;case 3:o.Search=t.string();break;case 4:o.From=l.DateTime.decode(t,t.uint32());break;case 5:o.To=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:107,GetCallHistoryCount:this})},i.prototype.typeId=107,i.prototype.typeName="GetCallHistoryCount",i})(),tl=l.ResponseCallHistory=(()=>{function i(e){if(this.Records=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Records=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Records&&t.Records.length)for(let u=0;u<t.Records.length;++u)l.CallHistoryRecord.encode(t.Records[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseCallHistory;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Records&&o.Records.length||(o.Records=[]),o.Records.push(l.CallHistoryRecord.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:204,CallHistory:this})},i.prototype.typeId=204,i.prototype.typeName="CallHistory",i})(),nl=l.ResponseCallHistoryCount=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Count&&Object.hasOwnProperty.call(t,"Count")&&n.uint32(8).int32(t.Count),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseCallHistoryCount;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Count=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:205,CallHistoryCount:this})},i.prototype.typeId=205,i.prototype.typeName="CallHistoryCount",i}
1)(),el=l.RequestDeleteCallHistory=(()=>{function i(e){if(this.IdList=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.IdList=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Type&&Object.hasOwnProperty.call(t,"Type")&&n.uint32(8).int32(t.Type),null!=t.IdList&&t.IdList.length)for(let u=0;u<t.IdList.length;++u)n.uint32(16).int32(t.IdList[u]);return null!=t.StartFrom&&Object.hasOwnProperty.call(t,"StartFrom")&&l.DateTime.encode(t.StartFrom,n.uint32(26).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestDeleteCallHistory;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Type=t.int32();break;case 2:if(o.IdList&&o.IdList.length||(o.IdList=[]),2==(7&c)){let d=t.uint32()+t.pos;for(;t.pos<d;)o.IdList.push(t.int32())}else o.IdList.push(t.int32());break;case 3:o.StartFrom=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:148,DeleteCallHistory:this})},i.prototype.typeId=148,i.prototype.typeName="DeleteCallHistory",i})(),il=(l.ExtensionInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Type&&Object.hasOwnProperty.call(t,"Type")&&n.uint32(24).int32(t.Type),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(34).string(t.Number),null!=t.FirstName&&Object.hasOwnProperty.call(t,"FirstName")&&n.uint32(42).string(t.FirstName),null!=t.LastName&&Object.hasOwnProperty.call(t,"LastName")&&n.uint32(50).string(t.LastName),null!=t.MobileNumber&&Object.hasOwnProperty.call(t,"MobileNumber")&&n.uint32(58).string(t.MobileNumber),null!=t.EmailAddress&&Object.hasOwnProperty.call(t,"EmailAddress")&&n.uint32(66).string(t.EmailAddress),null!=t.Other&&Object.hasOwnProperty.call(t,"Other")&&n.uint32(74).string(t.Other),null!=t.ContactImage&&Object.hasOwnProperty.call(t,"ContactImage")&&n.uint32(82).string(t.ContactImage),null!=t.HideInPhoneBook&&Object.hasOwnProperty.call(t,"HideInPhoneBook")&&n.uint32(88).bool(t.HideInPhoneBook),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ExtensionInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Type=t.int32();break;case 4:o.Number=t.string();break;case 5:o.FirstName=t.string();break;case 6:o.LastName=t.string();break;case 7:o.MobileNumber=t.string();break;case 8:o.EmailAddress=t.string();break;case 9:o.Other=t.string();break;case 10:o.ContactImage=t.string();break;case 11:o.HideInPhoneBook=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.RequestGetExtensions=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Type&&Object.hasOwnProperty.call(t,"Type")&&n.uint32(8).int32(t.Type),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetExtensions;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Type=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:109,GetExtensions:this})},i.prototype.typeId=109,i.prototype.typeName="GetExtensions",i})()),ol=l.ResponseGetExtensions=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.ExtensionInfo.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGetExtensions;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.ExtensionInfo.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:206,Extensions:this})},i.prototype.typeId=206,i.prototype.typeName="Extensions",i})(),Yt=l.ResponseAcknowledge=(()=>{function i(e){if(this.Parameters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Parameters=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Success&&Object.hasOwnProperty.call(t,"Success")&&n.uint32(8).bool(t.Success),null!=t.ErrorCode&&Object.hasOwnProperty.call(t,"ErrorCode")&&n.uint32(16).int32(t.ErrorCode),null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(26).string(t.Message),null!=t.ExceptionType&&Object.hasOwnProperty.call(t,"ExceptionType")&&n.uint32(34).string(t.ExceptionType),null!=t.ExceptionMessage&&Object.hasOwnProperty.call(t,"ExceptionMessage")&&n.uint32(42).string(t.ExceptionMessage),null!=t.ErrorType&&Object.hasOwnProperty.call(t,"ErrorType")&&n.uint32(48).int32(t.ErrorType),null!=t.Parameters&&t.Parameters.length)for(let u=0;u<t.Parameters.length;++u)n.uint32(58).string(t.Parameters[u]);return null!=t.IsCustomMessage&&Object.hasOwnProperty.call(t,"IsCustomMessage")&&n.uint32(64).bool(t.IsCustomMessage),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseAcknowledge;
1for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Success=t.bool();break;case 2:o.ErrorCode=t.int32();break;case 3:o.Message=t.string();break;case 4:o.ExceptionType=t.string();break;case 5:o.ExceptionMessage=t.string();break;case 6:o.ErrorType=t.int32();break;case 7:o.Parameters&&o.Parameters.length||(o.Parameters=[]),o.Parameters.push(t.string());break;case 8:o.IsCustomMessage=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:207,Acknowledge:this})},i.prototype.typeId=207,i.prototype.typeName="Acknowledge",i})(),ll=(l.ChatRecipient=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ExtNumber&&Object.hasOwnProperty.call(t,"ExtNumber")&&n.uint32(10).string(t.ExtNumber),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(18).string(t.Name),null!=t.BridgeNumber&&Object.hasOwnProperty.call(t,"BridgeNumber")&&n.uint32(26).string(t.BridgeNumber),null!=t.Email&&Object.hasOwnProperty.call(t,"Email")&&n.uint32(34).string(t.Email),null!=t.Contact&&Object.hasOwnProperty.call(t,"Contact")&&l.Contact.encode(t.Contact,n.uint32(42).fork()).ldelim(),null!=t.IdRecipient&&Object.hasOwnProperty.call(t,"IdRecipient")&&n.uint32(48).int32(t.IdRecipient),null!=t.RecipientType&&Object.hasOwnProperty.call(t,"RecipientType")&&n.uint32(56).int32(t.RecipientType),null!=t.PhoneNumber&&Object.hasOwnProperty.call(t,"PhoneNumber")&&n.uint32(66).string(t.PhoneNumber),null!=t.IpAddress&&Object.hasOwnProperty.call(t,"IpAddress")&&n.uint32(74).string(t.IpAddress),null!=t.IsModerator&&Object.hasOwnProperty.call(t,"IsModerator")&&n.uint32(80).bool(t.IsModerator),null!=t.MemberGid&&Object.hasOwnProperty.call(t,"MemberGid")&&n.uint32(90).string(t.MemberGid),null!=t.UserData&&Object.hasOwnProperty.call(t,"UserData")&&n.uint32(98).string(t.UserData),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatRecipient;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.ExtNumber=t.string();break;case 2:o.Name=t.string();break;case 3:o.BridgeNumber=t.string();break;case 4:o.Email=t.string();break;case 5:o.Contact=l.Contact.decode(t,t.uint32());break;case 6:o.IdRecipient=t.int32();break;case 7:o.RecipientType=t.int32();break;case 8:o.PhoneNumber=t.string();break;case 9:o.IpAddress=t.string();break;case 10:o.IsModerator=t.bool();break;case 11:o.MemberGid=t.string();break;case 12:o.UserData=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.ChatRecipientEx=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Recipient&&Object.hasOwnProperty.call(t,"Recipient")&&l.ChatRecipient.encode(t.Recipient,n.uint32(10).fork()).ldelim(),null!=t.IsAnonymousActive&&Object.hasOwnProperty.call(t,"IsAnonymousActive")&&n.uint32(16).bool(t.IsAnonymousActive),null!=t.IsRemoved&&Object.hasOwnProperty.call(t,"IsRemoved")&&n.uint32(24).bool(t.IsRemoved),null!=t.IsWhisperer&&Object.hasOwnProperty.call(t,"IsWhisperer")&&n.uint32(32).bool(t.IsWhisperer),null!=t.CanAddUsers&&Object.hasOwnProperty.call(t,"CanAddUsers")&&n.uint32(40).bool(t.CanAddUsers),null!=t.CanBeDeleted&&Object.hasOwnProperty.call(t,"CanBeDeleted")&&n.uint32(48).bool(t.CanBeDeleted),null!=t.Staus&&Object.hasOwnProperty.call(t,"Staus")&&n.uint32(56).int32(t.Staus),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatRecipientEx;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Recipient=l.ChatRecipient.decode(t,t.uint32());break;case 2:o.IsAnonymousActive=t.bool();break;case 3:o.IsRemoved=t.bool();break;case 4:o.IsWhisperer=t.bool();break;case 5:o.CanAddUsers=t.bool();break;case 6:o.CanBeDeleted=t.bool();break;case 7:o.Staus=t.int32();break;default:t.skipType(7&c)}}return o},i})(),l.ChatRecipientRef=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdRecipient&&Object.hasOwnProperty.call(t,"IdRecipient")&&n.uint32(8).int32(t.IdRecipient),null!=t.Delivery&&Object.hasOwnProperty.call(t,"Delivery")&&n.uint32(16).int32(t.Delivery),null!=t.IsRead&&Object.hasOwnProperty.call(t,"IsRead")&&n.uint32(24).bool(t.IsRead),null!=t.IsSender&&Object.hasOwnProperty.call(t,"IsSender")&&n.uint32(32).bool(t.IsSender),null!=t.MemberGid&&Object.hasOwnProperty.call(t,"MemberGid")&&n.uint32(42).string(t.MemberGid),null!=t.Emoji&&Object.hasOwnProperty.call(t,"Emoji")&&n.uint32(50).string(t.Emoji),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatRecipientRef;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdRecipient=t.int32();break;case 2:o.Delivery=t.int32();break;case 3:o.IsRead=t.bool();break;case 4:o.IsSender=t.bool();break;case 5:o.MemberGid=t.string();break;case 6:o.Emoji=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.RequestSetMessageEmoji=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.MsgGid&&Object.hasOwnProperty.call(t,"MsgGid")&&n.uint32(10).string(t.MsgGid),null!=t.MemberGid&&Object.hasOwnProperty.call(t,"MemberGid")&&n.uint32(18).string(t.MemberGid),null!=t.Emoji&&Object.hasOwnProperty.call(t,"Emoji")&&n.uint32(26).string(t.Emoji),null!=t.IdMessage&&Object.hasOwnProperty.call(t,"IdMessage")&&n.uint32(32).int32(t.IdMessage),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetMessageEmoji;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.MsgGid=t.string();break;case 2:o.MemberGid=t.string();break;case 3:o.Emoji=t.string();break;case 4:o.IdMessage=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:524,SetMessageEmoji:this})},i.prototype.typeId=524,i.prototype.typeName="SetMessageEmoji",i})()),cl=l.RequestEditChatMessage=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdMessage&&Object.hasOwnProperty.call(t,"IdMessage")&&n.uint32(8).int32(t.IdMessage),null!=t.MsgGid&&Object.hasOwnProperty.call(t,"MsgGid")&&n.uint32(18).string(t.MsgGid),null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(26).string(t.Message),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestEditChatMessage;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdMessage=t.int32();break;case 2:o.MsgGid=t.string();break;case 3:o.Message=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:525,EditChatMessage:this})},i.prototype.typeId=525,i.prototype.typeName="EditChatMessage",i})(),ul=l.NotificationChatMessageChanged=(()=>{function i(e){if(this.Recipients=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Recipients=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.IdMessage&&Object.hasOwnProperty.call(t,"IdMessage")&&n.uint32(8).int32(t.IdMessage),null!=t.MsgGid&&Object.hasOwnProperty.call(t,"MsgGid")&&n.uint32(18).string(t.MsgGid),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(24).int32(t.IdConversation),null!=t.CnvGid&&Object.hasOwnProperty.call(t,"CnvGid")&&n.uint32(34).string(t.CnvGid),null!=t.Recipients&&t.Recipients.length)for(let u=0;u<t.Recipients.length;++u)l.ChatRecipientRef.encode(t.Recipients[u],n.uint32(42).fork()).ldelim();return null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(50).string(t.Message),null!=t.EditedAt&&Object.hasOwnProperty.call(t,"EditedAt")&&l.DateTime.encode(t.EditedAt,n.uint32(58).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.NotificationChatMessageChanged;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdMessage=t.int32();break;case 2:o.MsgGid=t.string();break;case 3:o.IdConversation=t.int32();break;case 4:o.CnvGid=t.string();break;case 5:o.Recipients&&o.Recipients.length||(o.Recipients=[]),o.Recipients.push(l.ChatRecipientRef.decode(t,t.uint32()));break;case 6:o.Message=t.string();break;case 7:o.EditedAt=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:258,ChatMessageChanged:this})},i.prototype.typeId=258,i.prototype.typeName="ChatMessageChanged",i})(),al=(l.ForwardInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.OriginalMsgId&&Object.hasOwnProperty.call(t,"OriginalMsgId")&&n.uint32(8).int32(t.OriginalMsgId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ForwardInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.OriginalMsgId=t.int32():t.skipType(7&c)}return o},i})(),l.ChatMessage=(()=>{function i(e){if(this.Recipients=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Recipients=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.SenderNumber&&Object.hasOwnProperty.call(t,"SenderNumber")&&n.uint32(18).string(t.SenderNumber),null!=t.SenderName&&Object.hasOwnProperty.call(t,"SenderName")&&n.uint32(26).string(t.SenderName),null!=t.SenderBridgeNumber&&Object.hasOwnProperty.call(t,"SenderBridgeNumber")&&n.uint32(34).string(t.SenderBridgeNumber),null!=t.Recipient&&Object.hasOwnProperty.call(t,"Recipient")&&l.ChatRecipient.encode(t.Recipient,n.uint32(42).fork()).ldelim(),null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(50).string(t.Message),null!=t.Time&&Object.hasOwnProperty.call(t,"Time")&&l.DateTime.encode(t.Time,n.uint32(58).fork()).ldelim(),null!=t.IsNew&&Object.hasOwnProperty.call(t,"IsNew")&&n.uint32(64).bool(t.IsNew),null!=t.Party&&Object.hasOwnProperty.call(t,"Party")&&n.uint32(74).string(t.Party),null!=t.PartyNew&&Object.hasOwnProperty.call(t,"PartyNew")&&n.uint32(82).string(t.PartyNew),null!=t.File&&Object.hasOwnProperty.call(t,"File")&&l.ChatFile.encode(t.File,n.uint32(90).fork()).ldelim(),null!=t.IsAnonymousActive&&Object.hasOwnProperty.call(t,"IsAnonymousActive")&&n.uint32(96).bool(t.IsAnonymousActive),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(104).int32(t.IdConversation),null!=t.Recipients&&t.Recipients.length)for(let u=0;u<t.Recipients.length;++u)l.ChatRecipientRef.encode(t.Recipients[u],n.uint32(114).fork()).ldelim();return null!=t.MessageType&&Object.hasOwnProperty.call(t,"MessageType")&&n.uint32(120).int32(t.MessageType),null!=t.MsgGid&&Object.hasOwnProperty.call(t,"MsgGid")&&n.uint32(130).string(t.MsgGid),null!=t.CnvGid&&Object.hasOwnProperty.call(t,"CnvGid")&&n.uint32(138).string(t.CnvGid),null!=t.Param&&Object.hasOwnProperty.call(t,"Param")&&n.uint32(146).string(t.Param),null!=t.ReplyOnIdMessage&&Object.hasOwnProperty.call(t,"ReplyOnIdMessage")&&n.uint32(152).int32(t.ReplyOnIdMessage),null!=t.ReplyOnMsgGid&&Object.hasOwnProperty.call(t,"ReplyOnMsgGid")&&n.uint32(162).string(t.ReplyOnMsgGid),null!=t.EditedAt&&Object.hasOwnProperty.call(t,"EditedAt")&&l.DateTime.encode(t.EditedAt,n.uint32(170).fork()).ldelim(),null!=t.Forwarded&&Object.hasOwnProperty.call(t,"Forwarded")&&l.ForwardInfo.encode(t.Forwarded,n.uint32(178).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatMessage;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.SenderNumber=t.string();break;case 3:o.SenderName=t.string();break;case 4:o.SenderBridgeNumber=t.string();break;case 5:o.Recipient=l.ChatRecipient.decode(t,t.uint32());break;case 6:o.Message=t.string();break;case 7:o.Time=l.DateTime.decode(t,t.uint32());break;case 8:o.IsNew=t.bool();break;case 9:o.Party=t.string();break;case 10:o.PartyNew=t.string();break;case 11:o.File=l.ChatFile.decode(t,t.uint32());break;case 12:o.IsAnonymousActive=t.bool();break;case 13:o.IdConversation=t.int32();break;case 14:o.Recipients&&o.Recipients.length||(o.Recipients=[]),o.Recipients.push(l.ChatRecipientRef.decode(t,t.uint32()));break;case 15:o.MessageType=t.int32();break;case 16:o.MsgGid=t.string();break;case 17:o.CnvGid=t.string();break;case 18:o.Param=t.string();break;case 19:o.ReplyOnIdMessage=t.int32();break;case 20:o.ReplyOnMsgGid=t.string();break;case 21:o.EditedAt=l.DateTime.decode(t,t.uint32());break;case 22:o.Forwarded=l.ForwardInfo.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.ChatFile=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.FileName&&Object.hasOwnProperty.call(t,"FileName")&&n.uint32(10).string(t.FileName),null!=t.FileLink&&Object.hasOwnProperty.call(t,"FileLink")&&n.uint32(18).string(t.FileLink),null!=t.FileState&&Object.hasOwnProperty.call(t,"FileState")&&n.uint32(24).int32(t.FileState),null!=t.Progress&&Object.hasOwnProperty.call(t,"Progress")&&n.uint32(37).float(t.Progress),null!=t.HasPreview&&Object.hasOwnProperty.call(t,"HasPreview")&&n.uint32(40).bool(t.HasPreview),null!=t.FileSize&&Object.hasOwnProperty.call(t,"FileSize")&&n.uint32(48).uint64(t.FileSize),null!=t.Width&&Object.hasOwnProperty.call(t,"Width")&&n.uint32(56).int32(t.Wi
1dth),null!=t.Height&&Object.hasOwnProperty.call(t,"Height")&&n.uint32(64).int32(t.Height),null!=t.Type&&Object.hasOwnProperty.call(t,"Type")&&n.uint32(72).int32(t.Type),null!=t.Format&&Object.hasOwnProperty.call(t,"Format")&&n.uint32(82).string(t.Format),null!=t.DurationMs&&Object.hasOwnProperty.call(t,"DurationMs")&&n.uint32(88).int32(t.DurationMs),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatFile;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.FileName=t.string();break;case 2:o.FileLink=t.string();break;case 3:o.FileState=t.int32();break;case 4:o.Progress=t.float();break;case 5:o.HasPreview=t.bool();break;case 6:o.FileSize=t.uint64();break;case 7:o.Width=t.int32();break;case 8:o.Height=t.int32();break;case 9:o.Type=t.int32();break;case 10:o.Format=t.string();break;case 11:o.DurationMs=t.int32();break;default:t.skipType(7&c)}}return o},i})(),l.NotificationChatFileProgress=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.Party&&Object.hasOwnProperty.call(t,"Party")&&n.uint32(18).string(t.Party),null!=t.File&&Object.hasOwnProperty.call(t,"File")&&l.ChatFile.encode(t.File,n.uint32(26).fork()).ldelim(),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(32).int32(t.IdConversation),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.NotificationChatFileProgress;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.Party=t.string();break;case 3:o.File=l.ChatFile.decode(t,t.uint32());break;case 4:o.IdConversation=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:232,ChatFileProgress:this})},i.prototype.typeId=232,i.prototype.typeName="ChatFileProgress",i})()),sl=l.RequestSendChatMessage=(()=>{function i(e){if(this.Recipients=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Recipients=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(10).string(t.Message),null!=t.Recipients&&t.Recipients.length)for(let u=0;u<t.Recipients.length;++u)l.ChatRecipient.encode(t.Recipients[u],n.uint32(18).fork()).ldelim();return null!=t.SipFrom&&Object.hasOwnProperty.call(t,"SipFrom")&&n.uint32(26).string(t.SipFrom),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSendChatMessage;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Message=t.string();break;case 2:o.Recipients&&o.Recipients.length||(o.Recipients=[]),o.Recipients.push(l.ChatRecipient.decode(t,t.uint32()));break;case 3:o.SipFrom=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:110,SendChatMessage:this})},i.prototype.typeId=110,i.prototype.typeName="SendChatMessage",i})(),fl=l.RequestSendChatMessageToConversation=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(18).string(t.Message),null!=t.ReplyOnIdMessage&&Object.hasOwnProperty.call(t,"ReplyOnIdMessage")&&n.uint32(24).int32(t.ReplyOnIdMessage),null!=t.ReplyOnMsgGid&&Object.hasOwnProperty.call(t,"ReplyOnMsgGid")&&n.uint32(34).string(t.ReplyOnMsgGid),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSendChatMessageToConversation;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.Message=t.string();break;case 3:o.ReplyOnIdMessage=t.int32();break;case 4:o.ReplyOnMsgGid=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:190,SendMessageToConversation:this})},i.prototype.typeId=190,i.prototype.typeName="SendMessageToConversation",i})(),rl=l.RequestSendChatFile=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(10).string(t.Name),null!=t.Party&&Object.hasOwnProperty.call(t,"Party")&&n.uint32(18).string(t.Party),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(24).int32(t.IdConversation),null!=t.IdSender&&Object.hasOwnProperty.call(t,"IdSen
1der")&&n.uint32(32).int32(t.IdSender),null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(42).string(t.Message),null!=t.ReplyOnIdMessage&&Object.hasOwnProperty.call(t,"ReplyOnIdMessage")&&n.uint32(48).int32(t.ReplyOnIdMessage),null!=t.ReplyOnMsgGid&&Object.hasOwnProperty.call(t,"ReplyOnMsgGid")&&n.uint32(58).string(t.ReplyOnMsgGid),null!=t.MsgGid&&Object.hasOwnProperty.call(t,"MsgGid")&&n.uint32(66).string(t.MsgGid),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSendChatFile;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Name=t.string();break;case 2:o.Party=t.string();break;case 3:o.IdConversation=t.int32();break;case 4:o.IdSender=t.int32();break;case 5:o.Message=t.string();break;case 6:o.ReplyOnIdMessage=t.int32();break;case 7:o.ReplyOnMsgGid=t.string();break;case 8:o.MsgGid=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:179,SendChatFile:this})},i.prototype.typeId=179,i.prototype.typeName="SendChatFile",i})(),pl=l.RequestGetMyMessages=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.OnlyNew&&Object.hasOwnProperty.call(t,"OnlyNew")&&n.uint32(8).bool(t.OnlyNew),null!=t.FromNumber&&Object.hasOwnProperty.call(t,"FromNumber")&&n.uint32(18).string(t.FromNumber),null!=t.FromBridgeNumber&&Object.hasOwnProperty.call(t,"FromBridgeNumber")&&n.uint32(26).string(t.FromBridgeNumber),null!=t.StartingFrom&&Object.hasOwnProperty.call(t,"StartingFrom")&&l.DateTime.encode(t.StartingFrom,n.uint32(34).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetMyMessages;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.OnlyNew=t.bool();break;case 2:o.FromNumber=t.string();break;case 3:o.FromBridgeNumber=t.string();break;case 4:o.StartingFrom=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:111,GetMyMessages:this})},i.prototype.typeId=111,i.prototype.typeName="GetMyMessages",i})(),bl=l.RequestGetMyLastMessages=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Party&&Object.hasOwnProperty.call(t,"Party")&&n.uint32(10).string(t.Party),null!=t.Count&&Object.hasOwnProperty.call(t,"Count")&&n.uint32(16).int32(t.Count),null!=t.StartFromId&&Object.hasOwnProperty.call(t,"StartFromId")&&n.uint32(24).int32(t.StartFromId),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(32).int32(t.IdConversation),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetMyLastMessages;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Party=t.string();break;case 2:o.Count=t.int32();break;case 3:o.StartFromId=t.int32();break;case 4:o.IdConversation=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:162,GetMyLastMessages:this})},i.prototype.typeId=162,i.prototype.typeName="GetMyLastMessages",i})(),yl=l.RequestGetMessages=(()=>{function i(e){if(this.Ids=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Ids=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Ids&&t.Ids.length)for(let u=0;u<t.Ids.length;++u)n.uint32(8).int32(t.Ids[u]);return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetMessages;for(;t.pos<a;){let c=t.uint32();if(c===u)break;if(c>>>3==1)if(o.Ids&&o.Ids.length||(o.Ids=[]),2==(7&c)){let d=t.uint32()+t.pos;for(;t.pos<d;)o.Ids.push(t.int32())}else o.Ids.push(t.int32());else t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:526,GetMessagesByIds:this})},i.prototype.typeId=526,i.prototype.typeName="GetMessagesByIds",i})(),hl=l.RequestGetQMLastMessages=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.Count&&Object.hasOwnProperty.call(t,"Count")&&n.uint32(16).int32(t.Count),null!=t.StartFromId&&Object.hasOwnProperty.call(t,"StartFromId")&&n.uint32(24).int32(t.StartFromId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetQMLastMessages;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.Count=t.int32();break;case 3:o.StartFromId=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:502,GetQmLastMessages:this})},i.prototype.typeId=502,i.prototype.typeName="GetQmLastMessages",i})(),dl=l.ResponseMyMessages=(()=>{function i(e){if(this.Messages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Messages=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Messages&&t.Messages.length)for(let u=0;u<t.Messages.length;++u)l.ChatMessage.encode(t.Messages[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseMyMessages;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Messages&&o.Messages.length||(o.Messages=[]),o.Messages.push(l.ChatMessage.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:209,MyChatMessages:this})},i.prototype.typeId=209,i.prototype.typeName="MyChatMessages",i})(),Ol=l.RequestSetChatReceived=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)n.uint32(8).int32(t.Items[u]);return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetChatReceived;for(;t.pos<a;){let c=t.uint32();if(c===u)break;if(c>>>3==1)if(o.Items&&o.Items.length||(o.Items=[]),2==(7&c)){let d=t.uint32()+t.pos;for(;t.pos<d;)o.Items.push(t.int32())}else o.Items.push(t.int32());else t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:112,MessagesReceived:this})},i.prototype.typeId=112,i.prototype.typeName="MessagesReceived",i})(),kl=l.RequestMyChatParties=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.From&&Object.hasOwnProperty.call(t,"From")&&n.uint32(8).int32(t.From),null!=t.Count&&Object.hasOwnProperty.call(t,"Count")&&n.uint32(16).int32(t.Count),null!=t.FillParticipants&&Object.hasOwnProperty.call(t,"FillParticipants")&&n.uint32(24).bool(t.FillParticipants),null!=t.IsArchived&&Object.hasOwnProperty.call(t,"IsArchived")&&n.uint32(32).bool(t.IsArchived),null!=t.SearchString&&Object.hasOwnProperty.call(t,"SearchString")&&n.uint32(42).string(t.SearchString),null!=t.IsActive&&Object.hasOwnProperty.call(t,"IsActive")&&n.uint32(48).bool(t.IsActive),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestMyChatParties;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.From=t.int32();break;case 2:o.Count=t.int32();break;case 3:o.FillParticipants=t.bool();break;case 4:o.IsArchived=t.bool();break;case 5:o.SearchString=t.string();break;case 6:o.IsActive=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:138,GetMyChatParties:this})},i.prototype.typeId=138,i.prototype.typeName="GetMyChatParties",i})(),Cl=l.ResponseMyChatParties=(()=>{function i(e){if(this.Items=[],this.LastMessages=[],this.Participants=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.prototype.LastMessages=I.emptyArray,i.prototype.Participants=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)n.uint32(10).string(t.Items[u]);if(null!=t.LastMessages&&t.LastMessages.length)for(let u=0;u<t.LastMessages.length;++u)l.ChatMessage.encode(t.LastMessages[u],n.uint32(18).fork()).ldelim();if(null!=t.Participants&&t.Participants.length)for(let u=0;u<t.Participants.length;++u)l.ChatPartyInfo.encode(t.Participants[u],n.uint32(26).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseMyChatParties;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(t.string());break;case 2:o.LastMessages&&o.LastMessages.length||(o.LastMessages=[]),o.LastMessages.push(l.ChatMessage.decode(t,t.uint32()));break;case 3:o.Participants&&o.Participants.length||(o.Participants=[]),o.Participants.push(l.ChatPartyInfo.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:220,MyChatParties:this})},i.prototype.typeId=220,i.prototype.typeName="MyChatParties",i})(),Pl=(l.ChatPartyInfo=(()=>{function i(e){if(this.Recipients=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Recipients=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Party&&Object.hasOwnProperty.call(t,"Party")&&n.uint32(10).string(t.Party),null!=t.Recipients&&t.Recipients.length)for(let u=0;u<t.Recipients.length;++u)l.ChatRecipientEx.encode(t.Recipients[u],n.uint32(18).fork()).ldelim();return null!=t.IsExternal&&Object.hasOwnProperty.call(t,"IsExternal")&&n.uint32(24).bool(t.IsExternal),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(32).int32(t.IdConversation),null!=t.IsArchived&&Object.hasOwnProperty.call(t,"IsArchived")&&n.uint32(40).bool(t.IsArchived),null!=t.PrivateName&&Object.hasOwnProperty.call(t,"PrivateName")&&n.uint32(50).string(t.PrivateName),null!=t.QueueNo&&Object.hasOwnProperty.call(t,"QueueNo")&&n.uint32(58).string(t.QueueNo),null!=t.QueueName&&Object.hasOwnProperty.call(t,"QueueName")&&n.uint32(66).string(t.QueueName),null!=t.PublicName&&Object.hasOwnProperty.call(t,"PublicName")&&n.uint32(74).string(t.PublicName),null!=t.TakenBy&&Object.hasOwnProperty.call(t,"TakenBy")&&l.ChatRecipient.encode(t.TakenBy,n.uint32(82).fork()).ldelim(),null!=t.NumberOfMessages&&Object.hasOwnProperty.call(t,"NumberOfMessages")&&n.uint32(88).int32(t.NumberOfMessages),null!=t.CloseReason&&Object.hasOwnProperty.call(t,"CloseReason")&&n.uint32(96).int32(t.CloseReason),null!=t.CnvGid&&Object.hasOwnProperty.call(t,"CnvGid")&&n.uint32(106).string(t.CnvGid),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatPartyInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Party=t.string();break;case 2:o.Recipients&&o.Recipients.length||(o.Recipients=[]),o.Recipients.push(l.ChatRecipientEx.decode(t,t.uint32()));break;case 3:o.IsExternal=t.bool();break;case 4:o.IdConversation=t.int32();break;case 5:o.IsArchived=t.bool();break;case 6:o.PrivateName=t.string();break;case 7:o.QueueNo=t.string();break;case 8:o.QueueName=t.string();break;
1case 9:o.PublicName=t.string();break;case 10:o.TakenBy=l.ChatRecipient.decode(t,t.uint32());break;case 11:o.NumberOfMessages=t.int32();break;case 12:o.CloseReason=t.int32();break;case 13:o.CnvGid=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.RequestCreateConversation=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Party&&Object.hasOwnProperty.call(t,"Party")&&n.uint32(10).string(t.Party),null!=t.PublicName&&Object.hasOwnProperty.call(t,"PublicName")&&n.uint32(18).string(t.PublicName),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(24).int32(t.IdConversation),null!=t.PrivateName&&Object.hasOwnProperty.call(t,"PrivateName")&&n.uint32(34).string(t.PrivateName),null!=t.UserData&&Object.hasOwnProperty.call(t,"UserData")&&n.uint32(42).string(t.UserData),null!=t.CnvGid&&Object.hasOwnProperty.call(t,"CnvGid")&&n.uint32(50).string(t.CnvGid),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestCreateConversation;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Party=t.string();break;case 2:o.PublicName=t.string();break;case 3:o.IdConversation=t.int32();break;case 4:o.PrivateName=t.string();break;case 5:o.UserData=t.string();break;case 6:o.CnvGid=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:189,CreateConversation:this})},i.prototype.typeId=189,i.prototype.typeName="CreateConversation",i})()),Ml=l.ResponseConversationInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Conversation&&Object.hasOwnProperty.call(t,"Conversation")&&l.ChatPartyInfo.encode(t.Conversation,n.uint32(10).fork()).ldelim(),null!=t.IsNew&&Object.hasOwnProperty.call(t,"IsNew")&&n.uint32(16).bool(t.IsNew),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseConversationInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Conversation=l.ChatPartyInfo.decode(t,t.uint32());break;case 2:o.IsNew=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:236,ConversationInfo:this})},i.prototype.typeId=236,i.prototype.typeName="ConversationInfo",i})(),Rl=l.RequestDeleteChat=(()=>{function i(e){if(this.Items=[],this.ConversationIds=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.prototype.ConversationIds=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)n.uint32(10).string(t.Items[u]);if(null!=t.ConversationIds&&t.ConversationIds.length)for(let u=0;u<t.ConversationIds.length;++u)n.uint32(16).int32(t.ConversationIds[u]);return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestDeleteChat;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(t.string());break;case 2:if(o.ConversationIds&&o.ConversationIds.length||(o.ConversationIds=[]),2==(7&c)){let d=t.uint32()+t.pos;for(;t.pos<d;)o.ConversationIds.push(t.int32())}else o.ConversationIds.push(t.int32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:139,DeleteChat:this})},i.prototype.typeId=139,i.prototype.typeName="DeleteChat",i})(),Il=l.RequestUpdateConversation=(()=>{function i(e){if(this.ParticipantUpdates=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.ParticipantUpdates=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.IsArchived&&Object.hasOwnProperty.call(t,"IsArchived")&&n.uint32(16).bool(t.IsArchived),null!=t.PrivateName&&Object.hasOwnProperty.call(t,"PrivateName")&&n.uint32(26).string(t.PrivateName),null!=t.PublicName&&Object.hasOwnProperty.call(t,"PublicName")&&n.uint32(34).string(t.PublicName),null!=t.ParticipantUpdates&&t.ParticipantUpdates.length)for(let u=0;u<t.ParticipantUpdates.length;++u)l.ChatRecipientEx.encode(t.ParticipantUpdates[u],n.uint32(42).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));
1let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdateConversation;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.IsArchived=t.bool();break;case 3:o.PrivateName=t.string();break;case 4:o.PublicName=t.string();break;case 5:o.ParticipantUpdates&&o.ParticipantUpdates.length||(o.ParticipantUpdates=[]),o.ParticipantUpdates.push(l.ChatRecipientEx.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:186,UpdateConversation:this})},i.prototype.typeId=186,i.prototype.typeName="UpdateConversation",i})(),jl=l.RequestGetConversations=(()=>{function i(e){if(this.CnvGids=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.CnvGids=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.CnvGids&&t.CnvGids.length)for(let u=0;u<t.CnvGids.length;++u)n.uint32(10).string(t.CnvGids[u]);return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetConversations;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.CnvGids&&o.CnvGids.length||(o.CnvGids=[]),o.CnvGids.push(t.string())):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:510,GetConversations:this})},i.prototype.typeId=510,i.prototype.typeName="GetConversations",i})(),Tl=l.ResponseGetConversations=(()=>{function i(e){if(this.Conversations=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Conversations=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Conversations&&t.Conversations.length)for(let u=0;u<t.Conversations.length;++u)l.ChatPartyInfo.encode(t.Conversations[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGetConversations;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Conversations&&o.Conversations.length||(o.Conversations=[]),o.Conversations.push(l.ChatPartyInfo.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:249,ResponseConversations:this})},i.prototype.typeId=249,i.prototype.typeName="ResponseConversations",i})(),Sl=l.RequestTransferChatTo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.Participant&&Object.hasOwnProperty.call(t,"Participant")&&l.ChatRecipient.encode(t.Participant,n.uint32(18).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestTransferChatTo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.Participant=l.ChatRecipient.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:187,TransferChatTo:this})},i.prototype.typeId=187,i.prototype.typeName="TransferChatTo",i})(),vl=l.NotificationChatTransferred=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.PartyInfo&&Object.hasOwnProperty.call(t,"PartyInfo")&&l.ChatPartyInfo.encode(t.PartyInfo,n.uint32(10).fork()).ldelim(),null!=t.TransferredBy&&Object.hasOwnProperty.call(t,"TransferredBy")&&l.ChatRecipient.encode(t.TransferredBy,n.uint32(18).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.NotificationChatTransferred;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.PartyInfo=l.ChatPartyInfo.decode(t,t.uint32());break;case 2:o.TransferredBy=l.ChatRecipient.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:237,ChatTransferred:this})},i.prototype.typeId=237,i.prototype.typeName="ChatTransferred",i})(),wl=l.RequestAgentTakesOverChat=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestAgentTakesOverChat;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.IdConversation=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:188,AgentTakesOverChat:this})},i.prototype.typeId=188,i.prototype.typeName="AgentTakesOverChat",i})(),Gl=l.NotificationConversationRemoved=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.TakenBy&&Object.hasOwnProperty.call(t,"TakenBy")&&l.ChatRecipient.encode(t.TakenBy,n.uint32(18).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.NotificationConversationRemoved;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.TakenBy=l.ChatRecipient.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:235,ConversationRemoved:this})},i.prototype.typeId=235,i.prototype.typeName="ConversationRemoved",i})(),Al=l.RequestCloseConversation=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.IsHandled&&Object.hasOwnProperty.call(t,"IsHandled")&&n.uint32(16).bool(t.IsHandled),null!=t.CloseReason&&Object.hasOwnProperty.call(t,"CloseReason")&&n.uint32(24).int32(t.CloseReason),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestCloseConversation;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.IsHandled=t.bool();break;case 3:o.CloseReason=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:198,CloseConversation:this})},i.prototype.typeId=198,i.prototype.typeName="CloseConversation",i})(),Nl=l.AnonymousSessionClosed=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.CloseReason&&Object.hasOwnProperty.call(t,"CloseReason")&&n.uint32(16).int32(t.CloseReason),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.AnonymousSessionClosed;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.CloseReason=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:239,AnonymousClosed:this})},i.prototype.typeId=239,i.prototype.typeName="AnonymousClosed",i})(),gl=l.NotificationChatMessageStatus=(()=>{function i(e){if(this.IdMessage=[],this.MsgGid=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.IdMessage=I.emptyArray,i.prototype.MsgGid=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.IdMessage&&t.IdMessage.length)for(let u=0;u<t.IdMessage.length;++u)n.uint32(8).int32(t.IdMessage[u]);if(null!=t.RecipientStatus&&Object.hasOwnProperty.call(t,"RecipientStatus")&&l.ChatRecipientRef.encode(t.RecipientStatus,n.uint32(18).fork()).ldelim(),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(24).int32(t.IdConversation),null!=t.MsgGid&&t.MsgGid.length)for(let u=0;u<t.MsgGid.length;++u)n.uint32(34).string(t.MsgGid[u]);return null!=t.CnvGid&&Object.hasOwnProperty.call(t,"CnvGid")&&n.uint32(42).string(t.CnvGid),null!=t.SenderGid&&Object.hasOwnProperty.call(t,"SenderGid")&&n.uint32(50).string(t.SenderGid),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.NotificationChatMessageStatus;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:if(o.IdMessage&&o.IdMessage.length||(o.IdMessage=[]),2==(7&c)){let d=t.uint32()+t.pos;for(;t.pos<d;)o.IdMessage.push(t.int32())}else o.IdMessage.push(t.int32());break;case 2:o.RecipientStatus=l.ChatRecipientRef.decode(t,t.uint32());break;case 3:o.IdConversation=t.int32();break;case 4:o.MsgGid&&o.MsgGid.length||(o.MsgGid=[]),o.MsgGid.push(t.string());break;case 5:o.CnvGid=t.string();break;case 6:o.SenderGid=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:241,DeliveryStatus:this})},i.prototype.typeId=241,i.prototype.typeName="DeliveryStatus",i})(),Dl=l.RequestWhisperMessage=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(18).string(t.Message),null!=t.FileName&&Object.hasOwnProperty.call(t,"FileName")&&n.uint32(26).string(t.FileName),null!=t.ReplyOnIdMessage&&Object.hasOwnProperty.call(t,"ReplyOnIdMessage")&&n.uint32(32).int32(t.ReplyOnIdMessage),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestWhisperMessage;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.Message=t.string();break;case 3:o.FileName=t.string();break;case 4:o.ReplyOnIdMessage=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:197,WhisperMessage:this})},i.prototype.typeId=197,i.prototype.typeName="WhisperMessage",i})(),El=l.RequestSetVoiceMailHeard=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.IsHeard&&Object.hasOwnProperty.call(t,"IsHeard")&&n.uint32(16).bool(t.IsHeard),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetVoiceMailHeard;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.IsHeard=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:114,SetVMRead:this})},i.prototype.typeId=114,i.prototype.typeName="SetVMRead",i})(),ql=l.RequestDeleteVoiceMail=(()=>{function i(e){if(this.Ids=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Ids=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.Ids&&t.Ids.length)for(let u=0;u<t.Ids.length;++u)n.uint32(16).int32(t.Ids[u]);return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestDeleteVoiceMail;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:if(o.Ids&&o.Ids.length||(o.Ids=[]),2==(7&c)){let d=t.uint32()+t.pos;for(;t.pos<d;)o.Ids.push(t.int32())}else o.Ids.push(t.int32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:126,DeleteVM:this})},i.prototype.typeId=126,i.prototype.typeName="DeleteVM",i})(),Fl=l.RequestPlayVoiceMail=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestPlayVoiceMail;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Id=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:127,PlayVM:this})},i.prototype.typeId=127,i.prototype.typeName="PlayVM",i})(),Ll=(l.RejectAction=(()=>{const i={},e=Object.create(i);return e[i[0]="RA_Terminate"]=0,e[i[1]="RA_Busy"]=1,e[i[2]="RA_NoAnswer"]=2,e})(),l.RequestDropCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(8).int32(t.LocalConnectionId),null!=t.IsLocal&&Object.hasOwnProperty.call(t,"IsLocal")&&n.uint32(16).bool(t.IsLocal),null!=t.ActionIfRinging&&Object.hasOwnProperty.call(t,"ActionIfRinging")&&n.uint32(24).int32(t.ActionIfRinging),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestDropCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.LocalConnectionId=t.int32();break;case 2:o.IsLocal=t.bool();break;case 3:o.ActionIfRinging=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:115,DropCall:this})},i.prototype.typeId=115,i.prototype.typeName="DropCall",i})()),xl=l.ResponseCallControl=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Success&&Object.hasOwnProperty.call(t,"Success")&&n.uint32(8).bool(t.Success),null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(18).string(t.Message),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(24).int32(t.LocalConnectionId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseCallControl;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Success=t.bool();break;case 2:o.Message=t.string();break;case 3:o.LocalConnectionId=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:261,CallControlResponse:this})},i.prototype.typeId=261,i.prototype.typeName="CallControlResponse",i})(),_l=(l.BargeInMode=(()=>{const i={},e=Object.create(i);return e[i[0]="BargeIn"]=0,e[i[1]="Listen"]=1,e[i[2]="Whisper"]=2,e})(),l.RequestBargeInCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(8).int32(t.LocalConnectionId),null!=t.mode&&Object.hasOwnProperty.call(t,"mode")&&n.uint32(16).int32(t.mode),null!=t.DeviceContact&&Object.hasOwnProperty.call(t,"DeviceContact")&&n.uint32(26).string(t.DeviceContact),null!=t.EnableCallControl&&Object.hasOwnProperty.call(t,"EnableCallControl")&&n.uint32(32).bool(t.EnableCallControl),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestBargeInCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.LocalConnectionId=t.int32();break;case 2:o.mode=t.int32();break;case 3:o.DeviceContact=t.string();break;case 4:o.EnableCallControl=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:123,BargeInCall:this})},i.pr
1ototype.typeId=123,i.prototype.typeName="BargeInCall",i})()),Bl=l.RequestDivertCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(8).int32(t.LocalConnectionId),null!=t.IsLocal&&Object.hasOwnProperty.call(t,"IsLocal")&&n.uint32(16).bool(t.IsLocal),null!=t.Destination&&Object.hasOwnProperty.call(t,"Destination")&&n.uint32(26).string(t.Destination),null!=t.vmail&&Object.hasOwnProperty.call(t,"vmail")&&n.uint32(32).bool(t.vmail),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestDivertCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.LocalConnectionId=t.int32();break;case 2:o.IsLocal=t.bool();break;case 3:o.Destination=t.string();break;case 4:o.vmail=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:116,DivertCall:this})},i.prototype.typeId=116,i.prototype.typeName="DivertCall",i})(),Wl=l.RequestPickupCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(8).int32(t.LocalConnectionId),null!=t.IsLocal&&Object.hasOwnProperty.call(t,"IsLocal")&&n.uint32(16).bool(t.IsLocal),null!=t.DeviceID&&Object.hasOwnProperty.call(t,"DeviceID")&&n.uint32(26).string(t.DeviceID),null!=t.EnableCallControl&&Object.hasOwnProperty.call(t,"EnableCallControl")&&n.uint32(32).bool(t.EnableCallControl),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestPickupCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.LocalConnectionId=t.int32();break;case 2:o.IsLocal=t.bool();break;case 3:o.DeviceID=t.string();break;case 4:o.EnableCallControl=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:117,PickupCall:this})},i.prototype.typeId=117,i.prototype.typeName="PickupCall",i})(),Ul=l.RequestTransferCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(8).int32(t.LocalConnectionId),null!=t.IsLocal&&Object.hasOwnProperty.call(t,"IsLocal")&&n.uint32(16).bool(t.IsLocal),null!=t.Destination&&Object.hasOwnProperty.call(t,"Destination")&&n.uint32(26).string(t.Destination),null!=t.CallScreening&&Object.hasOwnProperty.call(t,"CallScreening")&&n.uint32(34).string(t.CallScreening),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestTransferCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.LocalConnectionId=t.int32();break;case 2:o.IsLocal=t.bool();break;case 3:o.Destination=t.string();break;case 4:o.CallScreening=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:118,TransferCall:this})},i.prototype.typeId=118,i.prototype.typeName="TransferCall",i})(),Hl=l.RequestMakeCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Destination&&Object.hasOwnProperty.call(t,"Destination")&&n.uint32(10).string(t.Destination),null!=t.UseIntercomToSource&&Object.hasOwnProperty.call(t,"UseIntercomToSource")&&n.uint32(16).bool(t.UseIntercomToSource),null!=t.DeviceID&&Object.hasOwnProperty.call(t,"DeviceID")&&n.uint32(26).string(t.DeviceID),null!=t.EnableCallControl&&Object.hasOwnProperty.call(t,"EnableCallControl")&&n.uint32(32).bool(t.EnableCallControl),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestMakeCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Destination=t.string();break;case 2:o.UseIntercomToSource=t.bool();break;case 3:o.DeviceID=t.string();break;case 4:o.EnableCallControl=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:119,MakeCall:this})},i.prototype.typeId=119,i.prototype.typeName="MakeCall",i})(),Ql=l.RequestAutoAnswerConnection=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(8).int32(t.LocalConnectionId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestAutoAnswerConnection;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.LocalConnectionId=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:152,ConvertToAutoAnswer:this})},i.prototype.typeId=152,i.prototype.typeName="ConvertToAutoAnswer",i})(),Vl=l.RequestJoinCalls=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.DeviceContact&&Object.hasOwnProperty.call(t,"DeviceContact")&&n.uint32(10).string(t.DeviceContact),null!=t.MovePartyOfLocalConnectionId&&Object.hasOwnProperty.call(t,"MovePartyOfLocalConnectionId")&&n.uint32(16).int32(t.MovePartyOfLocalConnectionId),null!=t.ReplaceLocalConnectionIdWithMovedParty&&Object.hasOwnProperty.call(t,"ReplaceLocalConnectionIdWithMovedParty")&&n.uint32(24).int32(t.ReplaceLocalConnectionIdWithMovedParty),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestJoinCalls;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.DeviceContact=t.string();break;case 2:o.MovePartyOfLocalConnectionId=t.int32();break;case 3:o.ReplaceLocalConnectionIdWithMovedParty=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:166,JoinCalls:this})},i.prototype.typeId=166,i.prototype.typeName="JoinCalls",i})(),zl=(l.OptConnectParticipant=(()=>{const i={},e=Object.create(i);return e[i[1]="THIS_CONNECTION"]=1,e[i[2]="OTHER_CONNECTION"]=2,e[i[3]="BOTH_CONNECTIONS"]=3,e})(),l.RequestJoinCallParticipantsToConference=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(8).int32(t.LocalConnectionId),null!=t.IsLocal&&Object.hasOwnProperty.call(t,"IsLocal")&&n.uint32(16).bool(t.IsLocal),null!=t.ConferencePIN&&Object.hasOwnProperty.call(t,"ConferencePIN")&&n.uint32(26).string(t.ConferencePIN),null!=t.Participants&&Object.hasOwnProperty.call(t,"Participants")&&n.uint32(32).int32(t.Participants),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestJoinCallParticipantsToConference;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.LocalConnectionId=t.int32();break;case 2:o.IsLocal=t.bool();break;case 3:o.ConferencePIN=t.string();break;case 4:o.Participants=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:136,JoinCallParticipantsToConference:this})},i.prototype.typeId=136,i.prototype.typeName="JoinCallParticipantsToConference",i}
1)()),Jl=l.RequestUpdateContact=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.NewContact&&Object.hasOwnProperty.call(t,"NewContact")&&l.Contact.encode(t.NewContact,n.uint32(18).fork()).ldelim(),null!=t.ImageContent&&Object.hasOwnProperty.call(t,"ImageContent")&&n.uint32(26).bytes(t.ImageContent),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdateContact;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.NewContact=l.Contact.decode(t,t.uint32());break;case 3:o.ImageContent=t.bytes();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:120,UpdateContact:this})},i.prototype.typeId=120,i.prototype.typeName="UpdateContact",i})(),$l=l.RequestChangeConference=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.method&&Object.hasOwnProperty.call(t,"method")&&n.uint32(10).string(t.method),null!=t.member&&Object.hasOwnProperty.call(t,"member")&&n.uint32(18).string(t.member),null!=t.mute&&Object.hasOwnProperty.call(t,"mute")&&n.uint32(26).string(t.mute),null!=t.hold&&Object.hasOwnProperty.call(t,"hold")&&n.uint32(34).string(t.hold),null!=t.pin&&Object.hasOwnProperty.call(t,"pin")&&n.uint32(42).string(t.pin),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestChangeConference;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.method=t.string();break;case 2:o.member=t.string();break;case 3:o.mute=t.string();break;case 4:o.hold=t.string();break;case 5:o.pin=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:121,ChangeConference:this})},i.prototype.typeId=121,i.prototype.typeName="ChangeConference",i})(),Jn=l.RequestGetSystemParameters=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetSystemParameters;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:122,GetSystemParameters:this})},i.prototype.typeId=122,i.prototype.typeName="GetSystemParameters",i})(),Xt=(l.ENL=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.From&&Object.hasOwnProperty.call(t,"From")&&n.uint32(8).int32(t.From),null!=t.To&&Object.hasOwnProperty.call(t,"To")&&n.uint32(16).int32(t.To),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ENL;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.From=t.int32();break;case 2:o.To=t.int32();break;default:t.skipType(7&c)}}return o},i})(),l.ResponseSystemParameters=(()=>{function i(e){if(this.WebRtcCodecs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.WebRtcCodecs=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.VmailDialCode&&Object.hasOwnProperty.call(t,"VmailDialCode")&&n.uint32(10).string(t.VmailDialCode),null!=t.IntercomDialCode&&Object.hasOwnProperty.call(t,"IntercomDialCode")&&n.uint32(18).string(t.IntercomDialCode),null!=t.Custom1Name&&Object.hasOwnProperty.call(t,"Custom1Name")&&n.uint32(26).string(t.Custom1Name),null!=t.Custom2Name&&Object.hasOwnProperty.call(t,"Custom2Name")&&n.uint32(34).string(t.Custom2Name),null!=t.WebMeetingURI&&Object.hasOwnProperty.call(t,"WebMeetingURI")&&n.uint32(42).string(t.WebMeetingURI),null!=t.WebRtcGatewayDn&&Object.hasOwnProperty.call(t,"WebRtcGatewayDn")&&n.uint32(50).string(t.WebRtcGatewayDn),null!=t.WebMeetingParameters&&Object.hasOwnProperty.call(t,"WebMeetingParameters")&&n.uint32(58).string(t.WebMeetingParameters),null!=t.WebMeetingBestMCU&&Object.hasOwnProperty.call(t,"WebMeetingBestMCU")&&n.uint32(66).string(t.WebMeetingBestMCU),null!=t.DialCodeProfile&&Object.hasOwnProperty.call(t,"DialCodeProfile")&&n.uint32(74).string(t.DialCodeProfile),null!=t.LoggedInQueue&&Object.hasOwnProperty.call(t,"LoggedInQueue")&&n.uint32(82).string(t.LoggedInQueue),null!=t.LoggedOutQueue&&Object.hasOwnProperty.call(t,"LoggedOutQueue")&&n.uint32(90).string(t.LoggedOutQueue),null!=t.IsLastFirst&&Object.hasOwnProperty.call(t,"IsLastFirst")&&n.uint32(96).bool(t.IsLastFirst),null!=t.PhonebookMinMatch&&Object.hasOwnProperty.call(t,"PhonebookMinMatch")&&n.uint32(104).int32(t.PhonebookMinMatch),null!=t.CstaUserAgents&&Object.hasOwnProperty.call(t,"CstaUserAgents")&&n.uint32(122).string(t.CstaUserAgents),null!=t.HotelIvr&&Object.hasOwnProperty.call(t,"HotelIvr")&&n.uint32(130).string(t.HotelIvr),null!=t.ConfCallParticipants&&Object.hasOwnProperty.call(t,"ConfCallParticipants")&&n.uint32(136).bool(t.ConfCallParticipants),null!=t.ChatIsEnabled&&Object.hasOwnProperty.call(t,"ChatIsEnabled")&&n.uint32(144).bool(t.ChatIsEnabled),null!=t.AllowWebrtcEndpoint&&Object.hasOwnProperty.call(t,"AllowWebrtcEndpoint")&&n.uint32(152).bool(t.AllowWebrtcEndpoint),null!=t.MaxChatAttachmentFileSize&&Object.hasOwnProperty.call(t,"MaxChatAttachmentFileSize")&&n.uint32(160).uint64(t.MaxChatAttachmentFileSize),null!=t.PbxExternalHost&&Object.hasOwnProperty.call(t,"PbxExternalHost")&&n.uint32(170).string(t.PbxExternalHost),null!=t.PbxInternalHost&&Object.hasOwnProperty.call(t,"PbxInternalHost")&&n.uint32(178).string(t.PbxInternalHost),null!=t.WebRtcCodecs&&t.WebRtcCodecs.length)for(let u=0;u<t.WebRtcCodecs.length;++u)n.uint32(186).string(t.WebRtcCodecs[u]);return null!=t.IsElectronEnabled&&Object.hasOwnProperty.call(t,"IsElectronEnabled")&&n.uint32(192).bool(t.IsElectronEnabled),null!=t.HideCrmContacts&&Object.hasOwnProperty.call(t,"HideCrmContacts")&&n.uint32(200).bool(t.HideCrmContacts),null!=t.CurrentInOutOfficeMode&&Ob
1ject.hasOwnProperty.call(t,"CurrentInOutOfficeMode")&&n.uint32(208).int32(t.CurrentInOutOfficeMode),null!=t.DefaultMaxImageSizeForProviders&&Object.hasOwnProperty.call(t,"DefaultMaxImageSizeForProviders")&&n.uint32(216).uint64(t.DefaultMaxImageSizeForProviders),null!=t.VapidPublicKey&&Object.hasOwnProperty.call(t,"VapidPublicKey")&&n.uint32(226).string(t.VapidPublicKey),null!=t.SystemLanguage&&Object.hasOwnProperty.call(t,"SystemLanguage")&&n.uint32(234).string(t.SystemLanguage),null!=t.MultiCompanyMode&&Object.hasOwnProperty.call(t,"MultiCompanyMode")&&n.uint32(240).bool(t.MultiCompanyMode),null!=t.AllowChangePasswords&&Object.hasOwnProperty.call(t,"AllowChangePasswords")&&n.uint32(248).bool(t.AllowChangePasswords),null!=t.CrmConfigured&&Object.hasOwnProperty.call(t,"CrmConfigured")&&n.uint32(256).bool(t.CrmConfigured),null!=t.CrmAddContactAllowed&&Object.hasOwnProperty.call(t,"CrmAddContactAllowed")&&n.uint32(264).bool(t.CrmAddContactAllowed),null!=t.HasSystemOwner&&Object.hasOwnProperty.call(t,"HasSystemOwner")&&n.uint32(272).bool(t.HasSystemOwner),null!=t.LicenseProduct&&Object.hasOwnProperty.call(t,"LicenseProduct")&&n.uint32(282).string(t.LicenseProduct),null!=t.LicenseExpiredAt&&Object.hasOwnProperty.call(t,"LicenseExpiredAt")&&l.DateTime.encode(t.LicenseExpiredAt,n.uint32(290).fork()).ldelim(),null!=t.PrependNameToCID&&Object.hasOwnProperty.call(t,"PrependNameToCID")&&n.uint32(296).bool(t.PrependNameToCID),null!=t.HideInteractionHistory&&Object.hasOwnProperty.call(t,"HideInteractionHistory")&&n.uint32(304).bool(t.HideInteractionHistory),null!=t.AvatarStyle&&Object.hasOwnProperty.call(t,"AvatarStyle")&&n.uint32(314).string(t.AvatarStyle),null!=t.BrandLogoImage&&Object.hasOwnProperty.call(t,"BrandLogoImage")&&n.uint32(322).string(t.BrandLogoImage),null!=t.BrandMainImage&&Object.hasOwnProperty.call(t,"BrandMainImage")&&n.uint32(330).string(t.BrandMainImage),null!=t.BrandUrl&&Object.hasOwnProperty.call(t,"BrandUrl")&&n.uint32(338).string(t.BrandUrl),null!=t.PickupDialCode&&Object.hasOwnProperty.call(t,"PickupDialCode")&&n.uint32(346).string(t.PickupDialCode),null!=t.AllowBlockCalls&&Object.hasOwnProperty.call(t,"AllowBlockCalls")&&n.uint32(352).bool(t.AllowBlockCalls),null!=t.ENL&&Object.hasOwnProperty.call(t,"ENL")&&l.ENL.encode(t.ENL,n.uint32(362).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseSystemParameters;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.VmailDialCode=t.string();break;case 2:o.IntercomDialCode=t.string();break;case 3:o.Custom1Name=t.string();break;case 4:o.Custom2Name=t.string();break;case 5:o.WebMeetingURI=t.string();break;case 6:o.WebRtcGatewayDn=t.string();break;case 7:o.WebMeetingParameters=t.string();break;case 8:o.WebMeetingBestMCU=t.string();break;case 9:o.DialCodeProfile=t.string();break;case 10:o.LoggedInQueue=t.string();break;case 11:o.LoggedOutQueue=t.string();break;case 12:o.IsLastFirst=t.bool();break;case 13:o.PhonebookMinMatch=t.int32();break;case 15:o.CstaUserAgents=t.string();break;case 16:o.HotelIvr=t.string();break;case 17:o.ConfCallParticipants=t.bool();break;case 18:o.ChatIsEnabled=t.bool();break;case 19:o.AllowWebrtcEndpoint=t.bool();break;case 20:o.MaxChatAttachmentFileSize=t.uint64();break;case 21:o.PbxExternalHost=t.string();break;case 22:o.PbxInternalHost=t.string();break;case 23:o.WebRtcCodecs&&o.WebRtcCodecs.length||(o.WebRtcCodecs=[]),o.WebRtcCodecs.push(t.string());break;case 24:o.IsElectronEnabled=t.bool();break;case 25:o.HideCrmContacts=t.bool();break;case 26:o.CurrentInOutOfficeMode=t.int32();break;case 27:o.DefaultMaxImageSizeForProviders=t.uint64();break;case 28:o.VapidPublicKey=t.string();break;case 29:o.SystemLanguage=t.string();break;case 30:o.MultiCompanyMode=t.bool();break;case 31:o.AllowChangePasswords=t.bool();break;case 32:o.CrmConfigured=t.bool();break;case 33:o.CrmAddContactAllowed=t.bool();break;case 34:o.HasSystemOwner=t.bool();break;case 35:o.LicenseProduct=t.string();break;case 36:o.LicenseExpiredAt=l.DateTime.decode(t,t.uint32());break;case 37:o.PrependNameToCID=t.bool();break;case 38:o.HideInteractionHistory=t.bool();break;case 39:o.AvatarStyle=t.string();break;case 40:o.BrandLogoImage=t.string();break;case 41:o.BrandMainImage=t.string();break;case 42:o.BrandUrl=t.string();break;case 43:o.PickupDialCode=t.string();break;case 44:o.AllowBlockCalls=t.bool();break;case 45:o.ENL=l.ENL.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:210,SystemParameters:this})},i.prototype.typeId=210,i.prototype.typeName="SystemParameters",i})()),Kl=l.RequestSetOfficeHoursMode=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.CurrentInOutOfficeMode&&Ob
1ject.hasOwnProperty.call(t,"CurrentInOutOfficeMode")&&n.uint32(8).int32(t.CurrentInOutOfficeMode),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetOfficeHoursMode;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.CurrentInOutOfficeMode=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:512,SetOfficeHoursMode:this})},i.prototype.typeId=512,i.prototype.typeName="SetOfficeHoursMode",i})(),Zt=(l.QueueStatistics=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.CurCallsWaiting&&Object.hasOwnProperty.call(t,"CurCallsWaiting")&&n.uint32(34).string(t.CurCallsWaiting),null!=t.CurCallsPolling&&Object.hasOwnProperty.call(t,"CurCallsPolling")&&n.uint32(42).string(t.CurCallsPolling),null!=t.CurCallsRepolling&&Object.hasOwnProperty.call(t,"CurCallsRepolling")&&n.uint32(50).string(t.CurCallsRepolling),null!=t.CurCallsServicing&&Object.hasOwnProperty.call(t,"CurCallsServicing")&&n.uint32(58).string(t.CurCallsServicing),null!=t.TotalCallsIn&&Object.hasOwnProperty.call(t,"TotalCallsIn")&&n.uint32(66).string(t.TotalCallsIn),null!=t.TotalCallsServiced&&Object.hasOwnProperty.call(t,"TotalCallsServiced")&&n.uint32(74).string(t.TotalCallsServiced),null!=t.TotalCallsDroppedInWait&&Object.hasOwnProperty.call(t,"TotalCallsDroppedInWait")&&n.uint32(82).string(t.TotalCallsDroppedInWait),null!=t.TotalCallsDroppedInPoll&&Object.hasOwnProperty.call(t,"TotalCallsDroppedInPoll")&&n.uint32(90).string(t.TotalCallsDroppedInPoll),null!=t.TotalAgentsDialed&&Object.hasOwnProperty.call(t,"TotalAgentsDialed")&&n.uint32(98).string(t.TotalAgentsDialed),null!=t.TotalAgentsRefused&&Object.hasOwnProperty.call(t,"TotalAgentsRefused")&&n.uint32(106).string(t.TotalAgentsRefused),null!=t.TotalAgentCallsExpired&&Object.hasOwnProperty.call(t,"TotalAgentCallsExpired")&&n.uint32(114).string(t.TotalAgentCallsExpired),null!=t.TotalCallsReachedMaxTime&&Object.hasOwnProperty.call(t,"TotalCallsReachedMaxTime")&&n.uint32(122).string(t.TotalCallsReachedMaxTime),null!=t.TotalUserRequestedEnd&&Object.hasOwnProperty.call(t,"TotalUserRequestedEnd")&&n.uint32(130).string(t.TotalUserRequestedEnd),null!=t.TotalNoAgentsEnded&&Object.hasOwnProperty.call(t,"TotalNoAgentsEnded")&&n.uint32(138).string(t.TotalNoAgentsEnded),null!=t.TotalTransfersFailed&&Object.hasOwnProperty.call(t,"TotalTransfersFailed")&&n.uint32(146).string(t.TotalTransfersFailed),null!=t.TotalCallbacksRequested&&Object.hasOwnProperty.call(t,"TotalCallbacksRequested")&&n.uint32(154).string(t.TotalCallbacksRequested),null!=t.TotalCallbacksServiced&&Object.hasOwnProperty.call(t,"TotalCallbacksServiced")&&n.uint32(162).string(t.TotalCallbacksServiced),null!=t.TotalCallbacksFailed&&Object.hasOwnProperty.call(t,"TotalCallbacksFailed")&&n.uint32(170).string(t.TotalCallbacksFailed),null!=t.TotalWaitingTime&&Object.hasOwnProperty.call(t,"TotalWaitingTime")&&n.uint32(178).string(t.TotalWaitingTime),null!=t.TotalServicingTime&&Object.hasOwnProperty.call(t,"TotalServicingTime")&&n.uint32(186).string(t.TotalServicingTime),null!=t.LongestWaitingTime&&Object.hasOwnProperty.call(t,"LongestWaitingTime")&&n.uint32(194).string(t.LongestWaitingTime),null!=t.TotalCallsEscalated&&Object.hasOwnProperty.call(t,"TotalCallsEscalated")&&n.uint32(202).string(t.TotalCallsEscalated),null!=t.TotalCallsAbandoned&&Object.hasOwnProperty.call(t,"TotalCallsAbandoned")&&n.uint32(210).string(t.TotalCallsAbandoned),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.QueueStatistics;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 4:o.CurCallsWaiting=t.string();break;case 5:o.CurCallsPolling=t.string();break;case 6:o.CurCallsRepolling=t.string();break;case 7:o.CurCallsServicing=t.string();break;case 8:o.TotalCallsIn=t.string();break;case 9:o.TotalCallsServiced=t.string();break;case 10:o.TotalCallsDroppedInWait=t.string();break;case 11:o.TotalCallsDroppedInPoll=t.string();break;case 12:o.TotalAgentsDialed=t.string();break;case 13:o.TotalAgentsRefused=t.string();break;case 14:o.TotalAgentCallsExpired=t.string();break;case 15:o.TotalCallsReachedMaxTime=t.string();break;case 16:o.TotalUserRequestedEnd=t.string();break;case 17:o.TotalNoAgentsEnded=t.string();break;case 18:o.TotalTransfersFailed=t.string();break;case 19:o.TotalCallbacksRequested=t.string();break;case 20:o.TotalCallbacksServiced=t.string();break;case 21:o.TotalCallbacksFailed=t.string();break;
vendor: 6,083 bytes, line 1
1case 22:o.TotalWaitingTime=t.string();break;case 23:o.TotalServicingTime=t.string();break;case 24:o.LongestWaitingTime=t.string();break;case 25:o.TotalCallsEscalated=t.string();break;case 26:o.TotalCallsAbandoned=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.QueueAgentStat=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.TotalTimesDialed&&Object.hasOwnProperty.call(t,"TotalTimesDialed")&&n.uint32(26).string(t.TotalTimesDialed),null!=t.TotalTimesRefused&&Object.hasOwnProperty.call(t,"TotalTimesRefused")&&n.uint32(34).string(t.TotalTimesRefused),null!=t.TotalTimesCallExpired&&Object.hasOwnProperty.call(t,"TotalTimesCallExpired")&&n.uint32(42).string(t.TotalTimesCallExpired),null!=t.TotalCallsServiced&&Object.hasOwnProperty.call(t,"TotalCallsServiced")&&n.uint32(50).string(t.TotalCallsServiced),null!=t.TotalTalkTime&&Object.hasOwnProperty.call(t,"TotalTalkTime")&&n.uint32(58).string(t.TotalTalkTime),null!=t.TotalCallsEscalated&&Object.hasOwnProperty.call(t,"TotalCallsEscalated")&&n.uint32(66).string(t.TotalCallsEscalated),null!=t.TotalLoggedInTime&&Object.hasOwnProperty.call(t,"TotalLoggedInTime")&&n.uint32(74).string(t.TotalLoggedInTime),null!=t.LastLogInUtc&&Object.hasOwnProperty.call(t,"LastLogInUtc")&&n.uint32(82).string(t.LastLogInUtc),null!=t.LastLogOutUtc&&Object.hasOwnProperty.call(t,"LastLogOutUtc")&&n.uint32(90).string(t.LastLogOutUtc),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.QueueAgentStat;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 3:o.TotalTimesDialed=t.string();break;case 4:o.TotalTimesRefused=t.string();break;case 5:o.TotalTimesCallExpired=t.string();break;case 6:o.TotalCallsServiced=t.string();break;case 7:o.TotalTalkTime=t.string();break;case 8:o.TotalCallsEscalated=t.string();break;case 9:o.TotalLoggedInTime=t.string();break;case 10:o.LastLogInUtc=t.string();break;case 11:o.LastLogOutUtc=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.QueueAgent=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(26).string(t.Number),null!=t.FirstName&&Object.hasOwnProperty.call(t,"FirstName")&&n.uint32(34).string(t.FirstName),null!=t.LastName&&Object.hasOwnProperty.call(t,"LastName")&&n.uint32(42).string(t.LastName),null!=t.Stat&&Object.hasOwnProperty.call(t,"Stat")&&l.QueueAgentStat.encode(t.Stat,n.uint32(50).fork()).ldelim(),null!=t.ActiveCalls&&Object.hasOwnProperty.call(t,"ActiveCalls")&&l.LocalConnections.encode(t.ActiveCalls,n.uint32(58).fork()).ldelim(),null!=t.QueueStatus&&Object.hasOwnProperty.call(t,"QueueStatus")&&n.uint32(64).bool(t.QueueStatus),null!=t.Available&&Object.hasOwnProperty.call(t,"Available")&&n.uint32(72).bool(t.Available),null!=t.Priority&&Object.hasOwnProperty.call(t,"Priority")&&n.uint32(80).int32(t.Priority),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.QueueAgent;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Number=t.string();break;case 4:o.FirstName=t.string();break;case 5:o.LastName=t.string();break;case 6:o.Stat=l.QueueAgentStat.decode(t,t.uint32());break;case 7:o.ActiveCalls=l.LocalConnections.decode(t,t.uint32());break;case 8:o.QueueStatus=t.bool();break;case 9:o.Available=t.bool();break;case 10:o.Priority=t.int32();break;default:t.skipType(7&c)}}return o},i})(),l.QueueAgents=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.QueueAgent.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.QueueAgents;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.QueueAgent.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.QueueStat=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(26).string(t.Name),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(34).string(t.Number),null!=t.Agents&&Object.hasOwnProperty.call(t,"Agents")&&l.QueueAgents.encode(t.Agents,n.uint32(42).fork()).ldelim(),null!=t.Stat&&Object.hasOwnProperty.call(t,"Stat")&&l.QueueStatistics.encode(t.Stat,n.uint32(50).fork()).ldelim(),null!=t.WaitingCalls&&Object.hasOwnProperty.call(t,"WaitingCalls")&&l.LocalConnections.encode(t.WaitingCalls,n.uint32(58).fork()).ldelim(),null!=t.PollingCalls&&Object.hasOwnProperty.call(t,"PollingCalls")&&l.LocalConnections.encode(t.PollingCalls,n.uint32(66).fork()).ldelim(),null!=t.CallBackCalls&&Object.hasOwnProperty.call(t,"CallBackCalls")&&l.LocalConnections.encode(t.CallBackCalls,n.uint32(74).fork()).ldelim(),null!=t.Available&&Object.hasOwnProperty.call(t,"Available")&&n.uint32(80).bool(t.Available),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.QueueStat;
1for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Name=t.string();break;case 4:o.Number=t.string();break;case 5:o.Agents=l.QueueAgents.decode(t,t.uint32());break;case 6:o.Stat=l.QueueStatistics.decode(t,t.uint32());break;case 7:o.WaitingCalls=l.LocalConnections.decode(t,t.uint32());break;case 8:o.PollingCalls=l.LocalConnections.decode(t,t.uint32());break;case 9:o.CallBackCalls=l.LocalConnections.decode(t,t.uint32());break;case 10:o.Available=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.Queues=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.QueueStat.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Queues;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.QueueStat.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:211,QueuesInfo:this})},i.prototype.typeId=211,i.prototype.typeName="QueuesInfo",i})()),mt=(l.IVRInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(26).string(t.Name),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(34).string(t.Number),null!=t.WaitingCalls&&Object.hasOwnProperty.call(t,"WaitingCalls")&&l.LocalConnections.encode(t.WaitingCalls,n.uint32(42).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.IVRInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Name=t.string();break;case 4:o.Number=t.string();break;case 5:o.WaitingCalls=l.LocalConnections.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.IVRs=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.IVRInfo.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.IVRs;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.IVRInfo.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:213,IVRsInfo:this})},i.prototype.typeId=213,i.prototype.typeName="IVRsInfo",i})()),tn=(l.ParkingInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(26).string(t.Name),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(34).string(t.Number),null!=t.WaitingCalls&&Object.hasOwnProperty.call(t,"WaitingCalls")&&l.LocalConnections.encode(t.WaitingCalls,n.uint32(42).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ParkingInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Name=t.string();break;case 4:o.Number=t.string();break;case 5:o.WaitingCalls=l.LocalConnections.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.Parkings=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.ParkingInfo.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Parkings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.ParkingInfo.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:212,ParkingsInfo:this})},i.prototype.typeId=212,i.prototype.typeName="ParkingsInfo",i})()),Yl=l.RequestConnectionAccessRights=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(8).int32(t.LocalConnectionId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestConnectionAccessRights;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.LocalConnectionId=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:124,GetAccessRights:this})},i.prototype.typeId=124,i.prototype.typeName="GetAccessRights",i})(),Xl=l.ResponseConnectionAccessRights=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ConnectionCapabilities&&Object.hasOwnProperty.call(t,"ConnectionCapabilities")&&n.uint32(8).int32(t.ConnectionCapabilities),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseConnectionAccessRights;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.ConnectionCapabilities=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:214,ConnectionCapabilityMask:this})},i.prototype.typeId=214,i.prototype.typeName="ConnectionCapabilityMask",i})(),Zl=l.RequestResetMyMissedCalls=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestResetMyMissedCalls;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:125,ResetMyMissedCalls:this})},i.prototype.typeId=125,i.prototype.typeName="ResetMyMissedCalls",i})(),ml=l.ResponseExtensionsChanged=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Type&&Object.hasOwnProperty.call(t,"Type")&&n.uint32(8).int32(t.Type),null!=t.Update&&Object.hasOwnProperty.call(t,"Update")&&l.Contact.encode(t.Update,n.uint32(18).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseExtensionsChanged;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Type=t.int32();break;case 2:o.Update=l.Contact.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:215,ExtensionsChangedEvent:this})},i.prototype.typeId=215,i.prototype.typeName="ExtensionsChangedEvent",i})(),tc=l.RequestGetFolder=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Folder&&Ob
1ject.hasOwnProperty.call(t,"Folder")&&n.uint32(8).int32(t.Folder),null!=t.IdGroup&&Object.hasOwnProperty.call(t,"IdGroup")&&n.uint32(16).int32(t.IdGroup),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetFolder;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Folder=t.int32();break;case 2:o.IdGroup=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:128,GetFolderRequest:this})},i.prototype.typeId=128,i.prototype.typeName="GetFolderRequest",i})(),nc=l.ResponseGetFolder=(()=>{function i(e){if(this.Files=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Files=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Folder&&Object.hasOwnProperty.call(t,"Folder")&&n.uint32(8).int32(t.Folder),null!=t.Files&&t.Files.length)for(let u=0;u<t.Files.length;++u)n.uint32(18).string(t.Files[u]);return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGetFolder;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Folder=t.int32();break;case 2:o.Files&&o.Files.length||(o.Files=[]),o.Files.push(t.string());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:216,GetFolderResponse:this})},i.prototype.typeId=216,i.prototype.typeName="GetFolderResponse",i})(),ec=l.RequestDeleteFile=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Folder&&Object.hasOwnProperty.call(t,"Folder")&&n.uint32(8).int32(t.Folder),null!=t.File&&Object.hasOwnProperty.call(t,"File")&&n.uint32(18).string(t.File),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestDeleteFile;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Folder=t.int32();break;case 2:o.File=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:129,DeleteFile:this})},i.prototype.typeId=129,i.prototype.typeName="DeleteFile",i})(),ic=l.RequestPlayRecording=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.File&&Object.hasOwnProperty.call(t,"File")&&n.uint32(10).string(t.File),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestPlayRecording;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.File=t.string();break;case 2:o.Id=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:130,PlayRec:this})},i.prototype.typeId=130,i.prototype.typeName="PlayRec",i})(),$n=l.ResponseContactChanged=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Update&&Object.hasOwnProperty.call(t,"Update")&&l.Contact.encode(t.Update,n.uint32(10).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseContactChanged;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Update=l.Contact.decode(t,t.uint32()):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:217,ContactChangedEvent:this})},i.prototype.typeId=217,i.prototype.typeName="ContactChangedEvent",i})(),Kn=l.RequestServerTime=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestServerTime;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:131,ServerTimeRequest:this})},i.prototype.typeId=131,i.prototype.typeName="ServerTimeRequest",i})(),nn=l.ResponseServerTime=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ArrivedAtServerLocalUTCtime&&Object.hasOwnProperty.call(t,"ArrivedAtServerLocalUTCtime")&&l.DateTime.encode(t.ArrivedAtServerLocalUTCtime,n.uint32(10).fork()).ldelim(),null!=t.SentAtServerLocalUTCtime&&Object.hasOwnProperty.call(t,"SentAtServerLocalUTCtime")&&l.DateTime.encode(t.SentAtServerLocalUTCtime,n.uint32(18).fork()).ldelim(),null!=t.ArrivedAtMSecs&&Object.hasOwnProperty.call(t,"ArrivedAtMSecs")&&n.uint32(24).int32(t.ArrivedAtMSecs),null!=t.SentAtMSecs&&Object.hasOwnProperty.call(t,"SentAtMSecs")&&n.uint32(32).int32(t.SentAtMSecs),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseServerTime;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.ArrivedAtServerLocalUTCtime=l.DateTime.decode(t,t.uint32());break;case 2:o.SentAtServerLocalUTCtime=l.DateTime.decode(t,t.uint32());break;case 3:o.ArrivedAtMSecs=t.int32();break;case 4:o.SentAtMSecs=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:218,ServerTimeResponse:this})},i.prototype.typeId=218,i.prototype.typeName="ServerTimeResponse",i})(),oc=l.RequestSetQueueStatus=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.QueueId&&Object.hasOwnProperty.call(t,"QueueId")&&n.uint32(8).int32(t.QueueId),null!=t.AgentId&&Object.hasOwnProperty.call(t,"AgentId")&&n.uint32(16).int32(t.AgentId),null!=t.NewQueueStatus&&Object.hasOwnProperty.call(t,"NewQueueStatus")&&n.uint32(24).bool(t.NewQueueStatus),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetQueueStatus;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.QueueId=t.int32();break;case 2:o.AgentId=t.int32();break;case 3:o.NewQueueStatus=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:132,SetQueueStatus:this})},i.prototype.typeId=132,i.prototype.typeName="SetQueueStatus",i})(),lc=l.RequestRecordCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(8).int32(t.LocalConnectionId),null!=t.IsLocal&&Object.hasOwnProperty.call(t,"IsLocal")&&n.uint32(16).bool(t.IsLocal),null!=t.Folder&&Ob
1ject.hasOwnProperty.call(t,"Folder")&&n.uint32(26).string(t.Folder),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestRecordCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.LocalConnectionId=t.int32();break;case 2:o.IsLocal=t.bool();break;case 3:o.Folder=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:137,RecordCall:this})},i.prototype.typeId=137,i.prototype.typeName="RecordCall",i})(),cc=l.RequestControlCallRecording=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.LocalConnectionId&&Object.hasOwnProperty.call(t,"LocalConnectionId")&&n.uint32(8).int32(t.LocalConnectionId),null!=t.IsLocal&&Object.hasOwnProperty.call(t,"IsLocal")&&n.uint32(16).bool(t.IsLocal),null!=t.RecAction&&Object.hasOwnProperty.call(t,"RecAction")&&n.uint32(24).int32(t.RecAction),null!=t.Folder&&Object.hasOwnProperty.call(t,"Folder")&&n.uint32(34).string(t.Folder),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestControlCallRecording;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.LocalConnectionId=t.int32();break;case 2:o.IsLocal=t.bool();break;case 3:o.RecAction=t.int32();break;case 4:o.Folder=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:167,RecordingControl:this})},i.prototype.typeId=167,i.prototype.typeName="RecordingControl",i})(),uc=l.RequestGetMyRights=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetMyRights;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:140,GetMyRights:this})},i.prototype.typeId=140,i.prototype.typeName="GetMyRights",i})(),ac=l.ResponseGetMyRights=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.CanModifyCompanyBook&&Object.hasOwnProperty.call(t,"CanModifyCompanyBook")&&n.uint32(8).bool(t.CanModifyCompanyBook),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGetMyRights;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.CanModifyCompanyBook=t.bool():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:221,MyRights:this})},i.prototype.typeId=221,i.prototype.typeName="MyRights",i})(),sc=l.RequestGetGreetings=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetGreetings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:141,GetGreetings:this})},i.prototype.typeId=141,i.prototype.typeName="GetGreetings",i})(),fc=l.RequestSetGreetings=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Default&&Object.hasOwnProperty.call(t,"Default")&&n.uint32(10).string(t.Default),null!=t.Available&&Object.hasOwnProperty.call(t,"Available")&&n.uint32(18).string(t.Available),null!=t.Away&&Object.hasOwnProperty.call(t,"Away")&&n.uint32(26).string(t.Away),null!=t.OutOfOffice&&Object.hasOwnProperty.call(t,"OutOfOffice")&&n.uint32(34).string(t.OutOfOffice),null!=t.Custom1&&Object.hasOwnProperty.call(t,"Custom1")&&n.uint32(42).string(t.Custom1),null!=t.Custom2&&Object.hasOwnProperty.call(t,"Custom2")&&n.uint32(50).string(t.Custom2),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetGreetings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Default=t.string();break;case 2:o.Available=t.string();break;case 3:o.Away=t.string();break;case 4:o.OutOfOffice=t.string();break;case 5:o.Custom1=t.string();break;case 6:o.Custom2=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:142,SetGreetings:this})},i.prototype.typeId=142,i.prototype.typeName="SetGreetings",i})(),rc=l.ResponseGreetings=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Default&&Object.hasOwnProperty.call(t,"Default")&&n.uint32(10).string(t.Default),null!=t.Available&&Object.hasOwnProperty.call(t,"Available")&&n.uint32(18).string(t.Available),null!=t.Away&&Object.hasOwnProperty.call(t,"Away")&&n.uint32(26).string(t.Away),null!=t.OutOfOffice&&Object.hasOwnProperty.call(t,"OutOfOffice")&&n.uint32(34).string(t.OutOfOffice),null!=t.Custom1&&Object.hasOwnProperty.call(t,"Custom1")&&n.uint32(42).string(t.Custom1),null!=t.Custom2&&Object.hasOwnProperty.call(t,"Custom2")&&n.uint32(50).string(t.Custom2),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGreetings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Default=t.string();break;case 2:o.Available=t.string();break;case 3:o.Away=t.string();break;case 4:o.OutOfOffice=t.string();break;case 5:o.Custom1=t.string();break;case 6:o.Custom2=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:222,Greetings:this})},i.prototype.typeId=222,i.prototype.typeName="Greetings",i})(),pc=l.RequestPlayVMGreetingOnPhone=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.FileName&&Object.hasOwnProperty.call(t,"FileName")&&n.uint32(10).string(t.FileName),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestPlayVMGreetingOnPhone;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.FileName=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:143,PlayVMGreetingOnPhone:this})},i.prototype.typeId=143,i.prototype.typeName="PlayVMGreetingOnPhone",i})(),bc=l.RequestRecordVMGreetingFromPhone=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.FileName&&Object.hasOwnProperty.call(t,"FileName")&&n.uint32(10).string(t.FileName),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestRecordVMGreetingFromPhone;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.FileName=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:144,RecordVMGreetingFromPhone:this})},i.prototype.typeId=144,i.prototype.typeName="RecordVMGreetingFromPhone",i})(),yc=l.RequestUpdateWebRtcInboundRules=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.WebRtcInboundRule.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdateWebRtcInboundRules;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.WebRtcInboundRule.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:150,UpdateWebRtcInboundRules:this})},i.prototype.typeId=150,i.prototype.typeName="UpdateWebRtcInboundRules",i})(),hc=l.RequestWelcomeEmail=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestWelcomeEmail;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:151,SendWelcomeEmail:this})},i.prototype.typeId=151,i.prototype.typeName="SendWelcomeEmail",i})(),dc=l.RequestWmReinviteOrganizer=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ParticipantName&&Object.hasOwnProperty.call(t,"ParticipantName")&&n.uint32(10).string(t.ParticipantName),null!=t.MeetingRowId&&Object.hasOwnProperty.call(t,"MeetingRowId")&&n.uint32(16).int32(t.MeetingRowId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestWmReinviteOrganizer;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.ParticipantName=t.string();break;case 2:o.MeetingRowId=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:160,ReinviteOrganizer:this})},i.prototype.typeId=160,i.prototype.typeName="ReinviteOrganizer",i})(),Oc=l.RequestSetSharedBlfs=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.SharedBlfs&&Object.hasOwnProperty.call(t,"SharedBlfs")&&n.uint32(10).string(t.SharedBlfs),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetSharedBlfs;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.SharedBlfs=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:161,SetSharedBlfs:this})},i.prototype.typeId=161,i.prototype.typeName="SetSharedBlfs",i})(),en=l.MyWebRTCEndpoint=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.WebRTCCall.encode(t.Items[u],n.uint32(18).fork()).ldelim();return null!=t.isWebRTCEnpointRegistered&&Object.hasOwnProperty.call(t,"isWebRTCEnpointRegistered")&&n.uint32(24).bool(t.isWebRTCEnpointRegistered),null!=t.DeviceContact&&Object.hasOwnProperty.call(t,"DeviceContact")&&n.uint32(34).string(t.DeviceContact),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.MyWebRTCEndpoint;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.WebRTCCall.decode(t,t.uint32()));break;case 3:o.isWebRTCEnpointRegistered=t.bool();break;case 4:o.DeviceContact=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:227,webRTCEndpoint:this})},i.prototype.typeId=227,i.prototype.typeName="webRTCEndpoint",i})(),kc=(l.WebRTCEndpointSDPState=(()=>{const i={},e=Object.create(i);return e[i[0]="WRTCTerminate"]=0,e[i[1]="WRTCOffer"]=1,e[i[2]="WRTCAnswer"]=2,e[i[3]="WRTCConfirm"]=3,e[i[4]="WRTCRequestForOffer"]=4,e[i[5]="WRTCReject"]=5,e[i[6]="WRTCProcessingOffer"]=6,e[i[7]="WRTCPreparingOffer"]=7,e[i[8]="WRTCAnswerProvided"]=8,e[i[9]="WRTCConfirmed"]=9,e[i[
110]="WRTCInitial"]=10,e})(),l.WebRTCHoldState=(()=>{const i={},e=Object.create(i);return e[i[0]="WebRTCHoldState_NOHOLD"]=0,e[i[1]="WebRTCHoldState_HELD"]=1,e[i[2]="WebRTCHoldState_HOLD"]=2,e[i[3]="WebRTCHoldState_BOTH"]=3,e})(),l.WebRTCCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.sdpType&&Object.hasOwnProperty.call(t,"sdpType")&&n.uint32(24).int32(t.sdpType),null!=t.otherPartyDisplayname&&Object.hasOwnProperty.call(t,"otherPartyDisplayname")&&n.uint32(34).string(t.otherPartyDisplayname),null!=t.otherPartyNumber&&Object.hasOwnProperty.call(t,"otherPartyNumber")&&n.uint32(42).string(t.otherPartyNumber),null!=t.transactionId&&Object.hasOwnProperty.call(t,"transactionId")&&n.uint32(48).int32(t.transactionId),null!=t.sdp&&Object.hasOwnProperty.call(t,"sdp")&&n.uint32(58).string(t.sdp),null!=t.SIPDialogID&&Object.hasOwnProperty.call(t,"SIPDialogID")&&n.uint32(66).string(t.SIPDialogID),null!=t.holdState&&Object.hasOwnProperty.call(t,"holdState")&&n.uint32(72).int32(t.holdState),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WebRTCCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.sdpType=t.int32();break;case 4:o.otherPartyDisplayname=t.string();break;case 5:o.otherPartyNumber=t.string();break;case 6:o.transactionId=t.int32();break;case 7:o.sdp=t.string();break;case 8:o.SIPDialogID=t.string();break;case 9:o.holdState=t.int32();break;default:t.skipType(7&c)}}return o},i})(),l.RequestWebRTCChangeSDPState=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.sdpType&&Object.hasOwnProperty.call(t,"sdpType")&&n.uint32(16).int32(t.sdpType),null!=t.transactionId&&Object.hasOwnProperty.call(t,"transactionId")&&n.uint32(24).int32(t.transactionId),null!=t.sdp&&Object.hasOwnProperty.call(t,"sdp")&&n.uint32(34).string(t.sdp),null!=t.destinationNumber&&Object.hasOwnProperty.call(t,"destinationNumber")&&n.uint32(42).string(t.destinationNumber),null!=t.CallerDisplayName&&Object.hasOwnProperty.call(t,"CallerDisplayName")&&n.uint32(50).string(t.CallerDisplayName),null!=t.CallerID&&Object.hasOwnProperty.call(t,"CallerID")&&n.uint32(58).string(t.CallerID),null!=t.replaceConnectionId&&Object.hasOwnProperty.call(t,"replaceConnectionId")&&n.uint32(64).int32(t.replaceConnectionId),null!=t.sipRejectCode&&Object.hasOwnProperty.call(t,"sipRejectCode")&&n.uint32(72).int32(t.sipRejectCode),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestWebRTCChangeSDPState;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.sdpType=t.int32();break;case 3:o.transactionId=t.int32();break;case 4:o.sdp=t.string();break;case 5:o.destinationNumber=t.string();break;case 6:o.CallerDisplayName=t.string();break;case 7:o.CallerID=t.string();break;case 8:o.replaceConnectionId=t.int32();break;case 9:o.sipRejectCode=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:164,ChangeSDPState:this})},i.prototype.typeId=164,i.prototype.typeName="ChangeSDPState",i})()),Cc=l.ResponseWebRTCChangeSDPState=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Success&&Object.hasOwnProperty.call(t,"Success")&&n.uint32(8).bool(t.Success),null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(18).string(t.Message),null!=t.CallId&&Object.hasOwnProperty.call(t,"CallId")&&n.uint32(24).int32(t.CallId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseWebRTCChangeSDPState;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Success=t.bool();break;case 2:o.Message=t.string();break;case 3:o.CallId=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:228,ChangeSDPStateResponse:this})},i.prototype.typeId=228,i.prototype.typeName="ChangeSDPStateResponse",i})(),Yn=(l.WebRTCTransferCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.destination&&Object.hasOwnProperty.call(t,"destination")&&n.uint32(18).string(t.de
1stination),null!=t.ToCallId&&Object.hasOwnProperty.call(t,"ToCallId")&&n.uint32(24).int32(t.ToCallId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WebRTCTransferCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.destination=t.string();break;case 3:o.ToCallId=t.int32();break;default:t.skipType(7&c)}}return o},i})(),l.RequestRegisterWebRTCEndpoint=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.register&&Object.hasOwnProperty.call(t,"register")&&n.uint32(8).bool(t.register),null!=t.NeedsRegistration&&Object.hasOwnProperty.call(t,"NeedsRegistration")&&n.uint32(16).bool(t.NeedsRegistration),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestRegisterWebRTCEndpoint;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.register=t.bool();break;case 2:o.NeedsRegistration=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:163,registerWebRTC:this})},i.prototype.typeId=163,i.prototype.typeName="registerWebRTC",i})()),Pc=l.RequestChangeWebClientPassword=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.OldPassword&&Object.hasOwnProperty.call(t,"OldPassword")&&n.uint32(10).string(t.OldPassword),null!=t.NewPassword&&Object.hasOwnProperty.call(t,"NewPassword")&&n.uint32(18).string(t.NewPassword),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestChangeWebClientPassword;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.OldPassword=t.string();break;case 2:o.NewPassword=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:168,ChangeWCPassword:this})},i.prototype.typeId=168,i.prototype.typeName="ChangeWCPassword",i})(),Mc=l.RequestUnreadMessagesCount=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUnreadMessagesCount;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:165,GetUnreadMessagesCount:this})},i.prototype.typeId=165,i.prototype.typeName="GetUnreadMessagesCount",i})(),Rc=(l.PartyWithUnreadMessages=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Party&&Object.hasOwnProperty.call(t,"Party")&&n.uint32(10).string(t.Party),null!=t.Count&&Object.hasOwnProperty.call(t,"Count")&&n.uint32(16).int32(t.Count),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(24).int32(t.IdConversation),null!=t.IsArchived&&Object.hasOwnProperty.call(t,"IsArchived")&&n.uint32(32).bool(t.IsArchived),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.PartyWithUnreadMessages;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Party=t.string();break;case 2:o.Count=t.int32();break;case 3:o.IdConversation=t.int32();break;case 4:o.IsArchived=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.ResponseUnreadMessagesCount=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.PartyWithUnreadMessages.encode(t.Items[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseUnreadMessagesCount;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.PartyWithUnreadMessages.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:229,UnreadMessagesCount:this})},i.prototype.typeId=229,i.prototype.typeName="UnreadMessagesCount",i})()),Ic=l.RequestContactsByRef=(()=>{function i(e){if(this.IntRefs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.IntRefs=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.IntRefs&&t.IntRefs.length)for(let u=0;u<t.IntRefs.length;++u)n.uint32(8).int32(t.IntRefs[u]);return null!=t.StrRefs&&Object.hasOwnProperty.call(t,"StrRefs")&&n.uint32(18).string(t.StrRefs),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestContactsByRef;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:if(o.IntRefs&&o.IntRefs.length||(o.IntRefs=[]),2==(7&c)){let d=t.uint32()+t.pos;for(;t.pos<d;)o.IntRefs.push(t.int32())}else o.IntRefs.push(t.int32());break;case 2:o.StrRefs=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:170,GetContactsByRef:this})},i.prototype.typeId=170,i.prototype.typeName="GetContactsByRef",i})(),jc=l.RequestCleanExtension=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.TargetExtension&&Object.hasOwnProperty.call(t,"TargetExtension")&&n.uint32(10).string(t.TargetExtension),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestCleanExtension;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.TargetExtension=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:171,CleanExtension:this})},i.prototype.typeId=171,i.prototype.typeName="CleanExtension",i})(),Tc=l.RequestAssignExtension=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.TargetExtension&&Object.hasOwnProperty.call(t,"TargetExtension")&&n.uint32(10).string(t.TargetExtension),null!=t.FirstName&&Object.hasOwnProperty.call(t,"FirstName")&&n.uint32(18).string(t.FirstName),null!=t.LastName&&Object.hasOwnProperty.call(t,"LastName")&&n.uint32(26).string(t.LastName),null!=t.Email&&Object.hasOwnProperty.call(t,"Email")&&n.uint32(34).string(t.Email),null!=t.Mobile&&Object.hasOwnProperty.call(t,"Mobile")&&n.uint32(42).string(t.Mobile),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestAssignExtension;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.TargetExtension=t.string();break;case 2:o.FirstName=t.string();break;case 3:o.LastName=t.string();break;case 4:o.Email=t.string();break;case 5:o.Mobile=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:172,AssignExtension:this})},i.prototype.typeId=172,i.prototype.typeName="AssignExtension",i})(),Sc=l.RequestSetWakeupCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.TargetExtension&&Object.hasOwnProperty.call(t,"TargetExtension")&&n.uint32(10).string(t.TargetExtension),null!=t.When&&Object.hasOwnProperty.call(t,"When")&&l.DateTime.encode(t.When,n.uint32(18).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSetWakeupCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.TargetExtension=t.string();break;case 2:o.When=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:173,SetWakeupCall:this})},i.prototype.typeId=173,i.prototype.typeName="SetWakeupCall",i})(),vc=l.RequestDeleteWakeupCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.TargetExtension&&Object.hasOwnProperty.call(t,"TargetExtension")&&n.uint32(10).string(t.TargetExtension),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestDeleteWakeupCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.TargetExtension=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:174,DeleteWakeupCall:this})},i.prototype.typeId=174,i.prototype.typeName="DeleteWakeupCall",i})(),wc=l.RequestGetWakeupCalls=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetWakeupCalls;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:175,GetWakeupCalls:this})},i.prototype.typeId=175,i.prototype.typeName="GetWakeupCalls",i})(),Gc=(l.WakeupCall=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ExtensionNumber&&Object.hasOwnProperty.call(t,"ExtensionNumber")&&n.uint32(10).string(t.ExtensionNumber),null!=t.When&&Object.hasOwnProperty.call(t,"When")&&l.DateTime.encode(t.When,n.uint32(18).fork()).ldelim(),null!=t.Status&&Object.hasOwnProperty.call(t,"Status")&&n.uint32(26).string(t.Status),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WakeupCall;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>
13){case 1:o.ExtensionNumber=t.string();break;case 2:o.When=l.DateTime.decode(t,t.uint32());break;case 3:o.Status=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.ResponseWakeupCalls=(()=>{function i(e){if(this.WakeupCalls=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.WakeupCalls=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.WakeupCalls&&t.WakeupCalls.length)for(let u=0;u<t.WakeupCalls.length;++u)l.WakeupCall.encode(t.WakeupCalls[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseWakeupCalls;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.WakeupCalls&&o.WakeupCalls.length||(o.WakeupCalls=[]),o.WakeupCalls.push(l.WakeupCall.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:230,WakeupCalls:this})},i.prototype.typeId=230,i.prototype.typeName="WakeupCalls",i})()),Ac=l.RequestOneTimeLogin=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestOneTimeLogin;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:176,GetOneTimeLogin:this})},i.prototype.typeId=176,i.prototype.typeName="GetOneTimeLogin",i})(),Nc=l.ResponseOneTimeLogin=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Token&&Object.hasOwnProperty.call(t,"Token")&&n.uint32(10).string(t.Token),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseOneTimeLogin;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Token=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:231,OneTimeLogin:this})},i.prototype.typeId=231,i.prototype.typeName="OneTimeLogin",i})(),gc=l.PushSubscriptionData=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.DeliveryType&&Object.hasOwnProperty.call(t,"DeliveryType")&&n.uint32(10).string(t.DeliveryType),null!=t.DestinationAddress&&Object.hasOwnProperty.call(t,"DestinationAddress")&&n.uint32(18).string(t.DestinationAddress),null!=t.ModelName&&Object.hasOwnProperty.call(t,"ModelName")&&n.uint32(26).string(t.ModelName),null!=t.CustomName&&Object.hasOwnProperty.call(t,"CustomName")&&n.uint32(34).string(t.CustomName),null!=t.Instance&&Object.hasOwnProperty.call(t,"Instance")&&n.uint32(42).string(t.Instance),null!=t.Options&&Object.hasOwnProperty.call(t,"Options")&&n.uint32(50).string(t.Options),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.PushSubscriptionData;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.DeliveryType=t.string();break;case 2:o.DestinationAddress=t.string();break;case 3:o.ModelName=t.string();break;case 4:o.CustomName=t.string();break;case 5:o.Instance=t.string();break;case 6:o.Options=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:178,RefreshSubscription:this})},i.prototype.typeId=178,i.prototype.typeName="RefreshSubscription",i})(),Dc=(l.PushSubscription=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Subscription&&Object.hasOwnProperty.call(t,"Subscription")&&l.PushSubscriptionData.encode(t.Subscription,n.uint32(26).fork()).ldelim(),null!=t.LastActivity&&Object.hasOwnProperty.call(t,"LastActivity")&&l.DateTime.encode(t.LastActivity,n.uint32(34).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.PushSubscription;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Subscription=l.PushSubscriptionData.decode(t,t.uint32());break;case 4:o.LastActivity=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.PushSubscriptions=(()=>{function i(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Items=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Items&&t.Items.length)for(let u=0;u<t.Items.length;++u)l.PushSubscription.encode(t.Items[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.PushSubscriptions;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Items&&o.Items.length||(o.Items=[]),o.Items.push(l.PushSubscription.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i}
1)(),l.RequestUpdatePushSubscriptions=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Subscriptions&&Object.hasOwnProperty.call(t,"Subscriptions")&&l.PushSubscriptions.encode(t.Subscriptions,n.uint32(10).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdatePushSubscriptions;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Subscriptions=l.PushSubscriptions.decode(t,t.uint32()):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:177,UpdatePushSubscriptions:this})},i.prototype.typeId=177,i.prototype.typeName="UpdatePushSubscriptions",i})()),Ec=l.ChatTyping=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Party&&Object.hasOwnProperty.call(t,"Party")&&n.uint32(10).string(t.Party),null!=t.User&&Object.hasOwnProperty.call(t,"User")&&n.uint32(18).string(t.User),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(24).int32(t.IdConversation),null!=t.IdRecipient&&Object.hasOwnProperty.call(t,"IdRecipient")&&n.uint32(32).int32(t.IdRecipient),null!=t.CnvGid&&Object.hasOwnProperty.call(t,"CnvGid")&&n.uint32(42).string(t.CnvGid),null!=t.MemberGid&&Object.hasOwnProperty.call(t,"MemberGid")&&n.uint32(50).string(t.MemberGid),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatTyping;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Party=t.string();break;case 2:o.User=t.string();break;case 3:o.IdConversation=t.int32();break;case 4:o.IdRecipient=t.int32();break;case 5:o.CnvGid=t.string();break;case 6:o.MemberGid=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:180,UserTypingChat:this})},i.prototype.typeId=180,i.prototype.typeName="UserTypingChat",i})(),qc=l.RequestBlacklistAnonymous=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.SessionId&&Object.hasOwnProperty.call(t,"SessionId")&&n.uint32(10).string(t.SessionId),null!=t.ForMinutes&&Object.hasOwnProperty.call(t,"ForMinutes")&&n.uint32(16).int32(t.ForMinutes),null!=t.Reason&&Object.hasOwnProperty.call(t,"Reason")&&n.uint32(26).string(t.Reason),null!=t.MemberGid&&Object.hasOwnProperty.call(t,"MemberGid")&&n.uint32(34).string(t.MemberGid),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestBlacklistAnonymous;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.SessionId=t.string();break;case 2:o.ForMinutes=t.int32();break;case 3:o.Reason=t.string();break;case 4:o.MemberGid=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:182,BlockAnonymous:this})},i.prototype.typeId=182,i.prototype.typeName="BlockAnonymous",i})(),Fc=l.NotificationC2CState=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Connected&&Object.hasOwnProperty.call(t,"Connected")&&n.uint32(8).bool(t.Connected),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.NotificationC2CState;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Connected=t.bool():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:233,C2cState:this})},i.prototype.typeId=233,i.prototype.typeName="C2cState",i})(),Lc=l.RequestDisconnectAnonymous=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.SessionId&&Object.hasOwnProperty.call(t,"SessionId")&&n.uint32(10).string(t.SessionId),null!=t.IsHandled&&Object.hasOwnProperty.call(t,"IsHandled")&&n.uint32(16).bool(t.IsHandled),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestDisconnectAnonymous;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.SessionId=t.string();break;case 2:o.IsHandled=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:183,DisconnectAnonymous:this})},i.prototype.typeId=183,i.prototype.typeName="DisconnectAnonymous",i})(),xc=(l.RecordingParticipant=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.DNType&&Object.hasOwnProperty.call(t,"DNType")&&n.uint32(16).int32(t.DNType),null!=t.DN&&Object.hasOwnProperty.call(t,"DN")&&n.uint32(26).string(t.DN),null!=t.CallerId&&Object.hasOwnProperty.call(t,"CallerId")&&n.uint32(34).string(t.CallerId),null!=t.DNName&&Object.hasOwnProperty.call(t,"DNName")&&n.uint32(42).string(t.DNName),null!=t.DidNumber&&Object.hasOwnProperty.call(t,"DidNumber")&&n.uint32(50).string(t.DidNumber),null!=t.CallerContact&&Object.hasOwnProperty.call(t,"CallerContact")&&l.Contact.encode(t.CallerContact,n.uint32(58).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RecordingParticipant;
1for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 2:o.DNType=t.int32();break;case 3:o.DN=t.string();break;case 4:o.CallerId=t.string();break;case 5:o.DNName=t.string();break;case 6:o.DidNumber=t.string();break;case 7:o.CallerContact=l.Contact.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i})(),l.RecordingData=(()=>{function i(e){if(this.Participants=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Participants=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.StartTime&&Object.hasOwnProperty.call(t,"StartTime")&&l.Timestamp.encode(t.StartTime,n.uint32(26).fork()).ldelim(),null!=t.EndTime&&Object.hasOwnProperty.call(t,"EndTime")&&l.Timestamp.encode(t.EndTime,n.uint32(34).fork()).ldelim(),null!=t.Participants&&t.Participants.length)for(let u=0;u<t.Participants.length;++u)l.RecordingParticipant.encode(t.Participants[u],n.uint32(42).fork()).ldelim();return null!=t.Summary&&Object.hasOwnProperty.call(t,"Summary")&&n.uint32(50).string(t.Summary),null!=t.IsArchived&&Object.hasOwnProperty.call(t,"IsArchived")&&n.uint32(56).bool(t.IsArchived),null!=t.CanDelete&&Object.hasOwnProperty.call(t,"CanDelete")&&n.uint32(72).bool(t.CanDelete),null!=t.HasTranscription&&Object.hasOwnProperty.call(t,"HasTranscription")&&n.uint32(80).bool(t.HasTranscription),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RecordingData;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 3:o.StartTime=l.Timestamp.decode(t,t.uint32());break;case 4:o.EndTime=l.Timestamp.decode(t,t.uint32());break;case 5:o.Participants&&o.Participants.length||(o.Participants=[]),o.Participants.push(l.RecordingParticipant.decode(t,t.uint32()));break;case 6:o.Summary=t.string();break;case 7:o.IsArchived=t.bool();break;case 9:o.CanDelete=t.bool();break;case 10:o.HasTranscription=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.ResponseRecordings=(()=>{function i(e){if(this.Records=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Records=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Records&&t.Records.length)for(let u=0;u<t.Records.length;++u)l.RecordingData.encode(t.Records[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseRecordings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Records&&o.Records.length||(o.Records=[]),o.Records.push(l.RecordingData.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:234,ResponseRecordings:this})},i.prototype.typeId=234,i.prototype.typeName="ResponseRecordings",i})()),_c=(l.ParticipantFilter=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.DidNumber&&Object.hasOwnProperty.call(t,"DidNumber")&&n.uint32(10).string(t.DidNumber),null!=t.DNName&&Object.hasOwnProperty.call(t,"DNName")&&n.uint32(18).string(t.DNName),null!=t.CallerId&&Object.hasOwnProperty.call(t,"CallerId")&&n.uint32(26).string(t.CallerId),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ParticipantFilter;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.DidNumber=t.string();break;case 2:o.DNName=t.string();break;case 3:o.CallerId=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.RequestGetRecordings=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.After&&Object.hasOwnProperty.call(t,"After")&&l.Timestamp.encode(t.After,n.uint32(10).fork()).ldelim(),null!=t.Before&&Object.hasOwnProperty.call(t,"Before")&&l.Timestamp.encode(t.Before,n.uint32(18).fork()).ldelim(),null!=t.IsArchived&&Object.hasOwnProperty.call(t,"IsArchived")&&n.uint32(24).bool(t.IsArchived),null!=t.InternalCallsOnly&&Object.hasOwnProperty.call(t,"InternalCallsOnly")&&n.uint32(32).bool(t.InternalCallsOnly),null!=t.Offset&&Object.hasOwnProperty.call(t,"Offset")&&n.uint32(40).int32(t.Offset),null!=t.Limit&&Object.hasOwnProperty.call(t,"Limit")&&n.uint32(48).int32(t.Limit),null!=t.From&&Object.hasOwnProperty.call(t,"From")&&l.ParticipantFilter.encode(t.From,n.uint32(58).fork()).ldelim(),null!=t.To&&Object.hasOwnProperty.call(t,"To")&&l.ParticipantFilter.encode(t.To,n.uint32(66).fork()).ldelim(),null!=t.Filter&&Object.hasOwnProperty.call(t,"Filter")&&l.ParticipantFilter.encode(t.Filter,n.uint32(74).fork()).ldelim(),null!=t.PersonalOnly&&Object.hasOwnProperty.call(t,"PersonalOnly")&&n.uint32(80).bool(t.PersonalOnly),null!=t.Transcription&&Object.hasOwnProperty.call(t,"Transcription")&&n.uint32(90).string(t.Transcription),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetRecordings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.After=l.Timestamp.decode(t,t.uint32());break;case 2:o.Before=l.Timestamp.decode(t,t.uint32());break;case 3:o.IsArchived=t.bool();break;case 4:o.InternalCallsOnly=t.bool();break;case 5:o.Offset=t.int32();break;case 6:o.Limit=t.int32();break;case 7:o.From=l.ParticipantFilter.decode(t,t.uint32());break;case 8:o.To=l.ParticipantFilter.decode(t,t.uint32());break;case 9:o.Filter=l.ParticipantFilter.decode(t,t.uint32());break;case 10:o.PersonalOnly=t.bool();break;case 11:o.Transcription=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:184,GetRecordings:this})},i.prototype.typeId=184,i.prototype.typeName="GetRecordings",i})()),Bc=l.RequestGetTranscription=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetTranscription;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Id=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:564,GetTranscription:this})},i.prototype.typeId=564,i.prototype.typeName="GetTranscription",i})(),Wc=l.ResponseGetTranscription=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.Transcription&&Object.hasOwnProperty.call(t,"Transcription")&&n.uint32(18).string(t.Transcription),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGetTranscription;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.Transcription=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:267,TranscriptionResponse:this})},i.prototype.typeId=267,i.prototype.typeName="TranscriptionResponse",i})(),Uc=l.RequestDeleteRecording=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.Delete&&Object.hasOwnProperty.call(t,"Delete")&&n.uint32(16).bool(t.Delete),null!=t.Archive&&Object.hasOwnProperty.call(t,"Archive")&&n.uint32(24).bool(t.Archive),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestDeleteRecording;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.Delete=t.bool();break;case 3:o.Archive=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:185,DeleteRecording:this})},i.prototype.typeId=185,i.prototype.typeName="DeleteRecording",i})(),Hc=(l.ChatRating=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.Rating&&Object.hasOwnProperty.call(t,"Rating")&&n.uint32(16).int32(t.Rating),null!=t.Comments&&Object.hasOwnProperty.call(t,"Comments")&&n.uint32(26).string(t.Comments),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatRating;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.Rating=t.int32();break;case 3:o.Comments=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.RequestChatRating=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Rating&&Object.hasOwnProperty.call(t,"Rating")&&l.ChatRating.encode(t.Rating,n.uint32(10).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestChatRating;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Rating=l.ChatRating.decode(t,t.uint32()):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:191,SendChatRating:this})},i.prototype.typeId=191,i.prototype.typeName="SendChatRating",i})()),Qc=l.NotificationChatRating=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Rating&&Object.hasOwnProperty.call(t,"Rating")&&l.ChatRating.encode(t.Rating,n.uint32(10).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.NotificationChatRating;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Rating=l.ChatRating.decode(t,t.uint32()):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:238,ChatRating:this})},i.prototype.typeId=238,i.prototype.typeName="ChatRating",i})(),Vc=l.RequestMyQueues=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestMyQueues;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:501,GetMyQueues:this})},i.prototype.typeId=501,i.prototype.typeName="GetMyQueues",i})(),zc=l.ResponseMyQueues=(()=>{function i(e){if(this.QueueNumber=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.QueueNumber=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.QueueNumber&&t.QueueNumber.length)for(let u=0;u<t.QueueNumber.length;++u)n.uint32(10).string(t.QueueNumber[u]);return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseMyQueues;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.QueueNumber&&o.QueueNumber.length||(o.QueueNumber=[]),o.QueueNumber.push(t.string())):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:245,MyQueues:this})},i.prototype.typeId=245,i.prototype.typeName="MyQueues",i})(),Jc=l.RequestStartChatMonitoring=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.QueueNumber&&Object.hasOwnProperty.call(t,"QueueNumber")&&n.uint32(10).string(t.QueueNumber),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestStartChatMonitoring;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.QueueNumber=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:195,StartChatMonitoring:this})},i.prototype.typeId=195,i.prototype.typeName="StartChatMonitoring",i})(),$c=l.RequestStopChatMonitoring=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestStopChatMonitoring;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:196,StopChatMonitoring:this})},i.prototype.typeId=196,i.prototype.typeName="StopChatMonitoring",i})(),Kc=l.ResponseChatMonitoring=(()=>{function i(e){if(this.Conversations=[],this.Messages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Conversations=I.emptyArray,i.prototype.Messages=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Conversations&&t.Conversations.length)for(let u=0;u<t.Conversations.length;++u)l.ChatPartyInfo.encode(t.Conversations[u],n.uint32(10).fork()).ldelim();if(null!=t.Messages&&t.Messages.length)for(let u=0;u<t.Messages.length;++u)l.ChatMessage.encode(t.Messages[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseChatMonitoring;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Conversations&&o.Conversations.length||(o.Conversations=[]),o.Conversations.push(l.ChatPartyInfo.decode(t,t.uint32()));break;case 2:o.Messages&&o.Messages.length||(o.Messages=[]),o.Messages.push(l.ChatMessage.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:242,ChatMonitoringFullState:this})},i.prototype.typeId=242,i.prototype.typeName="ChatMonitoringFullState",i})(),Yc=l.ChatMonitoringEvent=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.OnConversationChanged&&Object.hasOwnProperty.call(t,"OnConversationChanged")&&l.ResponseConversationInfo.encode(t.OnConversationChanged,n.uint32(10).fork()).ldelim(),null!=t.OnCloseConversation&&Object.hasOwnProperty.call(t,"OnCloseConversation")&&l.AnonymousSessionClosed.encode(t.OnCloseConversation,n.uint32(18).fork()).ldelim(),null!=t.OnTyping&&Object.hasOwnProperty.call(t,"OnTyping")&&l.ChatTyping.encode(t.OnT
1yping,n.uint32(42).fork()).ldelim(),null!=t.OnNewMessage&&Object.hasOwnProperty.call(t,"OnNewMessage")&&l.ChatMessage.encode(t.OnNewMessage,n.uint32(50).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatMonitoringEvent;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.OnConversationChanged=l.ResponseConversationInfo.decode(t,t.uint32());break;case 2:o.OnCloseConversation=l.AnonymousSessionClosed.decode(t,t.uint32());break;case 5:o.OnTyping=l.ChatTyping.decode(t,t.uint32());break;case 6:o.OnNewMessage=l.ChatMessage.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:243,ChatMonitoringNotification:this})},i.prototype.typeId=243,i.prototype.typeName="ChatMonitoringNotification",i})(),Xc=l.RequestProviderMapping=(()=>{function i(e){if(this.Mappings=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Mappings=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Mappings&&t.Mappings.length)for(let u=0;u<t.Mappings.length;++u)l.ProviderMapping.encode(t.Mappings[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestProviderMapping;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Mappings&&o.Mappings.length||(o.Mappings=[]),o.Mappings.push(l.ProviderMapping.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:199,ProviderMapping:this})},i.prototype.typeId=199,i.prototype.typeName="ProviderMapping",i})(),Zc=(l.ProviderInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.ExternalNumber&&Object.hasOwnProperty.call(t,"ExternalNumber")&&n.uint32(10).string(t.ExternalNumber),null!=t.EncodedProvider&&Object.hasOwnProperty.call(t,"EncodedProvider")&&n.uint32(18).string(t.EncodedProvider),null!=t.Type&&Object.hasOwnProperty.call(t,"Type")&&n.uint32(26).string(t.Type),null!=t.InstanceName&&Object.hasOwnProperty.call(t,"InstanceName")&&n.uint32(34).string(t.InstanceName),null!=t.LocalLogo&&Object.hasOwnProperty.call(t,"LocalLogo")&&n.uint32(42).string(t.LocalLogo),null!=t.ProviderId&&Object.hasOwnProperty.call(t,"ProviderId")&&n.uint32(50).string(t.ProviderId),null!=t.LocalIcon&&Object.hasOwnProperty.call(t,"LocalIcon")&&n.uint32(58).string(t.LocalIcon),null!=t.UsePhoneNumbers&&Object.hasOwnProperty.call(t,"UsePhoneNumbers")&&n.uint32(64).bool(t.UsePhoneNumbers),null!=t.UnavailableAutoReply&&Object.hasOwnProperty.call(t,"UnavailableAutoReply")&&n.uint32(74).string(t.UnavailableAutoReply),null!=t.RouteTo&&Object.hasOwnProperty.call(t,"RouteTo")&&n.uint32(82).string(t.RouteTo),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ProviderInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.ExternalNumber=t.string();break;case 2:o.EncodedProvider=t.string();break;case 3:o.Type=t.string();break;case 4:o.InstanceName=t.string();break;case 5:o.LocalLogo=t.string();break;case 6:o.ProviderId=t.string();break;case 7:o.LocalIcon=t.string();break;case 8:o.UsePhoneNumbers=t.bool();break;case 9:o.UnavailableAutoReply=t.string();break;case 10:o.RouteTo=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.ProviderMapping=(()=>{function i(e){if(this.DNs=[],this.Groups=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.DNs=I.emptyArray,i.prototype.Groups=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Provider&&Object.hasOwnProperty.call(t,"Provider")&&l.ProviderInfo.encode(t.Provider,n.uint32(10).fork()).ldelim(),null!=t.DNs&&t.DNs.length)for(let u=0;u<t.DNs.length;++u)n.uint32(18).string(t.DNs[u]);if(null!=t.Groups&&t.Groups.length)for(let u=0;u<t.Groups.length;++u)n.uint32(26).string(t.Groups[u]);return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ProviderMapping;
1for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Provider=l.ProviderInfo.decode(t,t.uint32());break;case 2:o.DNs&&o.DNs.length||(o.DNs=[]),o.DNs.push(t.string());break;case 3:o.Groups&&o.Groups.length||(o.Groups=[]),o.Groups.push(t.string());break;default:t.skipType(7&c)}}return o},i})(),l.RequestAvailableProviders=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestAvailableProviders;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:500,GetMyProviders:this})},i.prototype.typeId=500,i.prototype.typeName="GetMyProviders",i})()),mc=l.ResponseAvailableProviders=(()=>{function i(e){if(this.Providers=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Providers=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Providers&&t.Providers.length)for(let u=0;u<t.Providers.length;++u)l.ProviderInfo.encode(t.Providers[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseAvailableProviders;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Providers&&o.Providers.length||(o.Providers=[]),o.Providers.push(l.ProviderInfo.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:244,MyProviders:this})},i.prototype.typeId=244,i.prototype.typeName="MyProviders",i})(),tu=l.RequestGetConversationEvents=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.Offset&&Object.hasOwnProperty.call(t,"Offset")&&n.uint32(16).int32(t.Offset),null!=t.Count&&Object.hasOwnProperty.call(t,"Count")&&n.uint32(24).int32(t.Count),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetConversationEvents;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.Offset=t.int32();break;case 3:o.Count=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:503,GetConversationEvents:this})},i.prototype.typeId=503,i.prototype.typeName="GetConversationEvents",i})(),nu=l.RequestGetQMConversationEvents=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),null!=t.Offset&&Object.hasOwnProperty.call(t,"Offset")&&n.uint32(16).int32(t.Offset),null!=t.Count&&Object.hasOwnProperty.call(t,"Count")&&n.uint32(24).int32(t.Count),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetQMConversationEvents;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdConversation=t.int32();break;case 2:o.Offset=t.int32();break;case 3:o.Count=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:504,GetQMConversationEvents:this})},i.prototype.typeId=504,i.prototype.typeName="GetQMConversationEvents",i})(),eu=l.ResponseConversationEvents=(()=>{function i(e){if(this.Events=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Events=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Events&&t.Events.length)for(let u=0;u<t.Events.length;++u)l.ConversationEvent.encode(t.Events[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseConversationEvents;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Events&&o.Events.length||(o.Events=[]),o.Events.push(l.ConversationEvent.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:246,ConversationEvents:this})},i.prototype.typeId=246,i.prototype.typeName="ConversationEvents",i})(),iu=(l.ConversationEvent=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdMessage&&Object.hasOwnProperty.call(t,"IdMessage")&&n.uint32(8).int32(t.IdMessage),null!=t.TimeSent&&Object.hasOwnProperty.call(t,"TimeSent")&&l.DateTime.encode(t.TimeSent,n.uint32(18).fork()).ldelim(),null!=t.MessageType&&Object.hasOwnProperty.call(t,"MessageType")&&n.uint32(24).int32(t.MessageType),null!=t.Sender&&Object.hasOwnProperty.call(t,"Sender")&&l.ChatRecipient.encode(t.Sender,n.uint32(34).fork()).ldelim(),null!=t.Message&&Object.hasOwnProperty.call(t,"Message")&&n.uint32(42).string(t.Message),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ConversationEvent;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdMessage=t.int32();break;case 2:o.TimeSent=l.DateTime.decode(t,t.uint32());break;case 3:o.MessageType=t.int32();break;case 4:o.Sender=l.ChatRecipient.decode(t,t.uint32());break;case 5:o.Message=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.RequestRefreshConversation=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(8).int32(t.IdConversation),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestRefreshConversation;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.IdConversation=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:505,RefreshConversation:this})},i.prototype.typeId=505,i.prototype.typeName="RefreshConversation",i})()),ou=(l.Param=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(10).string(t.Name),null!=t.Value&&Object.hasOwnProperty.call(t,"Value")&&n.uint32(18).string(t.Value),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.Param;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Name=t.string();break;case 2:o.Value=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.WmBridgeParameters=(()=>{function i(e){if(this.Parameters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Parameters=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Parameters&&t.Parameters.length)for(let u=0;u<t.Parameters.length;++u)l.Param.encode(t.Parameters[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WmBridgeParameters;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Parameters&&o.Parameters.length||(o.Parameters=[]),o.Parameters.push(l.Param.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:247,WmParam
1s:this})},i.prototype.typeId=247,i.prototype.typeName="WmParams",i})()),lu=(l.MeetingRow=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(26).string(t.Name),null!=t.Description&&Object.hasOwnProperty.call(t,"Description")&&n.uint32(34).string(t.Description),null!=t.Pin&&Object.hasOwnProperty.call(t,"Pin")&&n.uint32(42).string(t.Pin),null!=t.Target&&Object.hasOwnProperty.call(t,"Target")&&n.uint32(50).string(t.Target),null!=t.StartAt&&Object.hasOwnProperty.call(t,"StartAt")&&l.DateTime.encode(t.StartAt,n.uint32(58).fork()).ldelim(),null!=t.EndAt&&Object.hasOwnProperty.call(t,"EndAt")&&l.DateTime.encode(t.EndAt,n.uint32(66).fork()).ldelim(),null!=t.MeetingObject&&Object.hasOwnProperty.call(t,"MeetingObject")&&n.uint32(74).string(t.MeetingObject),null!=t.MeetingType&&Object.hasOwnProperty.call(t,"MeetingType")&&n.uint32(80).int32(t.MeetingType),null!=t.Documents&&Object.hasOwnProperty.call(t,"Documents")&&n.uint32(90).string(t.Documents),null!=t.UniqueName&&Object.hasOwnProperty.call(t,"UniqueName")&&n.uint32(98).string(t.UniqueName),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.MeetingRow;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Name=t.string();break;case 4:o.Description=t.string();break;case 5:o.Pin=t.string();break;case 6:o.Target=t.string();break;case 7:o.StartAt=l.DateTime.decode(t,t.uint32());break;case 8:o.EndAt=l.DateTime.decode(t,t.uint32());break;case 9:o.MeetingObject=t.string();break;case 10:o.MeetingType=t.int32();break;case 11:o.Documents=t.string();break;case 12:o.UniqueName=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.RequestUpdateMeetingDocuments=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.Documents&&Object.hasOwnProperty.call(t,"Documents")&&n.uint32(18).string(t.Documents),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdateMeetingDocuments;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.Documents=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:506,UpdateMeetingDocuments:this})},i.prototype.typeId=506,i.prototype.typeName="UpdateMeetingDocuments",i})()),cu=l.MeetingRows=(()=>{function i(e){if(this.Rows=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Rows=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Rows&&t.Rows.length)for(let u=0;u<t.Rows.length;++u)l.MeetingRow.encode(t.Rows[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.MeetingRows;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Rows&&o.Rows.length||(o.Rows=[]),o.Rows.push(l.MeetingRow.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:248,NotificationMeetingRows:this})},i.prototype.typeId=248,i.prototype.typeName="NotificationMeetingRows",i})(),uu=l.WmPollings=(()=>{function i(e){if(this.Pollings=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Pollings=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Pollings&&t.Pollings.length)for(let u=0;u<t.Pollings.length;++u)l.WmPolling.encode(t.Pollings[u],n.uint32(18).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WmPollings;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Pollings&&o.Pollings.length||(o.Pollings=[]),o.Pollings.push(l.WmPolling.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:507,WebMeetingPollings:this})},i.prototype.typeId=507,i.prototype.typeName="WebMeetingPollings",i})(),au=(l.WmPolling=(()=>{function i(e){if(this.Fields=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Fields=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(26).string(t.Name),null!=t.Owner&&Object.hasOwnProperty.call(t,"Owner")&&n.uint32(34).string(t.Owner),null!=t.Fields&&t.Fields.length)for(let u=0;u<t.Fields.length;++u)l.Param.encode(t.Fields[u],n.uint32(42).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.WmPolling;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.Name=t.string();break;case 4:o.Owner=t.string();break;case 5:o.Fields&&o.Fields.length||(o.Fields=[]),o.Fields.push(l.Param.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i})(),l.MeetingStateNotification=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(16).int32(t.Id),null!=t.State&&Object.hasOwnProperty.call(t,"State")&&n.uint32(24).int32(t.State),null!=t.IsQuickMeeting&&Object.hasOwnProperty.call(t,"IsQuickMeeting")&&n.uint32(32).bool(t.IsQuickMeeting),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.MeetingStateNotification;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Id=t.int32();break;case 3:o.State=t.int32();break;case 4:o.IsQuickMeeting=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:250,MeetingState:this})},i.prototype.typeId=250,i.prototype.typeName="MeetingState",i})()),su=l.MeetingStateNotifications=(()=>{function i(e){if(this.States=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.States=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.States&&t.States.length)for(let u=0;u<t.States.length;++u)l.MeetingStateNotification.encode(t.States[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.MeetingStateNotifications;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.States&&o.States.length||(o.States=[]),o.States.push(l.MeetingStateNotification.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:251,MeetingStates:this})},i.prototype.typeId=251,i.prototype.typeName="MeetingStates",i})(),fu=l.RequestCloseMeeting=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestCloseMeeting;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Id=t.int32():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:511,CloseMeeting:this})},i.prototype.typeId=511,i.prototype.typeName="CloseMeeting",i})(),ru=l.RequestForwardChatMessage=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.SrcIdMessage&&Object.hasOwnProperty.call(t,"SrcIdMessage")&&n.uint32(8).int32(t.SrcIdMessage),null!=t.DstIdConversation&&Object.hasOwnProperty.call(t,"DstIdConversation")&&n.uint32(16).int32(t.DstIdConversation),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestForwardChatMessage;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.SrcIdMessage=t.int32();break;case 2:o.DstIdConversation=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:508,ForwardMessage:this})},i.prototype.typeId=508,i.prototype.typeName="ForwardMessage",i})(),pu=l.RequestCheckIpBlocked=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IpAddress&&Object.hasOwnProperty.call(t,"IpAddress")&&n.uint32(10).string(t.IpAddress),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestCheckIpBlocked;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.IpAddress=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:513,RqCheckIpBlocked:this})},i.prototype.typeId=513,i.prototype.typeName="RqCheckIpBlocked",i})(),bu=l.ResponseCheckIpBlocked=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IpAddress&&Object.hasOwnProperty.call(t,"IpAddress")&&n.uint32(10).string(t.IpAddress),null!=t.IsBlocked&&Object.hasOwnProperty.call(t,"IsBlocked")&&n.uint32(16).bool(t.IsBlocked),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseCheckIpBlocked;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IpAddress=t.string();break;case 2:o.IsBlocked=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:252,RespC
1heckIpBlocked:this})},i.prototype.typeId=252,i.prototype.typeName="RespCheckIpBlocked",i})(),yu=l.RequestPreviousInteractions=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Contact&&Object.hasOwnProperty.call(t,"Contact")&&l.Contact.encode(t.Contact,n.uint32(10).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestPreviousInteractions;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Contact=l.Contact.decode(t,t.uint32()):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:515,GetPreviousInteractions:this})},i.prototype.typeId=515,i.prototype.typeName="GetPreviousInteractions",i})(),hu=(l.InteractionDetails=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IsChat&&Object.hasOwnProperty.call(t,"IsChat")&&n.uint32(8).bool(t.IsChat),null!=t.IdConversation&&Object.hasOwnProperty.call(t,"IdConversation")&&n.uint32(16).int32(t.IdConversation),null!=t.LocalExtension&&Object.hasOwnProperty.call(t,"LocalExtension")&&l.Contact.encode(t.LocalExtension,n.uint32(26).fork()).ldelim(),null!=t.LastActivity&&Object.hasOwnProperty.call(t,"LastActivity")&&l.DateTime.encode(t.LastActivity,n.uint32(34).fork()).ldelim(),null!=t.CallType&&Object.hasOwnProperty.call(t,"CallType")&&n.uint32(40).int32(t.CallType),null!=t.Duration&&Object.hasOwnProperty.call(t,"Duration")&&n.uint32(48).int32(t.Duration),null!=t.QueueNumber&&Object.hasOwnProperty.call(t,"QueueNumber")&&n.uint32(58).string(t.QueueNumber),null!=t.QueueName&&Object.hasOwnProperty.call(t,"QueueName")&&n.uint32(66).string(t.QueueName),null!=t.IsTaken&&Object.hasOwnProperty.call(t,"IsTaken")&&n.uint32(72).bool(t.IsTaken),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.InteractionDetails;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IsChat=t.bool();break;case 2:o.IdConversation=t.int32();break;case 3:o.LocalExtension=l.Contact.decode(t,t.uint32());break;case 4:o.LastActivity=l.DateTime.decode(t,t.uint32());break;case 5:o.CallType=t.int32();break;case 6:o.Duration=t.int32();break;case 7:o.QueueNumber=t.string();break;case 8:o.QueueName=t.string();break;case 9:o.IsTaken=t.bool();break;default:t.skipType(7&c)}}return o},i})(),l.ResponsePreviousInteractions=(()=>{function i(e){if(this.Interactions=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Interactions=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Interactions&&t.Interactions.length)for(let u=0;u<t.Interactions.length;++u)l.InteractionDetails.encode(t.Interactions[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponsePreviousInteractions;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Interactions&&o.Interactions.length||(o.Interactions=[]),o.Interactions.push(l.InteractionDetails.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:253,PreviousInteractions:this})},i.prototype.typeId=253,i.prototype.typeName="PreviousInteractions",i})()),du=l.RequestUpdateGroup=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdGroup&&Object.hasOwnProperty.call(t,"IdGroup")&&n.uint32(8).int32(t.IdGroup),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(18).string(t.Name),null!=t.Language&&Object.hasOwnProperty.call(t,"Language")&&n.uint32(26).string(t.Language),null!=t.CurrentGroupHours&&Object.hasOwnProperty.call(t,"CurrentGroupHours")&&n.uint32(32).int32(t.CurrentGroupHours),null!=t.OverrideExpiresAt&&Object.hasOwnProperty.call(t,"OverrideExpiresAt")&&l.DateTime.encode(t.OverrideExpiresAt,n.uint32(42).fork()).ldelim(),null!=t.OpenedHoursOperator&&Object.hasOwnProperty.call(t,"OpenedHoursOperator")&&l.ForwardDestination.encode(t.OpenedHoursOperator,n.uint32(50).fork()).ldelim(),null!=t.BreakTimeOperator&&Object.hasOwnProperty.call(t,"BreakTimeOperator")&&l.ForwardDestination.encode(t.BreakTimeOperator,n.uint32(58).fork()).ldelim(),null!=t.ClosedHoursOperator&&Object.hasOwnProperty.call(t,"ClosedHoursOperator")&&l.ForwardDestination.encode(t.ClosedHoursOperator,n.uint32(66).fork()).ldelim(),null!=t.CustomOperator&&Object.hasOwnProperty.call(t,"CustomOperator")&&l.ForwardDestination.encode(t.CustomOperator,n.uint32(74).fork()).ldelim(),null!=t.OpenedHoursPrompt&&Object.hasOwnProperty.call(t,"OpenedHoursPrompt")&&n.uint32(82).string(t.OpenedHoursPrompt),null!=t.ClosedHoursPrompt&&Object.hasOwnProperty.call(t,"ClosedHoursPrompt")&&n.uint32(90).string(t.ClosedHoursPrompt),null!=t.BreakTimePrompt&&Object.hasOwnProperty.call(t,"BreakTimePrompt")&&n.uint32(98).string(t.BreakTimePrompt),null!=t.CustomPrompt&&Object.hasOwnProperty.call(t,"CustomPrompt")&&n.uint32(106).string(t.CustomPrompt),null!=t.DisableCustomPrompt&&Object.hasOwnProperty.call(t,"DisableCustomPrompt")&&n.uint32(112).bool(t.DisableCustomPrompt),null!=t.DisableOpenedHoursPrompt&&Object.hasOwnProperty.call(t,"DisableOpenedHoursPrompt")&&n.uint32(120).bool(t.DisableOpenedHoursPrompt),null!=t.DisableClosedHoursPrompt&&Object.hasOwnProperty.call(t,"DisableClosedHoursPrompt")&&n.uint32(128).bool(t.DisableClosedHoursPrompt),null!=t.DisableBreakTimePrompt&&Object.hasOwnProperty.call(t,"DisableBreakTimePrompt")&&n.uint32(136).bool(t.DisableBreakTimePrompt),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdateGroup;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdGroup=t.int32();break;case 2:o.Name=t.string();break;case 3:o.Language=t.string();break;case 4:o.CurrentGroupHours=t.int32();break;case 5:o.OverrideExpiresAt=l.DateTime.decode(t,t.uint32());break;case 6:o.OpenedHoursOperator=l.ForwardDestination.decode(t,t.uint32());break;case 7:o.BreakTimeOperator=l.ForwardDestination.decode(t,t.uint32());break;case 8:o.ClosedHoursOperator=l.ForwardDestination.decode(t,t.uint32());break;case 9:o.CustomOperator=l.ForwardDestination.decode(t,t.uint32());break;case 10:o.OpenedHoursPrompt=t.string();break;case 11:o.ClosedHoursPrompt=t.string();break;case 12:o.BreakTimePrompt=t.string();break;case 13:o.CustomPrompt=t.string();break;case 14:o.DisableCustomPrompt=t.bool();break;case 15:o.DisableOpenedHoursPrompt=t.bool();break;case 16:o.DisableClosedHoursPrompt=t.bool();break;case 17:o.DisableBreakTimePrompt=t.bool();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:516,UpdateGroup:this})},i.prototype.typeId=516,i.prototype.typeName="UpdateGroup",i})(),Ou=l.RequestGetChatTemplateCategories=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.OwnerDn&&Object.hasOwnProperty.call(t,"OwnerDn")&&n.uint32(10).string(t.OwnerDn),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetChatTemplateCategories;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.OwnerDn=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:517,GetChatTemplateCategories:this})},i.prototype.typeId=517,i.prototype.typeName="GetChatTemplateCategories",i})(),ku=l.ResponseGetChatTemplateCategories=(()=>{function i(e){if(this.Categories=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Categories=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Categories&&t.Categories.length)for(let u=0;u<t.Categories.length;++u)l.ChatTemplateCategory.encode(t.Categories[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGetChatTemplateCategories;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Categories&&o.Categories.length||(o.Categories=[]),o.Categories.push(l.ChatTemplateCategory.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:254,ChatTemplateCategories:this})},i.prototype.typeId=254,i.prototype.typeName="ChatTemplateCategories",i})(),Cu=(l.ChatTemplateCategory=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(18).string(t.Name),null!=t.OwnerDn&&Object.hasOwnProperty.call(t,"OwnerDn")&&n.uint32(26).string(t.OwnerDn),null!=t.OrderIndex&&Object.hasOwnProperty.call(t,"OrderIndex")&&n.uint32(32).int32(t.OrderIndex),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatTemplateCategory;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.Name=t.string();break;case 3:o.OwnerDn=t.string();break;case 4:o.OrderIndex=t.int32();break;default:t.skipType(7&c)}}return o},i}
1)(),l.RequestUpdateCategory=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Category&&Object.hasOwnProperty.call(t,"Category")&&l.ChatTemplateCategory.encode(t.Category,n.uint32(18).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdateCategory;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Category=l.ChatTemplateCategory.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:520,UpdateCategory:this})},i.prototype.typeId=520,i.prototype.typeName="UpdateCategory",i})()),Pu=l.RequestBulkUpdateCategory=(()=>{function i(e){if(this.Categories=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Categories=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Categories&&t.Categories.length)for(let u=0;u<t.Categories.length;++u)l.RequestUpdateCategory.encode(t.Categories[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestBulkUpdateCategory;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Categories&&o.Categories.length||(o.Categories=[]),o.Categories.push(l.RequestUpdateCategory.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:522,BulkUpdateCategory:this})},i.prototype.typeId=522,i.prototype.typeName="BulkUpdateCategory",i})(),Mu=l.RequestGetChatTemplateLanguages=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetChatTemplateLanguages;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:518,GetChatTemplateLanguages:this})},i.prototype.typeId=518,i.prototype.typeName="GetChatTemplateLanguages",i})(),Ru=l.ResponseGetChatTemplateLanguages=(()=>{function i(e){if(this.Languages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Languages=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Languages&&t.Languages.length)for(let u=0;u<t.Languages.length;++u)l.ChatTemplateLanguage.encode(t.Languages[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGetChatTemplateLanguages;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Languages&&o.Languages.length||(o.Languages=[]),o.Languages.push(l.ChatTemplateLanguage.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:255,ChatTemplateLanguages:this})},i.prototype.typeId=255,i.prototype.typeName="ChatTemplateLanguages",i})(),Iu=(l.ChatTemplateLanguage=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(18).string(t.Name),null!=t.Locale&&Object.hasOwnProperty.call(t,"Locale")&&n.uint32(26).string(t.Locale),null!=t.Icon&&Object.hasOwnProperty.call(t,"Icon")&&n.uint32(34).string(t.Icon),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatTemplateLanguage;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.Name=t.string();break;case 3:o.Locale=t.string();break;case 4:o.Icon=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.ChatTemplate=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(8).int32(t.Id),null!=t.IdCategory&&Object.hasOwnProperty.call(t,"IdCategory")&&n.uint32(16).int32(t.IdCategory),null!=t.IdLanguage&&Object.hasOwnProperty.call(t,"IdLanguage")&&n.uint32(24).int32(t.IdLanguage),null!=t.Name&&Object.hasOwnProperty.call(t,"Name")&&n.uint32(34).string(t.Name),null!=t.Template&&Object.hasOwnProperty.call(t,"Template")&&n.uint32(42).string(t.Template),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ChatTemplate;
1for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.int32();break;case 2:o.IdCategory=t.int32();break;case 3:o.IdLanguage=t.int32();break;case 4:o.Name=t.string();break;case 5:o.Template=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.RequestGetChatTemplates=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.IdCategory&&Object.hasOwnProperty.call(t,"IdCategory")&&n.uint32(8).int32(t.IdCategory),null!=t.IdLanguage&&Object.hasOwnProperty.call(t,"IdLanguage")&&n.uint32(16).int32(t.IdLanguage),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetChatTemplates;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.IdCategory=t.int32();break;case 2:o.IdLanguage=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:519,GetChatTemplates:this})},i.prototype.typeId=519,i.prototype.typeName="GetChatTemplates",i})()),ju=l.RequestUpdateChatTemplate=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Action&&Object.hasOwnProperty.call(t,"Action")&&n.uint32(8).int32(t.Action),null!=t.Template&&Object.hasOwnProperty.call(t,"Template")&&l.ChatTemplate.encode(t.Template,n.uint32(18).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUpdateChatTemplate;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Action=t.int32();break;case 2:o.Template=l.ChatTemplate.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:521,UpdateTemplate:this})},i.prototype.typeId=521,i.prototype.typeName="UpdateTemplate",i})(),Tu=l.ResponseGetChatTemplates=(()=>{function i(e){if(this.Templates=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Templates=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Templates&&t.Templates.length)for(let u=0;u<t.Templates.length;++u)l.ChatTemplate.encode(t.Templates[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGetChatTemplates;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Templates&&o.Templates.length||(o.Templates=[]),o.Templates.push(l.ChatTemplate.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:256,ChatTemplates:this})},i.prototype.typeId=256,i.prototype.typeName="ChatTemplates",i})(),Su=l.RequestGetMeetingDetails=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.OrganizerExtension&&Object.hasOwnProperty.call(t,"OrganizerExtension")&&n.uint32(10).string(t.OrganizerExtension),null!=t.StartDate&&Object.hasOwnProperty.call(t,"StartDate")&&l.DateTime.encode(t.StartDate,n.uint32(18).fork()).ldelim(),null!=t.EndDate&&Object.hasOwnProperty.call(t,"EndDate")&&l.DateTime.encode(t.EndDate,n.uint32(26).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetMeetingDetails;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.OrganizerExtension=t.string();break;case 2:o.StartDate=l.DateTime.decode(t,t.uint32());break;case 3:o.EndDate=l.DateTime.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:523,GetMeetingDetails:this})},i.prototype.typeId=523,i.prototype.typeName="GetMeetingDetails",i})(),vu=l.ResponseMeetingDetails=(()=>{function i(e){if(this.MeetingDetails=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.MeetingDetails=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.MeetingDetails&&t.MeetingDetails.length)for(let u=0;u<t.MeetingDetails.length;++u)l.RequestPutWebMeetingReports2.encode(t.MeetingDetails[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseMeetingDetails;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.MeetingDetails&&o.MeetingDetails.length||(o.MeetingDetails=[]),o.MeetingDetails.push(l.RequestPutWebMeetingReports2.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:257,MeetingDetails:this})},i.prototype.typeId=257,i.prototype.typeName="MeetingDetails",i})(),wu=l.RequestGetCrmContacts=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.PageNumber&&Object.hasOwnProperty.call(t,"PageNumber")&&n.uint32(8).int32(t.PageNumber),null!=t.PageSize&&Object.hasOwnProperty.call(t,"PageSize")&&n.uint32(16).int32(t.PageSize),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetCrmContacts;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.PageNumber=t.int32();break;case 2:o.PageSize=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:527,GetCrmContacts:this})},i.prototype.typeId=527,i.prototype.typeName="GetCrmContacts",i})(),Gu=l.ResponseCrmContacts=(()=>{function i(e){if(this.Entries=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Entries=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.PageNumber&&Object.hasOwnProperty.call(t,"PageNumber")&&n.uint32(8).int32(t.PageNumber),null!=t.PageSize&&Object.hasOwnProperty.call(t,"PageSize")&&n.uint32(16).int32(t.PageSize),null!=t.Entries&&t.Entries.length)for(let u=0;u<t.Entries.length;++u)l.Contact.encode(t.Entries[u],n.uint32(26).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseCrmContacts;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.PageNumber=t.int32();break;case 2:o.PageSize=t.int32();break;case 3:o.Entries&&o.Entries.length||(o.Entries=[]),o.Entries.push(l.Contact.decode(t,t.uint32()));break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:259,CrmContactList:this})},i.prototype.typeId=259,i.prototype.typeName="CrmContactList",i})(),Au=l.RequestSearchCrmContacts=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.InputString&&Object.hasOwnProperty.call(t,"InputString")&&n.uint32(10).string(t.InputString),null!=t.MaxContactCount&&Object.hasOwnProperty.call(t,"MaxContactCount")&&n.uint32(16).int32(t.MaxContactCount),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestSearchCrmContacts;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.InputString=t.string();break;case 2:o.MaxContactCount=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:528,SearchCrmContacts:this})},i.prototype.typeId=528,i.prototype.typeName="SearchCrmContacts",i})(),Nu=l.ResponseSearchCrmContacts=(()=>{function i(e){if(this.Entries=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Entries=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Entries&&t.Entries.length)for(let u=0;u<t.Entries.length;++u)l.Contact.encode(t.Entries[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseSearchCrmContacts;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Entries&&o.Entries.length||(o.Entries=[]),o.Entries.push(l.Contact.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:260,FoundCrmContacts:this})},i.prototype.typeId=260,i.prototype.typeName="FoundCrmContacts",i})(),gu=(l.AudioInfo=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(10).string(t.Id),null!=t.File&&Object.hasOwnProperty.call(t,"File")&&n.uint32(18).string(t.File),null!=t.Type&&Object.hasOwnProperty.call(t,"Type")&&n.uint32(24).int32(t.Type),null!=t.CallerNumber&&Object.hasOwnProperty.call(t,"CallerNumber")&&n.uint32(34).string(t.CallerNumber),null!=t.CallerName&&Object.hasOwnProperty.call(t,"CallerName")&&n.uint32(42).string(t.CallerName),null!=t.CalleeNumber&&Object.hasOwnProperty.call(t,"CalleeNumber")&&n.uint32(50).string(t.CalleeNumber),null!=t.CalleeName&&Object.hasOwnProperty.call(t,"CalleeName")&&n.uint32(58).string(t.CalleeName),null!=t.Language&&Object.hasOwnProperty.call(t,"Language")&&n.uint32(66).string(t.Language),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.AudioInfo;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.string();break;case 2:o.File=t.string();break;case 3:o.Type=t.int32();break;case 4:o.CallerNumber=t.string();break;case 5:o.CallerName=t.string();break;case 6:o.CalleeNumber=t.string();break;case 7:o.CalleeName=t.string();break;case 8:o.Language=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.RequestAudioTranscode=(()=>{function i(e){if(this.AudioFiles=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.AudioFiles=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.AudioFiles&&t.AudioFiles.length)for(let u=0;u<t.AudioFiles.length;++u)l.AudioInfo.encode(t.AudioFiles[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestAudioTranscode;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.AudioFiles&&o.AudioFiles.length||(o.AudioFiles=[]),o.AudioFiles.push(l.AudioInfo.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:557,SendAudioFiles:this})},i.prototype.typeId=557,i.prototype.typeName="SendAudioFiles",i})()),Du=(l.AudioTranscode=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Id&&Object.hasOwnProperty.call(t,"Id")&&n.uint32(10).string(t.Id),null!=t.Success&&Object.hasOwnProperty.call(t,"Success")&&n.uint32(16).bool(t.Success),null!=t.Transcription&&Object.hasOwnProperty.call(t,"Transcription")&&n.uint32(26).string(t.Transcription),null!=t.Summary&&Object.hasOwnProperty.call(t,"Summary")&&n.uint32(34).string(t.Summary),null!=t.SentimentScore&&Object.hasOwnProperty.call(t,"SentimentScore")&&n.uint32(40).int32(t.SentimentScore),null!=t.SentimentText&&Object.hasOwnProperty.call(t,"SentimentText")&&n.uint32(50).string(t.SentimentText),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.AudioTranscode;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Id=t.string();break;case 2:o.Success=t.bool();break;case 3:o.Transcription=t.string();break;case 4:o.Summary=t.string();break;case 5:o.SentimentScore=t.int32();break;case 6:o.SentimentText=t.string();break;default:t.skipType(7&c)}}return o},i})(),l.ResponseAudioTranscode=(()=>{function i(e){if(this.TranscodingResults=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.TranscodingResults=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.TranscodingResults&&t.TranscodingResults.length)for(let u=0;u<t.TranscodingResults.length;++u)l.AudioTranscode.encode(t.TranscodingResults[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseAudioTranscode;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.TranscodingResults&&o.TranscodingResults.length||(o.TranscodingResults=[]),o.TranscodingResults.push(l.AudioTranscode.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:264,AudioTranscodeResults:this})},i.prototype.typeId=264,i.prototype.typeName="AudioTranscodeResults",i})()),Eu=l.RequestLookupContactNew=(()=>{function i(e){if(this.Sources=[],this.MustHaveMaskList=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Sources=I.emptyArray,i.prototype.MustHaveMaskList=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Input&&Object.hasOwnProperty.call(t,"Input")&&n.uint32(10).string(t.Input),null!=t.Offset&&Object.hasOwnProperty.call(t,"Offset")&&n.uint32(16).int32(t.Offset),null!=t.Count&&Object.hasOwnProperty.call(t,"Count")&&n.uint32(24).int32(t.Count),null!=t.Sources&&t.Sources.length)for(let u=0;u<t.Sources.length;++u)n.uint32(32).int32(t.Sources[u]);if(null!=t.GroupBy&&Object.hasOwnProperty.call(t,"GroupBy")&&n.uint32(40).bool(t.GroupBy),null!=t.MustHaveMaskList&&t.MustHaveMaskList.length)for(let u=0;u<t.MustHaveMaskList.length;++u)n.uint32(48).int32(t.MustHaveMaskList[u]);return null!=t.SearchByMask&&Object.hasOwnProperty.call(t,"SearchByMask")&&n.uint32(56).int32(t.SearchByMask),null!=t.SortBy&&Object.hasOwnProperty.call(t,"SortBy")&&n.uint32(64).int32(t.SortBy),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestLookupContactNew;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Input=t.string();break;case 2:o.Offset=t.int32();break;case 3:o.Count=t.int32();break;case 4:if(o.Sources&&o.Sources.length||(o.Sources=[]),2==(7&c)){let d=t.uint32()+t.pos;for(;t.pos<d;)o.Sources.push(t.int32())}else o.Sources.push(t.int32());break;case 5:o.GroupBy=t.bool();break;case 6:if(o.MustHaveMaskList&&o.MustHaveMaskList.length||(o.MustHaveMaskList=[]),2==(7&c)){let d=t.uint32()+t.pos;for(;t.pos<d;)o.MustHaveMaskList.push(t.int32())}else o.MustHaveMaskList.push(t.int32());break;case 7:o.SearchByMask=t.int32();break;case 8:o.SortBy=t.int32();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:560,LookupContactNew:this})}
1,i.prototype.typeId=560,i.prototype.typeName="LookupContactNew",i})(),qu=l.RequestBlockPhoneNumber=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(10).string(t.Number),null!=t.Description&&Object.hasOwnProperty.call(t,"Description")&&n.uint32(18).string(t.Description),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestBlockPhoneNumber;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.Number=t.string();break;case 2:o.Description=t.string();break;default:t.skipType(7&c)}}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:562,BlockPhoneNumber:this})},i.prototype.typeId=562,i.prototype.typeName="BlockPhoneNumber",i})(),Fu=l.RequestUnblockPhoneNumber=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.Number&&Object.hasOwnProperty.call(t,"Number")&&n.uint32(10).string(t.Number),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestUnblockPhoneNumber;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?o.Number=t.string():t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:563,UnblockPhoneNumber:this})},i.prototype.typeId=563,i.prototype.typeName="UnblockPhoneNumber",i})(),Lu=l.RequestGetGroupInfos=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.RequestGetGroupInfos;for(;t.pos<a;){let c=t.uint32();if(c===u)break;t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:566,GetGroupInfos:this})},i.prototype.typeId=566,i.prototype.typeName="GetGroupInfos",i})(),xu=l.ResponseGroupInfos=(()=>{function i(e){if(this.Groups=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.prototype.Groups=I.emptyArray,i.encode=function(t,n){if(n||(n=f.create()),null!=t.Groups&&t.Groups.length)for(let u=0;u<t.Groups.length;++u)l.GroupId.encode(t.Groups[u],n.uint32(10).fork()).ldelim();return n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.ResponseGroupInfos;for(;t.pos<a;){let c=t.uint32();if(c===u)break;c>>>3==1?(o.Groups&&o.Groups.length||(o.Groups=[]),o.Groups.push(l.GroupId.decode(t,t.uint32()))):t.skipType(7&c)}return o},i.prototype.toGenericMessage=function(){return new l.GenericMessage({MessageId:269,GroupInfos:this})},i.prototype.typeId=269,i.prototype.typeName="GroupInfos",i})(),on=l.GenericMessage=(()=>{function i(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return i.encode=function(t,n){return n||(n=f.create()),null!=t.MessageId&&Object.hasOwnProperty.call(t,"MessageId")&&n.uint32(8).int32(t.MessageId),null!=t.LoginRequest&&Object.hasOwnProperty.call(t,"LoginRequest")&&l.Login.encode(t.LoginRequest,n.uint32(802).fork()).ldelim(),null!=t.LogoutRequest&&Object.hasOwnProperty.call(t,"LogoutRequest")&&l.Logout.encode(t.LogoutRequest,n.uint32(810).fork()).ldelim(),null!=t.GetMyInfo&&Object.hasOwnProperty.call(t,"GetMyInfo")&&l.RequestMyInfo.encode(t.GetMyInfo,n.uint32(818).fork()).ldelim(),null!=t.ChangeStatus&&Object.hasOwnProperty.call(t,"ChangeStatus")&&l.RequestChangeStatus.encode(t.ChangeStatus,n.uint32(826).fork()).ldelim(),null!=t.LookupContact&&Object.hasOwnProperty.call(t,"LookupContact")&&l.RequestLookupContact.encode(t.LookupContact,n.uint32(834).fork()).ldelim(),null!=t.GetFile&&Object.hasOwnProperty.call(t,"GetFile")&&l.RequestGetFile.encode(t.GetFile,n.uint32(842).fork()).ldelim(),null!=t.GetCallHistory&&Object.hasOwnProperty.call(t,"GetCallHistory")&&l.RequestCallHistory.encode(t.GetCallHistory,n.uint32(850).fork()).ldelim(),null!=t.GetCallHistoryCount&&Object.hasOwnProperty.call(t,"GetCallHistoryCount")&&l.RequestCallHistoryCount.encode(t.GetCallHistoryCount,n.uint32(858).fork()).ldelim(),null!=t.UpdateFwdProfiles&&Object.hasOwnProperty.call(t,"UpdateFwdProfiles")&&l.RequestUpdateFwdProfile.encode(t.UpdateFwdProfiles,n.uint32(866).fork()).ldelim(),null!=t.GetExtensions&&Object.hasOwnProperty.call(t,"GetExtensions")&&l.RequestGetExtensions.encode(t.GetExtensions,n.uint32(874).fork()).ldelim(),null!=t.SendChatMessage&&Object.hasOwnProperty.call(t,"SendChatMessage")&&l.RequestSendChatMessage.encode(t.SendChatMessage,n.uint32(882).fork()).ldelim(),null!=t.GetMyMessages&&Object.hasOwnProperty.call(t,"GetMyMessages")&&l.RequestGetMyMessages.encode(t.GetMyMessages,n.uint32(890
1).fork()).ldelim(),null!=t.MessagesReceived&&Object.hasOwnProperty.call(t,"MessagesReceived")&&l.RequestSetChatReceived.encode(t.MessagesReceived,n.uint32(898).fork()).ldelim(),null!=t.PutFile&&Object.hasOwnProperty.call(t,"PutFile")&&l.RequestPutFile.encode(t.PutFile,n.uint32(906).fork()).ldelim(),null!=t.SetVMRead&&Object.hasOwnProperty.call(t,"SetVMRead")&&l.RequestSetVoiceMailHeard.encode(t.SetVMRead,n.uint32(914).fork()).ldelim(),null!=t.DropCall&&Object.hasOwnProperty.call(t,"DropCall")&&l.RequestDropCall.encode(t.DropCall,n.uint32(922).fork()).ldelim(),null!=t.DivertCall&&Object.hasOwnProperty.call(t,"DivertCall")&&l.RequestDivertCall.encode(t.DivertCall,n.uint32(930).fork()).ldelim(),null!=t.PickupCall&&Object.hasOwnProperty.call(t,"PickupCall")&&l.RequestPickupCall.encode(t.PickupCall,n.uint32(938).fork()).ldelim(),null!=t.TransferCall&&Object.hasOwnProperty.call(t,"TransferCall")&&l.RequestTransferCall.encode(t.TransferCall,n.uint32(946).fork()).ldelim(),null!=t.MakeCall&&Object.hasOwnProperty.call(t,"MakeCall")&&l.RequestMakeCall.encode(t.MakeCall,n.uint32(954).fork()).ldelim(),null!=t.UpdateContact&&Object.hasOwnProperty.call(t,"UpdateContact")&&l.RequestUpdateContact.encode(t.UpdateContact,n.uint32(962).fork()).ldelim(),null!=t.ChangeConference&&Object.hasOwnProperty.call(t,"ChangeConference")&&l.RequestChangeConference.encode(t.ChangeConference,n.uint32(970).fork()).ldelim(),null!=t.GetSystemParameters&&Object.hasOwnProperty.call(t,"GetSystemParameters")&&l.RequestGetSystemParameters.encode(t.GetSystemParameters,n.uint32(978).fork()).ldelim(),null!=t.BargeInCall&&Object.hasOwnProperty.call(t,"BargeInCall")&&l.RequestBargeInCall.encode(t.BargeInCall,n.uint32(986).fork()).ldelim(),null!=t.GetAccessRights&&Object.hasOwnProperty.call(t,"GetAccessRights")&&l.RequestConnectionAccessRights.encode(t.GetAccessRights,n.uint32(994).fork()).ldelim(),null!=t.ResetMyMissedCalls&&Object.hasOwnProperty.call(t,"ResetMyMissedCalls")&&l.RequestResetMyMissedCalls.encode(t.ResetMyMissedCalls,n.uint32(1002).fork()).ldelim(),null!=t.DeleteVM&&Object.hasOwnProperty.call(t,"DeleteVM")&&l.RequestDeleteVoiceMail.encode(t.DeleteVM,n.uint32(1010).fork()).ldelim(),null!=t.PlayVM&&Object.hasOwnProperty.call(t,"PlayVM")&&l.RequestPlayVoiceMail.encode(t.PlayVM,n.uint32(1018).fork()).ldelim(),null!=t.GetFolderRequest&&Object.hasOwnProperty.call(t,"GetFolderRequest")&&l.RequestGetFolder.encode(t.GetFolderRequest,n.uint32(1026).fork()).ldelim(),null!=t.DeleteFile&&Object.hasOwnProperty.call(t,"DeleteFile")&&l.RequestDeleteFile.encode(t.DeleteFile,n.uint32(1034).fork()).ldelim(),null!=t.PlayRec&&Object.hasOwnProperty.call(t,"PlayRec")&&l.RequestPlayRecording.encode(t.PlayRec,n.uint32(1042).fork()).ldelim(),null!=t.ServerTimeRequest&&Object.hasOwnProperty.call(t,"ServerTimeRequest")&&l.RequestServerTime.encode(t.ServerTimeRequest,n.uint32(1050).fork()).ldelim(),null!=t.SetQueueStatus&&Object.hasOwnProperty.call(t,"SetQueueStatus")&&l.RequestSetQueueStatus.encode(t.SetQueueStatus,n.uint32(1058).fork()).ldelim(),null!=t.ScheduleConferenceRequest&&Object.hasOwnProperty.call(t,"ScheduleConferenceRequest")&&l.RequestUpsertScheduledConference.encode(t.ScheduleConferenceRequest,n.uint32(1066).fork()).ldelim(),null!=t.GetSchedule&&Object.hasOwnProperty.call(t,"GetSchedule")&&l.RequestGetConferenceSchedule.encode(t.GetSchedule,n.uint32(1074).fork()).ldelim(),null!=t.CreateConferenceScheduleTemplate&&Object.hasOwnProperty.call(t,"CreateConferenceScheduleTemplate")&&l.RequestCreateConferenceScheduleTemplate.encode(t.CreateConferenceScheduleTemplate,n.uint32(1082).fork()).ldelim(),null!=t.JoinCallParticipantsToConference&&Object.hasOwnProperty.call(t,"JoinCallParticipantsToConference")&&l.RequestJoinCallParticipantsToConference.encode(t.JoinCallParticipantsToConference,n.uint32(1090).fork()).ldelim(),null!=t.RecordCall&&Object.hasOwnProperty.call(t,"RecordCall")&&l.RequestRecordCall.encode(t.RecordCall,n.uint32(1098).fork()).ldelim(),null!=t.GetMyChatParties&&Object.hasOwnProperty.call(t,"GetMyChatParties")&&l.RequestMyChatParties.encode(t.GetMyChatParties,n.uint32(1106).fork()).ldelim(),null!=t.DeleteChat&&Object.hasOwnProperty.call(t,"DeleteChat")&&l.RequestDeleteChat.encode(t.DeleteChat,n.uint32(1114).fork()).ldelim(),null!=t.GetMyRights&&Object.hasOwnProperty.call(t,"GetMyRights")&&l.RequestGetMyRights.encode(t.GetMyRights,n.uint32(1122).fork()).ldelim(),null!=t.GetGreetings&&Object.hasOwnProperty.call(t,"GetGreetings")&&l.RequestGetGreetings.encode(t.GetGreetings,n.uint32(1130).fork()).ldelim(),null!=t.SetGreetings&&Object.hasOwnProperty.call(t,"SetGreetings")&&l.RequestSetGreetings.encode(t.SetGreetings,n.uint32(1138).fork()).ldelim(),null!=t.PlayVMGreetingOnPhone&&Object.hasOwnProperty.call(t,"PlayVMGreetingOnPhone")&&l.RequestPlayVMGreetingOnPhone.encode(t.PlayVMGreetingOnPhone,n.uint32(1146).fork()).ldelim(),null!=t.RecordVMGreetingFromPhone&&Object.hasOwnProperty.call(t,"RecordVMGreetingFromPhone")&&l.RequestRecordVMGreetingFromPhone.encode(t.RecordVMGreetingFromPhone,n.uint32(1154).fork()).ldelim(),null!=t.GetQueueCalls&&Object.hasOwnProperty.call(t,"GetQueueCalls")&&l.RequestQueueCalls.encode(t.GetQueueCalls,n.uint32(1162).fork()).ldelim(),null!=t.GetQueueCallsCount&&Object.hasOwnProperty.call(t,"GetQueueCallsCount")&&l.RequestQueueCallsCount.encode(t.GetQueueCallsCount,n.uint32(1170).fork()).ldelim(),null!=t.SetQueueCallData&&Object.hasOwnProperty.call(t,"SetQueueCallData")&&l.RequestSetQueueCallData.encode(t.SetQueueCallData,n.uint32(1178).fork()).ldelim(),null!=t.DeleteCallHistory&&Object.hasOwnProperty.call(t,"DeleteCallHistory")&&l.RequestDeleteC
1allHistory.encode(t.DeleteCallHistory,n.uint32(1186).fork()).ldelim(),null!=t.SetQueueCallDataBulk&&Object.hasOwnProperty.call(t,"SetQueueCallDataBulk")&&l.RequestSetQueueCallDataBulk.encode(t.SetQueueCallDataBulk,n.uint32(1194).fork()).ldelim(),null!=t.UpdateWebRtcInboundRules&&Object.hasOwnProperty.call(t,"UpdateWebRtcInboundRules")&&l.RequestUpdateWebRtcInboundRules.encode(t.UpdateWebRtcInboundRules,n.uint32(1202).fork()).ldelim(),null!=t.SendWelcomeEmail&&Object.hasOwnProperty.call(t,"SendWelcomeEmail")&&l.RequestWelcomeEmail.encode(t.SendWelcomeEmail,n.uint32(1210).fork()).ldelim(),null!=t.ConvertToAutoAnswer&&Object.hasOwnProperty.call(t,"ConvertToAutoAnswer")&&l.RequestAutoAnswerConnection.encode(t.ConvertToAutoAnswer,n.uint32(1218).fork()).ldelim(),null!=t.UpsertWebMeeting&&Object.hasOwnProperty.call(t,"UpsertWebMeeting")&&l.WebMeetingState.encode(t.UpsertWebMeeting,n.uint32(1226).fork()).ldelim(),null!=t.GetWebMeetings&&Object.hasOwnProperty.call(t,"GetWebMeetings")&&l.RequestGetWebMeetings.encode(t.GetWebMeetings,n.uint32(1234).fork()).ldelim(),null!=t.PutWebMeetingReports&&Object.hasOwnProperty.call(t,"PutWebMeetingReports")&&l.RequestPutWebMeetingReports.encode(t.PutWebMeetingReports,n.uint32(1258).fork()).ldelim(),null!=t.CreatePrivateRoom&&Object.hasOwnProperty.call(t,"CreatePrivateRoom")&&l.RequestWebMeetingPrivateRoom.encode(t.CreatePrivateRoom,n.uint32(1266).fork()).ldelim(),null!=t.SendError&&Object.hasOwnProperty.call(t,"SendError")&&l.RequestWebMeetingError.encode(t.SendError,n.uint32(1274).fork()).ldelim(),null!=t.ReinviteOrganizer&&Object.hasOwnProperty.call(t,"ReinviteOrganizer")&&l.RequestWmReinviteOrganizer.encode(t.ReinviteOrganizer,n.uint32(1282).fork()).ldelim(),null!=t.SetSharedBlfs&&Object.hasOwnProperty.call(t,"SetSharedBlfs")&&l.RequestSetSharedBlfs.encode(t.SetSharedBlfs,n.uint32(1290).fork()).ldelim(),null!=t.GetMyLastMessages&&Object.hasOwnProperty.call(t,"GetMyLastMessages")&&l.RequestGetMyLastMessages.encode(t.GetMyLastMessages,n.uint32(1298).fork()).ldelim(),null!=t.registerWebRTC&&Object.hasOwnProperty.call(t,"registerWebRTC")&&l.RequestRegisterWebRTCEndpoint.encode(t.registerWebRTC,n.uint32(1306).fork()).ldelim(),null!=t.ChangeSDPState&&Object.hasOwnProperty.call(t,"ChangeSDPState")&&l.RequestWebRTCChangeSDPState.encode(t.ChangeSDPState,n.uint32(1314).fork()).ldelim(),null!=t.GetUnreadMessagesCount&&Object.hasOwnProperty.call(t,"GetUnreadMessagesCount")&&l.RequestUnreadMessagesCount.encode(t.GetUnreadMessagesCount,n.uint32(1322).fork()).ldelim(),null!=t.JoinCalls&&Object.hasOwnProperty.call(t,"JoinCalls")&&l.RequestJoinCalls.encode(t.JoinCalls,n.uint32(1330).fork()).ldelim(),null!=t.RecordingControl&&Object.hasOwnProperty.call(t,"RecordingControl")&&l.RequestControlCallRecording.encode(t.RecordingControl,n.uint32(1338).fork()).ldelim(),null!=t.ChangeWCPassword&&Object.hasOwnProperty.call(t,"ChangeWCPassword")&&l.RequestChangeWebClientPassword.encode(t.ChangeWCPassword,n.uint32(1346).fork()).ldelim(),null!=t.UpdateFavorites&&Object.hasOwnProperty.call(t,"UpdateFavorites")&&l.RequestUpdateFavorites.encode(t.UpdateFavorites,n.uint32(1354).fork()).ldelim(),null!=t.GetContactsByRef&&Object.hasOwnProperty.call(t,"GetContactsByRef")&&l.RequestContactsByRef.encode(t.GetContactsByRef,n.uint32(1362).fork()).ldelim(),null!=t.CleanExtension&&Object.hasOwnProperty.call(t,"CleanExtension")&&l.RequestCleanExtension.encode(t.CleanExtension,n.uint32(1370).fork()).ldelim(),null!=t.AssignExtension&&Object.hasOwnProperty.call(t,"AssignExtension")&&l.RequestAssignExtension.encode(t.AssignExtension,n.uint32(1378).fork()).ldelim(),null!=t.SetWakeupCall&&Object.hasOwnProperty.call(t,"SetWakeupCall")&&l.RequestSetWakeupCall.encode(t.SetWakeupCall,n.uint32(1386).fork()).ldelim(),null!=t.DeleteWakeupCall&&Object.hasOwnProperty.call(t,"DeleteWakeupCall")&&l.RequestDeleteWakeupCall.encode(t.DeleteWakeupCall,n.uint32(1394).fork()).ldelim(),null!=t.GetWakeupCalls&&Object.hasOwnProperty.call(t,"GetWakeupCalls")&&l.RequestGetWakeupCalls.encode(t.GetWakeupCalls,n.uint32(1402).fork()).ldelim(),null!=t.GetOneTimeLogin&&Object.hasOwnProperty.call(t,"GetOneTimeLogin")&&l.RequestOneTimeLogin.encode(t.GetOneTimeLogin,n.uint32(1410).fork()).ldelim(),null!=t.UpdatePushSub
1scriptions&&Object.hasOwnProperty.call(t,"UpdatePushSubscriptions")&&l.RequestUpdatePushSubscriptions.encode(t.UpdatePushSubscriptions,n.uint32(1418).fork()).ldelim(),null!=t.RefreshSubscription&&Object.hasOwnProperty.call(t,"RefreshSubscription")&&l.PushSubscriptionData.encode(t.RefreshSubscription,n.uint32(1426).fork()).ldelim(),null!=t.SendChatFile&&Object.hasOwnProperty.call(t,"SendChatFile")&&l.RequestSendChatFile.encode(t.SendChatFile,n.uint32(1434).fork()).ldelim(),null!=t.UserTypingChat&&Object.hasOwnProperty.call(t,"UserTypingChat")&&l.ChatTyping.encode(t.UserTypingChat,n.uint32(1442).fork()).ldelim(),null!=t.UpdateWebMeetingParticipants&&Object.hasOwnProperty.call(t,"UpdateWebMeetingParticipants")&&l.ConferenceState.encode(t.UpdateWebMeetingParticipants,n.uint32(1450).fork()).ldelim(),null!=t.BlockAnonymous&&Object.hasOwnProperty.call(t,"BlockAnonymous")&&l.RequestBlacklistAnonymous.encode(t.BlockAnonymous,n.uint32(1458).fork()).ldelim(),null!=t.DisconnectAnonymous&&Object.hasOwnProperty.call(t,"DisconnectAnonymous")&&l.RequestDisconnectAnonymous.encode(t.DisconnectAnonymous,n.uint32(1466).fork()).ldelim(),null!=t.GetRecordings&&Object.hasOwnProperty.call(t,"GetRecordings")&&l.RequestGetRecordings.encode(t.GetRecordings,n.uint32(1474).fork()).ldelim(),null!=t.DeleteRecording&&Object.hasOwnProperty.call(t,"DeleteRecording")&&l.RequestDeleteRecording.encode(t.DeleteRecording,n.uint32(1482).fork()).ldelim(),null!=t.UpdateConversation&&Object.hasOwnProperty.call(t,"UpdateConversation")&&l.RequestUpdateConversation.encode(t.UpdateConversation,n.uint32(1490).fork()).ldelim(),null!=t.TransferChatTo&&Object.hasOwnProperty.call(t,"TransferChatTo")&&l.RequestTransferChatTo.encode(t.TransferChatTo,n.uint32(1498).fork()).ldelim(),null!=t.AgentTakesOverChat&&Object.hasOwnProperty.call(t,"AgentTakesOverChat")&&l.RequestAgentTakesOverChat.encode(t.AgentTakesOverChat,n.uint32(1506).fork()).ldelim(),null!=t.CreateConversation&&Object.hasOwnProperty.call(t,"CreateConversation")&&l.RequestCreateConversation.encode(t.CreateConversation,n.uint32(1514).fork()).ldelim(),null!=t.SendMessageToConversation&&Object.hasOwnProperty.call(t,"SendMessageToConversation")&&l.RequestSendChatMessageToConversation.encode(t.SendMessageToConversation,n.uint32(1522).fork()).ldelim(),null!=t.SendChatRating&&Object.hasOwnProperty.call(t,"SendChatRating")&&l.RequestChatRating.encode(t.SendChatRating,n.uint32(1530).fork()).ldelim(),null!=t.UpdateUserSettings&&Object.hasOwnProperty.call(t,"UpdateUserSettings")&&l.RequestUpdateUserSettings.encode(t.UpdateUserSettings,n.uint32(1538).fork()).ldelim(),null!=t.ExactMatchRequest&&Object.hasOwnProperty.call(t,"ExactMatchRequest")&&l.RequestExactMatch.encode(t.ExactMatchRequest,n.uint32(1546).fork()).ldelim(),null!=t.GetContactById&&Object.hasOwnProperty.call(t,"GetContactById")&&l.RequestGetContactById.encode(t.GetContactById,n.uint32(1554).fork()).ldelim(),null!=t.StartChatMonitoring&&Object.hasOwnProperty.call(t,"StartChatMonitoring")&&l.RequestStartChatMonitoring.encode(t.StartChatMonitoring,n.uint32(1562).fork()).ldelim(),null!=t.StopChatMonitoring&&Object.hasOwnProperty.call(t,"StopChatMonitoring")&&l.RequestStopChatMonitoring.encode(t.StopChatMonitoring,n.uint32(1570).fork()).ldelim(),null!=t.WhisperMessage&&Object.hasOwnProperty.call(t,"WhisperMessage")&&l.RequestWhisperMessage.encode(t.WhisperMessage,n.uint32(1578).fork()).ldelim(),null!=t.CloseConversation&&Object.hasOwnProperty.call(t,"CloseConversation")&&l.RequestCloseConversation.encode(t.CloseConversation,n.uint32(1586).fork()).ldelim(),null!=t.ProviderMapping&&Object.hasOwnProperty.call(t,"ProviderMapping")&&l.RequestProviderMapping.encode(t.ProviderMapping,n.uint32(1594).fork()).ldelim(),null!=t.LoginResponse&&Object.hasOwnProperty.call(t,"LoginResponse")&&l.LoginInfo.encode(t.LoginResponse,n.uint32(1602).fork()).ldelim(),null!=t.MyInfo&&Object.hasOwnProperty.call(t,"MyInfo")&&l.MyExtensionInfo.encode(t.MyInfo,n.uint32(1610).fork()).ldelim(),null!=t.LookupResult&&Object.hasOwnProperty.call(t,"LookupResult")&&l.ResponseLookup.encode(t.LookupResult,n.uint32(1618).fork()).ldelim(),null!=t.FileResult&&Object.hasOwnProperty.call(t,"FileResult")&&l.ResponseFile.encode(t.FileResult,n.uint32(1626).fork()).ldelim(),null!=t.CallHistory&&Object.hasOwnProperty.call(t,"CallHistory")&&l.ResponseCallHistory.encode(t.CallHistory,n.uint32(1634).fork()).ldelim(),null!=t.CallHistoryCount&&Object.hasOwnProperty.call(t,"CallHistoryCount")&&l.ResponseCallHistoryCount.encode(t.CallHistoryCount,n.uint32(1642).fork()).ldelim(),null!=t.Extensions&&Object.hasOwnProperty.call(t,"Extensions")&&l.ResponseGetExtensions.encode(t.Extensions,n.uint32(1650).fork()).ldelim(),null!=t.Acknowledge&&Object.hasOwnProperty.call(t,"Acknowledge")&&l.ResponseAcknowledge.encode(t.Acknowledge,n.uint32(1658).fork()).ldelim(),null!=t.GroupsInfo&&Object.hasOwnProperty.call(t,"GroupsInfo")&&l.Groups.encode(t.GroupsInfo,n.uint32(1666).fork()).ldelim(),null!=t.MyChatMessages&&Object.hasOwnProperty.call(t,"MyChatMessages")&&l.ResponseMyMessages.encode(t.MyChatMessages,n.uint32(1674).fork()).ldelim(),null!=t.SystemParameters&&Object.hasOwnProperty.call(t,"SystemParameters")&&l.ResponseSystemParameters.encode(t.SystemParameters,n.uint32(1682).fork()).ldelim(),null!=t.QueuesInfo&&Object.hasOwnProperty.call(t,"QueuesInfo")&&l.Queues.encode(t.QueuesInfo,n.uint32(1690).fork()).ldelim(),null!=t.ParkingsInfo&&Object.hasOwnProperty.call(t,"ParkingsInfo")&&l.Parkings.encode(t.ParkingsInfo,n.uint32(1698).fork()).ldelim(),null!=t.IVRsInfo&&Object.hasOwnProperty.call(t,"IVRsInfo")&&l.IVRs.encode(t.IVRsInfo,n.uint32(1706).fork()).ldelim(),null!=t.ConnectionCapabilityMask&&Object.hasOwnProperty.call(t,"ConnectionCapabilityMask")&&l.ResponseConnectionAccessRights.encode(t.ConnectionCapabilityMask,n.uint32(1714).fork()).ldelim(),null!=t.ExtensionsChangedEvent&&Object.hasOwnProperty.call(t,"ExtensionsChangedEvent")&&l.ResponseExtensionsChanged.encode(t.ExtensionsChangedEvent,n.uint32(1722).fork()).ldelim(),null!=t.GetFolderResponse&&Object.hasOwnProperty.call(t,"GetFolderResponse")&&l.ResponseGetFolder.encode(t.GetFolderResponse,n.uint32(1730).fork()).ldelim(),null!=t.ContactChangedEvent&&Object.hasOwnProperty.call(t,"ContactChangedEvent")&&l.ResponseContactChanged.encode(t.ContactChangedEvent,n.uint32(1738).fork()).ldelim(),null!=t.ServerTimeResponse&&Object.hasOwnProperty.call(t,"ServerTimeResponse")&&l.ResponseServerTime.encode(t.ServerTimeResponse,n.uint32(1746).fork()).ldelim(),null!=t.ActiveConferences&&Object.hasOwnProperty.call(t,"ActiveConferences")&&l.Conferences.encode(t.ActiveConferences,n.uint32(1754).fork()).ldelim(),null!=t.MyChatParties&&Object.hasOwnProperty.call(t,"MyChatParties")&&l.ResponseMyChatParties.encode(t.MyChatParties,n.uint32(1762).fork()).ldelim(),null!=t.MyRights&&Object.hasOwnProperty.call(t,"MyRights")&&l.ResponseGetMyRights.encode(t.MyRights,n.uint32(1770).fork()).ldelim(),null!=t.Greetings&&Object.hasOwnProperty.call(t,"Greetings")&&l.ResponseGreetings.encode(t.Greetings,n.uint32(1778).fork()).ldelim(),null!=t.QueueCalls&&Object.hasOwnProperty.call(t,"QueueCalls")&&l.ResponseQueueCalls.encode(t.QueueCalls,n.uint32(1786).fork()).ldelim(),null!=t.ActiveWebMeetings&&Object.hasOwnProperty.call(t,"ActiveWebMeetings")&&l.WebMeetings.encode(t.ActiveWebMeetings,n.uint32(1794).fork()).ldelim(),null!=t.PrivateRoom&&Object.hasOwnProperty.call(t,"PrivateRoom")&&l.ResponseWebMeetingPrivateRoom.encode(t.PrivateRoom,n.uint32(1810).fork()).ldelim(),null!=t.webRTCEndpoint&&Object.hasOwnProperty.call(t,"webRTCEndpoint")&&l.MyWebRTCEndpoint.encode(t.webRTCEndpoint,n.uint32(1818).fork()).ldelim(),null!=t.ChangeSDPStateResponse&&Object.hasOwnProperty.call(t,"ChangeSDPStateResponse")&&l.ResponseWebRTCChangeSDPState.encode(t.ChangeSDPStateResponse,n.uint32(1826).fork()).ldelim(),null!=t.UnreadMessagesCount&&Object.hasOwnProperty.call(t,"UnreadMessagesCount")&&l.ResponseUnreadMessagesCount.encode(t.UnreadMessagesCount,n.uint32(1834).fork()).ldelim(),null!=t.WakeupCalls&&Object.hasOwnProperty.call(t,"WakeupCalls")&&l.ResponseWakeupCalls.encode(t.WakeupCalls,n.uint32(1842).fork()).ldelim(),null!=t.OneTimeLogin&&Object.hasOwnProperty.call(t,"OneTimeLogin")&&l.ResponseOneTimeLogin.encode(t.OneTimeLogin,n.uint32(1850).fork()).ldelim(),null!=t.ChatFileProgress&&Object.hasOwnProperty.call(t,"ChatFileProgress")&&l.NotificationChatFileProgress.encode(t.ChatFileProgress,n.uint32(1858).fork()).ldelim(),null!=t.C2cState&&Object.hasOwnProperty.call(t,"C2cState")&&l.NotificationC2CState.encode(t.C2cState,n.uint32(1866).fork()).ldelim(),null!=t.ResponseRecordings&&Object.hasOwnProperty.call(t,"Re
1sponseRecordings")&&l.ResponseRecordings.encode(t.ResponseRecordings,n.uint32(1874).fork()).ldelim(),null!=t.ConversationRemoved&&Object.hasOwnProperty.call(t,"ConversationRemoved")&&l.NotificationConversationRemoved.encode(t.ConversationRemoved,n.uint32(1882).fork()).ldelim(),null!=t.ConversationInfo&&Object.hasOwnProperty.call(t,"ConversationInfo")&&l.ResponseConversationInfo.encode(t.ConversationInfo,n.uint32(1890).fork()).ldelim(),null!=t.ChatTransferred&&Object.hasOwnProperty.call(t,"ChatTransferred")&&l.NotificationChatTransferred.encode(t.ChatTransferred,n.uint32(1898).fork()).ldelim(),null!=t.ChatRating&&Object.hasOwnProperty.call(t,"ChatRating")&&l.NotificationChatRating.encode(t.ChatRating,n.uint32(1906).fork()).ldelim(),null!=t.AnonymousClosed&&Object.hasOwnProperty.call(t,"AnonymousClosed")&&l.AnonymousSessionClosed.encode(t.AnonymousClosed,n.uint32(1914).fork()).ldelim(),null!=t.ExactMatchResponse&&Object.hasOwnProperty.call(t,"ExactMatchResponse")&&l.ResponseExactMatch.encode(t.ExactMatchResponse,n.uint32(1922).fork()).ldelim(),null!=t.DeliveryStatus&&Object.hasOwnProperty.call(t,"DeliveryStatus")&&l.NotificationChatMessageStatus.encode(t.DeliveryStatus,n.uint32(1930).fork()).ldelim(),null!=t.ChatMonitoringFullState&&Object.hasOwnProperty.call(t,"ChatMonitoringFullState")&&l.ResponseChatMonitoring.encode(t.ChatMonitoringFullState,n.uint32(1938).fork()).ldelim(),null!=t.ChatMonitoringNotification&&Object.hasOwnProperty.call(t,"ChatMonitoringNotification")&&l.ChatMonitoringEvent.encode(t.ChatMonitoringNotification,n.uint32(1946).fork()).ldelim(),null!=t.MyProviders&&Object.hasOwnProperty.call(t,"MyProviders")&&l.ResponseAvailableProviders.encode(t.MyProviders,n.uint32(1954).fork()).ldelim(),null!=t.MyQueues&&Object.hasOwnProperty.call(t,"MyQueues")&&l.ResponseMyQueues.encode(t.MyQueues,n.uint32(1962).fork()).ldelim(),null!=t.ConversationEvents&&Object.hasOwnProperty.call(t,"ConversationEvents")&&l.ResponseConversationEvents.encode(t.ConversationEvents,n.uint32(1970).fork()).ldelim(),null!=t.WmParams&&Object.hasOwnProperty.call(t,"WmParams")&&l.WmBridgeParameters.encode(t.WmParams,n.uint32(1978).fork()).ldelim(),null!=t.NotificationMeetingRows&&Object.hasOwnProperty.call(t,"NotificationMeetingRows")&&l.MeetingRows.encode(t.NotificationMeetingRows,n.uint32(1986).fork()).ldelim(),null!=t.ResponseConversations&&Object.hasOwnProperty.call(t,"ResponseConversations")&&l.ResponseGetConversations.encode(t.ResponseConversations,n.uint32(1994).fork()).ldelim(),null!=t.MeetingState&&Object.hasOwnProperty.call(t,"MeetingState")&&l.MeetingStateNotification.encode(t.MeetingState,n.uint32(2002).fork()).ldelim(),null!=t.MeetingStates&&Object.hasOwnProperty.call(t,"MeetingStates")&&l.MeetingStateNotifications.encode(t.MeetingStates,n.uint32(2010).fork()).ldelim(),null!=t.RespCheckIpBlocked&&Object.hasOwnProperty.call(t,"RespC
1heckIpBlocked")&&l.ResponseCheckIpBlocked.encode(t.RespCheckIpBlocked,n.uint32(2018).fork()).ldelim(),null!=t.PreviousInteractions&&Object.hasOwnProperty.call(t,"PreviousInteractions")&&l.ResponsePreviousInteractions.encode(t.PreviousInteractions,n.uint32(2026).fork()).ldelim(),null!=t.ChatTemplateCategories&&Object.hasOwnProperty.call(t,"ChatTemplateCategories")&&l.ResponseGetChatTemplateCategories.encode(t.ChatTemplateCategories,n.uint32(2034).fork()).ldelim(),null!=t.ChatTemplateLanguages&&Object.hasOwnProperty.call(t,"ChatTemplateLanguages")&&l.ResponseGetChatTemplateLanguages.encode(t.ChatTemplateLanguages,n.uint32(2042).fork()).ldelim(),null!=t.ChatTemplates&&Object.hasOwnProperty.call(t,"ChatTemplates")&&l.ResponseGetChatTemplates.encode(t.ChatTemplates,n.uint32(2050).fork()).ldelim(),null!=t.MeetingDetails&&Object.hasOwnProperty.call(t,"MeetingDetails")&&l.ResponseMeetingDetails.encode(t.MeetingDetails,n.uint32(2058).fork()).ldelim(),null!=t.ChatMessageChanged&&Object.hasOwnProperty.call(t,"ChatMessageChanged")&&l.NotificationChatMessageChanged.encode(t.ChatMessageChanged,n.uint32(2066).fork()).ldelim(),null!=t.CrmContactList&&Object.hasOwnProperty.call(t,"CrmContactList")&&l.ResponseCrmContacts.encode(t.CrmContactList,n.uint32(2074).fork()).ldelim(),null!=t.FoundCrmContacts&&Object.hasOwnProperty.call(t,"FoundCrmContacts")&&l.ResponseSearchCrmContacts.encode(t.FoundCrmContacts,n.uint32(2082).fork()).ldelim(),null!=t.CallControlResponse&&Object.hasOwnProperty.call(t,"CallControlResponse")&&l.ResponseCallControl.encode(t.CallControlResponse,n.uint32(2090).fork()).ldelim(),null!=t.CallQualityReport&&Object.hasOwnProperty.call(t,"CallQualityReport")&&l.ResponseCallQualityReport.encode(t.CallQualityReport,n.uint32(2098).fork()).ldelim(),null!=t.BatchExactMatchResult&&Object.hasOwnProperty.call(t,"BatchExactMatchResult")&&l.ResponseBatchExactMatch.encode(t.BatchExactMatchResult,n.uint32(2106).fork()).ldelim(),null!=t.AudioTranscodeResults&&Object.hasOwnProperty.call(t,"AudioTranscodeResults")&&l.ResponseAudioTranscode.encode(t.AudioTranscodeResults,n.uint32(2114).fork()).ldelim(),null!=t.Rights&&Object.hasOwnProperty.call(t,"Rights")&&l.ResponseRights.encode(t.Rights,n.uint32(2122).fork()).ldelim(),null!=t.FwdProfiles&&Object.hasOwnProperty.call(t,"FwdProfiles")&&l.ResponseGetFwdProfiles.encode(t.FwdProfiles,n.uint32(2130).fork()).ldelim(),null!=t.TranscriptionResponse&&Object.hasOwnProperty.call(t,"TranscriptionResponse")&&l.ResponseGetTranscription.encode(t.TranscriptionResponse,n.uint32(2138).fork()).ldelim(),null!=t.ResponseVoiceMails&&Object.hasOwnProperty.call(t,"ResponseVoiceMails")&&l.VoiceMails.encode(t.ResponseVoiceMails,n.uint32(2146).fork()).ldelim(),null!=t.GroupInfos&&Object.hasOwnProperty.call(t,"GroupInfos")&&l.ResponseGroupInfos.encode(t.GroupInfos,n.uint32(2154).fork()).ldelim(),null!=t.GetMyProviders&&Object.hasOwnProperty.call(t,"GetMyProviders")&&l.RequestAvailableProviders.encode(t.GetMyProviders,n.uint32(4002).fork()).ldelim(),null!=t.GetMyQueues&&Object.hasOwnProperty.call(t,"GetMyQueues")&&l.RequestMyQueues.encode(t.GetMyQueues,n.uint32(4010).fork()).ldelim(),null!=t.GetQmLastMessages&&Object.hasOwnProperty.call(t,"GetQmLastMessages")&&l.RequestGetQMLastMessages.encode(t.GetQmLastMessages,n.uint32(4018).fork()).ldelim(),null!=t.GetConversationEvents&&Object.hasOwnProperty.call(t,"GetConversationEvents")&&l.RequestGetConversationEvents.encode(t.GetConversationEvents,n.uint32(4026).fork()).ldelim(),null!=t.GetQMConversationEvents&&Object.hasOwnProperty.call(t,"GetQMConversationEvents")&&l.RequestGetQMConversationEvents.encode(t.GetQMConversationEvents,n.uint32(4034).fork()).ldelim(),null!=t.RefreshConversation&&Object.hasOwnProperty.call(t,"RefreshConversation")&&l.RequestRefreshConversation.encode(t.RefreshConversation,n.uint32(4042).fork()).ldelim(),null!=t.UpdateMeetingDocuments&&Object.hasOwnProperty.call(t,"UpdateMeetingDocuments")&&l.RequestUpdateMeetingDocuments.encode(t.UpdateMeetingDocuments,n.uint32(4050).fork()).ldelim(),null!=t.WebMeetingPollings&&Object.hasOwnProperty.call(t,"WebMeetingPollings")&&l.WmPollings.encode(t.WebMeetingPollings,n.uint32(4058).fork()).ldelim(),null!=t.ForwardMessage&&Object.hasOwnProperty.call(t,"ForwardMessage")&&l.RequestForwardChatMessage.encode(t.ForwardMessage,n.uint32(4066).fork()).ldelim(),null!=t.PutWebMeetingReports2&&Object.hasOwnProperty.call(t,"PutWebMeetingReports2")&&l.RequestPutWebMeetingReports2.encode(t.PutWebMeetingReports2,n.uint32(4074).fork()).ldelim(),null!=t.GetConversations&&Object.hasOwnProperty.call(t,"GetConversations")&&l.RequestGetConversations.encode(t.GetConversations,n.uint32(4082).fork()).ldelim(),null!=t.CloseMeeting&&Object.hasOwnProperty.call(t,"CloseMeeting")&&l.RequestCloseMeeting.encode(t.CloseMeeting,n.uint32(4090).fork()).ldelim(),null!=t.SetOfficeHoursMode&&Object.hasOwnProperty.call(t,"SetOfficeHoursMode")&&l.RequestSetOfficeHoursMode.encode(t.SetOfficeHoursMode,n.uint32(4098).fork()).ldelim(),null!=t.RqCheckIpBlocked&&Object.hasOwnProperty.call(t,"RqCheckIpBlocked")&&l.RequestCheckIpBlocked.encode(t.RqCheckIpBlocked,n.uint32(4106).fork()).ldelim(),null!=t.SetLanguage&&Object.hasOwnProperty.call(t,"SetLanguage")&&l.RequestSetLanguage.encode(t.SetLanguage,n.uint32(4114).fork()).ldelim(),null!=t.GetPreviousInteractions&&Object.hasOwnProperty.call(t,"GetPreviousInteractions")&&l.RequestPreviousInteractions.encode(t.GetPreviousInteractions,n.uint32(4122).fork()).ldelim(),null!=t.UpdateGroup&&Object.hasOwnProperty.call(t,"UpdateGroup")&&l.RequestUpdateGroup.encode(t.UpdateGroup,n.uint32(4130).fork()).ldelim(),null!=t.GetChatTemplateCategories&&Object.hasOwnProperty.call(t,"GetChatTemplateCategories")&&l.RequestGetChatTemplateCategories.encode(t.GetChatTemplateCategories,n.uint32(4138).fork()).ldelim(),null!=t.GetChatTemplateLanguages&&Object.hasOwnProperty.call(t,"GetChatTemplateLanguages")&&l.RequestGetChatTemplateLanguages.encode(t.GetChatTemplateLanguages,n.uint32(4146).fork()).ldelim(),null!=t.GetChatTemplates&&Object.hasOwnProperty.call(t,"GetChatTemplates")&&l.RequestGetChatTemplates.encode(t.GetChatTemplates,n.uint32(4154).fork()).ldelim(),null!=t.UpdateCategory&&Object.hasOwnProperty.call(t,"UpdateCategory")&&l.RequestUpdate
1Category.encode(t.UpdateCategory,n.uint32(4162).fork()).ldelim(),null!=t.UpdateTemplate&&Object.hasOwnProperty.call(t,"UpdateTemplate")&&l.RequestUpdateChatTemplate.encode(t.UpdateTemplate,n.uint32(4170).fork()).ldelim(),null!=t.BulkUpdateCategory&&Object.hasOwnProperty.call(t,"BulkUpdateCategory")&&l.RequestBulkUpdateCategory.encode(t.BulkUpdateCategory,n.uint32(4178).fork()).ldelim(),null!=t.GetMeetingDetails&&Object.hasOwnProperty.call(t,"GetMeetingDetails")&&l.RequestGetMeetingDetails.encode(t.GetMeetingDetails,n.uint32(4186).fork()).ldelim(),null!=t.SetMessageEmoji&&Object.hasOwnProperty.call(t,"SetMessageEmoji")&&l.RequestSetMessageEmoji.encode(t.SetMessageEmoji,n.uint32(4194).fork()).ldelim(),null!=t.EditChatMessage&&Object.hasOwnProperty.call(t,"EditChatMessage")&&l.RequestEditChatMessage.encode(t.EditChatMessage,n.uint32(4202).fork()).ldelim(),null!=t.GetMessagesByIds&&Object.hasOwnProperty.call(t,"GetMessagesByIds")&&l.RequestGetMessages.encode(t.GetMessagesByIds,n.uint32(4210).fork()).ldelim(),null!=t.GetCrmContacts&&Object.hasOwnProperty.call(t,"GetCrmContacts")&&l.RequestGetCrmContacts.encode(t.GetCrmContacts,n.uint32(4218).fork()).ldelim(),null!=t.SearchCrmContacts&&Object.hasOwnProperty.call(t,"SearchCrmContacts")&&l.RequestSearchCrmContacts.encode(t.SearchCrmContacts,n.uint32(4226).fork()).ldelim(),null!=t.BatchExactMatch&&Object.hasOwnProperty.call(t,"BatchExactMatch")&&l.RequestBatchExactMatch.encode(t.BatchExactMatch,n.uint32(4234).fork()).ldelim(),null!=t.CallReport&&Object.hasOwnProperty.call(t,"CallReport")&&l.RequestCallReport.encode(t.CallReport,n.uint32(4442).fork()).ldelim(),null!=t.Monitor&&Object.hasOwnProperty.call(t,"Monitor")&&l.RequestMonitor.encode(t.Monitor,n.uint32(4450).fork()).ldelim(),null!=t.SendAudioFiles&&Object.hasOwnProperty.call(t,"SendAudioFiles")&&l.RequestAudioTranscode.encode(t.SendAudioFiles,n.uint32(4458).fork()).ldelim(),null!=t.GetCallQualityReport&&Object.hasOwnProperty.call(t,"GetCallQualityReport")&&l.RequestCallQualityReport.encode(t.GetCallQualityReport,n.uint32(4466).fork()).ldelim(),null!=t.GetRights&&Object.hasOwnProperty.call(t,"GetRights")&&l.RequestRights.encode(t.GetRights,n.uint32(4474).fork()).ldelim(),null!=t.LookupContactNew&&Object.hasOwnProperty.call(t,"LookupContactNew")&&l.RequestLookupContactNew.encode(t.LookupContactNew,n.uint32(4482).fork()).ldelim(),null!=t.GetFwdProfiles&&Object.hasOwnProperty.call(t,"GetFwdProfiles")&&l.RequestGetFwdProfiles.encode(t.GetFwdProfiles,n.uint32(4490).fork()).ldelim(),null!=t.BlockPhoneNumber&&Object.hasOwnProperty.call(t,"BlockPhoneNumber")&&l.RequestBlockPhoneNumber.encode(t.BlockPhoneNumber,n.uint32(4498).fork()).ldelim(),null!=t.UnblockPhoneNumber&&Object.hasOwnProperty.call(t,"UnblockPhoneNumber")&&l.RequestUnblockPhoneNumber.encode(t.UnblockPhoneNumber,n.uint32(4506).fork()).ldelim(),null!=t.GetTranscription&&Object.hasOwnProperty.call(t,"GetTranscription")&&l.RequestGetTranscription.encode(t.GetTranscription,n.uint32(4514).fork()).ldelim(),null!=t.GetVoiceMails&&Object.hasOwnProperty.call(t,"GetVoiceMails")&&l.RequestGetVoiceMails.encode(t.GetVoiceMails,n.uint32(4522).fork()).ldelim(),null!=t.GetGroupInfos&&Object.hasOwnProperty.call(t,"GetGroupInfos")&&l.RequestGetGroupInfos.encode(t.GetGroupInfos,n.uint32(4530).fork()).ldelim(),n},i.decode=function(t,n,u){t instanceof s||(t=s.create(t));let a=void 0===n?t.len:t.pos+n,o=new l.GenericMessage;for(;t.pos<a;){let c=t.uint32();if(c===u)break;switch(c>>>3){case 1:o.MessageId=t.int32();break;case 100:o.LoginRequest=l.Login.decode(t,t.uint32());break;case 101:o.LogoutRequest=l.Logout.decode(t,t.uint32());break;case 102:o.GetMyInfo=l.RequestMyInfo.decode(t,t.uint32());break;case 103:o.ChangeStatus=l.RequestChangeStatus.decode(t,t.uint32());break;case 104:o.LookupContact=l.RequestLookupContact.decode(t,t.uint32());break;case 105:o.GetFile=l.RequestGetFile.decode(t,t.uint32());break;case 106:o.GetCallHistory=l.RequestCallHistory.decode(t,t.uint32());break;case 107:o.GetCallHistoryCount=l.RequestCallHistoryCount.decode(t,t.uint32());break;case 108:o.UpdateFwdProfiles=l.RequestUpdateFwdProfile.decode(t,t.uint32());break;case 109:o.GetExtensions=l.RequestGetExtensions.decode(t,t.uint32());break;case 110:o.SendChatMessage=l.RequestSendChatMessage.decode(t,t.uint32());break;case 111:o.GetMyMessages=l.RequestGetMyMessages.decode(t,t.uint32());break;case 112:o.MessagesReceived=l.RequestSetChatReceived.decode(t,t.uint32());break;case 113:o.PutFile=l.RequestPutFile.decode(t,t.uint32());break;case 114:o.SetVMRead=l.RequestSetVoiceMailHeard.decode(t,t.uint32());break;case 115:o.DropCall=l.RequestDropCall.decode(t,t.uint32());break;case 116:o.DivertCall=l.RequestDivertCall.decode(t,t.uint32());break;case 117:o.PickupCall=l.RequestPickupCall.decode(t,t.uint32());break;case 118:o.TransferCall=l.RequestTransferCall.decode(t,t.uint32());break;case 119:o.MakeCall=l.RequestMakeCall.decode(t,t.uint32());break;
1case 120:o.UpdateContact=l.RequestUpdateContact.decode(t,t.uint32());break;case 121:o.ChangeConference=l.RequestChangeConference.decode(t,t.uint32());break;case 122:o.GetSystemParameters=l.RequestGetSystemParameters.decode(t,t.uint32());break;case 123:o.BargeInCall=l.RequestBargeInCall.decode(t,t.uint32());break;case 124:o.GetAccessRights=l.RequestConnectionAccessRights.decode(t,t.uint32());break;case 125:o.ResetMyMissedCalls=l.RequestResetMyMissedCalls.decode(t,t.uint32());break;case 126:o.DeleteVM=l.RequestDeleteVoiceMail.decode(t,t.uint32());break;case 127:o.PlayVM=l.RequestPlayVoiceMail.decode(t,t.uint32());break;case 128:o.GetFolderRequest=l.RequestGetFolder.decode(t,t.uint32());break;case 129:o.DeleteFile=l.RequestDeleteFile.decode(t,t.uint32());break;case 130:o.PlayRec=l.RequestPlayRecording.decode(t,t.uint32());break;case 131:o.ServerTimeRequest=l.RequestServerTime.decode(t,t.uint32());break;case 132:o.SetQueueStatus=l.RequestSetQueueStatus.decode(t,t.uint32());break;case 133:o.ScheduleConferenceRequest=l.RequestUpsertScheduledConference.decode(t,t.uint32());break;case 134:o.GetSchedule=l.RequestGetConferenceSchedule.decode(t,t.uint32());break;case 135:o.CreateConferenceScheduleTemplate=l.RequestCreateConferenceScheduleTemplate.decode(t,t.uint32());break;case 136:o.JoinCallParticipantsToConference=l.RequestJoinCallParticipantsToConference.decode(t,t.uint32());break;case 137:o.RecordCall=l.RequestRecordCall.decode(t,t.uint32());break;case 138:o.GetMyChatParties=l.RequestMyChatParties.decode(t,t.uint32());break;case 139:o.DeleteChat=l.RequestDeleteChat.decode(t,t.uint32());break;case 140:o.GetMyRights=l.RequestGetMyRights.decode(t,t.uint32());break;case 141:o.GetGreetings=l.RequestGetGreetings.decode(t,t.uint32());break;case 142:o.SetGreetings=l.RequestSetGreetings.decode(t,t.uint32());break;case 143:o.PlayVMGreetingOnPhone=l.RequestPlayVMGreetingOnPhone.decode(t,t.uint32());break;case 144:o.RecordVMGreetingFromPhone=l.RequestRecordVMGreetingFromPhone.decode(t,t.uint32());break;case 145:o.GetQueueCalls=l.RequestQueueCalls.decode(t,t.uint32());break;case 146:o.GetQueueCallsCount=l.RequestQueueCallsCount.decode(t,t.uint32());break;case 147:o.SetQueueCallData=l.RequestSetQueueCallData.decode(t,t.uint32());break;case 148:o.DeleteCallHistory=l.RequestDeleteCallHistory.decode(t,t.uint32());break;case 149:o.SetQueueCallDataBulk=l.RequestSetQueueCallDataBulk.decode(t,t.uint32());break;case 150:o.UpdateWebRtcInboundRules=l.RequestUpdateWebRtcInboundRules.decode(t,t.uint32());break;case 151:o.SendWelcomeEmail=l.RequestWelcomeEmail.decode(t,t.uint32());break;case 152:o.ConvertToAutoAnswer=l.RequestAutoAnswerConnection.decode(t,t.uint32());break;case 153:o.UpsertWebMeeting=l.WebMeetingState.decode(t,t.uint32());break;case 154:o.GetWebMeetings=l.RequestGetWebMeetings.decode(t,t.uint32());break;case 157:o.PutWebMeetingReports=l.RequestPutWebMeetingReports.decode(t,t.uint32());break;case 158:o.CreatePrivateRoom=l.RequestWebMeetingPrivateRoom.decode(t,t.uint32());break;case 159:o.SendError=l.RequestWebMeetingError.decode(t,t.uint32());break;case 160:o.ReinviteOrganizer=l.RequestWmReinviteOrganizer.decode(t,t.uint32());break;case 161:o.SetSharedBlfs=l.RequestSetSharedBlfs.decode(t,t.uint32());break;case 162:o.GetMyLastMessages=l.RequestGetMyLastMessages.decode(t,t.uint32());break;case 163:o.registerWebRTC=l.RequestRegisterWebRTCEndpoint.decode(t,t.uint32());break;case 164:o.ChangeSDPState=l.RequestWebRTCChangeSDPState.decode(t,t.uint32());break;case 165:o.GetUnreadMessagesCount=l.RequestUnreadMessagesCount.decode(t,t.uint32());break;case 166:o.JoinCalls=l.RequestJoinCalls.decode(t,t.uint32());break;case 167:o.RecordingControl=l.RequestControlCallRecording.decode(t,t.uint32());break;case 168:o.ChangeWCPassword=l.RequestChangeWebClientPassword.decode(t,t.uint32());break;case 169:o.UpdateFavorites=l.RequestUpdateFavorites.decode(t,t.uint32());break;case 170:o.GetContactsByRef=l.RequestContactsByRef.decode(t,t.uint32());break;case 171:o.CleanExtension=l.RequestCleanExtension.decode(t,t.uint32());break;case 172:o.AssignExtension=l.RequestAssignExtension.decode(t,t.uint32());break;case 173:o.SetWakeupCall=l.RequestSetWakeupCall.decode(t,t.uint32());break;case 174:o.DeleteWakeupCall=l.RequestDeleteWakeupCall.decode(t,t.uint32());break;case 175:o.GetWakeupCalls=l.RequestGetWakeupCalls.decode(t,t.uint32());break;case 176:o.GetOneTimeLogin=l.RequestOneTimeLogin.decode(t,t.uint32());break;
1case 177:o.UpdatePushSubscriptions=l.RequestUpdatePushSubscriptions.decode(t,t.uint32());break;case 178:o.RefreshSubscription=l.PushSubscriptionData.decode(t,t.uint32());break;case 179:o.SendChatFile=l.RequestSendChatFile.decode(t,t.uint32());break;case 180:o.UserTypingChat=l.ChatTyping.decode(t,t.uint32());break;case 181:o.UpdateWebMeetingParticipants=l.ConferenceState.decode(t,t.uint32());break;case 182:o.BlockAnonymous=l.RequestBlacklistAnonymous.decode(t,t.uint32());break;case 183:o.DisconnectAnonymous=l.RequestDisconnectAnonymous.decode(t,t.uint32());break;case 184:o.GetRecordings=l.RequestGetRecordings.decode(t,t.uint32());break;case 185:o.DeleteRecording=l.RequestDeleteRecording.decode(t,t.uint32());break;case 186:o.UpdateConversation=l.RequestUpdateConversation.decode(t,t.uint32());break;case 187:o.TransferChatTo=l.RequestTransferChatTo.decode(t,t.uint32());break;case 188:o.AgentTakesOverChat=l.RequestAgentTakesOverChat.decode(t,t.uint32());break;case 189:o.CreateConversation=l.RequestCreateConversation.decode(t,t.uint32());break;case 190:o.SendMessageToConversation=l.RequestSendChatMessageToConversation.decode(t,t.uint32());break;case 191:o.SendChatRating=l.RequestChatRating.decode(t,t.uint32());break;case 192:o.UpdateUserSettings=l.RequestUpdateUserSettings.decode(t,t.uint32());break;case 193:o.ExactMatchRequest=l.RequestExactMatch.decode(t,t.uint32());break;case 194:o.GetContactById=l.RequestGetContactById.decode(t,t.uint32());break;case 195:o.StartChatMonitoring=l.RequestStartChatMonitoring.decode(t,t.uint32());break;case 196:o.StopChatMonitoring=l.RequestStopChatMonitoring.decode(t,t.uint32());break;case 197:o.WhisperMessage=l.RequestWhisperMessage.decode(t,t.uint32());break;case 198:o.CloseConversation=l.RequestCloseConversation.decode(t,t.uint32());break;case 199:o.ProviderMapping=l.RequestProviderMapping.decode(t,t.uint32());break;case 500:o.GetMyProviders=l.RequestAvailableProviders.decode(t,t.uint32());break;case 501:o.GetMyQueues=l.RequestMyQueues.decode(t,t.uint32());break;case 502:o.GetQmLastMessages=l.RequestGetQMLastMessages.decode(t,t.uint32());break;case 503:o.GetConversationEvents=l.RequestGetConversationEvents.decode(t,t.uint32());break;case 504:o.GetQMConversationEvents=l.RequestGetQMConversationEvents.decode(t,t.uint32());break;case 505:o.RefreshConversation=l.RequestRefreshConversation.decode(t,t.uint32());break;case 506:o.UpdateMeetingDocuments=l.RequestUpdateMeetingDocuments.decode(t,t.uint32());break;case 507:o.WebMeetingPollings=l.WmPollings.decode(t,t.uint32());break;case 508:o.ForwardMessage=l.RequestForwardChatMessage.decode(t,t.uint32());break;case 509:o.PutWebMeetingReports2=l.RequestPutWebMeetingReports2.decode(t,t.uint32());break;case 510:o.GetConversations=l.RequestGetConversations.decode(t,t.uint32());break;case 511:o.CloseMeeting=l.RequestCloseMeeting.decode(t,t.uint32());break;case 512:o.SetOfficeHoursMode=l.RequestSetOfficeHoursMode.decode(t,t.uint32());break;case 513:o.RqCheckIpBlocked=l.RequestCheckIpBlocked.decode(t,t.uint32());break;case 514:o.SetLanguage=l.RequestSetLanguage.decode(t,t.uint32());break;case 515:o.GetPreviousInteractions=l.RequestPreviousInteractions.decode(t,t.uint32());break;case 516:o.UpdateGroup=l.RequestUpdateGroup.decode(t,t.uint32());break;case 517:o.GetChatTemplateCategories=l.RequestGetChatTemplateCategories.decode(t,t.uint32());break;case 518:o.GetChatTemplateLanguages=l.RequestGetChatTemplateLanguages.decode(t,t.uint32());break;
1case 519:o.GetChatTemplates=l.RequestGetChatTemplates.decode(t,t.uint32());break;case 520:o.UpdateCategory=l.RequestUpdateCategory.decode(t,t.uint32());break;case 521:o.UpdateTemplate=l.RequestUpdateChatTemplate.decode(t,t.uint32());break;case 522:o.BulkUpdateCategory=l.RequestBulkUpdateCategory.decode(t,t.uint32());break;case 523:o.GetMeetingDetails=l.RequestGetMeetingDetails.decode(t,t.uint32());break;case 524:o.SetMessageEmoji=l.RequestSetMessageEmoji.decode(t,t.uint32());break;case 525:o.EditChatMessage=l.RequestEditChatMessage.decode(t,t.uint32());break;case 526:o.GetMessagesByIds=l.RequestGetMessages.decode(t,t.uint32());break;case 527:o.GetCrmContacts=l.RequestGetCrmContacts.decode(t,t.uint32());break;case 528:o.SearchCrmContacts=l.RequestSearchCrmContacts.decode(t,t.uint32());break;case 529:o.BatchExactMatch=l.RequestBatchExactMatch.decode(t,t.uint32());break;case 555:o.CallReport=l.RequestCallReport.decode(t,t.uint32());break;case 556:o.Monitor=l.RequestMonitor.decode(t,t.uint32());break;case 557:o.SendAudioFiles=l.RequestAudioTranscode.decode(t,t.uint32());break;case 558:o.GetCallQualityReport=l.RequestCallQualityReport.decode(t,t.uint32());break;case 559:o.GetRights=l.RequestRights.decode(t,t.uint32());break;case 560:o.LookupContactNew=l.RequestLookupContactNew.decode(t,t.uint32());break;case 561:o.GetFwdProfiles=l.RequestGetFwdProfiles.decode(t,t.uint32());break;case 562:o.BlockPhoneNumber=l.RequestBlockPhoneNumber.decode(t,t.uint32());break;case 563:o.UnblockPhoneNumber=l.RequestUnblockPhoneNumber.decode(t,t.uint32());break;case 564:o.GetTranscription=l.RequestGetTranscription.decode(t,t.uint32());break;case 565:o.GetVoiceMails=l.RequestGetVoiceMails.decode(t,t.uint32());break;case 566:o.GetGroupInfos=l.RequestGetGroupInfos.decode(t,t.uint32());break;case 200:o.LoginResponse=l.LoginInfo.decode(t,t.uint32());break;case 201:o.MyInfo=l.MyExtensionInfo.decode(t,t.uint32());break;case 202:o.LookupResult=l.ResponseLookup.decode(t,t.uint32());break;case 203:o.FileResult=l.ResponseFile.decode(t,t.uint32());break;case 204:o.CallHistory=l.ResponseCallHistory.decode(t,t.uint32());break;case 205:o.CallHistoryCount=l.ResponseCallHistoryCount.decode(t,t.uint32());break;case 206:o.Extensions=l.ResponseGetExtensions.decode(t,t.uint32());break;case 207:o.Acknowledge=l.ResponseAcknowledge.decode(t,t.uint32());break;case 208:o.GroupsInfo=l.Groups.decode(t,t.uint32());break;case 209:o.MyChatMessages=l.ResponseMyMessages.decode(t,t.uint32());break;case 210:o.SystemParameters=l.ResponseSystemParameters.decode(t,t.uint32());break;case 211:o.QueuesInfo=l.Queues.decode(t,t.uint32());break;case 212:o.ParkingsInfo=l.Parkings.decode(t,t.uint32());break;case 213:o.IVRsInfo=l.IVRs.decode(t,t.uint32());break;case 214:o.ConnectionCapabilityMask=l.ResponseConnectionAccessRights.decode(t,t.uint32());break;case 215:o.ExtensionsChangedEvent=l.ResponseExtensionsChanged.decode(t,t.uint32());break;case 216:o.GetFolderResponse=l.ResponseGetFolder.decode(t,t.uint32());break;case 217:o.ContactChangedEvent=l.ResponseContactChanged.decode(t,t.uint32());break;case 218:o.ServerTimeResponse=l.ResponseServerTime.decode(t,t.uint32());break;case 219:o.ActiveConferences=l.Conferences.decode(t,t.uint32());break;case 220:o.MyChatParties=l.ResponseMyChatParties.decode(t,t.uint32());break;case 221:o.MyRights=l.ResponseGetMyRights.decode(t,t.uint32());break;case 222:o.Greetings=l.ResponseGreetings.decode(t,t.uint32());break;case 223:o.QueueCalls=l.ResponseQueueCalls.decode(t,t.uint32());break;case 224:o.ActiveWebMeetings=l.WebMeetings.decode(t,t.uint32());break;case 226:o.PrivateRoom=l.ResponseWebMeetingPrivateRoom.decode(t,t.uint32());break;case 227:o.webRTCEndpoint=l.MyWebRTCEndpoint.decode(t,t.uint32());break;case 228:o.ChangeSDPStateResponse=l.ResponseWebRTCChangeSDPState.decode(t,t.uint32());break;case 229:o.UnreadMessagesCount=l.ResponseUnreadMessagesCount.decode(t,t.uint32());break;case 230:o.WakeupCalls=l.ResponseWakeupCalls.decode(t,t.uint32());break;case 231:o.OneTimeLogin=l.ResponseOneTimeLogin.decode(t,t.uint32());break;case 232:o.ChatFileProgress=l.NotificationChatFileProgress.decode(t,t.uint32());break;case 233:o.C2cState=l.NotificationC2CState.decode(t,t.uint32());break;case 234:o.ResponseRecordings=l.ResponseRecordings.decode(t,t.uint32());break;case 235:o.ConversationRemoved=l.NotificationConversationRemoved.decode(t,t.uint32());break;case 236:o.ConversationInfo=l.ResponseConversationInfo.decode(t,t.uint32());break;case 237:o.ChatTransferred=l.NotificationChatTransferred.decode(t,t.uint32());break;case 238:o.ChatRating=l.NotificationChatRating.decode(t,t.uint32());break;case 239:o.AnonymousClosed=l.AnonymousSessionClosed.decode(t,t.uint32());break;
1case 240:o.ExactMatchResponse=l.ResponseExactMatch.decode(t,t.uint32());break;case 241:o.DeliveryStatus=l.NotificationChatMessageStatus.decode(t,t.uint32());break;case 242:o.ChatMonitoringFullState=l.ResponseChatMonitoring.decode(t,t.uint32());break;case 243:o.ChatMonitoringNotification=l.ChatMonitoringEvent.decode(t,t.uint32());break;case 244:o.MyProviders=l.ResponseAvailableProviders.decode(t,t.uint32());break;case 245:o.MyQueues=l.ResponseMyQueues.decode(t,t.uint32());break;case 246:o.ConversationEvents=l.ResponseConversationEvents.decode(t,t.uint32());break;case 247:o.WmParams=l.WmBridgeParameters.decode(t,t.uint32());break;case 248:o.NotificationMeetingRows=l.MeetingRows.decode(t,t.uint32());break;case 249:o.ResponseConversations=l.ResponseGetConversations.decode(t,t.uint32());break;case 250:o.MeetingState=l.MeetingStateNotification.decode(t,t.uint32());break;case 251:o.MeetingStates=l.MeetingStateNotifications.decode(t,t.uint32());break;case 252:o.RespCheckIpBlocked=l.ResponseCheckIpBlocked.decode(t,t.uint32());break;case 253:o.PreviousInteractions=l.ResponsePreviousInteractions.decode(t,t.uint32());break;case 254:o.ChatTemplateCategories=l.ResponseGetChatTemplateCategories.decode(t,t.uint32());break;case 255:o.ChatTemplateLanguages=l.ResponseGetChatTemplateLanguages.decode(t,t.uint32());break;case 256:o.ChatTemplates=l.ResponseGetChatTemplates.decode(t,t.uint32());break;case 257:o.MeetingDetails=l.ResponseMeetingDetails.decode(t,t.uint32());break;case 258:o.ChatMessageChanged=l.NotificationChatMessageChanged.decode(t,t.uint32());break;case 259:o.CrmContactList=l.ResponseCrmContacts.decode(t,t.uint32());break;case 260:o.FoundCrmContacts=l.ResponseSearchCrmContacts.decode(t,t.uint32());break;case 261:o.CallControlResponse=l.ResponseCallControl.decode(t,t.uint32());break;case 262:o.CallQualityReport=l.ResponseCallQualityReport.decode(t,t.uint32());break;case 263:o.BatchExactMatchResult=l.ResponseBatchExactMatch.decode(t,t.uint32());break;case 264:o.AudioTranscodeResults=l.ResponseAudioTranscode.decode(t,t.uint32());break;case 265:o.Rights=l.ResponseRights.decode(t,t.uint32());break;case 266:o.FwdProfiles=l.ResponseGetFwdProfiles.decode(t,t.uint32());break;case 267:o.TranscriptionResponse=l.ResponseGetTranscription.decode(t,t.uint32());break;case 268:o.ResponseVoiceMails=l.VoiceMails.decode(t,t.uint32());break;case 269:o.GroupInfos=l.ResponseGroupInfos.decode(t,t.uint32());break;default:t.skipType(7&c)}}return o},i.typeMap={100:lo,101:uo,102:zn,103:Ao,104:No,105:xo,106:Zo,107:mo,108:so,109:il,110:sl,111:pl,112:Ol,113:_o,114:El,115:Ll,116:Bl,117:Wl,118:Ul,119:Hl,120:Jl,121:$l,122:Jn,123:_l,124:Yl,125:Zl,126:ql,127:Fl,128:tc,129:ec,130:ic,131:Kn,132:oc,133:Co,134:wo,135:Go,136:zl,137:lc,138:kl,139:Rl,140:uc,141:sc,142:fc,143:pc,144:bc,145:Wo,146:Uo,147:Ho,148:el,149:Qo,150:yc,151:hc,152:Ql,153:Ro,154:Mo,157:So,158:Io,159:To,160:dc,161:Oc,162:bl,163:Yn,164:kc,165:Mc,166:Vl,167:cc,168:Pc,169:po,170:Ic,171:jc,172:Tc,173:Sc,174:vc,175:wc,176:Ac,177:Dc,178:gc,179:rl,180:Ec,181:ko,182:qc,183:Lc,184:_c,185:Uc,186:Il,187:Sl,188:wl,189:Pl,190:fl,191:Hc,192:Oo,193:go,194:Fo,195:Jc,196:$c,197:Dl,198:Al,199:Xc,500:Zc,501:Vc,502:hl,503:tu,504:nu,505:iu,506:lu,507:uu,508:ru,509:vo,510:jl,511:fu,512:Kl,513:pu,514:ho,515:yu,516:du,517:Ou,518:Mu,519:Iu,520:Cu,521:ju,522:Pu,523:Su,524:ll,525:cl,526:yl,527:wu,528:Au,529:Eo,555:zo,556:Jo,557:gu,558:Yo,559:$o,560:Eu,561:fo,562:qu,563:Fu,564:Bc,565:yo,566:Lu,200:co,201:$t,202:Lo,203:Bo,204:tl,205:nl,206:ol,207:Yt,208:Vn,209:dl,210:Xt,211:Zt,212:tn,213:mt,214:Xl,215:ml,216:nc,217:$n,218:nn,219:Kt,220:Cl,221:ac,222:rc,223:Vo,224:Po,226:jo,227:en,228:Cc,229:Rc,230:Gc,231:Nc,232:al,233:Fc,234:xc,235:Gl,236:Ml,237:vl,238:Qc,239:Nl,240:Do,241:gl,242:Kc,243:Yc,244:mc,245:zc,246:eu,247:ou,248:cu,249:Tl,250:au,251:su,252:bu,253:hu,254:ku,255:Ru,256:Tu,257:vu,258:ul,259:Gu,260:Nu,261:xl,262:Xo,263:qo,264:Du,265:Ko,266:ro,267:Wc,268:bo,269:xu},i})();class Xn{encode(e){return on.encode(e.toGenericMessage()).finish()}decode(e){try{const t=on.decode(e,e.length);return Object.entries(t).find(([n])=>"MessageId"!==n)[1]}catch{return console.warn("Invalid notification"),null}}}const Zn="application/octet-stream";class K{static Merge(e,t){return t.Action===B.FullUpdate||t.Action===B.Updated?K.MergePlainObject(e,t):t.Action||Object.assign(e,t),e}static notify(e,t){const n=Reflect.get(e,t.toString()+"$");void 0!==n&&n.next(Reflect.get(e,t))}static MergePlainObject(e,t){if(void 0===e)return;const n=Reflect.ownKeys(t),u=n.find(o=>"Action"===o),a=u?Reflect.get(t,u):void 0;n.filter(o=>
1"Action"!==o&&"Id"!==o).forEach(o=>{const c=Reflect.get(t,o),d=Reflect.get(e,o);if(void 0!==c){if(c instanceof Array){const P=c;if(0===P.length){if(a!==B.FullUpdate)return;Reflect.set(e,o,c)}if(P[0]instanceof Object){const A={};(d||[]).forEach(L=>{A[L.Id]=L}),P.forEach(L=>{const q=L.Id,_=A[q];switch(L.Action){case B.Deleted:delete A[q];break;case B.FullUpdate:A[q]=L;break;case B.Inserted:case B.Updated:A[q]=void 0===_?L:K.Merge(_,L)}}),Reflect.set(e,o,Object.values(A))}else Reflect.set(e,o,c)}else c instanceof Object?Reflect.set(e,o,void 0===d?c:K.Merge(d,c)):Reflect.set(e,o,c);K.notify(e,o)}})}}const mn=new Date(0);function te(i){return function Uu(i){return new ao({Year:i.getUTCFullYear(),Day:i.getUTCDate(),Month:i.getUTCMonth()+1,Hour:i.getUTCHours(),Minute:i.getUTCMinutes(),Second:i.getUTCSeconds()})}(new Date(i))}function ne(i){return i?new Date(function Hu(i){return i?Date.UTC(i.Year,i.Month-1,i.Day,i.Hour,i.Minute,i.Second):0}(i)):mn}const zu=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,kt=i=>{if("string"!=typeof i)throw new TypeError("Invalid argument expected string");const e=i.match(zu);
1if(!e)throw new Error(`Invalid argument not valid semver ('${i}' received)`);return e.shift(),e},ee=i=>"*"===i||"x"===i||"X"===i,ie=i=>{const e=parseInt(i,10);return isNaN(e)?i:e},$u=(i,e)=>{if(ee(i)||ee(e))return 0;const[t,n]=((i,e)=>typeof i!=typeof e?[String(i),String(e)]:[i,e])(ie(i),ie(e));return t>n?1:t<n?-1:0},ot=(i,e)=>{for(let t=0;t<Math.max(i.length,e.length);t++){const n=$u(i[t]||"0",e[t]||"0");if(0!==n)return n}return 0},oe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},le=Object.keys(oe),Xu=i=>{if("string"!=typeof i)throw new TypeError("Invalid operator type, expected string but got "+typeof i);if(-1===le.indexOf(i))throw new Error(`Invalid operator, expected one of ${le.join("|")}`)},Ct=(i,e)=>{if((e=e.replace(/([><=]+)\s+/g,"$1")).includes("||"))return e.split("||").some(W=>Ct(i,W));if(e.includes(" - ")){const[W,U]=e.split(" - ",2);return Ct(i,`>=${W} <=${U}`)}if(e.includes(" "))return e.trim().replace(/\s{2,}/g," ").split(" ").every(W=>Ct(i,W));const t=e.match(/^([<>=~^]+)/),n=t?t[1]:"=";if("^"!==n&&"~"!==n)return((i,e,t)=>{Xu(t);const n=((i,e)=>{const t=kt(i),n=kt(e),u=t.pop(),a=n.pop(),o=ot(t,n);return 0!==o?o:u&&a?ot(u.split("."),a.split(".")):u||a?u?-1:1:0})(i,e);return oe[t].includes(n)})(i,e,n);const[u,a,o,,c]=kt(i),[d,P,j,,A]=kt(e),L=[u,a,o],q=[d,P??"x",j??"x"];if(A&&(!c||0!==ot(L,q)||-1===ot(c.split("."),A.split("."))))return!1;const _=q.findIndex(W=>"0"!==W)+1,x="~"===n?2:_>1?_:1;return!(0!==ot(L.slice(0,x),q.slice(0,x))||-1===ot(L.slice(x),q.slice(x)))};class mu{loggerService;data;basePath;caps;encoder=new Xn;headers;requestMyInfoSent=!1;myInfo=new $t;queues=new Zt;parkings=new tn;IVRs=new mt;conferences=new Kt;myWebRTCEndpoint=new en;groupsMap={};systemParameters;webRtcRegisterRequested=!1;contactCache={};timeDelta;constructor(e,t,n){this.loggerService=e,this.data=t,this.basePath=n,this.caps=function Zu(i){return{pickupEnabled:Ct(i,">=18.0.3")}}(t.version),this.headers=function Bu(i){return{Accept:Zn,"Content-Type":Zn,MyPhoneSession:i,"ngsw-bypass":"bypass"}}(t.sessionKey)}replayNotifications(){const e=[];return this.myInfo.Action===B.FullUpdate&&e.push(this.myInfo),this.queues.Action===B.FullUpdate&&e.push(this.queues),this.conferences.Action===B.FullUpdate&&e.push(this.conferences),e.push(...Object.values(this.groupsMap)),this.IVRs.Action===B.FullUpdate&&e.push(this.IVRs),this.parkings.Action===B.FullUpdate&&e.push(this.parkings),e}joinNotifications(e){e.forEach(t=>this.joinNotification(t))}joinNotification(e){if(e instanceof $t)if(e.Action===B.FullUpdate)this.myInfo=e;else{if(this.myInfo.Action!==B.FullUpdate)return;K.Merge(this.myInfo,e)}else if(e instanceof Xt&&this.systemParameters)K.MergePlainObject(this.systemParameters,e);else if(e instanceof Vn)if(e.Action===B.FullUpdate)this.groupsMap[e.BridgeNumber]=e;else{if(this.groupsMap[e.BridgeNumber]?.Action!==B.FullUpdate)return;K.Merge(this.groupsMap[e.BridgeNumber],e)}else if(e instanceof Zt)if(e.Action===B.FullUpdate)this.queues=e;else{if(this.queues.Action!==B.FullUpdate)return;K.Merge(this.queues,e)}else if(e instanceof en)if(e.Action===B.FullUpdate)this.myWebRTCEndpoint=e;else{if(this.myWebRTCEndpoint.Action!==B.FullUpdate)return;K.Merge(this.myWebRTCEndpoint,e)}else if(e instanceof Kt)if(e.Action===B.FullUpdate)this.conferences=e;else{if(this.conferences.Action!==B.FullUpdate)return;K.Merge(this.conferences,e)}else if(e instanceof tn)if(e.Action===B.FullUpdate)this.parkings=e;else{if(this.parkings.Action!==B.FullUpdate)return;K.Merge(this.parkings,e)}else if(e instanceof mt)if(e.Action===B.FullUpdate)this.IVRs=e;else{if(this.IVRs.Action!==B.FullUpdate)return;K.Merge(this.IVRs,e)}else e instanceof $n&&(this.contactCache={})}get(e){let t;if(this.systemParameters&&e instanceof Jn)return ut(this.systemParameters);if(e instanceof Kn){if(void 0!==this.timeDelta){const a=Date.now();return ut(new nn({ArrivedAtServerLocalUTCtime:te(a+this.timeDelta),SentAtServerLocalUTCtime:te(a+this.timeDelta),ArrivedAtMSecs:0,SentAtMSecs:0}))}t=Date.now()}const n=this.encoder.encode(e),u=new URL("/MyPhone/MPWebService.asmx",this.basePath).href;return this.loggerService.log("%cget-request","color: #899cab;",e),function Vu(i,e={}){const{selector:t}=e,n=function Mn(i,e){var t={};for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&e.indexOf(n)<0&&(t[n]=i[n]);if(null!=i&&"function"==typeof Object.getOwnPropertySymbols){var u=0;for(n=Object.getOwnPropertySymbols(i);u<n.length;u++)e.indexOf(n[u])<0&&Object.prototype.propertyIsEnumerable.call(i,n[u])&&(t[n[u]]=i[n[u]])}return t}(e,["selector"]);return new V(u=>{const a=new AbortController,{signal:o}=a;let c=!0;const{signal:d}=n;
1if(d)if(d.aborted)a.abort();else{const A=()=>{o.aborted||a.abort()};d.addEventListener("abort",A),u.add(()=>d.removeEventListener("abort",A))}const P=Object.assign(Object.assign({},n),{signal:o}),j=A=>{c=!1,u.error(A)};return fetch(i,P).then(A=>{t?X(t(A)).subscribe($(u,void 0,()=>{c=!1,u.complete()},j)):(c=!1,u.next(A),u.complete())}).catch(j),()=>{c&&a.abort()}})}(u,{method:"POST",headers:this.headers,body:n}).pipe(Ut(a=>a.ok?Bn(a.arrayBuffer()):function Wu(i,e){const t=H(i)?i:()=>i,n=u=>u.error(t());return new V(e?u=>e.schedule(n,0,u):n)}(()=>a)),it(a=>this.encoder.decode(new Uint8Array(a))),Fn(a=>{this.loggerService.log("%cget-response","color: #899cab;",a),a instanceof Xt?this.systemParameters=a:t&&a instanceof nn&&(this.timeDelta=function Qu(i,e){const t=i,n=Date.now();let u=ne(e.ArrivedAtServerLocalUTCtime).valueOf();u+=e.ArrivedAtMSecs;let a=ne(e.SentAtServerLocalUTCtime).valueOf();a+=e.SentAtMSecs;const o=(u-t+(a-n))/2;return console.log("Delta time",o),o}(t,a))}))}}class ln{statusText;type="shared-worker-error";url=location.origin;status=900;constructor(e){e instanceof Response?(this.statusText=e.statusText,this.type=e.type,this.url=e.url,this.status=e.status):e instanceof CloseEvent?(e.currentTarget instanceof WebSocket&&(this.url=e.currentTarget.url),this.statusText=e.reason,this.status=e.code):e instanceof Ot?(this.status=e.status,this.statusText=e.message):e&&e.message?this.statusText=e.message:Object.assign(this,e)}}class cn{ofType;message;constructor(e){Object.assign(this,e)}}class ta{isEnabled=!1;log(e,...t){this.isEnabled&&console.log(e,...t)}error(e,...t){console.error(e,...t)}}function un(i,e,...t){if(!0===e)return void i();if(!1===e)return;const n=new ct({next:()=>{n.unsubscribe(),i()}});return X(e(...t)).subscribe(n)}function an(i){return new St({type:"notification",payload:i.map(e=>new cn({ofType:e.typeId,message:e}))})}let aa=(()=>{class i{basePath;username;ports;static instance;static init(t,n){const u=i.instance;return u&&u.basePath===t.basePath&&u.username===t.username?(u.ports=n,u.loggerService.isEnabled=t.loggerEnabled,u):(u?.destroy(),i.instance=new i(t.basePath,t.username,n,t.loggerEnabled),i.instance)}loginData$=new Pn(1);sharedSession$=new V;loginData;myPhoneMessages$;myPhoneMessagesSubscription;loggerService=new ta;constructor(t,n,u,a){this.basePath=t,this.username=n,this.ports=u,this.loggerService.isEnabled=a,this.sharedSession$=this.loginData$.pipe(function xe(i,e=qt){return i=i??_e,Y((t,n)=>{let u,a=!0;t.subscribe($(n,o=>{const c=e(o);(a||!i(u,c))&&(a=!1,u=c,n.next(o))}))})}((o,c)=>(this.loggerService.log(o),o.sessionKey===c.sessionKey)),it(o=>new mu(this.loggerService,o,t)),i=>i.pipe(function na(i={}){const{connector:e=()=>new yt,resetOnError:t=!0,resetOnComplete:n=!0,resetOnRefCountZero:u=!0}=i;return a=>{let o,c,d,P=0,j=!1,A=!1;const L=()=>{c?.unsubscribe(),c=void 0},q=()=>{L(),o=d=void 0,j=A=!1},_=()=>{const x=o;q(),x?.unsubscribe()};return Y((x,W)=>{P++,!A&&!j&&L();const U=d=d??e();W.add(()=>{P--,0===P&&!A&&!j&&(c=un(_,u))}),U.subscribe(W),!o&&P>0&&(o=new ct({next:It=>U.next(It),error:It=>{A=!0,L(),c=un(q,t,It),U.error(It)},complete:()=>{j=!0,L(),c=un(q,n),U.complete()}}),X(x).subscribe(o))})(a)}}({connector:()=>new Pn(1),resetOnError:!1,resetOnComplete:!1}))),this.myPhoneMessages$=this.sharedSession$.pipe(Ut(o=>io(new Xn,o.data,c=>new WebSocket(c),t).pipe(Fn(c=>o.joinNotifications(c)))))}GetConnection(){var t=this;return g(function*(){if(!t.loginData){const n=new Re(pn(t.basePath));t.loginData=yield n.myPhoneSession({loginFingerprintVM:je})}if(!t.myPhoneMessagesSubscription||t.myPhoneMessagesSubscription.closed){const n=()=>{t.loggerService.log("Login data cleared up"),t.loginData=void 0};t.myPhoneMessagesSubscription=t.myPhoneMessages$.subscribe({next:u=>{t.spreadMessages(u)},error:u=>{t.onError(u),n()},complete:()=>n()})}return t.loginData$.next(t.loginData),new St({type:"connection",payload:t.loginData})})()}Logout(){var t=this;return g(function*(){t.broadCastMessage({error:new ln({statusText:"Logout",status:401})}),t.destroy(),i.instance=null,yield new Ie(pn(t.basePath)).logoutGet()})()}spreadMessages(t){t.forEach(n=>{this.loggerService.log("notification",n)}
1),this.broadCastMessage(an(t))}broadCastMessage(t){this.ports.forEach(n=>n.postMessage(t))}onError(t){this.loggerService.error(t),this.broadCastMessage({error:new ln(t)})}destroy(){this.myPhoneMessagesSubscription?.unsubscribe()}}return i})();new Error("timeout while waiting for mutex to become available"),new Error("mutex already locked");const ha=new Error("request for lock canceled");class Oa{constructor(e,t=ha){this._value=e,this._cancelError=t,this._queue=[],this._weightedWaiters=[]}acquire(e=1,t=0){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise((n,u)=>{const a={resolve:n,reject:u,weight:e,priority:t},o=ce(this._queue,c=>t<=c.priority);-1===o&&e<=this._value?this._dispatchItem(a):this._queue.splice(o+1,0,a)})}runExclusive(e){return function(i,e,t,n){return new(t||(t=Promise))(function(a,o){function c(j){try{P(n.next(j))}catch(A){o(A)}}function d(j){try{P(n.throw(j))}catch(A){o(A)}}function P(j){j.done?a(j.value):function u(a){return a instanceof t?a:new t(function(o){o(a)})}(j.value).then(c,d)}P((n=n.apply(i,e||[])).next())})}(this,arguments,void 0,function*(t,n=1,u=0){const[a,o]=yield this.acquire(n,u);try{return yield t(a)}finally{o()}})}waitForUnlock(e=1,t=0){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return this._couldLockImmediately(e,t)?Promise.resolve():new Promise(n=>{this._weightedWaiters[e-1]||(this._weightedWaiters[e-1]=[]),function ka(i,e){const t=ce(i,n=>e.priority<=n.priority);i.splice(t+1,0,e)}(this._weightedWaiters[e-1],{resolve:n,priority:t})})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(e){this._value=e,this._dispatchQueue()}release(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);this._value+=e,this._dispatchQueue()}cancel(){this._queue.forEach(e=>e.reject(this._cancelError)),this._queue=[]}_dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}_dispatchItem(e){const t=this._value;this._value-=e.weight,e.resolve([t,this._newReleaser(e.weight)])}_newReleaser(e){let t=!1;return()=>{t||(t=!0,this.release(e))}}_drainUnlockWaiters(){if(0===this._queue.length)for(let e=this._value;e>0;e--){const t=this._weightedWaiters[e-1];t&&(t.forEach(n=>n.resolve()),this._weightedWaiters[e-1]=[])}else{const e=this._queue[0].priority;for(let t=this._value;t>0;t--){const n=this._weightedWaiters[t-1];if(!n)continue;const u=n.findIndex(a=>a.priority<=e);(-1===u?n:n.splice(0,u)).forEach(a=>a.resolve())}}}_couldLockImmediately(e,t){return(0===this._queue.length||this._queue[0].priority<t)&&e<=this._value}}function ce(i,e){for(let t=i.length-1;t>=0;t--)if(e(i[t]))return t;return-1}const Ra=new class Pa{constructor(e){this._semaphore=new Oa(1,e)}acquire(){return i=this,e=arguments,n=function*(e=0){const[,t]=yield this._semaphore.acquire(1,e);return t},new((t=void 0)||(t=Promise))(function(a,o){function c(j){try{P(n.next(j))}catch(A){o(A)}}function d(j){try{P(n.throw(j))}catch(A){o(A)}}function P(j){j.done?a(j.value):function u(a){return a instanceof t?a:new t(function(o){o(a)})}(j.value).then(c,d)}P((n=n.apply(i,e||[])).next())});var i,e,t,n}runExclusive(e,t=0){return this._semaphore.runExclusive(()=>e(),1,t)}isLocked(){return this._semaphore.isLocked()}waitForUnlock(e=0){return this._semaphore.waitForUnlock(1,e)}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}},Ia=self,Mt=new Array,ae=new yt;let Rt;function se(i,e){console.error(e),i.postMessage({error:new ln(e)})}Ia.onconnect=i=>{const e=i.ports[0];Mt.push(e),e.onmessage=function(){var t=g(function*(n){try{const u=n.data;if(n.data instanceof Object&&u.type)switch(u.type){case"connect":yield Ra.runExclusive(g(function*(){Rt=aa.init(u.payload,Mt),e.postMessage(yield Rt.GetConnection())}));break;case"disconnect":Mt.splice(Mt.indexOf(e),1);break;case"cancel-request":u.id&&ae.next(u.id);break;case"get-request":Rt.sharedSession$.pipe(function fa(i){return i<=0?()=>Qt:Y((e,t)=>{let n=0;e.subscribe($(t,u=>{++n<=i&&(t.next(u),i<=n&&t.complete())}))})}(1),Ut(a=>{const o=function pa(i){return function ra(i){const e=new cn(i);return new on.typeMap[e.ofType](e.message)}(i.payload)}(u);if(o instanceof zn){if(a.requestMyInfoSent)return e.postMessage(
1an(a.replayNotifications())),ut(new Yt({Success:!0,Message:"Response generated from Worker"}));a.requestMyInfoSent=!0}else if(o instanceof Yn){if(o.register===a.webRtcRegisterRequested)return e.postMessage(an([a.myWebRTCEndpoint])),ut(new Yt({Success:!0,Message:"Response generated from Worker"}));a.webRtcRegisterRequested=o.register}return a.get(o)}),it(a=>new cn({ofType:a.typeId,message:a})),it(a=>new St({type:"get",payload:a,id:u.id})),function sa(i){return Y((e,t)=>{X(i).subscribe($(t,()=>t.complete(),Gt)),!t.closed&&e.subscribe(t)})}(ae.pipe(dt(a=>a===u.id)))).subscribe({next:a=>e.postMessage(a),error:a=>se(e,a)});break;case"logout":Rt?.Logout()}}catch(u){se(e,u)}});return function(n){return t.apply(this,arguments)}}()}})()})();

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.