forked from tharushimd/Black-Dragon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 33.6 KB
/
index.js
1
const _0x1ac61f=_0xcaec;(function(_0x190bb8,_0x4c57e4){const _0x1e6c2f=_0xcaec,_0x8296d7=_0x190bb8();while(!![]){try{const _0x5954c5=-parseInt(_0x1e6c2f(0x1c1))/0x1*(parseInt(_0x1e6c2f(0x215))/0x2)+-parseInt(_0x1e6c2f(0x1b4))/0x3*(parseInt(_0x1e6c2f(0x180))/0x4)+parseInt(_0x1e6c2f(0x231))/0x5+parseInt(_0x1e6c2f(0x21c))/0x6*(-parseInt(_0x1e6c2f(0x185))/0x7)+-parseInt(_0x1e6c2f(0x1fc))/0x8+-parseInt(_0x1e6c2f(0x1f0))/0x9+parseInt(_0x1e6c2f(0x212))/0xa;if(_0x5954c5===_0x4c57e4)break;else _0x8296d7['push'](_0x8296d7['shift']());}catch(_0x40c70d){_0x8296d7['push'](_0x8296d7['shift']());}}}(_0x436b,0xb9b55),require(_0x1ac61f(0x167)));function _0x436b(){const _0x2a0f5b=['loggedOut','getFile','BAE5','173243ifOHfJ','packname','./lib/mongoDB','cMod','./lib/uploader','./lib/myfunc','video/mp4','image',';;;;\x0aitem4.X-ABLabel:Region\x0aEND:VCARD','「\x20Group\x20Settings\x20Changed\x20」\x0a\x0aGroup\x20Subject\x20Has\x20Been\x20Changed\x20To\x20*','waUploadToServer','writeFile','APIKeys','concat','key','fromMe','DD/MM/YYYY','@g.us','get','base64','READ','promises','sendButtonText','message','\x0aitem3.X-ABLabel:GitHub\x0aitem4.ADR:;;','decodeJid','audio','verifiedName','file-type','Connected...','image/webp','uncaughtException','push','messages.upsert','lodash','video','\x0a\x20\x20\x20└───────────────┈\x20⳹','「\x20Group\x20Settings\x20Changed\x20」\x0a\x0aGroup\x20Info\x20Has\x20Been\x20Restricted,\x20Now\x20Only\x20Admin\x20Can\x20Edit\x20Group\x20Info\x20!','Connection\x20TimedOut,\x20Reconnecting...','sendMessage','audio/mpeg','./lib/lowdb','BYE\x20BRO\x20🙂','sendVideo','replace','connectionLost','getName','4397274KhSnnL','Restart\x20Required,\x20Restarting...','query','name','restrict','contacts','end','Asia/Kolkata','videoMessage','logout','conversation','api','10895600pxXmxp','send5ButMsg','HH:mm:ss','sendText','viewOnceMessage','store','json','wkwkwk','./DragonMedia/theme/dragon.xlsx','keys','application/pdf','yargs/yargs','participant','connectionClosed','withoutContact','awesome-phonenumber','groups.update','application/octet-stream','Update\x20','notify','isBuffer','msg','28098810fuYOjZ','status@broadcast','caption','2cFDNni','messages','floor','public','fromBuffer','sendImageAsSticker','\x0a\x20\x20\x20│✑\x20\x20𝗠𝗲𝗺𝗯𝗲𝗿\x20:\x20\x0a\x20\x20\x20│✑\x20','2406MliUbL','length','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again','moment-timezone','content-type','APIs','\x0aitem1.X-ABLabel:Click\x20here\x20to\x20chat\x0aitem2.EMAIL;type=INTERNET:','child','sendFileUrl','bind','DATABASE','asDocument','lowdb','mtype','ignore','xeon','startsWith','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','document','@s.whatsapp.net','@broadcast','6538720alsRZv','send5ButImg','./src/','Device\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.','sendImage','profilePictureUrl','listen','author','categories','remoteJid','data','alloc','express','split','.json','axios','path','./settings','\x20Kontak','user','parse','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','https://i.ibb.co/RBx5SQC/avatar-group-large-v2.png','format','loadDatabase','write','┌─❖\x0a│「\x20𝗚𝗼𝗼𝗱𝗯𝘆𝗲\x20👋\x20」\x0a└┬❖\x20「\x20@','includes','relayMessage','chain','readViewOnce','Message','text','server','./lib/exif','cache','watchFile','toString','send5ButVid','1.0.0','fromObject','📟\x20Black-Dragon-MD\x20Server\x20listening\x20on\x20port\x20http://localhost:','205724DnQtiY','th\x0a\x20\x20\x20│✑\x20\x20𝗝𝗼𝗶𝗻𝗲𝗱\x20:\x20\x0a\x20\x20\x20│✑\x20','[email protected]','https://i.ibb.co/sbqvDMw/avatar-contact-large-v2.png','readFileSync','3521rDsVGQ','international','existsSync','status','contextInfo','sendListMsg','\x0aitem2.X-ABLabel:YouTube\x0aitem3.URL:','argv','setStatus','participants','test','copyNForward','\x20\x20」\x0a\x20\x20\x20│✑\x20\x20𝗟𝗲𝗳𝘁\x20\x0a\x20\x20\x20│✑\x20','chalk','┌─❖\x0a│「\x20𝗛𝗶\x20👋\x20」\x0a└┬❖\x20「\x20@','Unknown\x20DisconnectReason:\x20','groupMetadata','sendTextWithMentions','getNumber','action','ephemeralMessage','creds.update','log','send','subject','random','「\x20Group\x20Settings\x20Changed\x20」\x0a\x0aGroup\x20Info\x20Has\x20Been\x20Opened,\x20Now\x20Participants\x20Can\x20Edit\x20Group\x20Info\x20!','opts','type','head','from','close','set','src/database.json','join','mimetype','add','ext','📟\x20Black-Dragon-MD\x20Working\x20successfully!','timedOut','error','[email protected]','statusCode','WhatsApp','endsWith','serializeM','PORT','66phsXpQ','\x20📟','silent','restartRequired','utf-8','string','Safari','send5ButGif','WebMessageInfo','unwatchFile'];_0x436b=function(){return _0x2a0f5b;};return _0x436b();}const {default:XeonBotIncConnect,useSingleFileAuthState,DisconnectReason,fetchLatestBaileysVersion,generateForwardMessageContent,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,makeInMemoryStore,jidDecode,proto}=require('@adiwajshing/baileys'),{state,saveState}=useSingleFileAuthState(sessionName+_0x1ac61f(0x164)),pino=require('pino'),{Boom}=require('@hapi/boom'),fs=require('fs'),yargs=require(_0x1ac61f(0x207)),chalk=require(_0x1ac61f(0x192)),FileType=require(_0x1ac61f(0x1dd)),path=require(_0x1ac61f(0x166)),_=require(_0x1ac61f(0x1e3)),axios=require(_0x1ac61f(0x165)),PhoneNumber=require(_0x1ac61f(0x20b)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(_0x1ac61f(0x178)),{smsg,isUrl,generateMessageTag,getBuffer,getSizeMedia,fetchJson,await,sleep}=require(_0x1ac61f(0x1c6)),{TelegraPh}=require(_0x1ac61f(0x1c5)),moment=require(_0x1ac61f(0x21f)),express=require(_0x1ac61f(0x23d)),app=express(),port=process['env'][_0x1ac61f(0x1b3)]||0x1f40,getRandom=_0x13e124=>{const _0x5d3616=_0x1ac61f;return''+Math[_0x5d3616(0x217)](Math[_0x5d3616(0x19e)]()*0x2710)+_0x13e124;};var low;try{low=require(_0x1ac61f(0x228));}catch(_0x522795){low=require(_0x1ac61f(0x1ea));}const {Low,JSONFile}=low,mongoDB=require(_0x1ac61f(0x1c3));global[_0x1ac61f(0x1fb)]=(_0x5a18b1,_0x1135dc='/',_0x26ecf1={},_0x5b2cf3)=>(_0x5a18b1 in global['APIs']?global[_0x1ac61f(0x221)][_0x5a18b1]:_0x5a18b1)+_0x1135dc+(_0x26ecf1||_0x5b2cf3?'?'+new URLSearchParams(Object['entries']({..._0x26ecf1,..._0x5b2cf3?{[_0x5b2cf3]:global[_0x1ac61f(0x1cd)][_0x5a18b1 in global[_0x1ac61f(0x221)]?global[_0x1ac61f(0x221)][_0x5a18b1]:_0x5a18b1]}:{}})):'');const store=makeInMemoryStore({'logger':pino()[_0x1ac61f(0x223)]({'level':_0x1ac61f(0x1b6),'stream':_0x1ac61f(0x201)})});global[_0x1ac61f(0x1a0)]=new Object(yargs(process[_0x1ac61f(0x18c)]['slice'](0x2))['exitProcess'](![])[_0x1ac61f(0x16a)]()),global['db']=new Low(/https?:\/\//[_0x1ac61f(0x18f)](opts['db']||'')?new cloudDBAdapter(opts['db']):/mongodb/['test'](opts['db'])?new mongoDB(opts['db']):new JSONFile(_0x1ac61f(0x1a6))),global[_0x1ac61f(0x226)]=global['db'],global[_0x1ac61f(0x16e)]=async function loadDatabase(){const _0xca5de5=_0x1ac61f;if(global['db']['READ'])return new Promise(_0x52a1b6=>setInterval(function(){const _0x10ec8a=_0xcaec;!global['db'][_0x10ec8a(0x1d5)]?(clearInterval(this),_0x52a1b6(global['db'][_0x10ec8a(0x23b)]==null?global[_0x10ec8a(0x16e)]():global['db'][_0x10ec8a(0x23b)])):null;},0x1*0x3e8));if(global['db']['data']!==null)return;global['db'][_0xca5de5(0x1d5)]=!![],await global['db']['read'](),global['db'][_0xca5de5(0x1d5)]=![],global['db'][_0xca5de5(0x23b)]={'users':{},'chats':{},'database':{},'game':{},'settings':{},'others':{},'sticker':{},...global['db'][_0xca5de5(0x23b)]||{}},global['db'][_0xca5de5(0x173)]=_[_0xca5de5(0x173)](global['db'][_0xca5de5(0x23b)]);},loadDatabase(),process['on'](_0x1ac61f(0x1e0),console[_0x1ac61f(0x1ad)]);function _0xcaec(_0x46f633,_0x436be7){const _0x436b53=_0x436b();return _0xcaec=function(_0xcaec21,_0x12255e){_0xcaec21=_0xcaec21-0x164;let _0x5a7bda=_0x436b53[_0xcaec21];return _0x5a7bda;},_0xcaec(_0x46f633,_0x436be7);}if(global['db'])setInterval(async()=>{const _0x57fba3=_0x1ac61f;if(global['db'][_0x57fba3(0x23b)])await global['db'][_0x57fba3(0x16f)]();},0x1e*0x3e8);async function startXeonBotInc(){const _0x4f8dd2=_0x1ac61f,_0x2e81ca=XeonBotIncConnect({'logger':pino({'level':_0x4f8dd2(0x1b6)}),'printQRInTerminal':!![],'browser':['Cheems\x20Bot\x20MD',_0x4f8dd2(0x1ba),_0x4f8dd2(0x17d)],'auth':state});store[_0x4f8dd2(0x225)](_0x2e81ca['ev']),_0x2e81ca['ev']['on'](_0x4f8dd2(0x1e2),async _0x25cc28=>{const _0xa693a=_0x4f8dd2;try{mek=_0x25cc28[_0xa693a(0x216)][0x0];if(!mek[_0xa693a(0x1d8)])return;mek[_0xa693a(0x1d8)]=Object[_0xa693a(0x205)](mek[_0xa693a(0x1d8)])[0x0]===_0xa693a(0x199)?mek['message']['ephemeralMessage'][_0xa693a(0x1d8)]:mek[_0xa693a(0x1d8)];if(mek[_0xa693a(0x1cf)]&&mek[_0xa693a(0x1cf)][_0xa693a(0x23a)]===_0xa693a(0x213))return;if(!_0x2e81ca[_0xa693a(0x218)]&&!mek[_0xa693a(0x1cf)]['fromMe']&&_0x25cc28[_0xa693a(0x1a1)]==='notify')return;if(mek['key']['id'][_0xa693a(0x22c)](_0xa693a(0x1c0))&&mek[_0xa693a(0x1cf)]['id']['length']===0x10)return;m=smsg(_0x2e81ca,mek,store),require('./blackdragon')(_0x2e81ca,m,_0x25cc28,store);}catch(_0x154d16){console[_0xa693a(0x19b)](_0x154d16);}}),_0x2e81ca['ev']['on'](_0x4f8dd2(0x20c),async _0x28b668=>{const _0x178d13=_0x4f8dd2;try{ppgc=await _0x2e81ca[_0x178d13(0x236)](_0x28b668[0x0]['id'],_0x178d13(0x1c8));}catch{ppgc=_0x178d13(0x16c);}let _0x13b169={'url':ppgc};if(_0x28b668[0x0]['announce']==!![])_0x2e81ca[_0x178d13(0x232)](_0x28b668[0x0]['id'],'「\x20Group\x20Settings\x20Changed\x20」\x0a\x0aThe\x20Group\x20Has\x20Been\x20Closed\x20By\x20Admin,\x20Now\x20Only\x20Admin\x20Can\x20Send\x20Messages\x20!',''+botname,_0x13b169,[]);else{if(_0x28b668[0x0]['announce']==![])_0x2e81ca[_0x178d13(0x232)](_0x28b668[0x0]['id'],'「\x20Group\x20Settings\x20Changed\x20」\x0a\x0aThe\x20Group\x20Has\x20Been\x20Opened\x20By\x20Admin,\x20Now\x20Participants\x20Can\x20Send\x20Messages\x20!',''+botname,_0x13b169,[]);else{if(_0x28b668[0x0][_0x178d13(0x1f4)]==!![])_0x2e81ca['send5ButImg'](_0x28b668[0x0]['id'],_0x178d13(0x1e6),''+botname,_0x13b169,[]);else _0x28b668[0x0][_0x178d13(0x1f4)]==![]?_0x2e81ca[_0x178d13(0x232)](_0x28b668[0x0]['id'],_0x178d13(0x19f),''+botname,_0x13b169,[]):_0x2e81ca[_0x178d13(0x232)](_0x28b668[0x0]['id'],_0x178d13(0x1ca)+_0x28b668[0x0][_0x178d13(0x19d)]+'*',''+botname,_0x13b169,[]);}}});function _0x16df6b(_0x58f219){const _0x3d8980=_0x4f8dd2;return _0x58f219[Math[_0x3d8980(0x217)](_0x58f219[_0x3d8980(0x21d)]*Math[_0x3d8980(0x19e)]())];}let _0x56bba8=[doc1,doc2,doc3,doc4,doc5,doc6],_0x286a50=_0x16df6b(_0x56bba8);return _0x2e81ca['ev']['on']('group-participants.update',async _0x324b39=>{const _0x1d00bd=_0x4f8dd2;console[_0x1d00bd(0x19b)](_0x324b39);try{let _0x4e3e78=await _0x2e81ca[_0x1d00bd(0x195)](_0x324b39['id']),_0x1ac4d5=_0x324b39['participants'];for(let _0xaf06c of _0x1ac4d5){try{ppuser=await _0x2e81ca[_0x1d00bd(0x236)](_0xaf06c,_0x1d00bd(0x1c8));}catch{ppuser=_0x1d00bd(0x183);}try{ppgroup=await zass[_0x1d00bd(0x236)](_0x324b39['id'],_0x1d00bd(0x1c8));}catch{ppgroup=_0x1d00bd(0x16c);}let _0x6c348c=await _0x2e81ca[_0x1d00bd(0x1ef)](_0xaf06c);memb=_0x4e3e78['participants'][_0x1d00bd(0x21d)],XeonWlcm=await getBuffer(ppuser),XeonLft=await getBuffer(ppuser);if(_0x324b39[_0x1d00bd(0x198)]==_0x1d00bd(0x1a9)){const _0x4e23a7=await getBuffer(ppuser);let _0x2e0a05=_0xaf06c;const _0x5bc23d=moment['tz'](_0x1d00bd(0x1f7))[_0x1d00bd(0x16d)](_0x1d00bd(0x1fe)),_0x2428a4=moment['tz']('Asia/Kolkata')[_0x1d00bd(0x16d)]('DD/MM/YYYY'),_0xa5b65c=_0x4e3e78[_0x1d00bd(0x18e)][_0x1d00bd(0x21d)];let _0x46c529={'key':{'fromMe':![],'participant':_0x1d00bd(0x182),'remoteJid':_0x1d00bd(0x1ae)},'message':{'orderMessage':{'itemCount':0x98967f,'status':0xc8,'thumbnail':XeonWlcm,'surface':0xc8,'message':''+_0x4e3e78['subject'],'orderTitle':_0x1d00bd(0x22b),'sellerJid':_0x1d00bd(0x182)}},'contextInfo':{'forwardingScore':0x3e7,'isForwarded':!![]},'sendEphemeral':!![]};xeonbody=_0x1d00bd(0x193)+_0x2e0a05[_0x1d00bd(0x23e)]('@')[0x0]+'\x20\x20」\x0a\x20\x20\x20│✑\x20\x20𝗪𝗲𝗹𝗰𝗼𝗺𝗲\x20𝘁𝗼\x20\x0a\x20\x20\x20│✑\x20\x20'+_0x4e3e78[_0x1d00bd(0x19d)]+'\x0a\x20\x20\x20│✑\x20\x20𝗠𝗲𝗺𝗯𝗲𝗿\x20:\x20\x0a\x20\x20\x20│✑\x20'+_0xa5b65c+_0x1d00bd(0x181)+_0x5bc23d+'\x20'+_0x2428a4+_0x1d00bd(0x1e5);let _0x53b7b9=[{'buttonId':'wkwwk','buttonText':{'displayText':'WELCOME\x20💐'},'type':0x1}],_0x1b806a={'document':fs[_0x1d00bd(0x184)](_0x1d00bd(0x204)),'mimetype':_0x286a50,'jpegThumbnail':XeonWlcm,'mentions':[_0xaf06c],'fileName':''+_0x4e3e78['subject'],'fileLength':0x5af3107a3fff,'caption':xeonbody,'footer':''+botname,'buttons':_0x53b7b9,'headerType':0x4,'contextInfo':{'externalAdReply':{'title':''+ownername,'body':'Don\x27t\x20forget\x20to\x20read\x20group\x20description','mediaType':0x2,'thumbnail':XeonWlcm,'sourceUrl':''+websitex,'mediaUrl':''+websitex}}};_0x2e81ca[_0x1d00bd(0x1e8)](_0x324b39['id'],_0x1b806a,{'quoted':_0x46c529});}else{if(_0x324b39[_0x1d00bd(0x198)]=='remove'){const _0x2642d5=await getBuffer(ppuser),_0x10420e=moment['tz']('Asia/Kolkata')['format']('HH:mm:ss'),_0x4afed3=moment['tz'](_0x1d00bd(0x1f7))['format'](_0x1d00bd(0x1d1));let _0x4a3263=_0xaf06c;const _0x3a4543=_0x4e3e78['participants'][_0x1d00bd(0x21d)];let _0x1e36c5={'key':{'fromMe':![],'participant':_0x1d00bd(0x182),'remoteJid':'[email protected]'},'message':{'orderMessage':{'itemCount':0x98967f,'status':0xc8,'thumbnail':_0x2642d5,'surface':0xc8,'message':''+_0x4e3e78[_0x1d00bd(0x19d)],'orderTitle':_0x1d00bd(0x22b),'sellerJid':_0x1d00bd(0x182)}},'contextInfo':{'forwardingScore':0x3e7,'isForwarded':!![]},'sendEphemeral':!![]};xeonbody=_0x1d00bd(0x170)+_0x4a3263[_0x1d00bd(0x23e)]('@')[0x0]+_0x1d00bd(0x191)+_0x4e3e78[_0x1d00bd(0x19d)]+_0x1d00bd(0x21b)+_0x3a4543+'th\x0a\x20\x20\x20│✑\x20\x20𝗧𝗶𝗺𝗲\x20:\x20\x0a\x20\x20\x20│✑\x20\x20'+_0x10420e+'\x20'+_0x4afed3+_0x1d00bd(0x1e5);let _0xeda32e=[{'buttonId':_0x1d00bd(0x203),'buttonText':{'displayText':_0x1d00bd(0x1eb)},'type':0x1}],_0x1b67ca={'document':fs[_0x1d00bd(0x184)](_0x1d00bd(0x204)),'mimetype':_0x286a50,'jpegThumbnail':XeonLft,'mentions':[_0xaf06c],'fileName':''+_0x4e3e78[_0x1d00bd(0x19d)],'fileLength':0x5af3107a3fff,'caption':xeonbody,'footer':''+botname,'buttons':_0xeda32e,'headerType':0x4,'contextInfo':{'externalAdReply':{'title':''+ownername,'body':'Bye!\x20my\x20friend,\x20take\x20care.','mediaType':0x2,'thumbnail':XeonLft,'sourceUrl':''+websitex,'mediaUrl':''+websitex}}};_0x2e81ca['sendMessage'](_0x324b39['id'],_0x1b67ca,{'quoted':_0x1e36c5});}}}}catch(_0x23ac6d){console['log'](_0x23ac6d);}}),_0x2e81ca[_0x4f8dd2(0x1da)]=_0x194451=>{const _0x199db7=_0x4f8dd2;if(!_0x194451)return _0x194451;if(/:\d+@/gi[_0x199db7(0x18f)](_0x194451)){let _0x389837=jidDecode(_0x194451)||{};return _0x389837[_0x199db7(0x169)]&&_0x389837[_0x199db7(0x177)]&&_0x389837['user']+'@'+_0x389837['server']||_0x194451;}else return _0x194451;},_0x2e81ca['ev']['on']('contacts.update',_0x5d5a45=>{const _0x243c16=_0x4f8dd2;for(let _0x402e24 of _0x5d5a45){let _0x2b4808=_0x2e81ca[_0x243c16(0x1da)](_0x402e24['id']);if(store&&store[_0x243c16(0x1f5)])store[_0x243c16(0x1f5)][_0x2b4808]={'id':_0x2b4808,'name':_0x402e24[_0x243c16(0x20f)]};}}),_0x2e81ca[_0x4f8dd2(0x1ef)]=(_0x54da07,_0x36d6c=![])=>{const _0x9e42c1=_0x4f8dd2;id=_0x2e81ca[_0x9e42c1(0x1da)](_0x54da07),_0x36d6c=_0x2e81ca[_0x9e42c1(0x20a)]||_0x36d6c;let _0x5416d3;if(id[_0x9e42c1(0x1b1)](_0x9e42c1(0x1d2)))return new Promise(async _0x218907=>{const _0x49bde7=_0x9e42c1;_0x5416d3=store[_0x49bde7(0x1f5)][id]||{};if(!(_0x5416d3[_0x49bde7(0x1f3)]||_0x5416d3[_0x49bde7(0x19d)]))_0x5416d3=_0x2e81ca['groupMetadata'](id)||{};_0x218907(_0x5416d3[_0x49bde7(0x1f3)]||_0x5416d3[_0x49bde7(0x19d)]||PhoneNumber('+'+id[_0x49bde7(0x1ed)](_0x49bde7(0x22f),''))['getNumber'](_0x49bde7(0x186)));});else _0x5416d3=id===_0x9e42c1(0x182)?{'id':id,'name':_0x9e42c1(0x1b0)}:id===_0x2e81ca['decodeJid'](_0x2e81ca[_0x9e42c1(0x169)]['id'])?_0x2e81ca[_0x9e42c1(0x169)]:store[_0x9e42c1(0x1f5)][id]||{};return(_0x36d6c?'':_0x5416d3[_0x9e42c1(0x1f3)])||_0x5416d3[_0x9e42c1(0x19d)]||_0x5416d3[_0x9e42c1(0x1dc)]||PhoneNumber('+'+_0x54da07[_0x9e42c1(0x1ed)](_0x9e42c1(0x22f),''))[_0x9e42c1(0x197)](_0x9e42c1(0x186));},_0x2e81ca['sendContact']=async(_0x2ab342,_0x17eabf,_0x5db567='',_0x336d52={})=>{const _0x42dca0=_0x4f8dd2;let _0x2ec2b8=[];for(let _0x4df139 of _0x17eabf){_0x2ec2b8[_0x42dca0(0x1e1)]({'displayName':await _0x2e81ca[_0x42dca0(0x1ef)](_0x4df139),'vcard':'BEGIN:VCARD\x0aVERSION:3.0\x0aN:'+await _0x2e81ca['getName'](_0x4df139)+'\x0aFN:'+await _0x2e81ca['getName'](_0x4df139)+'\x0aitem1.TEL;waid='+_0x4df139+':'+_0x4df139+_0x42dca0(0x222)+ytname+_0x42dca0(0x18b)+socialm+_0x42dca0(0x1d9)+location+_0x42dca0(0x1c9)});}_0x2e81ca[_0x42dca0(0x1e8)](_0x2ab342,{'contacts':{'displayName':_0x2ec2b8[_0x42dca0(0x21d)]+_0x42dca0(0x168),'contacts':_0x2ec2b8},..._0x336d52},{'quoted':_0x5db567});},_0x2e81ca[_0x4f8dd2(0x18d)]=_0x2cd1f9=>{const _0x14152b=_0x4f8dd2;return _0x2e81ca[_0x14152b(0x1f2)]({'tag':'iq','attrs':{'to':_0x14152b(0x22f),'type':_0x14152b(0x1a5),'xmlns':_0x14152b(0x188)},'content':[{'tag':_0x14152b(0x188),'attrs':{},'content':Buffer[_0x14152b(0x1a3)](_0x2cd1f9,_0x14152b(0x1b8))}]}),_0x2cd1f9;},_0x2e81ca[_0x4f8dd2(0x218)]=!![],_0x2e81ca[_0x4f8dd2(0x1b2)]=_0x265cb2=>smsg(_0x2e81ca,_0x265cb2,store),_0x2e81ca['ev']['on']('connection.update',async _0x1de642=>{const _0x4f24fe=_0x4f8dd2,{connection:_0x142c09,lastDisconnect:_0x5a4101}=_0x1de642;if(_0x142c09===_0x4f24fe(0x1a4)){let _0x17fd0d=new Boom(_0x5a4101?.[_0x4f24fe(0x1ad)])?.['output'][_0x4f24fe(0x1af)];if(_0x17fd0d===DisconnectReason['badSession'])console[_0x4f24fe(0x19b)](_0x4f24fe(0x21e)),_0x2e81ca['logout']();else{if(_0x17fd0d===DisconnectReason[_0x4f24fe(0x209)])console[_0x4f24fe(0x19b)]('Connection\x20closed,\x20reconnecting....'),startXeonBotInc();else{if(_0x17fd0d===DisconnectReason[_0x4f24fe(0x1ee)])console[_0x4f24fe(0x19b)](_0x4f24fe(0x16b)),startXeonBotInc();else{if(_0x17fd0d===DisconnectReason['connectionReplaced'])console[_0x4f24fe(0x19b)](_0x4f24fe(0x22d)),_0x2e81ca[_0x4f24fe(0x1f9)]();else{if(_0x17fd0d===DisconnectReason[_0x4f24fe(0x1be)])console[_0x4f24fe(0x19b)](_0x4f24fe(0x234)),_0x2e81ca['logout']();else{if(_0x17fd0d===DisconnectReason[_0x4f24fe(0x1b7)])console[_0x4f24fe(0x19b)](_0x4f24fe(0x1f1)),startXeonBotInc();else{if(_0x17fd0d===DisconnectReason[_0x4f24fe(0x1ac)])console[_0x4f24fe(0x19b)](_0x4f24fe(0x1e7)),startXeonBotInc();else _0x2e81ca[_0x4f24fe(0x1f6)](_0x4f24fe(0x194)+_0x17fd0d+'|'+_0x142c09);}}}}}}}console[_0x4f24fe(0x19b)](_0x4f24fe(0x1de),_0x1de642);}),_0x2e81ca['ev']['on'](_0x4f8dd2(0x19a),saveState),_0x2e81ca[_0x4f8dd2(0x224)]=async(_0x321f64,_0x29add4,_0x1ebef5,_0x30242e,_0x3da87f={})=>{const _0x3bbf54=_0x4f8dd2;let _0x3eecc7='',_0x42b51d=await axios[_0x3bbf54(0x1a2)](_0x29add4);_0x3eecc7=_0x42b51d['headers'][_0x3bbf54(0x220)];if(_0x3eecc7[_0x3bbf54(0x23e)]('/')[0x1]==='gif')return _0x2e81ca[_0x3bbf54(0x1e8)](_0x321f64,{'video':await getBuffer(_0x29add4),'caption':_0x1ebef5,'gifPlayback':!![],..._0x3da87f},{'quoted':_0x30242e,..._0x3da87f});let _0x54b5b8=_0x3eecc7[_0x3bbf54(0x23e)]('/')[0x0]+_0x3bbf54(0x175);if(_0x3eecc7===_0x3bbf54(0x206))return _0x2e81ca[_0x3bbf54(0x1e8)](_0x321f64,{'document':await getBuffer(_0x29add4),'mimetype':_0x3bbf54(0x206),'caption':_0x1ebef5,..._0x3da87f},{'quoted':_0x30242e,..._0x3da87f});if(_0x3eecc7[_0x3bbf54(0x23e)]('/')[0x0]===_0x3bbf54(0x1c8))return _0x2e81ca[_0x3bbf54(0x1e8)](_0x321f64,{'image':await getBuffer(_0x29add4),'caption':_0x1ebef5,..._0x3da87f},{'quoted':_0x30242e,..._0x3da87f});if(_0x3eecc7[_0x3bbf54(0x23e)]('/')[0x0]===_0x3bbf54(0x1e4))return _0x2e81ca[_0x3bbf54(0x1e8)](_0x321f64,{'video':await getBuffer(_0x29add4),'caption':_0x1ebef5,'mimetype':_0x3bbf54(0x1c7),..._0x3da87f},{'quoted':_0x30242e,..._0x3da87f});if(_0x3eecc7[_0x3bbf54(0x23e)]('/')[0x0]===_0x3bbf54(0x1db))return _0x2e81ca[_0x3bbf54(0x1e8)](_0x321f64,{'audio':await getBuffer(_0x29add4),'caption':_0x1ebef5,'mimetype':_0x3bbf54(0x1e9),..._0x3da87f},{'quoted':_0x30242e,..._0x3da87f});},_0x2e81ca[_0x4f8dd2(0x18a)]=(_0x2b87ac,_0x123eaa='',_0x3e54be='',_0x31da9b='',_0x1ea814='',_0x2b5330=[],_0x1f2af5)=>{const _0x18153f=_0x4f8dd2;let _0x1efa95=_0x2b5330;var _0x4ce2fe={'text':_0x123eaa,'footer':_0x3e54be,'title':_0x31da9b,'buttonText':_0x1ea814,'sections':_0x1efa95};_0x2e81ca[_0x18153f(0x1e8)](_0x2b87ac,_0x4ce2fe,{'quoted':_0x1f2af5});},_0x2e81ca[_0x4f8dd2(0x1fd)]=(_0x3ec465,_0x223ef3='',_0x32f2ca='',_0x321474=[])=>{const _0x122e03=_0x4f8dd2;let _0xf27b90=_0x321474;var _0x228d86={'text':_0x223ef3,'footer':_0x32f2ca,'templateButtons':_0xf27b90};_0x2e81ca[_0x122e03(0x1e8)](_0x3ec465,_0x228d86);},_0x2e81ca[_0x4f8dd2(0x232)]=async(_0x5844ab,_0x1164f8='',_0x20c8ac='',_0xd12c88,_0x4e80f0=[],_0x37fa59={})=>{const _0x2b5e49=_0x4f8dd2;let _0x6a542d=await prepareWAMessageMedia({'image':_0xd12c88},{'upload':_0x2e81ca['waUploadToServer']});var _0x3eb4e1=generateWAMessageFromContent(_0x5844ab,proto[_0x2b5e49(0x175)]['fromObject']({'templateMessage':{'hydratedTemplate':{'imageMessage':_0x6a542d['imageMessage'],'hydratedContentText':_0x1164f8,'hydratedFooterText':_0x20c8ac,'hydratedButtons':_0x4e80f0}}}),_0x37fa59);_0x2e81ca[_0x2b5e49(0x172)](_0x5844ab,_0x3eb4e1[_0x2b5e49(0x1d8)],{'messageId':_0x3eb4e1['key']['id']});},_0x2e81ca[_0x4f8dd2(0x17c)]=async(_0x576d8e,_0x494f60='',_0x289a31='',_0x22de9c,_0x461fa5=[],_0x31b4fc={})=>{const _0x2abba1=_0x4f8dd2;let _0x448e34=await prepareWAMessageMedia({'video':_0x22de9c},{'upload':_0x2e81ca[_0x2abba1(0x1cb)]});var _0x55d265=generateWAMessageFromContent(_0x576d8e,proto[_0x2abba1(0x175)][_0x2abba1(0x17e)]({'templateMessage':{'hydratedTemplate':{'videoMessage':_0x448e34[_0x2abba1(0x1f8)],'hydratedContentText':_0x494f60,'hydratedFooterText':_0x289a31,'hydratedButtons':_0x461fa5}}}),_0x31b4fc);_0x2e81ca[_0x2abba1(0x172)](_0x576d8e,_0x55d265['message'],{'messageId':_0x55d265[_0x2abba1(0x1cf)]['id']});},_0x2e81ca[_0x4f8dd2(0x1bb)]=async(_0x3d8758,_0x108cb9='',_0x34ee6f='',_0x2a7b4c,_0x29c5b6=[],_0x1d9b16={})=>{const _0x4a5104=_0x4f8dd2;let _0x286cfb=await prepareWAMessageMedia({'video':_0x2a7b4c,'gifPlayback':!![]},{'upload':_0x2e81ca[_0x4a5104(0x1cb)]});var _0x12046b=generateWAMessageFromContent(_0x3d8758,proto[_0x4a5104(0x175)][_0x4a5104(0x17e)]({'templateMessage':{'hydratedTemplate':{'videoMessage':_0x286cfb[_0x4a5104(0x1f8)],'hydratedContentText':_0x108cb9,'hydratedFooterText':_0x34ee6f,'hydratedButtons':_0x29c5b6}}}),_0x1d9b16);_0x2e81ca[_0x4a5104(0x172)](_0x3d8758,_0x12046b[_0x4a5104(0x1d8)],{'messageId':_0x12046b[_0x4a5104(0x1cf)]['id']});},_0x2e81ca[_0x4f8dd2(0x1d7)]=(_0x1907ad,_0x12212b=[],_0x47449e,_0x41e0cb,_0x16561b='',_0x5bb767={})=>{const _0x512ed5=_0x4f8dd2;let _0x609e43={'text':_0x47449e,'footer':_0x41e0cb,'buttons':_0x12212b,'headerType':0x2,..._0x5bb767};_0x2e81ca[_0x512ed5(0x1e8)](_0x1907ad,_0x609e43,{'quoted':_0x16561b,..._0x5bb767});},_0x2e81ca[_0x4f8dd2(0x1ff)]=(_0x2dd4d5,_0x2e748a,_0x1423d8='',_0x103902)=>_0x2e81ca[_0x4f8dd2(0x1e8)](_0x2dd4d5,{'text':_0x2e748a,..._0x103902},{'quoted':_0x1423d8}),_0x2e81ca[_0x4f8dd2(0x235)]=async(_0x1ac771,_0x8a1212,_0x5d7914='',_0x46fcca='',_0x3c55c3)=>{const _0x41f737=_0x4f8dd2;let _0x5d7e8a=Buffer[_0x41f737(0x210)](_0x8a1212)?_0x8a1212:/^data:.*?\/.*?;base64,/i['test'](_0x8a1212)?Buffer[_0x41f737(0x1a3)](_0x8a1212[_0x41f737(0x23e)]`,`[0x1],_0x41f737(0x1d4)):/^https?:\/\//['test'](_0x8a1212)?await await getBuffer(_0x8a1212):fs[_0x41f737(0x187)](_0x8a1212)?fs[_0x41f737(0x184)](_0x8a1212):Buffer[_0x41f737(0x23c)](0x0);return await _0x2e81ca['sendMessage'](_0x1ac771,{'image':_0x5d7e8a,'caption':_0x5d7914,..._0x3c55c3},{'quoted':_0x46fcca});},_0x2e81ca[_0x4f8dd2(0x1ec)]=async(_0x31a37c,_0x59f1aa,_0x224392='',_0x39817b='',_0x153c9a=![],_0x13ff21)=>{const _0x1211d2=_0x4f8dd2;let _0x194e7f=Buffer[_0x1211d2(0x210)](_0x59f1aa)?_0x59f1aa:/^data:.*?\/.*?;base64,/i[_0x1211d2(0x18f)](_0x59f1aa)?Buffer[_0x1211d2(0x1a3)](_0x59f1aa[_0x1211d2(0x23e)]`,`[0x1],_0x1211d2(0x1d4)):/^https?:\/\//[_0x1211d2(0x18f)](_0x59f1aa)?await await getBuffer(_0x59f1aa):fs[_0x1211d2(0x187)](_0x59f1aa)?fs[_0x1211d2(0x184)](_0x59f1aa):Buffer['alloc'](0x0);return await _0x2e81ca['sendMessage'](_0x31a37c,{'video':_0x194e7f,'caption':_0x224392,'gifPlayback':_0x153c9a,..._0x13ff21},{'quoted':_0x39817b});},_0x2e81ca['sendAudio']=async(_0x2d82c0,_0x2f688c,_0x495b3c='',_0x3eb9da=![],_0x20619b)=>{const _0x16471a=_0x4f8dd2;let _0x5655dc=Buffer[_0x16471a(0x210)](_0x2f688c)?_0x2f688c:/^data:.*?\/.*?;base64,/i[_0x16471a(0x18f)](_0x2f688c)?Buffer[_0x16471a(0x1a3)](_0x2f688c[_0x16471a(0x23e)]`,`[0x1],_0x16471a(0x1d4)):/^https?:\/\//[_0x16471a(0x18f)](_0x2f688c)?await await getBuffer(_0x2f688c):fs['existsSync'](_0x2f688c)?fs[_0x16471a(0x184)](_0x2f688c):Buffer[_0x16471a(0x23c)](0x0);return await _0x2e81ca[_0x16471a(0x1e8)](_0x2d82c0,{'audio':_0x5655dc,'ptt':_0x3eb9da,..._0x20619b},{'quoted':_0x495b3c});},_0x2e81ca[_0x4f8dd2(0x196)]=async(_0x5e13fa,_0x835bdb,_0x323cab,_0x462a5d={})=>_0x2e81ca[_0x4f8dd2(0x1e8)](_0x5e13fa,{'text':_0x835bdb,'contextInfo':{'mentionedJid':[..._0x835bdb['matchAll'](/@(\d{0,16})/g)]['map'](_0x119d5e=>_0x119d5e[0x1]+_0x4f8dd2(0x22f))},..._0x462a5d},{'quoted':_0x323cab}),_0x2e81ca[_0x4f8dd2(0x21a)]=async(_0x844509,_0x52d834,_0x50fb31,_0x1c8fc4={})=>{const _0x1881a8=_0x4f8dd2;let _0x54100d=Buffer[_0x1881a8(0x210)](_0x52d834)?_0x52d834:/^data:.*?\/.*?;base64,/i[_0x1881a8(0x18f)](_0x52d834)?Buffer['from'](_0x52d834[_0x1881a8(0x23e)]`,`[0x1],'base64'):/^https?:\/\//['test'](_0x52d834)?await await getBuffer(_0x52d834):fs[_0x1881a8(0x187)](_0x52d834)?fs[_0x1881a8(0x184)](_0x52d834):Buffer[_0x1881a8(0x23c)](0x0),_0x3471d6;return _0x1c8fc4&&(_0x1c8fc4[_0x1881a8(0x1c2)]||_0x1c8fc4['author'])?_0x3471d6=await writeExifImg(_0x54100d,_0x1c8fc4):_0x3471d6=await imageToWebp(_0x54100d),await _0x2e81ca[_0x1881a8(0x1e8)](_0x844509,{'sticker':{'url':_0x3471d6},..._0x1c8fc4},{'quoted':_0x50fb31}),_0x3471d6;},_0x2e81ca['sendVideoAsSticker']=async(_0x4ac66c,_0x1f2d51,_0x32ac02,_0x557ed4={})=>{const _0x1ccf82=_0x4f8dd2;let _0xe95cf9=Buffer[_0x1ccf82(0x210)](_0x1f2d51)?_0x1f2d51:/^data:.*?\/.*?;base64,/i[_0x1ccf82(0x18f)](_0x1f2d51)?Buffer['from'](_0x1f2d51[_0x1ccf82(0x23e)]`,`[0x1],'base64'):/^https?:\/\//[_0x1ccf82(0x18f)](_0x1f2d51)?await await getBuffer(_0x1f2d51):fs[_0x1ccf82(0x187)](_0x1f2d51)?fs[_0x1ccf82(0x184)](_0x1f2d51):Buffer['alloc'](0x0),_0x2caedb;return _0x557ed4&&(_0x557ed4[_0x1ccf82(0x1c2)]||_0x557ed4[_0x1ccf82(0x238)])?_0x2caedb=await writeExifVid(_0xe95cf9,_0x557ed4):_0x2caedb=await videoToWebp(_0xe95cf9),await _0x2e81ca['sendMessage'](_0x4ac66c,{'sticker':{'url':_0x2caedb},..._0x557ed4},{'quoted':_0x32ac02}),_0x2caedb;},_0x2e81ca['downloadAndSaveMediaMessage']=async(_0x3f4b77,_0x52bd16,_0xb5c42=!![])=>{const _0x2fe8ec=_0x4f8dd2;let _0x278ea5=_0x3f4b77['msg']?_0x3f4b77['msg']:_0x3f4b77,_0x160c67=(_0x3f4b77[_0x2fe8ec(0x211)]||_0x3f4b77)[_0x2fe8ec(0x1a8)]||'',_0x267cb3=_0x3f4b77[_0x2fe8ec(0x229)]?_0x3f4b77['mtype'][_0x2fe8ec(0x1ed)](/Message/gi,''):_0x160c67['split']('/')[0x0];const _0x353646=await downloadContentFromMessage(_0x278ea5,_0x267cb3);let _0x1ce3f0=Buffer[_0x2fe8ec(0x1a3)]([]);for await(const _0x53aa25 of _0x353646){_0x1ce3f0=Buffer[_0x2fe8ec(0x1ce)]([_0x1ce3f0,_0x53aa25]);}let _0x18af07=await FileType['fromBuffer'](_0x1ce3f0);return trueFileName=_0xb5c42?_0x52bd16+'.'+_0x18af07[_0x2fe8ec(0x1aa)]:_0x52bd16,await fs['writeFileSync'](trueFileName,_0x1ce3f0),trueFileName;},_0x2e81ca['downloadMediaMessage']=async _0x2927fe=>{const _0x4bc3da=_0x4f8dd2;let _0x481348=(_0x2927fe[_0x4bc3da(0x211)]||_0x2927fe)['mimetype']||'',_0x568d4e=_0x2927fe[_0x4bc3da(0x229)]?_0x2927fe[_0x4bc3da(0x229)][_0x4bc3da(0x1ed)](/Message/gi,''):_0x481348[_0x4bc3da(0x23e)]('/')[0x0];const _0x517328=await downloadContentFromMessage(_0x2927fe,_0x568d4e);let _0x4eaab2=Buffer['from']([]);for await(const _0x1d0550 of _0x517328){_0x4eaab2=Buffer[_0x4bc3da(0x1ce)]([_0x4eaab2,_0x1d0550]);}return _0x4eaab2;},_0x2e81ca['sendMedia']=async(_0x124205,_0x5cf59f,_0x57d96e='',_0x2c2f41='',_0x3ad3b3='',_0xe9a7b9={})=>{const _0x6619f2=_0x4f8dd2;let _0x32033b=await _0x2e81ca[_0x6619f2(0x1bf)](_0x5cf59f,!![]),{mime:_0x314265,ext:_0x169210,res:_0x59af15,data:_0x31a9e7,filename:_0x3682a1}=_0x32033b;if(_0x59af15&&_0x59af15['status']!==0xc8||file[_0x6619f2(0x21d)]<=0x10000)try{throw{'json':JSON[_0x6619f2(0x16a)](file[_0x6619f2(0x17b)]())};}catch(_0x316b20){if(_0x316b20[_0x6619f2(0x202)])throw _0x316b20[_0x6619f2(0x202)];}let _0x3ab843='',_0x1c1e78=_0x314265,_0x209606=_0x3682a1;if(_0xe9a7b9[_0x6619f2(0x227)])_0x3ab843=_0x6619f2(0x22e);if(_0xe9a7b9['asSticker']||/webp/[_0x6619f2(0x18f)](_0x314265)){let {writeExif:_0x324fc5}=require(_0x6619f2(0x178)),_0x1dcd9b={'mimetype':_0x314265,'data':_0x31a9e7};_0x209606=await _0x324fc5(_0x1dcd9b,{'packname':_0xe9a7b9[_0x6619f2(0x1c2)]?_0xe9a7b9[_0x6619f2(0x1c2)]:global['packname'],'author':_0xe9a7b9[_0x6619f2(0x238)]?_0xe9a7b9[_0x6619f2(0x238)]:global['author'],'categories':_0xe9a7b9[_0x6619f2(0x239)]?_0xe9a7b9['categories']:[]}),await fs['promises']['unlink'](_0x3682a1),_0x3ab843='sticker',_0x1c1e78=_0x6619f2(0x1df);}else{if(/image/[_0x6619f2(0x18f)](_0x314265))_0x3ab843='image';else{if(/video/['test'](_0x314265))_0x3ab843=_0x6619f2(0x1e4);else{if(/audio/[_0x6619f2(0x18f)](_0x314265))_0x3ab843=_0x6619f2(0x1db);else _0x3ab843=_0x6619f2(0x22e);}}}return await _0x2e81ca[_0x6619f2(0x1e8)](_0x124205,{[_0x3ab843]:{'url':_0x209606},'caption':_0x2c2f41,'mimetype':_0x1c1e78,'fileName':_0x57d96e,..._0xe9a7b9},{'quoted':_0x3ad3b3,..._0xe9a7b9}),fs[_0x6619f2(0x1d6)]['unlink'](_0x209606);},_0x2e81ca[_0x4f8dd2(0x190)]=async(_0x3197d5,_0x292a70,_0x42c27e=![],_0xb257ea={})=>{const _0x47dd3c=_0x4f8dd2;let _0xa9689d;_0xb257ea[_0x47dd3c(0x174)]&&(_0x292a70[_0x47dd3c(0x1d8)]=_0x292a70[_0x47dd3c(0x1d8)]&&_0x292a70[_0x47dd3c(0x1d8)][_0x47dd3c(0x199)]&&_0x292a70['message']['ephemeralMessage'][_0x47dd3c(0x1d8)]?_0x292a70['message'][_0x47dd3c(0x199)][_0x47dd3c(0x1d8)]:_0x292a70[_0x47dd3c(0x1d8)]||undefined,_0xa9689d=Object[_0x47dd3c(0x205)](_0x292a70['message'][_0x47dd3c(0x200)][_0x47dd3c(0x1d8)])[0x0],delete(_0x292a70[_0x47dd3c(0x1d8)]&&_0x292a70[_0x47dd3c(0x1d8)]['ignore']?_0x292a70[_0x47dd3c(0x1d8)][_0x47dd3c(0x22a)]:_0x292a70[_0x47dd3c(0x1d8)]||undefined),delete _0x292a70[_0x47dd3c(0x1d8)][_0x47dd3c(0x200)]['message'][_0xa9689d]['viewOnce'],_0x292a70['message']={..._0x292a70['message'][_0x47dd3c(0x200)][_0x47dd3c(0x1d8)]});let _0x45d27b=Object['keys'](_0x292a70[_0x47dd3c(0x1d8)])[0x0],_0x1424d3=await generateForwardMessageContent(_0x292a70,_0x42c27e),_0x126f8d=Object[_0x47dd3c(0x205)](_0x1424d3)[0x0],_0x2b62cc={};if(_0x45d27b!=_0x47dd3c(0x1fa))_0x2b62cc=_0x292a70['message'][_0x45d27b][_0x47dd3c(0x189)];_0x1424d3[_0x126f8d]['contextInfo']={..._0x2b62cc,..._0x1424d3[_0x126f8d][_0x47dd3c(0x189)]};const _0x214050=await generateWAMessageFromContent(_0x3197d5,_0x1424d3,_0xb257ea?{..._0x1424d3[_0x126f8d],..._0xb257ea,..._0xb257ea[_0x47dd3c(0x189)]?{'contextInfo':{..._0x1424d3[_0x126f8d][_0x47dd3c(0x189)],..._0xb257ea[_0x47dd3c(0x189)]}}:{}}:{});return await _0x2e81ca[_0x47dd3c(0x172)](_0x3197d5,_0x214050['message'],{'messageId':_0x214050[_0x47dd3c(0x1cf)]['id']}),_0x214050;},_0x2e81ca[_0x4f8dd2(0x1c4)]=(_0x450f06,_0x2c5cfa,_0x1236f7='',_0x3be6a6=_0x2e81ca[_0x4f8dd2(0x169)]['id'],_0x4e5a87={})=>{const _0x396667=_0x4f8dd2;let _0x2db39f=Object[_0x396667(0x205)](_0x2c5cfa['message'])[0x0],_0x5a01cd=_0x2db39f===_0x396667(0x199);_0x5a01cd&&(_0x2db39f=Object['keys'](_0x2c5cfa[_0x396667(0x1d8)][_0x396667(0x199)][_0x396667(0x1d8)])[0x0]);let _0xce130e=_0x5a01cd?_0x2c5cfa[_0x396667(0x1d8)][_0x396667(0x199)][_0x396667(0x1d8)]:_0x2c5cfa['message'],_0x5e9cbf=_0xce130e[_0x2db39f];if(typeof _0x5e9cbf===_0x396667(0x1b9))_0xce130e[_0x2db39f]=_0x1236f7||_0x5e9cbf;else{if(_0x5e9cbf[_0x396667(0x214)])_0x5e9cbf[_0x396667(0x214)]=_0x1236f7||_0x5e9cbf[_0x396667(0x214)];else{if(_0x5e9cbf[_0x396667(0x176)])_0x5e9cbf[_0x396667(0x176)]=_0x1236f7||_0x5e9cbf[_0x396667(0x176)];}}if(typeof _0x5e9cbf!=='string')_0xce130e[_0x2db39f]={..._0x5e9cbf,..._0x4e5a87};if(_0x2c5cfa['key'][_0x396667(0x208)])_0x3be6a6=_0x2c5cfa[_0x396667(0x1cf)][_0x396667(0x208)]=_0x3be6a6||_0x2c5cfa[_0x396667(0x1cf)][_0x396667(0x208)];else{if(_0x2c5cfa[_0x396667(0x1cf)]['participant'])_0x3be6a6=_0x2c5cfa[_0x396667(0x1cf)]['participant']=_0x3be6a6||_0x2c5cfa[_0x396667(0x1cf)][_0x396667(0x208)];}if(_0x2c5cfa[_0x396667(0x1cf)][_0x396667(0x23a)][_0x396667(0x171)](_0x396667(0x22f)))_0x3be6a6=_0x3be6a6||_0x2c5cfa[_0x396667(0x1cf)][_0x396667(0x23a)];else{if(_0x2c5cfa[_0x396667(0x1cf)][_0x396667(0x23a)][_0x396667(0x171)](_0x396667(0x230)))_0x3be6a6=_0x3be6a6||_0x2c5cfa['key'][_0x396667(0x23a)];}return _0x2c5cfa[_0x396667(0x1cf)]['remoteJid']=_0x450f06,_0x2c5cfa[_0x396667(0x1cf)][_0x396667(0x1d0)]=_0x3be6a6===_0x2e81ca[_0x396667(0x169)]['id'],proto[_0x396667(0x1bc)]['fromObject'](_0x2c5cfa);},_0x2e81ca['getFile']=async(_0x13e722,_0x2b5ca4)=>{const _0x50a76a=_0x4f8dd2;let _0x5cfc75,_0xd6343d=Buffer[_0x50a76a(0x210)](_0x13e722)?_0x13e722:/^data:.*?\/.*?;base64,/i[_0x50a76a(0x18f)](_0x13e722)?Buffer[_0x50a76a(0x1a3)](_0x13e722[_0x50a76a(0x23e)]`,`[0x1],_0x50a76a(0x1d4)):/^https?:\/\//[_0x50a76a(0x18f)](_0x13e722)?await(_0x5cfc75=await getBuffer(_0x13e722)):fs[_0x50a76a(0x187)](_0x13e722)?(filename=_0x13e722,fs[_0x50a76a(0x184)](_0x13e722)):typeof _0x13e722===_0x50a76a(0x1b9)?_0x13e722:Buffer[_0x50a76a(0x23c)](0x0),_0x28772e=await FileType[_0x50a76a(0x219)](_0xd6343d)||{'mime':_0x50a76a(0x20d),'ext':'.bin'};filename=path[_0x50a76a(0x1a7)](__filename,_0x50a76a(0x233)+new Date()*0x1+'.'+_0x28772e[_0x50a76a(0x1aa)]);if(_0xd6343d&&_0x2b5ca4)fs[_0x50a76a(0x1d6)][_0x50a76a(0x1cc)](filename,_0xd6343d);return{'res':_0x5cfc75,'filename':filename,'size':await getSizeMedia(_0xd6343d),..._0x28772e,'data':_0xd6343d};},_0x2e81ca;}app[_0x1ac61f(0x1d3)]('/',(_0x3f9cfb,_0x3954d8)=>{const _0x557834=_0x1ac61f;_0x3954d8[_0x557834(0x19c)](_0x557834(0x1ab));}),app[_0x1ac61f(0x237)](port,()=>console[_0x1ac61f(0x19b)](_0x1ac61f(0x17f)+port+_0x1ac61f(0x1b5))),setTimeout(()=>{startXeonBotInc();},0xbb8);let file=require['resolve'](__filename);fs[_0x1ac61f(0x17a)](file,()=>{const _0xa60546=_0x1ac61f;fs[_0xa60546(0x1bd)](file),console[_0xa60546(0x19b)](chalk['redBright'](_0xa60546(0x20e)+__filename)),delete require[_0xa60546(0x179)][file],require(file);});