-
Notifications
You must be signed in to change notification settings - Fork 30
/
index.js
1 lines (1 loc) · 28.6 KB
/
index.js
1
function _0x4920(_0x46aab0,_0x424763){const _0x14a815=_0x14a8();return _0x4920=function(_0x4920a0,_0x1b604b){_0x4920a0=_0x4920a0-0x14f;let _0x1372d6=_0x14a815[_0x4920a0];return _0x1372d6;},_0x4920(_0x46aab0,_0x424763);}function _0x5c1615(_0x332ca5,_0x475161){return _0x4920(_0x332ca5- -0x261,_0x475161);}(function(_0x15fc98,_0x5d6173){const _0x9990ff=_0x15fc98();function _0x55921c(_0x223c75,_0x4582c5){return _0x4920(_0x4582c5-0x2eb,_0x223c75);}while(!![]){try{const _0x20114c=parseInt(_0x55921c(0x512,0x4f4))/0x1*(parseInt(_0x55921c(0x4dc,0x4da))/0x2)+-parseInt(_0x55921c(0x46c,0x445))/0x3+parseInt(_0x55921c(0x4b2,0x4ad))/0x4+parseInt(_0x55921c(0x4ef,0x4a3))/0x5*(-parseInt(_0x55921c(0x4e5,0x4ea))/0x6)+parseInt(_0x55921c(0x440,0x479))/0x7+parseInt(_0x55921c(0x495,0x4ec))/0x8+parseInt(_0x55921c(0x45c,0x477))/0x9*(-parseInt(_0x55921c(0x477,0x47a))/0xa);if(_0x20114c===_0x5d6173)break;else _0x9990ff['push'](_0x9990ff['shift']());}catch(_0x4c6fd1){_0x9990ff['push'](_0x9990ff['shift']());}}}(_0x14a8,0x9ee44));function _0x14a8(){const _0x70c7a4=['remove','desc','downloadMediaMessage','./media/welcome.jpg','sendContact','sendMessage','silent','mimetype','messages.upsert','isBuffer','sendImage','DD/MM/YYYY','close','Caught\x20exception:\x20','remoteJid','packname','matchAll','format','viewOnceMessage','@adiwajshing/baileys','cyan','open','./database/owner.json','getFile','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','4PMdVcw','\x0aitem3.X-ABLabel:GitHub\x0aitem4.ADR:;;','\x20Selamat\x20@','child','copyNForward','VOTE\x20LAH\x20SEMUA','\x0aFN:','Connected...','length','c.us','server','announce','utf-8','keys','「\x20Pengaturan\x20Grup\x20」\x0a\x0aGrup\x20Telah\x20Di\x20Tutup\x20Oleh\x20Admin,\x20Sekarang\x20Hanya\x20Admin\x20Yang\x20Dapat\x20Mengirim\x20Pesan\x20!','parse','12yabEdG','KATANYA\x20WA\x20KEBAL','5577336hPnyOa','international','action','session','store','BERANI\x20VOTE\x20GA','string','white','643387LsxtOX','\x0aitem2.X-ABLabel:YouTube\x0aitem3.URL:','contextInfo','fromMe','connectionReplaced',',\x20Bukan\x20Admin\x20Lagi','.bin','readFileSync','\x0aitem1.TEL;waid=','getName','unlink','from','viewOnce','promises','fromBuffer','bind','1109079QWbpFs','SALAM\x20DARI\x20Rainchy\x20BOT','@s.whatsapp.net','query','sendText','*Bot\x20Aktif!*\x0a\x0a\x0a_Jangan\x20Lupa\x20Support,\x20Kak\x20:)_\x0a\x0a\x20•\x20YouTube:\x20https://youtube.com/@Xyroinee\x0a\x0a\x20•\x20GitHub:\x20https://github.com/Xyroinee\x0a\x0a\x20•\x20Instsgram:\x20https://instagram.com/danilelistz02\x0a\x0a\x0a_*Thanks\x20to*_\x0a_*My\x20God*_\x0a_*Myself*_\x0a_*Family*_\x0a_*Dan\x20Semua\x20Yang\x20Berkontribusi\x20Dalam\x20Pengembangan\x20Script\x20Ini*_','contacts','textSync','clear','\x0a│❐\x20Member:\x20','https://i.ibb.co/RBx5SQC/avatar-group-large-v2.png?q=60','BAE5','author','document','PHOTO','status@broadcast','replace','asDocument','blocklist','categories','./lib/myfunc','message','parseMention','loggedOut','<\x20==========================\x20>','./lib','./lib/color','「\x20Pengaturan\x20Grup\x20」\x0a\x0aGrup\x20Telah\x20Di\x20Buka\x20Oleh\x20Admin,\x20Sekarang\x20Semua\x20Peserta\x20Dapat\x20Mengirim\x20Pesan\x20!','messages','image','./lib/loader','promote','existsSync','relayMessage','connectionLost','HH:mm:ss','user','readViewOnce','default','green','./lib/exif','profilePictureUrl','logout','\x20」\x0a│❐\x20Welcome:\x20@','./module','./xyroinee.js','push','ext','connectionClosed','creds.update','246573ZkkZTI','botname','6574169OjItyh','710egjXAM','key','nomorown','Standard','getNumber','uncaughtException','unlinkSync','ephemeralMessage','toString','mtype','end',',\x20Telah\x20Menjadi\x20Admin','concat','yellow','\x20」\x0a│❐\x20Goodbye:\x20@','\x0aitem1.X-ABLabel:Click\x20here\x20to\x20chat\x0aitem2.EMAIL;type=INTERNET:','@g.us','groupMetadata','Th\x0a│❐\x20Date:\x20','sendTextWithMentions','\x0aMenunggu\x20Pesan\x20Baru....','\x20Contact','restrict','verifiedName','json','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','Asia/Jakarta','writeFileSync','split','magenta','「\x20Pengaturan\x20Grup\x20」\x0a\x0aInfo\x20Grup\x20Di\x20Tutup,\x20Sekarang\x20Hanya\x20Admin\x20Yang\x20Dapat\x20Mengubah\x20Info\x20Grup\x20!','timedOut','fatal','./index.js','1.0.0','setStatus','subject','name','output','base64','\x0a╭─❖「\x20','797095qfmFrC','writeFile','notify','0@s.whatsapp.net','Safari','「\x20Pengaturan\x20Grup\x20」\x0a\x0a*Deskripsi\x20Grup\x20Di\x20Ubah\x20Ke*\x0a\x0a','ignore','test','downloadAndSaveMediaMessage','statusCode','1445720AIIbmP','startsWith','KATANYA\x20KEBAL','Connection\x20closed,\x20reconnecting....','msg','Powered\x20by\x20Xyroinee','add','decodeJid','bold','log','./lib/spinner','public','Yah...\x20@','Unknown\x20DisconnectReason:\x20','participants','alloc','image/webp','audio','status','group-participants.update'];_0x14a8=function(){return _0x70c7a4;};return _0x14a8();}const {modul}=require(_0x5c1615(-0xdb,-0xe0)),{baileys,boom,chalk,fs,moment,figlet,FileType,path,pino,process,PhoneNumber}=modul,{Boom}=boom,{default:ClaraConnect,useSingleFileAuthState,fetchLatestBaileysVersion,generateForwardMessageContent,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,jidDecode,proto}=require(_0x5c1615(-0x78,-0xc2)),{default:makeWASocket,BufferJSON,initInMemoryKeyStore,DisconnectReason,AnyMessageContent,makeInMemoryStore,useMultiFileAuthState,delay}=require(_0x5c1615(-0x78,-0x4a)),{color,bgcolor}=require(_0x5c1615(-0xed,-0xaa)),colors=require('colors'),{uncache,nocache}=require(_0x5c1615(-0xe9,-0xef)),{start}=require(_0x5c1615(-0x95,-0x62)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(_0x5c1615(-0xdf,-0xaf)),{smsg,isUrl,generateMessageTag,getBuffer,getSizeMedia,fetchJson,await,sleep,reSize}=require(_0x5c1615(-0xf3,-0x9a)),owner=JSON[_0x5c1615(-0x63,-0x74)](fs[_0x5c1615(-0x110,-0x135)](_0x5c1615(-0x75,-0x2a))),store=makeInMemoryStore({'logger':pino()[_0x5c1615(-0x6f,-0x5f)]({'level':_0x5c1615(-0x85,-0xd3),'stream':_0x5c1615(-0x5c,-0xb0)})}),me=require(_0x5c1615(-0xda,-0xad));require(_0x5c1615(-0xb1,-0xc7));function title(){console[_0x12b5cd(0x40f,0x3c9)]();function _0x12b5cd(_0x34861b,_0x2c5b6e){return _0x5c1615(_0x2c5b6e-0x4c8,_0x34861b);}console['log'](chalk['yellow'](chalk[_0x12b5cd(0x41c,0x431)][_0x12b5cd(0x432,0x403)]('[\x20'+botname+'\x20]')+'\x0a\x0a')),console[_0x12b5cd(0x427,0x432)](color(_0x12b5cd(0x40c,0x3d9),_0x12b5cd(0x436,0x451))),console[_0x12b5cd(0x420,0x432)](color('\x0aClara-MD',_0x12b5cd(0x3f4,0x413)));}async function ClaraBot(){const {state:_0x1b0bcb,saveCreds:_0x3bbfb4}=await useMultiFileAuthState(_0x259beb(0x183,0x12d)),_0x546677=ClaraConnect({'printQRInTerminal':!![],'logger':pino({'level':_0x259beb(0x12e,0x17a)}),'auth':_0x1b0bcb,'browser':[''+botname,_0x259beb(0x13b,0x156),_0x259beb(0x130,0x159)],'getMessage':async _0x1e75dc=>{return{};}});store[_0x259beb(0xd8,0x97)](_0x546677['ev']),console[_0x259beb(0x14a,0x123)](color(figlet[_0x259beb(0xe0,0xbc)]('Xyroinee-ID',{'font':_0x259beb(0x111,0xee),'horizontalLayout':_0x259beb(0xff,0x108),'vertivalLayout':_0x259beb(0xff,0xf2),'whitespaceBreak':![]}),_0x259beb(0x100,0xd3))),_0x546677['ws']['on']('CB:Blocklist',_0x257096=>{if(blocked[_0x42cabf(0xb1,0xf6)]>0x2)return;function _0x42cabf(_0x169642,_0x169be1){return _0x259beb(_0x169be1- -0x80,_0x169642);}for(let _0x727507 of _0x257096[0x1][_0x42cabf(0xba,0x6b)]){blocked['push'](_0x727507[_0x42cabf(0x58,0x69)](_0x42cabf(0xc5,0xf7),'s.whatsapp.net'));}}),_0x546677['ev']['on'](_0x259beb(0x15d,0x132),async _0xd8d83=>{function _0x2f4d3b(_0x5f7c61,_0x7240ca){return _0x259beb(_0x5f7c61-0x39b,_0x7240ca);}try{kay=_0xd8d83[_0x2f4d3b(0x490,0x46a)][0x0];if(!kay[_0x2f4d3b(0x489,0x4c7)])return;kay[_0x2f4d3b(0x489,0x47c)]=Object[_0x2f4d3b(0x516,0x512)](kay['message'])[0x0]===_0x2f4d3b(0x4b0,0x471)?kay[_0x2f4d3b(0x489,0x46f)]['ephemeralMessage'][_0x2f4d3b(0x489,0x4d8)]:kay[_0x2f4d3b(0x489,0x43b)];if(kay[_0x2f4d3b(0x4aa,0x4d5)]&&kay[_0x2f4d3b(0x4aa,0x452)][_0x2f4d3b(0x4fe,0x53c)]==='status@broadcast')return;if(!_0x546677[_0x2f4d3b(0x4e7,0x4a4)]&&!kay[_0x2f4d3b(0x4aa,0x47f)][_0x2f4d3b(0x526,0x530)]&&_0xd8d83['type']===_0x2f4d3b(0x4d4,0x493))return;if(kay['key']['id'][_0x2f4d3b(0x4dd,0x492)](_0x2f4d3b(0x47f,0x43d))&&kay['key']['id']['length']===0x10)return;m=smsg(_0x546677,kay,store),require('./xyroinee')(_0x546677,m,_0xd8d83,store);}catch(_0x4676ac){console[_0x2f4d3b(0x4e5,0x4f6)](_0x4676ac);}}),_0x546677['ev']['on']('groups.update',async _0x459572=>{try{ppgroup=await _0x546677[_0x7594e2(0x271,0x259)](anu['id'],_0x7594e2(0x265,0x248));}catch(_0x372b73){ppgroup=_0x7594e2(0x252,0x297);}console[_0x7594e2(0x2b9,0x26a)](_0x459572);const _0x27c7ac=_0x459572[0x0];function _0x7594e2(_0x540178,_0x1b2ac5){return _0x259beb(_0x540178-0x16f,_0x1b2ac5);}if(_0x27c7ac[_0x7594e2(0x2e8,0x2d9)]==!![])await sleep(0x7d0),_0x546677[_0x7594e2(0x2c9,0x2dc)](_0x27c7ac['id'],{'text':_0x7594e2(0x2eb,0x2cd)});else{if(_0x27c7ac[_0x7594e2(0x2e8,0x340)]==![])await sleep(0x7d0),_0x546677['sendMessage'](_0x27c7ac['id'],{'text':_0x7594e2(0x263,0x228)});else{if(_0x27c7ac[_0x7594e2(0x293,0x292)]==!![])await sleep(0x7d0),_0x546677['sendMessage'](_0x27c7ac['id'],{'text':_0x7594e2(0x29b,0x2c7)});else{if(_0x27c7ac[_0x7594e2(0x293,0x286)]==![])await sleep(0x7d0),_0x546677[_0x7594e2(0x2c9,0x327)](_0x27c7ac['id'],{'text':'「\x20Pengaturan\x20Grup\x20」\x0a\x0aInfo\x20Grup\x20Di\x20Buka,\x20Sekarang\x20Peserta\x20Dapat\x20Mengubah\x20Info\x20Grup\x20!'});else!_0x27c7ac[_0x7594e2(0x2c5,0x31a)]==''?(await sleep(0x7d0),_0x546677[_0x7594e2(0x2c9,0x288)](_0x27c7ac['id'],{'text':_0x7594e2(0x2ab,0x29b)+_0x27c7ac[_0x7594e2(0x2c5,0x31a)]})):(await sleep(0x7d0),_0x546677[_0x7594e2(0x2c9,0x2b2)](_0x27c7ac['id'],{'text':'「\x20Pengaturan\x20Grup\x20」\x0a\x0a*Nama\x20Grup\x20Di\x20Ubah\x20Ke*\x0a\x0a*'+_0x27c7ac[_0x7594e2(0x2a1,0x264)]+'*'}));}}}}),_0x546677['ev']['on'](_0x259beb(0x154,0x116),async _0x12b45c=>{console[_0x37b66d(-0x208,-0x253)](_0x12b45c);function _0x37b66d(_0x4961e7,_0x361954){return _0x259beb(_0x4961e7- -0x352,_0x361954);}try{let _0x2ba56=await _0x546677['groupMetadata'](_0x12b45c['id']),_0x50f305=_0x12b45c[_0x37b66d(-0x203,-0x1b0)];for(let _0x2ec2c5 of _0x50f305){try{ppuser=await _0x546677['profilePictureUrl'](_0x2ec2c5,_0x37b66d(-0x25c,-0x268));}catch(_0x2820f5){ppuser='https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png?q=60';}try{ppgroup=await _0x546677[_0x37b66d(-0x250,-0x211)](_0x12b45c['id'],'image');}catch(_0x269e7b){ppgroup=_0x37b66d(-0x26f,-0x24f);}if(_0x12b45c[_0x37b66d(-0x1d0,-0x204)]==_0x37b66d(-0x20b,-0x1fe)){let _0x2e8958=fs[_0x37b66d(-0x282,-0x2a8)](_0x37b66d(-0x1fa,-0x230));const _0x537f0b=moment['tz'](_0x37b66d(-0x22a,-0x244))[_0x37b66d(-0x1ec,-0x1e6)](_0x37b66d(-0x256,-0x26b)),_0x1677de=moment['tz'](_0x37b66d(-0x22a,-0x211))[_0x37b66d(-0x1ec,-0x232)](_0x37b66d(-0x1f2,-0x1bd)),_0x431a33=_0x2ba56[_0x37b66d(-0x203,-0x1b8)][_0x37b66d(-0x1dc,-0x18d)];ucapan=_0x37b66d(-0x21c,-0x215)+_0x2ba56[_0x37b66d(-0x220,-0x1c1)]+_0x37b66d(-0x24e,-0x218)+_0x2ec2c5[_0x37b66d(-0x228,-0x244)]('@')[0x0]+_0x37b66d(-0x270,-0x27d)+_0x431a33+_0x37b66d(-0x232,-0x21b)+_0x1677de+'\x0a╰───────────────┈\x20⳹',_0x546677[_0x37b66d(-0x1f8,-0x256)](_0x12b45c['id'],{'image':_0x2e8958,'caption':ucapan},{'quoted':{'key':{'fromMe':![],'participant':_0x37b66d(-0x218,-0x26b),...{'remoteJid':'status@broadcast'}},'message':{'pollCreationMessage':{'name':_0x37b66d(-0x20c,-0x237),'options':[{'optionName':_0x37b66d(-0x1d3,-0x21f)},{'optionName':_0x37b66d(-0x1cd,-0x1c9)},{'optionName':_0x37b66d(-0x1df,-0x1ef)},{'optionName':_0x37b66d(-0x20f,-0x1fc)},{'optionName':_0x37b66d(-0x278,-0x27d)}],'selectableOptionsCount':0x5}}}});}else{if(_0x12b45c[_0x37b66d(-0x1d0,-0x1e8)]==_0x37b66d(-0x1fd,-0x1e7)){let _0x32d2fb=fs[_0x37b66d(-0x282,-0x26b)]('./media/goodbye.jpg');const _0x2412f4=moment['tz'](_0x37b66d(-0x22a,-0x1e7))['format'](_0x37b66d(-0x256,-0x269)),_0x2e48ec=moment['tz'](_0x37b66d(-0x22a,-0x288))[_0x37b66d(-0x1ec,-0x1c6)](_0x37b66d(-0x1f2,-0x208)),_0x3897d8=_0x2ba56[_0x37b66d(-0x203,-0x1bc)][_0x37b66d(-0x1dc,-0x1bc)];sayonara=_0x37b66d(-0x21c,-0x1eb)+_0x2ba56['subject']+_0x37b66d(-0x236,-0x1f6)+_0x2ec2c5['split']('@')[0x0]+_0x37b66d(-0x270,-0x282)+_0x3897d8+_0x37b66d(-0x232,-0x271)+_0x2e48ec+'\x0a╰───────────────┈\x20⳹',_0x546677['sendMessage'](_0x12b45c['id'],{'image':_0x32d2fb,'caption':sayonara},{'quoted':{'key':{'fromMe':![],'participant':_0x37b66d(-0x218,-0x23c),...{'remoteJid':_0x37b66d(-0x26a,-0x273)}},'message':{'pollCreationMessage':{'name':'Powered\x20by\x20Xyroinee','options':[{'optionName':_0x37b66d(-0x1d3,-0x213)},{'optionName':_0x37b66d(-0x1cd,-0x19f)},{'optionName':_0x37b66d(-0x1df,-0x235)},{'optionName':_0x37b66d(-0x20f,-0x1bd)},{'optionName':_0x37b66d(-0x278,-0x22f)}],'selectableOptionsCount':0x5}}}});}else{if(_0x12b45c[_0x37b66d(-0x1d0,-0x170)]==_0x37b66d(-0x25a,-0x213)){const _0x343b2d=await getBuffer(ppuser);katanya=_0x37b66d(-0x1e2,-0x20e)+_0x2ec2c5['split']('@')[0x0]+_0x37b66d(-0x239,-0x1dd),_0x546677[_0x37b66d(-0x1f8,-0x1fa)](_0x12b45c['id'],{'text':katanya,'contextInfo':{'mentionedJid':[_0x2ec2c5],'externalAdReply':{'showAdAttribution':!![],'containsAutoReply':!![],'title':'\x20'+global[_0x37b66d(-0x246,-0x275)],'body':''+ownername,'previewType':_0x37b66d(-0x26b,-0x27e),'thumbnailUrl':'','thumbnail':_0x343b2d,'sourceUrl':''+gcwa}}});}else _0x12b45c['action']=='demote'&&(katanya=_0x37b66d(-0x205,-0x1d1)+xeonName[_0x37b66d(-0x228,-0x241)]('@')[0x0]+_0x37b66d(-0x284,-0x2ac),_0x546677[_0x37b66d(-0x1f8,-0x250)](_0x12b45c['id'],{'text':katanya,'contextInfo':{'mentionedJid':[_0x2ec2c5],'externalAdReply':{'showAdAttribution':!![],'containsAutoReply':!![],'title':'\x20'+global[_0x37b66d(-0x246,-0x283)],'body':''+ownername,'previewType':_0x37b66d(-0x26b,-0x22e),'thumbnailUrl':'','thumbnail':ppuser,'sourceUrl':''+gcwa}}}));}}}}catch(_0x13cd25){console[_0x37b66d(-0x208,-0x1db)](_0x13cd25);}}),_0x546677[_0x259beb(0x121,0x118)]=async(_0x4de325,_0x4f5a9a,_0x45ea29,_0x48b7f1={})=>_0x546677['sendMessage'](_0x4de325,{'text':_0x4f5a9a,'contextInfo':{'mentionedJid':[..._0x4f5a9a[_0x259beb(0x165,0x172)](/@(\d{0,16})/g)]['map'](_0x4d9a9f=>_0x4d9a9f[0x1]+_0x259beb(0xdb,0x10f))},..._0x48b7f1},{'quoted':_0x45ea29}),_0x546677['decodeJid']=_0xf3cf2a=>{if(!_0xf3cf2a)return _0xf3cf2a;function _0x19156d(_0x3b5dbb,_0x523249){return _0x259beb(_0x3b5dbb- -0x9f,_0x523249);}if(/:\d+@/gi[_0x19156d(0x9f,0x6c)](_0xf3cf2a)){let _0x171b44=jidDecode(_0xf3cf2a)||{};return _0x171b44[_0x19156d(0x5e,0x1c)]&&_0x171b44['server']&&_0x171b44['user']+'@'+_0x171b44[_0x19156d(0xd9,0x80)]||_0xf3cf2a;}else return _0xf3cf2a;},_0x546677['ev']['on']('contacts.update',_0x5ebda4=>{function _0x48ae43(_0x9301ac,_0x280602){return _0x259beb(_0x280602-0xc6,_0x9301ac);}for(let _0xa29d37 of _0x5ebda4){let _0x1b19ad=_0x546677['decodeJid'](_0xa29d37['id']);if(store&&store['contacts'])store[_0x48ae43(0x1ee,0x1a5)][_0x1b19ad]={'id':_0x1b19ad,'name':_0xa29d37['notify']};}}),_0x546677[_0x259beb(0xd2,0x109)]=(_0x2c9e6a,_0xe4bcb4=![])=>{function _0x1c0f17(_0x21b100,_0x4491e7){return _0x259beb(_0x4491e7-0x396,_0x21b100);}id=_0x546677[_0x1c0f17(0x50f,0x4de)](_0x2c9e6a),_0xe4bcb4=_0x546677['withoutContact']||_0xe4bcb4;let _0x4cea62;if(id['endsWith'](_0x1c0f17(0x4d0,0x4b4)))return new Promise(async _0x23e179=>{function _0xba782b(_0x49723c,_0x4e7996){return _0x1c0f17(_0x4e7996,_0x49723c- -0xcd);}_0x4cea62=store[_0xba782b(0x3a8,0x3ed)][id]||{};if(!(_0x4cea62[_0xba782b(0x3fc,0x44b)]||_0x4cea62['subject']))_0x4cea62=_0x546677[_0xba782b(0x3e8,0x3fb)](id)||{};_0x23e179(_0x4cea62[_0xba782b(0x3fc,0x3cc)]||_0x4cea62['subject']||PhoneNumber('+'+id[_0xba782b(0x3b2,0x392)](_0xba782b(0x3a4,0x3e2),''))[_0xba782b(0x3db,0x39e)](_0xba782b(0x44a,0x42b)));});else _0x4cea62=id===_0x1c0f17(0x498,0x4d0)?{'id':id,'name':'WhatsApp'}:id===_0x546677['decodeJid'](_0x546677[_0x1c0f17(0x4a7,0x493)]['id'])?_0x546677['user']:store[_0x1c0f17(0x426,0x475)][id]||{};return(_0xe4bcb4?'':_0x4cea62[_0x1c0f17(0x491,0x4c9)])||_0x4cea62[_0x1c0f17(0x4f5,0x4c8)]||_0x4cea62[_0x1c0f17(0x4a0,0x4bb)]||PhoneNumber('+'+_0x2c9e6a[_0x1c0f17(0x4c2,0x47f)](_0x1c0f17(0x4ce,0x471),''))[_0x1c0f17(0x4b6,0x4a8)](_0x1c0f17(0x4c6,0x517));},_0x546677[_0x259beb(0xef,0x12c)]=(_0x3b685e='')=>{function _0x5d9e09(_0xd8750b,_0x1d9fb4){return _0x259beb(_0xd8750b-0x20f,_0x1d9fb4);}return[..._0x3b685e[_0x5d9e09(0x374,0x379)](/@([0-9]{5,16}|0)/g)]['map'](_0x3825ec=>_0x3825ec[0x1]+_0x5d9e09(0x2ea,0x344));},_0x546677[_0x259beb(0x159,0x1aa)]=async(_0x466098,_0x5374ab,_0x5d9083='',_0x958e44={})=>{function _0x18e840(_0x30d4b8,_0x1aa99d){return _0x259beb(_0x30d4b8-0x23f,_0x1aa99d);}let _0x13f360=[];for(let _0x2e8067 of _0x5374ab){_0x13f360[_0x18e840(0x346,0x336)]({'displayName':await _0x546677['getName'](_0x2e8067),'vcard':'BEGIN:VCARD\x0aVERSION:3.0\x0aN:'+await _0x546677[_0x18e840(0x311,0x2d7)](_0x2e8067)+_0x18e840(0x3b3,0x3a5)+await _0x546677['getName'](_0x2e8067)+_0x18e840(0x310,0x330)+_0x2e8067+':'+_0x2e8067+_0x18e840(0x35c,0x36a)+ytname+_0x18e840(0x3c8,0x3dc)+socialm+_0x18e840(0x3ae,0x3b7)+location+';;;;\x0aitem4.X-ABLabel:Region\x0aEND:VCARD'});}_0x546677[_0x18e840(0x399,0x39a)](_0x466098,{'contacts':{'displayName':_0x13f360[_0x18e840(0x3b5,0x40a)]+_0x18e840(0x362,0x389),'contacts':_0x13f360},..._0x958e44},{'quoted':_0x5d9083});},_0x546677[_0x259beb(0x131,0x17b)]=_0x5da428=>{_0x546677[_0x44d454(0xf9,0xb8)]({'tag':'iq','attrs':{'to':_0x44d454(0xf5,0xb7),'type':'set','xmlns':_0x44d454(0x124,0x12f)},'content':[{'tag':_0x44d454(0xf8,0x12f),'attrs':{},'content':Buffer['from'](_0x5da428,_0x44d454(0x173,0x156))}]});function _0x44d454(_0x59284f,_0x5a82ab){return _0x259beb(_0x5a82ab- -0x24,_0x59284f);}return _0x5da428;},_0x546677[_0x259beb(0x14c,0x176)]=!![],_0x546677[_0x259beb(0x15f,0x15f)]=async(_0x59b811,_0x5586bd,_0x42a28f='',_0x4e012c='',_0x30da35)=>{function _0x418828(_0x805d83,_0x3402f8){return _0x259beb(_0x3402f8-0x398,_0x805d83);}let _0xf7bd2b=Buffer['isBuffer'](_0x5586bd)?_0x5586bd:/^data:.*?\/.*?;base64,/i[_0x418828(0x4ad,0x4d6)](_0x5586bd)?Buffer[_0x418828(0x413,0x46c)](_0x5586bd[_0x418828(0x4e9,0x4c2)]`,`[0x1],_0x418828(0x4ee,0x4cd)):/^https?:\/\//['test'](_0x5586bd)?await await getBuffer(_0x5586bd):fs[_0x418828(0x4e1,0x491)](_0x5586bd)?fs[_0x418828(0x4b5,0x468)](_0x5586bd):Buffer[_0x418828(0x53b,0x4e8)](0x0);return await _0x546677[_0x418828(0x4a1,0x4f2)](_0x59b811,{'image':_0xf7bd2b,'caption':_0x42a28f,..._0x30da35},{'quoted':_0x4e012c});},_0x546677['sendImageAsSticker']=async(_0x12a5e3,_0x828414,_0x94c4fe,_0x482e1e={})=>{let _0x51bacc=Buffer[_0x33a375(0x4a4,0x48f)](_0x828414)?_0x828414:/^data:.*?\/.*?;base64,/i[_0x33a375(0x484,0x46e)](_0x828414)?Buffer[_0x33a375(0x41a,0x3c8)](_0x828414[_0x33a375(0x470,0x428)]`,`[0x1],_0x33a375(0x47b,0x448)):/^https?:\/\//['test'](_0x828414)?await await getBuffer(_0x828414):fs[_0x33a375(0x43f,0x443)](_0x828414)?fs[_0x33a375(0x416,0x3ce)](_0x828414):Buffer[_0x33a375(0x496,0x4dd)](0x0),_0x4ead4c;_0x482e1e&&(_0x482e1e[_0x33a375(0x4aa,0x4df)]||_0x482e1e['author'])?_0x4ead4c=await writeExifImg(_0x51bacc,_0x482e1e):_0x4ead4c=await imageToWebp(_0x51bacc);function _0x33a375(_0x5e7499,_0x28ed43){return _0x259beb(_0x5e7499-0x346,_0x28ed43);}await _0x546677[_0x33a375(0x4a0,0x4fa)](_0x12a5e3,{'sticker':{'url':_0x4ead4c},..._0x482e1e},{'quoted':_0x94c4fe})['then'](_0x4099a8=>{function _0x3c431a(_0x371faf,_0x545c06){return _0x33a375(_0x371faf- -0x55,_0x545c06);}return fs[_0x3c431a(0x405,0x3d0)](_0x4ead4c),_0x4099a8;});},_0x546677['sendVideoAsSticker']=async(_0x3a9946,_0x2deb98,_0x26ec75,_0x9bcfe0={})=>{function _0x1ca261(_0x556e07,_0x5d3e2c){return _0x259beb(_0x556e07-0x440,_0x5d3e2c);}let _0x2dc96b=Buffer[_0x1ca261(0x59e,0x57b)](_0x2deb98)?_0x2deb98:/^data:.*?\/.*?;base64,/i['test'](_0x2deb98)?Buffer[_0x1ca261(0x514,0x52c)](_0x2deb98[_0x1ca261(0x56a,0x592)]`,`[0x1],_0x1ca261(0x575,0x5a9)):/^https?:\/\//[_0x1ca261(0x57e,0x585)](_0x2deb98)?await await getBuffer(_0x2deb98):fs[_0x1ca261(0x539,0x510)](_0x2deb98)?fs[_0x1ca261(0x510,0x4b7)](_0x2deb98):Buffer[_0x1ca261(0x590,0x56d)](0x0),_0x2a9c20;return _0x9bcfe0&&(_0x9bcfe0['packname']||_0x9bcfe0[_0x1ca261(0x525,0x546)])?_0x2a9c20=await writeExifVid(_0x2dc96b,_0x9bcfe0):_0x2a9c20=await videoToWebp(_0x2dc96b),await _0x546677[_0x1ca261(0x59a,0x5ad)](_0x3a9946,{'sticker':{'url':_0x2a9c20},..._0x9bcfe0},{'quoted':_0x26ec75}),_0x2a9c20;},_0x546677[_0x259beb(0x172,0x12e)]=async(_0x4da83a,_0x3367e6,_0x50cbc1=![],_0x46b6e6={})=>{let _0x510469;_0x46b6e6[_0x5f2565(0xfd,0x14a)]&&(_0x3367e6[_0x5f2565(0x14d,0x13a)]=_0x3367e6[_0x5f2565(0x196,0x13a)]&&_0x3367e6[_0x5f2565(0x192,0x13a)][_0x5f2565(0x12d,0x161)]&&_0x3367e6[_0x5f2565(0x110,0x13a)][_0x5f2565(0x192,0x161)][_0x5f2565(0x168,0x13a)]?_0x3367e6[_0x5f2565(0x160,0x13a)][_0x5f2565(0x125,0x161)][_0x5f2565(0x195,0x13a)]:_0x3367e6['message']||undefined,_0x510469=Object[_0x5f2565(0x18f,0x1c7)](_0x3367e6['message'][_0x5f2565(0x1b8,0x1b3)][_0x5f2565(0xf2,0x13a)])[0x0],delete(_0x3367e6[_0x5f2565(0x18f,0x13a)]&&_0x3367e6[_0x5f2565(0xfe,0x13a)][_0x5f2565(0x195,0x189)]?_0x3367e6[_0x5f2565(0x10e,0x13a)]['ignore']:_0x3367e6[_0x5f2565(0xf7,0x13a)]||undefined),delete _0x3367e6[_0x5f2565(0x17b,0x13a)]['viewOnceMessage'][_0x5f2565(0x18d,0x13a)][_0x510469][_0x5f2565(0x134,0x121)],_0x3367e6[_0x5f2565(0x17d,0x13a)]={..._0x3367e6[_0x5f2565(0x178,0x13a)]['viewOnceMessage'][_0x5f2565(0xe4,0x13a)]});function _0x5f2565(_0x59e8f0,_0x5a06a8){return _0x259beb(_0x5a06a8-0x4c,_0x59e8f0);}let _0x541552=Object[_0x5f2565(0x1bd,0x1c7)](_0x3367e6[_0x5f2565(0x132,0x13a)])[0x0],_0x1bc55c=await generateForwardMessageContent(_0x3367e6,_0x50cbc1),_0x161657=Object[_0x5f2565(0x1c4,0x1c7)](_0x1bc55c)[0x0],_0x36d7bf={};if(_0x541552!='conversation')_0x36d7bf=_0x3367e6[_0x5f2565(0x10e,0x13a)][_0x541552]['contextInfo'];_0x1bc55c[_0x161657][_0x5f2565(0x1b7,0x1d6)]={..._0x36d7bf,..._0x1bc55c[_0x161657][_0x5f2565(0x1e3,0x1d6)]};const _0x20a484=await generateWAMessageFromContent(_0x4da83a,_0x1bc55c,_0x46b6e6?{..._0x1bc55c[_0x161657],..._0x46b6e6,..._0x46b6e6['contextInfo']?{'contextInfo':{..._0x1bc55c[_0x161657]['contextInfo'],..._0x46b6e6[_0x5f2565(0x1e1,0x1d6)]}}:{}}:{});return await _0x546677[_0x5f2565(0x161,0x146)](_0x4da83a,_0x20a484[_0x5f2565(0xe2,0x13a)],{'messageId':_0x20a484['key']['id']}),_0x20a484;},_0x546677[_0x259beb(0x13f,0x197)]=async(_0x10eb1f,_0x51de2a,_0x345f31=!![])=>{let _0x53347c=_0x10eb1f['msg']?_0x10eb1f[_0x41044b(0x30a,0x305)]:_0x10eb1f,_0x20368e=(_0x10eb1f[_0x41044b(0x30a,0x35e)]||_0x10eb1f)[_0x41044b(0x321,0x310)]||'';function _0x41044b(_0x1212c9,_0x41abfc){return _0x259beb(_0x1212c9-0x1c5,_0x41abfc);}let _0x49aafc=_0x10eb1f[_0x41044b(0x2dc,0x300)]?_0x10eb1f[_0x41044b(0x2dc,0x325)][_0x41044b(0x2ae,0x283)](/Message/gi,''):_0x20368e['split']('/')[0x0];const _0x1f2c32=await downloadContentFromMessage(_0x53347c,_0x49aafc);let _0x1bfbd7=Buffer[_0x41044b(0x299,0x280)]([]);for await(const _0x1251b1 of _0x1f2c32){_0x1bfbd7=Buffer['concat']([_0x1bfbd7,_0x1251b1]);}let _0x28e6c5=await FileType[_0x41044b(0x29c,0x290)](_0x1bfbd7);return trueFileName=_0x345f31?_0x51de2a+'.'+_0x28e6c5[_0x41044b(0x2cd,0x2e4)]:_0x51de2a,await fs[_0x41044b(0x2ee,0x2ad)](trueFileName,_0x1bfbd7),trueFileName;},_0x546677[_0x259beb(0x157,0xfa)]=async _0x5ea70d=>{let _0xabbbd7=(_0x5ea70d['msg']||_0x5ea70d)[_0x231478(-0xc6,-0x10f)]||'',_0x3a2bd2=_0x5ea70d[_0x231478(-0x10b,-0x156)]?_0x5ea70d[_0x231478(-0x10b,-0xfd)][_0x231478(-0x139,-0x14f)](/Message/gi,''):_0xabbbd7[_0x231478(-0xf8,-0x153)]('/')[0x0];const _0x551dc8=await downloadContentFromMessage(_0x5ea70d,_0x3a2bd2);let _0x13f721=Buffer[_0x231478(-0x14e,-0x120)]([]);function _0x231478(_0x2792c7,_0x4eb97d){return _0x259beb(_0x2792c7- -0x222,_0x4eb97d);}for await(const _0x1a8558 of _0x551dc8){_0x13f721=Buffer[_0x231478(-0x108,-0x105)]([_0x13f721,_0x1a8558]);}return _0x13f721;},_0x546677[_0x259beb(0x16c,0x121)]=async(_0x4f1051,_0x3bb323)=>{let _0x1e39c2;function _0x1c4714(_0x5d5851,_0x52b28e){return _0x259beb(_0x52b28e- -0x2cf,_0x5d5851);}let _0x2c9a36=Buffer[_0x1c4714(-0x19d,-0x171)](_0x4f1051)?_0x4f1051:/^data:.*?\/.*?;base64,/i[_0x1c4714(-0x1ad,-0x191)](_0x4f1051)?Buffer[_0x1c4714(-0x224,-0x1fb)](_0x4f1051['split']`,`[0x1],_0x1c4714(-0x147,-0x19a)):/^https?:\/\//['test'](_0x4f1051)?await(_0x1e39c2=await getBuffer(_0x4f1051)):fs[_0x1c4714(-0x183,-0x1d6)](_0x4f1051)?(filename=_0x4f1051,fs[_0x1c4714(-0x1ad,-0x1ff)](_0x4f1051)):typeof _0x4f1051===_0x1c4714(-0x182,-0x149)?_0x4f1051:Buffer[_0x1c4714(-0x1c6,-0x17f)](0x0),_0x18b9b7=await FileType[_0x1c4714(-0x243,-0x1f8)](_0x2c9a36)||{'mime':'application/octet-stream','ext':_0x1c4714(-0x1ab,-0x200)};filename=path['join'](__filename,_0x1c4714(-0x190,-0x1dd)+new Date()*0x1+'.'+_0x18b9b7[_0x1c4714(-0x1bf,-0x1c7)]);if(_0x2c9a36&&_0x3bb323)fs[_0x1c4714(-0x1fe,-0x1f9)][_0x1c4714(-0x1ab,-0x197)](filename,_0x2c9a36);return{'res':_0x1e39c2,'filename':filename,'size':await getSizeMedia(_0x2c9a36),..._0x18b9b7,'data':_0x2c9a36};},_0x546677['sendMedia']=async(_0x4e2e7e,_0x467ca6,_0x138947='',_0x10112d='',_0x2eb6c1='',_0x5883ca={})=>{let _0x16656f=await _0x546677[_0x371012(0x4bf,0x51e)](_0x467ca6,!![]),{mime:_0x2b498b,ext:_0x1debfd,res:_0x59fccd,data:_0x4a3bb0,filename:_0x2c62e1}=_0x16656f;if(_0x59fccd&&_0x59fccd[_0x371012(0x4c1,0x505)]!==0xc8||file['length']<=0x10000)try{throw{'json':JSON[_0x371012(0x568,0x52f)](file[_0x371012(0x4f0,0x4c8)]())};}catch(_0x5ab289){if(_0x5ab289[_0x371012(0x52c,0x4d8)])throw _0x5ab289[_0x371012(0x47f,0x4d8)];}let _0xa70d79='',_0x4b64b0=_0x2b498b,_0x76e295=_0x2c62e1;if(_0x5883ca[_0x371012(0x462,0x49c)])_0xa70d79='document';if(_0x5883ca['asSticker']||/webp/[_0x371012(0x496,0x4f0)](_0x2b498b)){let {writeExif:_0x51b5d8}=require(_0x371012(0x4c2,0x4b3)),_0x4150ad={'mimetype':_0x2b498b,'data':_0x4a3bb0};_0x76e295=await _0x51b5d8(_0x4150ad,{'packname':_0x5883ca['packname']?_0x5883ca['packname']:global[_0x371012(0x4e7,0x516)],'author':_0x5883ca[_0x371012(0x489,0x497)]?_0x5883ca[_0x371012(0x476,0x497)]:global[_0x371012(0x49f,0x497)],'categories':_0x5883ca['categories']?_0x5883ca[_0x371012(0x4b3,0x49e)]:[]}),await fs[_0x371012(0x457,0x488)][_0x371012(0x47d,0x485)](_0x2c62e1),_0xa70d79='sticker',_0x4b64b0=_0x371012(0x4d8,0x503);}else{if(/image/[_0x371012(0x4fb,0x4f0)](_0x2b498b))_0xa70d79='image';else{if(/video/[_0x371012(0x538,0x4f0)](_0x2b498b))_0xa70d79='video';else{if(/audio/[_0x371012(0x4d7,0x4f0)](_0x2b498b))_0xa70d79=_0x371012(0x4cb,0x504);else _0xa70d79=_0x371012(0x48f,0x498);}}}await _0x546677[_0x371012(0x530,0x50c)](_0x4e2e7e,{[_0xa70d79]:{'url':_0x76e295},'caption':_0x10112d,'mimetype':_0x4b64b0,'fileName':_0x138947,..._0x5883ca},{'quoted':_0x2eb6c1,..._0x5883ca});function _0x371012(_0x20c10a,_0x578be4){return _0x259beb(_0x578be4-0x3b2,_0x20c10a);}return fs[_0x371012(0x4b3,0x488)]['unlink'](_0x76e295);},_0x546677[_0x259beb(0xdd,0xb1)]=(_0x3acaef,_0x3e2bce,_0x13fea7='',_0x2231bb)=>_0x546677[_0x259beb(0x15a,0x128)](_0x3acaef,{'text':_0x3e2bce,..._0x2231bb},{'quoted':_0x13fea7});function _0x259beb(_0x596800,_0x19f8d5){return _0x5c1615(_0x596800-0x1e0,_0x19f8d5);}return _0x546677['serializeM']=_0x2e20a8=>smsg(_0x546677,_0x2e20a8,store),_0x546677['ev']['on']('connection.update',async _0x2268fa=>{function _0x5e7306(_0x1c485f,_0xf588be){return _0x259beb(_0x1c485f-0x12d,_0xf588be);}const {connection:_0x4014e2,lastDisconnect:_0x22f1dd}=_0x2268fa;if(_0x4014e2===_0x5e7306(0x28e,0x256)){let _0x3d21e8=new Boom(_0x22f1dd?.['error'])?.[_0x5e7306(0x261,0x2b1)][_0x5e7306(0x26d,0x261)];if(_0x3d21e8===DisconnectReason['badSession'])console['log']('Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again'),_0x546677[_0x5e7306(0x230,0x271)]();else{if(_0x3d21e8===DisconnectReason[_0x5e7306(0x236,0x287)])console[_0x5e7306(0x277,0x27f)](_0x5e7306(0x271,0x2d0)),ClaraBot();else{if(_0x3d21e8===DisconnectReason[_0x5e7306(0x228,0x1e1)])console[_0x5e7306(0x277,0x22a)](_0x5e7306(0x29a,0x24a)),ClaraBot();else{if(_0x3d21e8===DisconnectReason[_0x5e7306(0x2b9,0x25e)])console[_0x5e7306(0x277,0x219)](_0x5e7306(0x254,0x258)),_0x546677['logout']();else{if(_0x3d21e8===DisconnectReason[_0x5e7306(0x21d,0x222)])console[_0x5e7306(0x277,0x2c3)]('Device\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.'),_0x546677['logout']();else{if(_0x3d21e8===DisconnectReason['restartRequired'])console[_0x5e7306(0x277,0x269)]('Restart\x20Required,\x20Restarting...'),ClaraBot();else{if(_0x3d21e8===DisconnectReason[_0x5e7306(0x25a,0x214)])console[_0x5e7306(0x277,0x25b)]('Connection\x20TimedOut,\x20Reconnecting...'),ClaraBot();else _0x546677[_0x5e7306(0x245,0x22a)](_0x5e7306(0x27b,0x276)+_0x3d21e8+'|'+_0x4014e2);}}}}}}}else _0x4014e2===_0x5e7306(0x297,0x2eb)&&_0x546677[_0x5e7306(0x287,0x289)](global[_0x5e7306(0x23d,0x227)]+_0x5e7306(0x208,0x1d0),{'text':_0x5e7306(0x20b,0x248)});console[_0x5e7306(0x277,0x24b)](_0x5e7306(0x2a2,0x2bd),_0x2268fa);}),_0x546677['ev']['on'](_0x259beb(0x10a,0xee),await _0x3bbfb4),start('2',colors[_0x259beb(0x149,0xf3)][_0x259beb(0x187,0x13a)](_0x259beb(0x122,0x109))),_0x546677;}ClaraBot(),process['on'](_0x5c1615(-0xcd,-0xa1),function(_0xaf0c67){function _0x18ca8c(_0x520cd0,_0x3a8bbc){return _0x5c1615(_0x3a8bbc- -0x182,_0x520cd0);}console[_0x18ca8c(-0x26d,-0x218)](_0x18ca8c(-0x258,-0x200),_0xaf0c67);});