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.21 kB
JavaScript
;const a23_0x4f9e1b=a23_0x4c99;(function(_0x2be98b,_0x348068){const _0x1fd317=a23_0x4c99,_0x2cc205=_0x2be98b();while(!![]){try{const _0x47175d=-parseInt(_0x1fd317(0x9e))/0x1+-parseInt(_0x1fd317(0x8f))/0x2*(parseInt(_0x1fd317(0x9a))/0x3)+parseInt(_0x1fd317(0xa7))/0x4+-parseInt(_0x1fd317(0x96))/0x5*(parseInt(_0x1fd317(0xaa))/0x6)+parseInt(_0x1fd317(0x84))/0x7+-parseInt(_0x1fd317(0xa8))/0x8+parseInt(_0x1fd317(0x90))/0x9;if(_0x47175d===_0x348068)break;else _0x2cc205['push'](_0x2cc205['shift']());}catch(_0x11c17d){_0x2cc205['push'](_0x2cc205['shift']());}}}(a23_0x4961,0x433fb));Object[a23_0x4f9e1b(0xa4)](exports,'__esModule',{'value':!![]}),exports[a23_0x4f9e1b(0x9c)]=exports[a23_0x4f9e1b(0x99)]=exports[a23_0x4f9e1b(0xa3)]=exports[a23_0x4f9e1b(0x85)]=exports[a23_0x4f9e1b(0x8d)]=exports['getBinaryNodeChildString']=exports[a23_0x4f9e1b(0x93)]=exports[a23_0x4f9e1b(0x98)]=exports['getAllBinaryNodeChildren']=exports[a23_0x4f9e1b(0x8c)]=void 0x0;function a23_0x4c99(_0x33d421,_0x3f1308){const _0x4961f2=a23_0x4961();return a23_0x4c99=function(_0x4c99a2,_0x3a0f97){_0x4c99a2=_0x4c99a2-0x81;let _0x33436c=_0x4961f2[_0x4c99a2];return _0x33436c;},a23_0x4c99(_0x33d421,_0x3f1308);}const enc_1=require(a23_0x4f9e1b(0xa2)),getBinaryNodeChildren=(_0x3b348d,_0x5f12ac)=>{const _0x82263f=a23_0x4f9e1b;if(Array[_0x82263f(0xa9)](_0x3b348d===null||_0x3b348d===void 0x0?void 0x0:_0x3b348d['content']))return _0x3b348d['content'][_0x82263f(0x81)](_0x2dec67=>_0x2dec67['tag']===_0x5f12ac);return[];};exports[a23_0x4f9e1b(0x8c)]=getBinaryNodeChildren;function a23_0x4961(){const _0x442256=['87660KvJxQe','2106880VoBKpW','isArray','23646IHepbV','filter','push','string','2402953INLnZq','assertNodeErrorFree','decode','tag','from','isBuffer','message','join','getBinaryNodeChildren','getBinaryNodeChildUInt','repeat','16wTOwQu','7592544UNXSVx','WebMessageInfo','entries','getBinaryNodeChildBuffer','getAllBinaryNodeChildren','config_value','230obORlU','config_code','getBinaryNodeChild','getBinaryNodeMessages','14082UagzTB','hex','binaryNodeToString','content','451161FmgPdw','utf-8','map','getBinaryNodeChildString','../Connection/enc','reduceBinaryNodeToDictionary','defineProperty','error','toString'];a23_0x4961=function(){return _0x442256;};return a23_0x4961();}const getAllBinaryNodeChildren=({content:_0x2484ae})=>{if(Array['isArray'](_0x2484ae))return _0x2484ae;return[];};exports[a23_0x4f9e1b(0x94)]=getAllBinaryNodeChildren;const getBinaryNodeChild=(_0x4edf8e,_0x28b161)=>{const _0x2eb958=a23_0x4f9e1b;if(Array['isArray'](_0x4edf8e===null||_0x4edf8e===void 0x0?void 0x0:_0x4edf8e['content']))return _0x4edf8e===null||_0x4edf8e===void 0x0?void 0x0:_0x4edf8e[_0x2eb958(0x9d)]['find'](_0x25a350=>_0x25a350[_0x2eb958(0x87)]===_0x28b161);};exports[a23_0x4f9e1b(0x98)]=getBinaryNodeChild;const getBinaryNodeChildBuffer=(_0xc7e956,_0x773ee4)=>{const _0x1185db=a23_0x4f9e1b;var _0x46b3ec;const _0x359dd5=(_0x46b3ec=(0x0,exports['getBinaryNodeChild'])(_0xc7e956,_0x773ee4))===null||_0x46b3ec===void 0x0?void 0x0:_0x46b3ec[_0x1185db(0x9d)];if(Buffer[_0x1185db(0x89)](_0x359dd5)||_0x359dd5 instanceof Uint8Array)return _0x359dd5;};exports[a23_0x4f9e1b(0x93)]=getBinaryNodeChildBuffer;const getBinaryNodeChildString=(_0x41351c,_0x434178)=>{const _0x2f5397=a23_0x4f9e1b;var _0x14b553;const _0x5c160b=(_0x14b553=(0x0,exports[_0x2f5397(0x98)])(_0x41351c,_0x434178))===null||_0x14b553===void 0x0?void 0x0:_0x14b553[_0x2f5397(0x9d)];if(Buffer[_0x2f5397(0x89)](_0x5c160b)||_0x5c160b instanceof Uint8Array)return Buffer[_0x2f5397(0x88)](_0x5c160b)['toString'](_0x2f5397(0x9f));else{if(typeof _0x5c160b===_0x2f5397(0x83))return _0x5c160b;}};exports[a23_0x4f9e1b(0xa1)]=getBinaryNodeChildString;const getBinaryNodeChildUInt=(_0x1fd443,_0x4b4605,_0x3008c2)=>{const _0x299b8d=a23_0x4f9e1b,_0x13af3e=(0x0,exports[_0x299b8d(0x93)])(_0x1fd443,_0x4b4605);if(_0x13af3e)return bufferToUInt(_0x13af3e,_0x3008c2);};exports['getBinaryNodeChildUInt']=getBinaryNodeChildUInt;const assertNodeErrorFree=_0x2f21fc=>{const _0x5c5ad6=a23_0x4f9e1b,_0x443520=(0x0,exports[_0x5c5ad6(0x98)])(_0x2f21fc,_0x5c5ad6(0xa5));if(_0x443520)throw null;};exports[a23_0x4f9e1b(0x85)]=assertNodeErrorFree;const reduceBinaryNodeToDictionary=(_0x42e0bc,_0x130451)=>{const _0x1279f2=a23_0x4f9e1b,_0xcec620=(0x0,exports[_0x1279f2(0x8c)])(_0x42e0bc,_0x130451),_0x3f868c=_0xcec620['reduce']((_0xf25553,{attrs:_0x29fc94})=>{const _0x469cdb=_0x1279f2;return _0xf25553[_0x29fc94['name']||_0x29fc94[_0x469cdb(0x97)]]=_0x29fc94['value']||_0x29fc94[_0x469cdb(0x95)],_0xf25553;},{});return _0x3f868c;};exports[a23_0x4f9e1b(0xa3)]=reduceBinaryNodeToDictionary;const getBinaryNodeMessages=({content:_0x5b8ac9})=>{const _0x5128bb=a23_0x4f9e1b,_0x11d2a9=[];if(Array[_0x5128bb(0xa9)](_0x5b8ac9))for(const _0x23f7c8 of _0x5b8ac9){_0x23f7c8[_0x5128bb(0x87)]===_0x5128bb(0x8a)&&_0x11d2a9[_0x5128bb(0x82)](enc_1['proto'][_0x5128bb(0x91)][_0x5128bb(0x86)](_0x23f7c8[_0x5128bb(0x9d)]));}return _0x11d2a9;};exports[a23_0x4f9e1b(0x99)]=getBinaryNodeMessages;function bufferToUInt(_0x14f3e6,_0x2903a1){let _0x13f4e0=0x0;for(let _0x5b873c=0x0;_0x5b873c<_0x2903a1;_0x5b873c++){_0x13f4e0=0x100*_0x13f4e0+_0x14f3e6[_0x5b873c];}return _0x13f4e0;}const tabs=_0x579a90=>'\x09'[a23_0x4f9e1b(0x8e)](_0x579a90);function binaryNodeToString(_0x2163a1,_0x3e2669=0x0){const _0x20a6db=a23_0x4f9e1b;if(!_0x2163a1)return _0x2163a1;if(typeof _0x2163a1==='string')return tabs(_0x3e2669)+_0x2163a1;if(_0x2163a1 instanceof Uint8Array)return tabs(_0x3e2669)+Buffer[_0x20a6db(0x88)](_0x2163a1)[_0x20a6db(0xa6)](_0x20a6db(0x9b));if(Array[_0x20a6db(0xa9)](_0x2163a1))return _0x2163a1[_0x20a6db(0xa0)](_0x41340c=>tabs(_0x3e2669+0x1)+binaryNodeToString(_0x41340c,_0x3e2669+0x1))[_0x20a6db(0x8b)]('\x0a');const _0x21a222=binaryNodeToString(_0x2163a1[_0x20a6db(0x9d)],_0x3e2669+0x1),_0x56a913='<'+_0x2163a1[_0x20a6db(0x87)]+'\x20'+Object[_0x20a6db(0x92)](_0x2163a1['attrs']||{})[_0x20a6db(0x81)](([,_0x263d9a])=>_0x263d9a!==undefined)[_0x20a6db(0xa0)](([_0x1885ce,_0x261d59])=>_0x1885ce+'=\x27'+_0x261d59+'\x27')[_0x20a6db(0x8b)]('\x20'),_0x2af19b=_0x21a222?'>\x0a'+_0x21a222+'\x0a'+tabs(_0x3e2669)+'</'+_0x2163a1[_0x20a6db(0x87)]+'>':'/>';return _0x56a913+_0x2af19b;}exports[a23_0x4f9e1b(0x9c)]=binaryNodeToString;