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 • 7.86 kB
JavaScript
;const a78_0x17fb80=a78_0x1258;(function(_0x7c5b26,_0x1a2ca9){const _0x50cc9d=a78_0x1258,_0x55a69b=_0x7c5b26();while(!![]){try{const _0x4a23ee=-parseInt(_0x50cc9d(0xf0))/0x1+parseInt(_0x50cc9d(0x109))/0x2+parseInt(_0x50cc9d(0xf5))/0x3*(parseInt(_0x50cc9d(0xdd))/0x4)+-parseInt(_0x50cc9d(0xee))/0x5*(parseInt(_0x50cc9d(0x119))/0x6)+-parseInt(_0x50cc9d(0x11a))/0x7+parseInt(_0x50cc9d(0xda))/0x8*(parseInt(_0x50cc9d(0x105))/0x9)+-parseInt(_0x50cc9d(0x107))/0xa*(parseInt(_0x50cc9d(0x102))/0xb);if(_0x4a23ee===_0x1a2ca9)break;else _0x55a69b['push'](_0x55a69b['shift']());}catch(_0x5a7451){_0x55a69b['push'](_0x55a69b['shift']());}}}(a78_0x2eb6,0x29d3b));function a78_0x1258(_0x15da1e,_0x49b5e8){const _0x2eb6de=a78_0x2eb6();return a78_0x1258=function(_0x125819,_0x227e91){_0x125819=_0x125819-0xda;let _0x39ad11=_0x2eb6de[_0x125819];return _0x39ad11;},a78_0x1258(_0x15da1e,_0x49b5e8);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a78_0x17fb80(0x111)]=exports[a78_0x17fb80(0x108)]=void 0x0;const enc_1=require(a78_0x17fb80(0x115)),Internal_1=require('../../Internal'),similary_1=require(a78_0x17fb80(0x110)),NO_MESSAGE_FOUND_ERROR_TEXT=a78_0x17fb80(0x10f);function decodeMessageNode(_0x595a2e,_0x4dee97,_0x4779e5){const _0x3e0c70=a78_0x17fb80;var _0x45871e,_0x2783eb,_0x52ec01;let _0x496d81,_0x46fa66,_0x509403;const _0x473af9=_0x595a2e[_0x3e0c70(0x103)]['id'],_0x1a5507=_0x595a2e[_0x3e0c70(0x103)][_0x3e0c70(0x112)],_0x4cda8e=_0x595a2e[_0x3e0c70(0x103)][_0x3e0c70(0xf9)],_0x5d6b49=_0x595a2e['attrs'][_0x3e0c70(0xed)],_0x2b4e75=_0x2f100e=>(0x0,Internal_1[_0x3e0c70(0x10d)])(_0x2f100e,_0x4dee97),_0x1e6bb6=_0x4f0022=>(0x0,Internal_1[_0x3e0c70(0x10d)])(_0x4f0022,_0x4779e5);if((0x0,Internal_1[_0x3e0c70(0xe1)])(_0x1a5507)){if(_0x5d6b49){if(!_0x2b4e75(_0x1a5507))throw null;_0x46fa66=_0x5d6b49;}else _0x46fa66=_0x1a5507;_0x496d81=_0x3e0c70(0xe9),_0x509403=_0x1a5507;}else{if((0x0,Internal_1[_0x3e0c70(0x11b)])(_0x1a5507)){if(_0x5d6b49){if(!_0x1e6bb6(_0x1a5507))throw null;_0x46fa66=_0x5d6b49;}else _0x46fa66=_0x1a5507;_0x496d81=_0x3e0c70(0xe9),_0x509403=_0x1a5507;}else{if((0x0,Internal_1[_0x3e0c70(0x104)])(_0x1a5507)){if(!_0x4cda8e)throw null;_0x496d81='group',_0x509403=_0x4cda8e,_0x46fa66=_0x1a5507;}else{if((0x0,Internal_1[_0x3e0c70(0xfe)])(_0x1a5507))_0x496d81=_0x3e0c70(0xf6),_0x509403=_0x1a5507,_0x46fa66=_0x1a5507;else{if((0x0,Internal_1[_0x3e0c70(0xeb)])(_0x1a5507)){if(!_0x4cda8e)throw null;const _0x3c8083=_0x2b4e75(_0x4cda8e);(0x0,Internal_1[_0x3e0c70(0x118)])(_0x1a5507)?_0x496d81=_0x3c8083?'direct_peer_status':'other_status':_0x496d81=_0x3c8083?_0x3e0c70(0x10e):'other_broadcast',_0x46fa66=_0x1a5507,_0x509403=_0x4cda8e;}else{if((0x0,Internal_1['isJidNewsletter'])(_0x1a5507)){if(!_0x4cda8e)throw null;const _0x2842fb=_0x2b4e75(_0x4cda8e);(0x0,Internal_1['isJidStatusNewsletter'])(_0x1a5507)?_0x496d81=_0x2842fb?'direct_peer_status':_0x3e0c70(0xf1):_0x496d81=_0x2842fb?_0x3e0c70(0x10e):_0x3e0c70(0xe7),_0x46fa66=_0x1a5507,_0x509403=_0x4cda8e;}else throw null;}}}}}const _0x407d7c=(0x0,Internal_1[_0x3e0c70(0xfe)])(_0x1a5507)?!!((_0x45871e=_0x595a2e[_0x3e0c70(0x103)])===null||_0x45871e===void 0x0?void 0x0:_0x45871e[_0x3e0c70(0xf7)])||![]:((0x0,Internal_1['isLidUser'])(_0x1a5507)?_0x1e6bb6:_0x2b4e75)(_0x595a2e[_0x3e0c70(0x103)]['participant']||_0x595a2e[_0x3e0c70(0x103)][_0x3e0c70(0x112)]),_0x3fcb38=(_0x2783eb=_0x595a2e===null||_0x595a2e===void 0x0?void 0x0:_0x595a2e[_0x3e0c70(0x103)])===null||_0x2783eb===void 0x0?void 0x0:_0x2783eb[_0x3e0c70(0x101)],_0x3dd863={'remoteJid':_0x46fa66,'fromMe':_0x407d7c,'id':_0x473af9,'participant':_0x4cda8e,'server_id':(_0x52ec01=_0x595a2e[_0x3e0c70(0x103)])===null||_0x52ec01===void 0x0?void 0x0:_0x52ec01[_0x3e0c70(0xfc)]},_0x35beb7={'key':_0x3dd863,'messageTimestamp':+_0x595a2e[_0x3e0c70(0x103)]['t'],'pushName':_0x3fcb38,'broadcast':(0x0,Internal_1[_0x3e0c70(0xeb)])(_0x1a5507)};return _0x3dd863[_0x3e0c70(0xfa)]&&(_0x35beb7[_0x3e0c70(0xe5)]=enc_1[_0x3e0c70(0xef)]['WebMessageInfo'][_0x3e0c70(0xe0)]['SERVER_ACK']),{'fullMessage':_0x35beb7,'author':_0x509403,'sender':_0x496d81===_0x3e0c70(0xe9)?_0x509403:_0x46fa66};}exports[a78_0x17fb80(0x108)]=decodeMessageNode;const decryptMessageNode=(_0x5f1210,_0x54e31f,_0x280c2b,_0x53f563,_0x179d92)=>{const _0x8628c0=a78_0x17fb80,{fullMessage:_0x4e36f6,author:_0x5ee286,sender:_0x220b28}=decodeMessageNode(_0x5f1210,_0x54e31f,_0x280c2b);return{'fullMessage':_0x4e36f6,'category':_0x5f1210[_0x8628c0(0x103)]['category'],'author':_0x5ee286,async 'decrypt'(){const _0x5ed3f8=_0x8628c0;var _0x3eec43,_0x594fe2;let _0x2672b2=0x0;if(Array[_0x5ed3f8(0xe3)](_0x5f1210[_0x5ed3f8(0x116)]))for(const {tag:_0x431880,attrs:_0xbbe27d,content:_0x322422}of _0x5f1210['content']){if(_0x431880==='verified_name'&&_0x322422 instanceof Uint8Array){const _0x47bda7=enc_1[_0x5ed3f8(0xef)][_0x5ed3f8(0xe2)][_0x5ed3f8(0xfd)](_0x322422),_0x1824ac=enc_1[_0x5ed3f8(0xef)][_0x5ed3f8(0xe2)][_0x5ed3f8(0x10a)][_0x5ed3f8(0xfd)](_0x47bda7[_0x5ed3f8(0xf3)]);_0x4e36f6[_0x5ed3f8(0xf8)]=_0x1824ac[_0x5ed3f8(0xff)];}if(_0x431880!==_0x5ed3f8(0xe8)&&_0x431880!=='plaintext')continue;if(!(_0x322422 instanceof Uint8Array))continue;_0x2672b2+=0x1;let _0x1b20ec;try{const _0x3dece3=_0xbbe27d[_0x5ed3f8(0xec)];switch(_0x3dece3){case _0x5ed3f8(0xdf):_0x1b20ec=await _0x53f563['decryptGroupMessage']({'group':_0x220b28,'authorJid':_0x5ee286,'msg':_0x322422});break;case _0x5ed3f8(0xea):case'msg':const _0x2a63df=(0x0,Internal_1[_0x5ed3f8(0xe1)])(_0x220b28)?_0x220b28:_0x5ee286;_0x1b20ec=await _0x53f563[_0x5ed3f8(0x113)]({'jid':_0x2a63df,'type':_0x3dece3,'ciphertext':_0x322422});break;case undefined:_0x1b20ec=_0x322422;break;default:throw null;}let _0x3043b8=enc_1['proto'][_0x5ed3f8(0xdc)][_0x5ed3f8(0xfd)](_0x431880===_0x5ed3f8(0x100)?_0x1b20ec:(0x0,similary_1[_0x5ed3f8(0xde)])(_0x1b20ec));_0x3043b8=((_0x3eec43=_0x3043b8===null||_0x3043b8===void 0x0?void 0x0:_0x3043b8[_0x5ed3f8(0xe4)])===null||_0x3eec43===void 0x0?void 0x0:_0x3eec43[_0x5ed3f8(0x106)])||_0x3043b8,_0x3043b8=((_0x594fe2=_0x3043b8[_0x5ed3f8(0xe4)])===null||_0x594fe2===void 0x0?void 0x0:_0x594fe2[_0x5ed3f8(0x106)])||_0x3043b8,_0x3043b8['senderKeyDistributionMessage']&&await _0x53f563[_0x5ed3f8(0x114)]({'authorJid':_0x5ee286,'item':_0x3043b8[_0x5ed3f8(0xfb)]}),_0x4e36f6[_0x5ed3f8(0x106)]?Object[_0x5ed3f8(0x117)](_0x4e36f6[_0x5ed3f8(0x106)],_0x3043b8):_0x4e36f6[_0x5ed3f8(0x106)]=_0x3043b8;}catch(_0x1fe833){_0x4e36f6[_0x5ed3f8(0x10b)]=enc_1[_0x5ed3f8(0xef)][_0x5ed3f8(0x10c)][_0x5ed3f8(0xf4)][_0x5ed3f8(0xdb)],_0x4e36f6[_0x5ed3f8(0xf2)]=[_0x1fe833['message']];}}!_0x2672b2&&(_0x4e36f6[_0x5ed3f8(0x10b)]=enc_1['proto'][_0x5ed3f8(0x10c)]['StubType'][_0x5ed3f8(0xdb)],_0x4e36f6[_0x5ed3f8(0xf2)]=[NO_MESSAGE_FOUND_ERROR_TEXT,JSON['stringify'](_0x5f1210,similary_1[_0x5ed3f8(0xe6)]['replacer'])]);}};};function a78_0x2eb6(){const _0x5cf703=['areJidsSameUser','peer_broadcast','Message\x20absent\x20from\x20node','./similary','decryptMessageNode','from','decryptMessage','processSenderKeyDistributionMessage','../../Connection/enc','content','assign','isJidStatusBroadcast','42qRWQtL','535101HJBLKv','isLidUser','24888ayqdLd','CIPHERTEXT','Message','196GLTCFG','unpadRandomMax16','skmsg','Status','isJidUser','VerifiedNameCertificate','isArray','deviceSentMessage','status','BufferJSON','other_broadcast','enc','chat','pkmsg','isJidBroadcast','type','recipient','53875vhIPgJ','proto','47671ntqYbJ','other_status','messageStubParameters','details','StubType','9687nICGZh','newsletter','is_sender','verifiedBizName','participant','fromMe','senderKeyDistributionMessage','server_id','decode','isJidNewsletter','verifiedName','plaintext','notify','180158ztLTwE','attrs','isJidGroup','135saKTeD','message','30lzsggC','decodeMessageNode','430220OaCHAp','Details','messageStubType','WebMessageInfo'];a78_0x2eb6=function(){return _0x5cf703;};return a78_0x2eb6();}exports[a78_0x17fb80(0x111)]=decryptMessageNode;