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 • 4.04 kB
JavaScript
;function a76_0x712d(_0x4f171c,_0x29a2b1){const _0x45970d=a76_0x4597();return a76_0x712d=function(_0x712d4a,_0x271445){_0x712d4a=_0x712d4a-0xd8;let _0x116d61=_0x45970d[_0x712d4a];return _0x116d61;},a76_0x712d(_0x4f171c,_0x29a2b1);}const a76_0x3b6c3e=a76_0x712d;(function(_0x329cef,_0x4993dd){const _0x813f71=a76_0x712d,_0xf70df3=_0x329cef();while(!![]){try{const _0x31e7fa=parseInt(_0x813f71(0xf2))/0x1*(-parseInt(_0x813f71(0xe7))/0x2)+-parseInt(_0x813f71(0xfa))/0x3+parseInt(_0x813f71(0xec))/0x4+-parseInt(_0x813f71(0xf4))/0x5+-parseInt(_0x813f71(0xe8))/0x6*(-parseInt(_0x813f71(0xeb))/0x7)+-parseInt(_0x813f71(0xf5))/0x8+-parseInt(_0x813f71(0xd9))/0x9*(-parseInt(_0x813f71(0xed))/0xa);if(_0x31e7fa===_0x4993dd)break;else _0xf70df3['push'](_0xf70df3['shift']());}catch(_0x6f426){_0xf70df3['push'](_0xf70df3['shift']());}}}(a76_0x4597,0x1f2ac));Object[a76_0x3b6c3e(0xde)](exports,a76_0x3b6c3e(0xe0),{'value':!![]}),exports[a76_0x3b6c3e(0xda)]=void 0x0;const promises_1=require(a76_0x3b6c3e(0xfd)),path_1=require('path'),enc_1=require(a76_0x3b6c3e(0xee)),login_1=require(a76_0x3b6c3e(0xfc)),similary_1=require('./similary'),useMultiFileAuthState=async _0x4f03d9=>{const _0x4dbb3c=a76_0x3b6c3e,_0x4f326e=(_0x423f18,_0x341bb1)=>{const _0x50bf1a=a76_0x712d;return(0x0,promises_1[_0x50bf1a(0xe6)])((0x0,path_1['join'])(_0x4f03d9,_0x4741c1(_0x341bb1)),JSON[_0x50bf1a(0xf9)](_0x423f18,similary_1['BufferJSON'][_0x50bf1a(0xdd)]));},_0x1e7778=async _0x58a679=>{const _0x5764eb=a76_0x712d;try{const _0x483d45=await(0x0,promises_1[_0x5764eb(0xf3)])((0x0,path_1['join'])(_0x4f03d9,_0x4741c1(_0x58a679)),{'encoding':_0x5764eb(0xe1)});return JSON[_0x5764eb(0xf7)](_0x483d45,similary_1[_0x5764eb(0xe4)][_0x5764eb(0xdc)]);}catch(_0x5606bb){return null;}},_0x412070=async _0x4c068b=>{const _0x32ab37=a76_0x712d;try{await(0x0,promises_1[_0x32ab37(0xf1)])((0x0,path_1[_0x32ab37(0xe9)])(_0x4f03d9,_0x4741c1(_0x4c068b)));}catch(_0x4c411c){}},_0x7d7d55=await(0x0,promises_1[_0x4dbb3c(0xdb)])(_0x4f03d9)['catch'](()=>{});if(_0x7d7d55){if(!_0x7d7d55[_0x4dbb3c(0xfe)]())throw null;}else await(0x0,promises_1['mkdir'])(_0x4f03d9,{'recursive':!![]});const _0x4741c1=_0x31c06b=>{const _0x5053bc=_0x4dbb3c;var _0x1d40ad;return(_0x1d40ad=_0x31c06b===null||_0x31c06b===void 0x0?void 0x0:_0x31c06b[_0x5053bc(0xe5)](/\//g,'__'))===null||_0x1d40ad===void 0x0?void 0x0:_0x1d40ad[_0x5053bc(0xe5)](/:/g,'-');},_0x28e740=await _0x1e7778(_0x4dbb3c(0xe3))||(0x0,login_1[_0x4dbb3c(0xef)])();return{'state':{'creds':_0x28e740,'keys':{'get':async(_0x3a0bb5,_0x3a0977)=>{const _0x3d4872=_0x4dbb3c,_0x31d340={};return await Promise[_0x3d4872(0xf6)](_0x3a0977[_0x3d4872(0xf8)](async _0x172ed1=>{const _0x59c726=_0x3d4872;let _0x115283=await _0x1e7778(_0x3a0bb5+'-'+_0x172ed1+'.json');_0x3a0bb5===_0x59c726(0xea)&&_0x115283&&(_0x115283=enc_1[_0x59c726(0xf0)][_0x59c726(0xe2)][_0x59c726(0xfb)][_0x59c726(0xdf)](_0x115283)),_0x31d340[_0x172ed1]=_0x115283;})),_0x31d340;},'set':async _0x319054=>{const _0xe7686c=_0x4dbb3c,_0x5b039d=[];for(const _0x449e25 in _0x319054){for(const _0x564234 in _0x319054[_0x449e25]){const _0x362c87=_0x319054[_0x449e25][_0x564234],_0x3665d2=_0x449e25+'-'+_0x564234+_0xe7686c(0xd8);_0x5b039d['push'](_0x362c87?_0x4f326e(_0x362c87,_0x3665d2):_0x412070(_0x3665d2));}}await Promise['all'](_0x5b039d);}}},'saveCreds':()=>{const _0x55a642=_0x4dbb3c;return _0x4f326e(_0x28e740,_0x55a642(0xe3));}};};exports['useMultiFileAuthState']=useMultiFileAuthState;function a76_0x4597(){const _0x413f13=['parse','map','stringify','116670HDsXgS','AppStateSyncKeyData','../process/login','fs/promises','isDirectory','.json','143973idOftR','useMultiFileAuthState','stat','reviver','replacer','defineProperty','fromObject','__esModule','utf-8','Message','creds.json','BufferJSON','replace','writeFile','280SxwdRs','803646TevLns','join','app-state-sync-key','7iyUlQz','295784trlYrx','170nGHjlj','../../Connection/enc','initAuthCreds','proto','unlink','85VmIjLb','readFile','616635viRosv','1424472yNgAaZ','all'];a76_0x4597=function(){return _0x413f13;};return a76_0x4597();}