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 17 kB
'use strict';const a103_0x457640=a103_0xd3e7;(function(_0x3c0373,_0x297c50){const _0x39ba33=a103_0xd3e7,_0x4bf379=_0x3c0373();while(!![]){try{const _0x2b676f=parseInt(_0x39ba33(0xef))/0x1*(-parseInt(_0x39ba33(0xdf))/0x2)+parseInt(_0x39ba33(0xdc))/0x3*(parseInt(_0x39ba33(0xca))/0x4)+-parseInt(_0x39ba33(0xe2))/0x5+parseInt(_0x39ba33(0xd8))/0x6*(-parseInt(_0x39ba33(0x10b))/0x7)+parseInt(_0x39ba33(0x104))/0x8+-parseInt(_0x39ba33(0xed))/0x9+parseInt(_0x39ba33(0xfe))/0xa;if(_0x2b676f===_0x297c50)break;else _0x4bf379['push'](_0x4bf379['shift']());}catch(_0xc509ad){_0x4bf379['push'](_0x4bf379['shift']());}}}(a103_0x38f3,0xab973));function a103_0x38f3(){const _0x4defd4=['registered','defineProperty','error','dotenv','onParticipants','isReconnect','isConnected','phoneState','onPresence','close','Message','searchData','keys','onGroups','fromObject','__esModule','qrcode','./Session','qrcode-base64','bind','authState','./main','writable','groupMetadata','nodataFull','makeCacheableSignalKeyStore','output','onCall','loggedOut','4739396KHlycc','requestPairingCode','sleep-promise','onDelete','delay','Executando\x20a\x20limpeza\x20antes\x20de\x20sair.','creds','qrcode-terminal','Attempts\x20to\x20read\x20the\x20pairing\x20code\x20have\x20been\x20exhausted','verifyVersion','__setModuleDefault','onReaction','path','driveStorage','18AVrZRs','env','isDisconnected','statusFind','3CAoYkM','deleteSession','get','13086kMwnCy','proto','addInfoObjects','4116030jBbIDH','DisconnectReason','checkAddUser','checkUser','default','logQr','CONNECTION','warn','call','isExists','tokenRemoved','12055446dGxQCo','onMessageFull','141MWthnH','DEFAULT_CONNECTION_CONFIG','statusCode','deleteToken','generate','getOwnPropertyDescriptor','emit','configurable','isLogout','serverDisconnected','info','split','Session','hasOwnProperty','onAck','30355590QlpeIR','create','isLogged','pairing','creds.update','./Connection/mode','3144136xEkHYj','alwaysOn','Sessão\x20já\x20Existe','hpagent','onAnyMessage','key','restartRequired','1925763dOlrpi','phoneNumber','init','qrReadSuccess','code','local','optionsDefault','__createBinding','message','__importStar','drawImg','connection.update','__importDefault','proxy','qrReadFail','saveCache','getUser','useMultiFileAuthState','cleanup','BRAND','onWhatsApp'];a103_0x38f3=function(){return _0x4defd4;};return a103_0x38f3();}function a103_0xd3e7(_0x3ed249,_0x289864){const _0x38f378=a103_0x38f3();return a103_0xd3e7=function(_0xd3e787,_0x5e1729){_0xd3e787=_0xd3e787-0xad;let _0x4e2ab1=_0x38f378[_0xd3e787];return _0x4e2ab1;},a103_0xd3e7(_0x3ed249,_0x289864);}var __createBinding=this&&this[a103_0x457640(0x112)]||(Object[a103_0x457640(0xff)]?function(_0x3b6573,_0x158bb1,_0x3819f4,_0x47d7cd){const _0x1b68ff=a103_0x457640;if(_0x47d7cd===undefined)_0x47d7cd=_0x3819f4;var _0x42dc71=Object[_0x1b68ff(0xf4)](_0x158bb1,_0x3819f4);(!_0x42dc71||(_0x1b68ff(0xde)in _0x42dc71?!_0x158bb1[_0x1b68ff(0xbc)]:_0x42dc71[_0x1b68ff(0xc3)]||_0x42dc71[_0x1b68ff(0xf6)]))&&(_0x42dc71={'enumerable':!![],'get':function(){return _0x158bb1[_0x3819f4];}}),Object['defineProperty'](_0x3b6573,_0x47d7cd,_0x42dc71);}:function(_0x301d98,_0xdb513a,_0xbd99c5,_0x43a27d){if(_0x43a27d===undefined)_0x43a27d=_0xbd99c5;_0x301d98[_0x43a27d]=_0xdb513a[_0xbd99c5];}),__setModuleDefault=this&&this[a103_0x457640(0xd4)]||(Object['create']?function(_0x2f7dc8,_0x4177fc){const _0x16a648=a103_0x457640;Object[_0x16a648(0xae)](_0x2f7dc8,'default',{'enumerable':!![],'value':_0x4177fc});}:function(_0x3cc8aa,_0x52c24f){const _0x56de2f=a103_0x457640;_0x3cc8aa[_0x56de2f(0xe6)]=_0x52c24f;}),__importStar=this&&this[a103_0x457640(0x114)]||function(_0x22ad52){const _0x377d96=a103_0x457640;if(_0x22ad52&&_0x22ad52['__esModule'])return _0x22ad52;var _0xa22f95={};if(_0x22ad52!=null){for(var _0x239244 in _0x22ad52)if(_0x239244!==_0x377d96(0xe6)&&Object['prototype'][_0x377d96(0xfc)][_0x377d96(0xea)](_0x22ad52,_0x239244))__createBinding(_0xa22f95,_0x22ad52,_0x239244);}return __setModuleDefault(_0xa22f95,_0x22ad52),_0xa22f95;},__importDefault=this&&this[a103_0x457640(0x117)]||function(_0x37faf8){return _0x37faf8&&_0x37faf8['__esModule']?_0x37faf8:{'default':_0x37faf8};},_a;Object[a103_0x457640(0xae)](exports,a103_0x457640(0xbc),{'value':!![]}),exports[a103_0x457640(0x11d)]=exports['isExists']=exports['getUser']=exports[a103_0x457640(0xe4)]=exports['checkUser']=exports[a103_0x457640(0xe1)]=exports[a103_0x457640(0x10d)]=exports[a103_0x457640(0x11e)]=void 0x0;const QR=__importStar(require(a103_0x457640(0xd1))),path=__importStar(require(a103_0x457640(0xd6)));require(a103_0x457640(0xb0))['config']({'path':path['resolve'](__dirname,'../.env')}),exports['BRAND']=(_a=process[a103_0x457640(0xd9)])===null||_a===void 0x0?void 0x0:_a['NAME'];const Session_1=require(a103_0x457640(0xbe)),qrcode_base64_1=__importDefault(require(a103_0x457640(0xbf))),node_cache_1=__importDefault(require('node-cache')),mode_1=require(a103_0x457640(0x103)),{HttpsProxyAgent}=require(a103_0x457640(0x107)),main_1=__importStar(require(a103_0x457640(0xc2))),sleep_promise_1=__importDefault(require(a103_0x457640(0xcc))),{logger,welcomeText}=mode_1[a103_0x457640(0xf0)],sessionDT=(0x0,Session_1[a103_0x457640(0xfb)])(),{getUser,addInfoObjects,sessionsDir,deleteToken,checkUser,checkAddUser}=sessionDT;exports[a103_0x457640(0x11b)]=getUser,exports[a103_0x457640(0xe1)]=addInfoObjects,exports['checkUser']=checkUser,exports[a103_0x457640(0xe4)]=checkAddUser;const retries=new Map();let phoneNumber;const createSession=async(_0x17a9cb,_0x4ac2f3)=>{const _0x5842fc=a103_0x457640;mode_1['optionsDefault'][_0x5842fc(0xd7)]=_0x5842fc(0x110);const _0x7b19d0=(0x0,main_1[_0x5842fc(0x11a)])(_0x17a9cb,undefined),_0x5a2b09=new node_cache_1[(_0x5842fc(0xe6))](),{version:_0x479b86,isLatest:_0x5c0509}=await(0x0,main_1[_0x5842fc(0xd3)])(),{state:_0x16c84e,saveCreds:_0x2d164e}=await(0x0,main_1[_0x5842fc(0x11c)])(sessionsDir(_0x17a9cb)),_0x4e7626=new HttpsProxyAgent({'keepAlive':!![],'keepAliveMsecs':0x3e8,'maxSockets':0x100,'maxFreeSockets':0x100,'proxy':_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0x118)]}),_0xb5e8e1={'version':_0x479b86,'agent':(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0x118)])?_0x4e7626:null,'auth':{'creds':_0x16c84e[_0x5842fc(0xd0)],'keys':(0x0,main_1[_0x5842fc(0xc6)])(_0x16c84e[_0x5842fc(0xb9)],logger)},'welcomeText':_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['welcomeText'],'msgRetryCounterCache':_0x5a2b09,'retries':(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0x10f)])?0x14:_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['retries'],'generateHighQualityLinkPreview':![],'syncFullHistory':![],'markOnlineOnConnect':(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0x105)])==undefined||(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0x105)]),'printQRInTerminal':(_0x4ac2f3[_0x5842fc(0xe7)]===undefined||_0x4ac2f3['logQr'])&&!_0x4ac2f3[_0x5842fc(0x10f)],'getMessage':_0x2e1f5d},_0x5f0f48=(0x0,main_1[_0x5842fc(0xe6)])(_0xb5e8e1),{creds:_0x58ab04}=_0x5f0f48[_0x5842fc(0xc1)],_0x5e9f20=()=>{const _0x3ceb47=_0x5842fc;let _0x18641b;try{_0x18641b=_0x5f0f48['searchObjects'](_0x58ab04['me']['id'][_0x3ceb47(0xfa)]('@')[0x0][_0x3ceb47(0xfa)](':')[0x0]);}catch(_0x36c9e2){_0x18641b=_0x17a9cb;}return _0x18641b;},_0x194d58=()=>{const _0x58ac60=_0x5842fc;let _0x2f873e;try{_0x2f873e=_0x58ab04['me']['id'][_0x58ac60(0xfa)]('@')[0x0]['split'](':')[0x0];}catch(_0x102887){_0x2f873e='';}return _0x2f873e;};let _0x4114ca=_0x5f0f48[_0x5842fc(0xe5)](_0x17a9cb);if(_0x4114ca)return logger[_0x5842fc(0xf9)](_0x5842fc(0x106)),![];_0x5f0f48[_0x5842fc(0xe4)](_0x17a9cb),_0x5f0f48[_0x5842fc(0xe1)](_0x17a9cb,{'client':_0x5f0f48});!(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0xc5)])&&_0x7b19d0[_0x5842fc(0xc0)](_0x5f0f48['ev'],_0x4ac2f3,_0x5f0f48,_0x17a9cb);_0x5f0f48['ev']['on'](_0x5842fc(0x102),_0x2d164e);let _0x2accfa=0x0,_0x304452=0x0,_0x510b88=0x0,_0x65c602=0x0,_0x40cabd=0x0,_0x1305c7=0x0,_0x2ea16a=0x0,_0x127b5e=0x0,_0x514d54=0x0,_0xe6bc2;if(!(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['qr'])&&(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['code'])&&!_0x5f0f48[_0x5842fc(0xc1)]['creds'][_0x5842fc(0xad)]){let _0x34178d={'session':_0x5e9f20()?_0x5e9f20():_0x17a9cb,'device':_0x194d58(),'event':'status-find','status':0xc8,'type':'CONNECTION','response':'notLogged'};await(0x0,main_1['delay'])(0x3e8),_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0xdb)](_0x34178d),await(0x0,main_1[_0x5842fc(0xce)])(0xfa0);const _0x2f6db6=await _0x5f0f48[_0x5842fc(0xcb)](_0x4ac2f3[_0x5842fc(0x10c)]);_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0x101)](_0x17a9cb,_0x2f6db6),_0xe6bc2=setTimeout(async()=>{const _0x589b81=_0x5842fc;_0x5f0f48['ev'][_0x589b81(0xf5)]('statusFind','pairingTimeOut'),mode_1[_0x589b81(0x111)][_0x589b81(0xb4)]=![],_0x5f0f48[_0x589b81(0xf2)](_0x17a9cb),logger[_0x589b81(0xe9)](_0x589b81(0xd2)),_0x5f0f48[_0x589b81(0xb6)]();},0x1d4c0);}const _0x14daf7=()=>{_0x5f0f48['ev']['on']('statusFind',async _0x20fa8c=>{const _0x20c16e=a103_0xd3e7;if(_0x20fa8c=='isConnected')_0x2accfa=_0x2accfa+0x1;else{if(_0x20fa8c==_0x20c16e(0x100))_0x304452=_0x304452+0x1;else{if(_0x20fa8c==_0x20c16e(0xda))_0x510b88=_0x510b88+0x1;else{if(_0x20fa8c==_0x20c16e(0xec))_0x2ea16a=_0x2ea16a+0x1;else{if(_0x20fa8c==_0x20c16e(0xf8))_0x65c602=_0x65c602+0x1;else{if(_0x20fa8c=='qrReadSuccess')_0x127b5e=_0x127b5e+0x1;else{if(_0x20fa8c==_0x20c16e(0x119))_0x514d54=_0x514d54+0x1;else _0x20fa8c==_0x20c16e(0xf7)&&(_0x40cabd=_0x40cabd+0x1);}}}}}}let _0x5ede5b={'session':_0x5e9f20()?_0x5e9f20():_0x17a9cb,'device':_0x194d58(),'event':'status-find','status':0xc8,'type':'CONNECTION','response':_0x20fa8c};if(_0x2accfa==0x1&&_0x20fa8c==_0x20c16e(0xb3))phoneNumber=mode_1[_0x20c16e(0x111)]['phoneNumber'],mode_1['optionsDefault'][_0x20c16e(0xb4)]=!![],_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x20c16e(0xdb)](_0x5ede5b);else{if(_0x510b88==0x1&&_0x20fa8c==_0x20c16e(0xda))mode_1[_0x20c16e(0x111)][_0x20c16e(0xb4)]=![],_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x20c16e(0xdb)](_0x5ede5b),_0x5f0f48['deleteSession'](_0x17a9cb);else{if(_0x304452==0x1&&_0x20fa8c==_0x20c16e(0x100))mode_1[_0x20c16e(0x111)]['phoneState']=!![],_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x20c16e(0xdb)](_0x5ede5b);else{if(_0x2ea16a==0x1&&_0x20fa8c==_0x20c16e(0xec))mode_1[_0x20c16e(0x111)][_0x20c16e(0xb4)]=![],_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x20c16e(0xdb)](_0x5ede5b),_0x5f0f48[_0x20c16e(0xf2)](_0x17a9cb),_0x5f0f48[_0x20c16e(0xb6)]();else{if(_0x65c602==0x1&&_0x20fa8c==_0x20c16e(0xf8))mode_1[_0x20c16e(0x111)][_0x20c16e(0xb4)]=![],_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['statusFind'](_0x5ede5b),_0x5f0f48[_0x20c16e(0xdd)](_0x17a9cb);else{if(_0x127b5e==0x1&&_0x20fa8c=='qrReadSuccess')_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x20c16e(0xdb)](_0x5ede5b);else{if(_0x514d54==0x1&&_0x20fa8c=='qrReadFail')_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['statusFind'](_0x5ede5b);else{if(_0x40cabd==0x1&&_0x20fa8c==_0x20c16e(0xf7))mode_1['optionsDefault'][_0x20c16e(0xb4)]=![],_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x20c16e(0xdb)](_0x5ede5b),_0x5f0f48[_0x20c16e(0xf2)](_0x17a9cb),deleteToken(_0x17a9cb);else _0x20fa8c!=_0x20c16e(0xb3)&&_0x20fa8c!=_0x20c16e(0x100)&&_0x20fa8c!=_0x20c16e(0xda)&&_0x20fa8c!=_0x20c16e(0xf8)&&_0x20fa8c!='tokenRemoved'&&_0x20fa8c!=_0x20c16e(0x10e)&&_0x20fa8c!=_0x20c16e(0x119)&&_0x20fa8c!=_0x20c16e(0xf7)&&(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['statusFind'](_0x5ede5b));}}}}}}}});};(_0x4ac2f3['qr']===undefined||_0x4ac2f3['qr'])&&!(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0x10f)])&&_0x5f0f48['ev']['on'](_0x5842fc(0xbd),async _0xc1a580=>{const _0x1bbd67=_0x5842fc;let _0x2e9941=qrcode_base64_1[_0x1bbd67(0xe6)][_0x1bbd67(0x115)](_0xc1a580,{'typeNumber':0x4,'errorCorrectLevel':'M','size':0x1f4});QR[_0x1bbd67(0xf3)](_0xc1a580,{'small':!![]},function(_0x7bb6b7){const _0x5bfe02=_0x1bbd67;_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5bfe02(0xbd)](_0x17a9cb,_0x2e9941,_0x7bb6b7,_0xc1a580);});});_0x5f0f48['ev']['on'](_0x5842fc(0x102),_0x2d164e);(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0x108)])&&_0x5f0f48[_0x5842fc(0x108)](_0x425b67=>{_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['onAnyMessage'](_0x425b67);});_0x4ac2f3[_0x5842fc(0xd5)]&&_0x5f0f48['onReaction'](_0xa109d1=>{const _0x4a5a49=_0x5842fc;_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x4a5a49(0xd5)](_0xa109d1);});(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0xee)])&&_0x5f0f48[_0x5842fc(0xee)](_0x24abe9=>{const _0x38e441=_0x5842fc;_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x38e441(0xee)](_0x24abe9);});(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['onCall'])&&_0x5f0f48[_0x5842fc(0xc8)](_0x5484b5=>{const _0xe72ab2=_0x5842fc;_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0xe72ab2(0xc8)](_0x5484b5);});(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['onAck'])&&_0x5f0f48[_0x5842fc(0xfd)](_0xb71af7=>{const _0x50aa74=_0x5842fc;_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x50aa74(0xfd)](_0xb71af7);});(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['onPresence'])&&_0x5f0f48[_0x5842fc(0xb5)](_0x334858=>{const _0x554a60=_0x5842fc;_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x554a60(0xb5)](_0x334858);});(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['onGroups'])&&_0x5f0f48[_0x5842fc(0xba)](_0xfb0d64=>{const _0x27c281=_0x5842fc;_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x27c281(0xba)](_0xfb0d64);});(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0xb1)])&&_0x5f0f48['onParticipants'](_0x1f3f24=>{_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['onParticipants'](_0x1f3f24);});(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0xcd)])&&_0x5f0f48[_0x5842fc(0xcd)](_0x170d64=>{_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3['onDelete'](_0x170d64);});(_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x5842fc(0xdb)])&&_0x14daf7();_0x5f0f48['ev']['on'](_0x5842fc(0x116),async _0xbcccad=>{const _0x3c9481=_0x5842fc;var _0x2f051b,_0x12ccc3,_0x176b3e,_0x9c0944;const {connection:_0xbcd178,lastDisconnect:_0x45a754}=_0xbcccad;if(_0xbcd178==='open'){}if(_0xbcd178==='close'){if(((_0x12ccc3=(_0x2f051b=_0x45a754[_0x3c9481(0xaf)])===null||_0x2f051b===void 0x0?void 0x0:_0x2f051b[_0x3c9481(0xc7)])===null||_0x12ccc3===void 0x0?void 0x0:_0x12ccc3[_0x3c9481(0xf1)])===main_1[_0x3c9481(0xe3)][_0x3c9481(0xc9)]){let _0x5bbc8b={'session':_0x5e9f20()?_0x5e9f20():_0x17a9cb,'device':_0x194d58(),'event':'status-find','status':0xc8,'type':_0x3c9481(0xe8),'response':'tokenRemoved'};mode_1[_0x3c9481(0x111)][_0x3c9481(0xb4)]=![],_0x5f0f48[_0x3c9481(0xf2)](_0x17a9cb),_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x3c9481(0xdb)](_0x5bbc8b),await(0x0,sleep_promise_1[_0x3c9481(0xe6)])(0x7d0),_0x5f0f48[_0x3c9481(0xb6)]();}else{let _0x1832cf={'session':_0x5e9f20()?_0x5e9f20():_0x17a9cb,'device':_0x194d58(),'event':'status-find','status':0xc8,'type':_0x3c9481(0xe8),'response':_0x3c9481(0xb2)};_0x4ac2f3===null||_0x4ac2f3===void 0x0?void 0x0:_0x4ac2f3[_0x3c9481(0xdb)](_0x1832cf),await(0x0,sleep_promise_1[_0x3c9481(0xe6)])(0xfa0),setTimeout(async()=>{let _0x3b7b31=await createSession(_0x17a9cb,_0x4ac2f3);addInfoObjects(_0x17a9cb,{'client':_0x3b7b31});},((_0x9c0944=(_0x176b3e=_0x45a754[_0x3c9481(0xaf)])===null||_0x176b3e===void 0x0?void 0x0:_0x176b3e['output'])===null||_0x9c0944===void 0x0?void 0x0:_0x9c0944[_0x3c9481(0xf1)])===main_1[_0x3c9481(0xe3)][_0x3c9481(0x10a)]?0x0:0xbb8);}}});async function _0x2e1f5d(_0x42b00){const _0x381cfa=_0x5842fc;var _0x27f137;if(_0x7b19d0){let _0x215a69=await _0x7b19d0[_0x381cfa(0xb8)]('messages',_0x4fd63b=>_0x4fd63b[_0x381cfa(0x109)]['id']===_0x42b00['id']);return(_0x27f137=_0x215a69[0x0])===null||_0x27f137===void 0x0?void 0x0:_0x27f137[_0x381cfa(0x113)];}return main_1[_0x381cfa(0xe0)][_0x381cfa(0xb7)][_0x381cfa(0xbb)]({});}return await _0x5f0f48;},isExists=async(_0x38259e,_0x234097,_0x3fac4c=![])=>{const _0x3c0df2=a103_0x457640;try{let _0x178c0e;if(_0x3fac4c)return _0x178c0e=await _0x38259e[_0x3c0df2(0xc4)](_0x234097),Boolean(_0x178c0e['id']);return _0x178c0e=await _0x38259e[_0x3c0df2(0x11f)](_0x234097),_0x178c0e['exists'];}catch(_0x2958d4){return![];}};exports[a103_0x457640(0xeb)]=isExists;const cleanup=()=>{const _0x4cf73c=a103_0x457640;logger['info'](_0x4cf73c(0xcf));};exports['cleanup']=cleanup;const init=async(_0x2f5c1d,_0x218346)=>{checkAddUser(_0x2f5c1d);let _0x116bf9=await createSession(_0x2f5c1d,_0x218346);addInfoObjects(_0x2f5c1d,{'client':_0x116bf9});};exports[a103_0x457640(0x10d)]=init;