UNPKG

@neoxr/wb

Version:

Simplicity WhatsApp Bot (Baileys)

2 lines 4.06 kB
// https://www.npmjs.com/package/@neoxr/wb 'use strict';function k(){const g=['slice','messages','baileys','fault','remoteJid','reactions','ajshing/ba','close','__esModule','2313171KMeDIq','./node_mod','filter','5xSkxNE','__importDe','@whiskeyso','contactsUp','419352PDyKNF','2261778zNOtaR','ageWithRec','eipt','ules/@adiw','12bSKTwO','sert','leys','participan','ction','existsSync','ng/baileys','3315ecClpl','@neoxr/bai','@adiwajshi','userReceip','userJid','keysockets','history','/node-cach','ageWithRea','set','default','key','ules/@whis','ules/@neox','/baileys','erty','keys','store','find','loadMessag','get','4296080PuPiZb','19016591mCVqwE','push','158247vAyMVJ','assign','defineProp','AZgrz','ckets/bail','430TIKbqf','7DzBKdG','updateMess','r/baileys','delete','@cacheable','fromMe','eys','reverse','ileys','text','5044HMkpTf'];k=function(){return g;};return k();}const l=E;(function(J,I){const P=E,F=J();while(!![]){try{const o=parseInt(P(0x143))/(0x1*0x25b3+0x4d*-0x18+-0x1e7a)*(-parseInt(P(0x147))/(0x135+0x1bb*0x5+0x9da*-0x1))+-parseInt(P(0x140))/(0x39f+0x23ea+-0x2*0x13c3)+parseInt(P(0x136))/(0x427+-0x1*-0x21b5+-0xad*0x38)*(parseInt(P(0x153))/(0x1*0x2441+-0x1f39+-0x503))+-parseInt(P(0x148))/(-0xbad+-0x120f+-0x1*-0x1dc2)*(parseInt(P(0x12c))/(-0xb7*0x22+0x1*-0x13fd+0xba*0x3d))+-parseInt(P(0x123))/(-0x2047*-0x1+0x22a2+0x1*-0x42e1)+parseInt(P(0x126))/(0x154+0x1293+-0x9ef*0x2)*(parseInt(P(0x12b))/(-0x2223+0x194e+0x8df))+-parseInt(P(0x124))/(0x1793+-0x69*-0x6+-0x19fe)*(-parseInt(P(0x14c))/(0x2099+-0x6*0x1ed+-0x14ff));if(o===I)break;else F['push'](F['shift']());}catch(T){F['push'](F['shift']());}}}(k,-0x6b*0x22d+0x49853+0x54757));var __importDefault=this&&this[l(0x144)+l(0x13a)]||function(J){const a=l;return J&&J[a(0x13f)]?J:{'default':J};};Object[l(0x128)+l(0x11d)](exports,l(0x13f),{'value':!![]}),exports[l(0x11f)]=void(-0x22bf+-0xff9+0x32b8);const node_cache_1=__importDefault(require(l(0x130)+l(0x15a)+'e')),cache=new node_cache_1[(l(0x118))]({'stdTTL':(0x1074*-0x1+-0x6*0x9f+0x146a)*(0x277*-0x3+0x261a+-0x1e79)*(0x355+-0x1*0x254f+0x2206*0x1),'checkperiod':(-0x1d4b*0x1+-0x1*0x579+-0x10*-0x230)*(-0x4*-0x462+0xb7d*-0x1+-0x5cf)*(-0x1*0xfb5+0x1bd*0x7+0x38b)}),fs_1=__importDefault(require('fs')),baileys=fs_1[l(0x118)][l(0x151)](l(0x141)+l(0x14b)+l(0x13d)+l(0x134))?require(l(0x155)+l(0x152)):fs_1[l(0x118)][l(0x151)](l(0x141)+l(0x11b)+l(0x12e))?require(l(0x154)+l(0x14e)):fs_1[l(0x118)][l(0x151)](l(0x141)+l(0x11a)+l(0x158)+l(0x11c))?require(l(0x145)+l(0x12a)+l(0x132)):require(l(0x139)),{proto:{IWebMessageInfo,IUserReceipt,IReaction,IMessageKey}}=baileys,messages={},chats={},contacts={},state={'connection':l(0x13e)},history={'messages':messages,'chats':chats,'contacts':contacts,'state':state};let store=cache[l(0x122)](l(0x159));function E(J,I){const F=k();return E=function(o,T){o=o-(0xd9c+-0x1*-0x2142+-0x2dc8);let n=F[o];return n;},E(J,I);}exports[l(0x11f)]=store;!store?(cache[l(0x117)](l(0x159),history),exports[l(0x11f)]=store=history):exports[l(0x11f)]=store=cache[l(0x122)](l(0x159));const getKeyAuthor=(J,I='me')=>(J?.[l(0x131)]?I:J?.[l(0x14f)+'t']||J?.[l(0x13b)])||'';store[l(0x146)+l(0x14d)]=J=>{const S=l,I=new Set(Object[S(0x11e)](contacts));for(const F of J){I[S(0x12f)](F['id']),contacts[F['id']]=Object[S(0x127)](contacts[F['id']]||{},F);}return I;},store[l(0x12d)+l(0x149)+l(0x14a)]=(J,I)=>{const x=l;J[x(0x156)+'t']=J[x(0x156)+'t']||[];const F=J[x(0x156)+'t'][x(0x120)](o=>o[x(0x157)]===I[x(0x157)]);F?Object[x(0x127)](F,I):J[x(0x156)+'t'][x(0x125)](I);},store[l(0x12d)+l(0x116)+l(0x150)]=(J,I)=>{const G=l,F={'AZgrz':function(n,p){return n(p);}},o=F[G(0x129)](getKeyAuthor,I[G(0x119)]),T=(J[G(0x13c)]||[])[G(0x142)](n=>getKeyAuthor(n[G(0x119)])!==o);I[G(0x135)]&&T[G(0x125)](I),J[G(0x13c)]=T;},store[l(0x121)+'e']=(J,I)=>{const N=l;try{const F=store?.[N(0x138)]?.[J]?.[N(0x120)](o=>o['id']===I);return F;}catch(o){return null;}},store[l(0x121)+'es']=(J,I)=>{const h=l;try{const F=I?store?.[h(0x138)]?.[J]?.[h(0x137)](-0x22e8+-0x1df5*-0x1+0x4f3,I):store?.[h(0x138)]?.[J];return F?.[h(0x133)]();}catch(o){return null;}};