UNPKG

superchats

Version:

SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp

1 lines 6.25 kB
'use strict';const a23_0x265f1f=a23_0xdb34;(function(_0x34328b,_0x2f8da7){const _0x160eb9=a23_0xdb34,_0x184480=_0x34328b();while(!![]){try{const _0x1cd58d=parseInt(_0x160eb9(0xa4))/0x1*(-parseInt(_0x160eb9(0xb0))/0x2)+-parseInt(_0x160eb9(0xba))/0x3+parseInt(_0x160eb9(0xa8))/0x4+-parseInt(_0x160eb9(0xaa))/0x5+-parseInt(_0x160eb9(0xc9))/0x6*(-parseInt(_0x160eb9(0xb8))/0x7)+-parseInt(_0x160eb9(0xc7))/0x8+parseInt(_0x160eb9(0xa2))/0x9;if(_0x1cd58d===_0x2f8da7)break;else _0x184480['push'](_0x184480['shift']());}catch(_0x4a18df){_0x184480['push'](_0x184480['shift']());}}}(a23_0x1f7c,0xb9cc5));Object['defineProperty'](exports,a23_0x265f1f(0xbe),{'value':!![]}),exports[a23_0x265f1f(0xb5)]=exports[a23_0x265f1f(0xbc)]=exports[a23_0x265f1f(0xab)]=exports[a23_0x265f1f(0xbb)]=exports[a23_0x265f1f(0xa9)]=exports['getBinaryNodeChildString']=exports['getBinaryNodeChildBuffer']=exports[a23_0x265f1f(0xae)]=exports[a23_0x265f1f(0xc1)]=exports[a23_0x265f1f(0xbf)]=void 0x0;const enc_1=require(a23_0x265f1f(0xc5)),getBinaryNodeChildren=(_0x54c5ed,_0x1141b5)=>{const _0x4b41f0=a23_0x265f1f;if(Array[_0x4b41f0(0xc2)](_0x54c5ed===null||_0x54c5ed===void 0x0?void 0x0:_0x54c5ed[_0x4b41f0(0xa1)]))return _0x54c5ed['content']['filter'](_0x3cad22=>_0x3cad22[_0x4b41f0(0xbd)]===_0x1141b5);return[];};exports[a23_0x265f1f(0xbf)]=getBinaryNodeChildren;const getAllBinaryNodeChildren=({content:_0x16f578})=>{const _0x5539d5=a23_0x265f1f;if(Array[_0x5539d5(0xc2)](_0x16f578))return _0x16f578;return[];};exports['getAllBinaryNodeChildren']=getAllBinaryNodeChildren;const getBinaryNodeChild=(_0x21fba,_0x5dda0d)=>{const _0x430601=a23_0x265f1f;if(Array[_0x430601(0xc2)](_0x21fba===null||_0x21fba===void 0x0?void 0x0:_0x21fba[_0x430601(0xa1)]))return _0x21fba===null||_0x21fba===void 0x0?void 0x0:_0x21fba[_0x430601(0xa1)][_0x430601(0xa5)](_0x2973e5=>_0x2973e5[_0x430601(0xbd)]===_0x5dda0d);};exports[a23_0x265f1f(0xae)]=getBinaryNodeChild;const getBinaryNodeChildBuffer=(_0x4104ac,_0xcf2393)=>{const _0x5d516f=a23_0x265f1f;var _0x4d2aff;const _0x4e7633=(_0x4d2aff=(0x0,exports[_0x5d516f(0xae)])(_0x4104ac,_0xcf2393))===null||_0x4d2aff===void 0x0?void 0x0:_0x4d2aff[_0x5d516f(0xa1)];if(Buffer[_0x5d516f(0x9f)](_0x4e7633)||_0x4e7633 instanceof Uint8Array)return _0x4e7633;};exports[a23_0x265f1f(0x9e)]=getBinaryNodeChildBuffer;const getBinaryNodeChildString=(_0x4761b3,_0x44d720)=>{const _0x940eaf=a23_0x265f1f;var _0x4b0278;const _0x39f24e=(_0x4b0278=(0x0,exports[_0x940eaf(0xae)])(_0x4761b3,_0x44d720))===null||_0x4b0278===void 0x0?void 0x0:_0x4b0278[_0x940eaf(0xa1)];if(Buffer[_0x940eaf(0x9f)](_0x39f24e)||_0x39f24e instanceof Uint8Array)return Buffer[_0x940eaf(0xc8)](_0x39f24e)[_0x940eaf(0xc6)](_0x940eaf(0xb1));else{if(typeof _0x39f24e===_0x940eaf(0xc4))return _0x39f24e;}};exports[a23_0x265f1f(0xc3)]=getBinaryNodeChildString;const getBinaryNodeChildUInt=(_0x4dfac7,_0x4eddcd,_0x32d00f)=>{const _0x1daef4=(0x0,exports['getBinaryNodeChildBuffer'])(_0x4dfac7,_0x4eddcd);if(_0x1daef4)return bufferToUInt(_0x1daef4,_0x32d00f);};exports[a23_0x265f1f(0xa9)]=getBinaryNodeChildUInt;const assertNodeErrorFree=_0x2f9514=>{const _0x4924df=a23_0x265f1f,_0x554ff2=(0x0,exports[_0x4924df(0xae)])(_0x2f9514,_0x4924df(0xb3));if(_0x554ff2)throw null;};exports[a23_0x265f1f(0xbb)]=assertNodeErrorFree;const reduceBinaryNodeToDictionary=(_0x47acca,_0x5a1d3c)=>{const _0x1185ca=a23_0x265f1f,_0x51f1e5=(0x0,exports[_0x1185ca(0xbf)])(_0x47acca,_0x5a1d3c),_0x5991ae=_0x51f1e5['reduce']((_0x5c39c,{attrs:_0xdf421d})=>{const _0x260648=_0x1185ca;return _0x5c39c[_0xdf421d[_0x260648(0xb7)]||_0xdf421d[_0x260648(0xa3)]]=_0xdf421d['value']||_0xdf421d['config_value'],_0x5c39c;},{});return _0x5991ae;};exports[a23_0x265f1f(0xab)]=reduceBinaryNodeToDictionary;function a23_0xdb34(_0x2af276,_0x59a379){const _0x1f7cca=a23_0x1f7c();return a23_0xdb34=function(_0xdb347e,_0x25ca3d){_0xdb347e=_0xdb347e-0x9e;let _0x3b240f=_0x1f7cca[_0xdb347e];return _0x3b240f;},a23_0xdb34(_0x2af276,_0x59a379);}const getBinaryNodeMessages=({content:_0x40c3ba})=>{const _0x3e5f71=a23_0x265f1f,_0x177821=[];if(Array[_0x3e5f71(0xc2)](_0x40c3ba))for(const _0x22e8d2 of _0x40c3ba){_0x22e8d2[_0x3e5f71(0xbd)]===_0x3e5f71(0xaf)&&_0x177821[_0x3e5f71(0xb4)](enc_1[_0x3e5f71(0xad)][_0x3e5f71(0xb6)][_0x3e5f71(0xb9)](_0x22e8d2['content']));}return _0x177821;};function a23_0x1f7c(){const _0x210729=['from','3645570kvICTm','getBinaryNodeChildBuffer','isBuffer','hex','content','29101284MBfYGM','config_code','1283tgmcWI','find','repeat','map','2085624BeXhWm','getBinaryNodeChildUInt','5313425KIBpww','reduceBinaryNodeToDictionary','filter','proto','getBinaryNodeChild','message','2246MLYNEZ','utf-8','attrs','error','push','binaryNodeToString','WebMessageInfo','name','14wmcuPV','decode','1867293uuvIuD','assertNodeErrorFree','getBinaryNodeMessages','tag','__esModule','getBinaryNodeChildren','entries','getAllBinaryNodeChildren','isArray','getBinaryNodeChildString','string','../Connection/enc','toString','8664944oxuFOd'];a23_0x1f7c=function(){return _0x210729;};return a23_0x1f7c();}exports[a23_0x265f1f(0xbc)]=getBinaryNodeMessages;function bufferToUInt(_0x5a6153,_0x74184e){let _0x2ce5b0=0x0;for(let _0x4f0bcc=0x0;_0x4f0bcc<_0x74184e;_0x4f0bcc++){_0x2ce5b0=0x100*_0x2ce5b0+_0x5a6153[_0x4f0bcc];}return _0x2ce5b0;}const tabs=_0x5cbb0c=>'\x09'[a23_0x265f1f(0xa6)](_0x5cbb0c);function binaryNodeToString(_0x403424,_0x5a4697=0x0){const _0x35c0ce=a23_0x265f1f;if(!_0x403424)return _0x403424;if(typeof _0x403424===_0x35c0ce(0xc4))return tabs(_0x5a4697)+_0x403424;if(_0x403424 instanceof Uint8Array)return tabs(_0x5a4697)+Buffer[_0x35c0ce(0xc8)](_0x403424)[_0x35c0ce(0xc6)](_0x35c0ce(0xa0));if(Array['isArray'](_0x403424))return _0x403424['map'](_0x220226=>tabs(_0x5a4697+0x1)+binaryNodeToString(_0x220226,_0x5a4697+0x1))['join']('\x0a');const _0x51688f=binaryNodeToString(_0x403424[_0x35c0ce(0xa1)],_0x5a4697+0x1),_0x1fca0b='<'+_0x403424['tag']+'\x20'+Object[_0x35c0ce(0xc0)](_0x403424[_0x35c0ce(0xb2)]||{})[_0x35c0ce(0xac)](([,_0x4a055f])=>_0x4a055f!==undefined)[_0x35c0ce(0xa7)](([_0x40f0d8,_0x2893cb])=>_0x40f0d8+'=\x27'+_0x2893cb+'\x27')['join']('\x20'),_0xba4d34=_0x51688f?'>\x0a'+_0x51688f+'\x0a'+tabs(_0x5a4697)+'</'+_0x403424[_0x35c0ce(0xbd)]+'>':'/>';return _0x1fca0b+_0xba4d34;}exports['binaryNodeToString']=binaryNodeToString;