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 • 2.02 kB
JavaScript
;function a52_0x258c(){const _0x533248=['128002ynecTa','SessionLock','3211785ZmaVWN','then','365ixgAkP','21080aFfTuW','3iwaEmT','2413579YZHCkL','4497484OVveof','43860xJFXKh','2306342qGMUEn','push','10hfrLne','_promises','__esModule','catch','errors'];a52_0x258c=function(){return _0x533248;};return a52_0x258c();}const a52_0x2e3e20=a52_0x8828;(function(_0x466fb9,_0x523f2b){const _0x56acf0=a52_0x8828,_0x534d9b=_0x466fb9();while(!![]){try{const _0x2ec821=parseInt(_0x56acf0(0x83))/0x1+parseInt(_0x56acf0(0x7c))/0x2*(-parseInt(_0x56acf0(0x89))/0x3)+parseInt(_0x56acf0(0x7a))/0x4+-parseInt(_0x56acf0(0x87))/0x5*(-parseInt(_0x56acf0(0x7b))/0x6)+parseInt(_0x56acf0(0x8a))/0x7+parseInt(_0x56acf0(0x88))/0x8+-parseInt(_0x56acf0(0x85))/0x9*(parseInt(_0x56acf0(0x7e))/0xa);if(_0x2ec821===_0x523f2b)break;else _0x534d9b['push'](_0x534d9b['shift']());}catch(_0x3f76b0){_0x534d9b['push'](_0x534d9b['shift']());}}}(a52_0x258c,0x98327));Object['defineProperty'](exports,a52_0x2e3e20(0x80),{'value':!![]}),exports[a52_0x2e3e20(0x84)]=void 0x0;const jobQueue={};function a52_0x8828(_0x1daa63,_0x41809f){const _0x258c12=a52_0x258c();return a52_0x8828=function(_0x8828af,_0x4dcde7){_0x8828af=_0x8828af-0x7a;let _0x39ff5d=_0x258c12[_0x8828af];return _0x39ff5d;},a52_0x8828(_0x1daa63,_0x41809f);}class SessionLock{static['queueJobForNumber'](_0x352192,_0x3b2906){const _0x5df569=a52_0x2e3e20,_0x4616e9=jobQueue[_0x352192]||Promise['resolve'](),_0x1c8c5d=jobQueue[_0x352192]=_0x4616e9[_0x5df569(0x86)](_0x3b2906,_0x3b2906),_0x16d172=_0x1c8c5d[_0x5df569(0x86)](function(){jobQueue[_0x352192]===_0x1c8c5d&&delete jobQueue[_0x352192];})[_0x5df569(0x81)](_0x1542b5=>{const _0x2f1786=_0x5df569;SessionLock['errors'][_0x2f1786(0x7d)](_0x1542b5);});return SessionLock[_0x5df569(0x7f)][_0x5df569(0x7d)](_0x16d172),_0x1c8c5d;}static async['clearQueue'](){const _0x31dccd=a52_0x2e3e20;await Promise['all'](SessionLock[_0x31dccd(0x7f)]);}}exports[a52_0x2e3e20(0x84)]=SessionLock,SessionLock[a52_0x2e3e20(0x82)]=[],SessionLock['_promises']=[];