UNPKG

@neoxr/wb

Version:

Simplicity WhatsApp Bot (Baileys)

2 lines 5.34 kB
// https://www.npmjs.com/package/@neoxr/wb 'use strict';const N=E;function E(J,I){const F=k();return E=function(o,T){o=o-(0xa*-0x39b+-0x93a+0x1*0x2ee3);let n=F[o];return n;},E(J,I);}(function(J,I){const G=E,F=J();while(!![]){try{const o=parseInt(G(0x1a3))/(0x1*-0x1782+0x2344+0x3eb*-0x3)*(-parseInt(G(0x1f4))/(0x1*0xc5b+-0x1018+-0x3bf*-0x1))+parseInt(G(0x1e6))/(0x1a05+0x5*-0x11+-0x19ad)+parseInt(G(0x1ff))/(-0x162c+-0xb43+0x2173*0x1)*(-parseInt(G(0x1fd))/(-0x1c0+0x1903*-0x1+0x359*0x8))+parseInt(G(0x1d7))/(-0x8a*0x10+0xca+0x7dc)+-parseInt(G(0x1a6))/(-0x305*0x2+0x44e*0x9+-0x20ad*0x1)*(-parseInt(G(0x203))/(-0x2071*0x1+0x1*0xed7+-0x25*-0x7a))+-parseInt(G(0x1cf))/(-0x2b*-0x2+-0x1*0x180b+0x17be)+-parseInt(G(0x1bf))/(-0x46f*-0x4+0x18d7+-0x2a89)*(parseInt(G(0x1c1))/(-0xb4b+-0x2691+0x31e7));if(o===I)break;else F['push'](F['shift']());}catch(T){F['push'](F['shift']());}}}(k,0x6839*0x5+0x24ec2*0x5+-0x5af52));var __importDefault=this&&this[N(0x1fe)+N(0x1e4)]||function(J){const h=N;return J&&J[h(0x208)]?J:{'default':J};};Object[N(0x1c6)+N(0x1a9)](exports,N(0x208),{'value':!![]});const fs_1=__importDefault(require('fs')),fluent_ffmpeg_1=__importDefault(require(N(0x1c0)+N(0x1ad))),child_process_1=require(N(0x19f)+N(0x1ce)),stream_1=require(N(0x1bc)),functions_1=__importDefault(require(N(0x204)+'s'));class Converter{constructor(){const g=N,J={'jalUo':function(I,F){return I!==F;},'ebcfS':function(I,F){return I(F);},'CJKKE':function(I,F){return I(F);},'PMbnq':function(I,F){return I+F;},'FLzJI':g(0x1be),'GSjcj':function(I,F){return I+F;},'ZRdbM':g(0x1fc),'fWsnX':g(0x1ba),'gWycB':g(0x1e1),'Oyqsz':function(I,F){return I(F);},'juwiF':g(0x1bb),'vGFJp':g(0x206),'BRPxJ':g(0x1e5),'lFNKt':g(0x1fb),'VsgDj':g(0x1b2),'chHjJ':g(0x1ab),'sjbBB':g(0x1b4),'hJkcN':g(0x19b),'iooyv':g(0x1d3),'WqeyI':g(0x1b6),'YACpr':g(0x1f9)+g(0x1ae),'INKjn':g(0x1ac),'pVBdK':g(0x1ea),'GLkHd':g(0x1b3),'bakyM':g(0x1b5),'JIrHa':g(0x1eb),'HyhSY':g(0x1c4),'efDnh':g(0x1fa),'cWWmO':g(0x1c7),'Dklnt':g(0x1b8),'aGixL':function(I,F){return I(F);},'LnzOi':function(I,F){return I(F);},'CIcZk':g(0x19e),'XNKxs':g(0x1ec)};this[g(0x1fc)]=(I,F=[],o='',T='')=>new Promise(async(n,p)=>{const t=g,P={'LRirN':function(l,a){const i=E;return J[i(0x19c)](l,a);},'tAxpZ':function(l,a){const Y=E;return J[Y(0x1f7)](l,a);},'ftVAu':function(l,a){const y=E;return J[y(0x1cc)](l,a);},'MWxde':function(l,a){const U=E;return J[U(0x1f7)](l,a);}};try{let l=J[t(0x1c9)](J[t(0x1c9)](J[t(0x1c9)](J[t(0x1ed)],functions_1[t(0x1aa)][t(0x1b9)]()),'.'),o),a=J[t(0x1c9)](J[t(0x1c8)](l,'.'),T);await fs_1[t(0x1aa)][t(0x1d0)][t(0x1a5)](l,I),(-0x304*-0x3+0x41*0x3e+-0x18ca,child_process_1[t(0x1a2)])(J[t(0x19d)],['-y','-i',l,...F,a])['on'](J[t(0x1d2)],p)['on'](J[t(0x1a1)],async S=>{const d=t;try{await fs_1[d(0x1aa)][d(0x1d0)][d(0x201)](l);if(P[d(0x1a7)](S,-0x4a*-0x81+0x16bb+-0x3c05))return P[d(0x1cb)](p,S);P[d(0x205)](n,await fs_1[d(0x1aa)][d(0x1d0)][d(0x1d6)](a)),await fs_1[d(0x1aa)][d(0x1d0)][d(0x201)](a);}catch(x){P[d(0x1b1)](p,x);}});}catch(S){J[t(0x1b0)](p,S);}}),this[g(0x1dd)]=(I,F)=>{const f=g;return this[f(0x1fc)](I,[J[f(0x1c3)],J[f(0x1da)],'2',J[f(0x1e7)],J[f(0x1df)],J[f(0x207)],J[f(0x1a0)],'-f',J[f(0x202)]],F,J[f(0x202)]);},this[g(0x1d8)]=(I,F)=>{const X=g;return this[X(0x1fc)](I,[J[X(0x1c3)],J[X(0x1de)],J[X(0x1db)],J[X(0x1e7)],J[X(0x1df)],J[X(0x1f6)],'on',J[X(0x1c5)],'10'],F,J[X(0x1dc)]);},this[g(0x1bd)]=(I,F)=>{const M=g;return this[M(0x1fc)](I,[J[M(0x1f0)],J[M(0x1e9)],J[M(0x1de)],J[M(0x1ca)],J[M(0x1cd)],J[M(0x1df)],J[M(0x207)],J[M(0x1a0)],J[M(0x1d1)],'32',J[M(0x1d4)],J[M(0x1d5)]],F,J[M(0x1e0)]);},this[g(0x1a4)]=I=>new Promise((F,o)=>{const A=g,T={'rAXnj':function(P,l){const O=E;return J[O(0x209)](P,l);},'TtPLM':function(P,l){const m=E;return J[m(0x1f8)](P,l);}},n=new stream_1[(A(0x1f3))+'h'](),p=[];(-0xf01+-0x1*-0xf73+-0x72,fluent_ffmpeg_1[A(0x1aa)])(I)[A(0x1f1)](J[A(0x202)])['on'](J[A(0x1d2)],P=>{const r=A;console[r(0x1ba)](r(0x1f5)+r(0x1e3)+r(0x1a8)+P[r(0x200)]),T[r(0x1e8)](o,P);})['on'](J[A(0x1ee)],()=>{})[A(0x1c2)](n),n['on'](J[A(0x1d9)],P=>{const e=A;p[e(0x1ef)](P);}),n['on'](J[A(0x1ee)],()=>{const Z=A,P=Buffer[Z(0x1f2)](p);T[Z(0x1e2)](F,P);}),n['on'](J[A(0x1d2)],P=>{const j=A;console[j(0x1ba)](j(0x1af)+j(0x1b7)+P[j(0x200)]),T[j(0x1e8)](o,P);});});}}function k(){const L=['data','FLzJI','CIcZk','push','pVBdK','toFormat','concat','PassThroug','398IJSMpX','Error\x20duri','WqeyI','ebcfS','LnzOi','-compressi','-preset','128k','ffmpeg','2870smOjaV','__importDe','1416FCwprv','message','unlink','sjbBB','128GGqauf','./function','ftVAu','-ac','VsgDj','__esModule','aGixL','-c:a','jalUo','ZRdbM','end','child_proc','chHjJ','gWycB','spawn','2731HaOtif','toMp3','writeFile','55769ASDpGF','LRirN','ion:\x20','erty','default','44100','opus','peg','on_level','Stream\x20err','Oyqsz','MWxde','-ar','libx264','mp3','aac','-vbr','or:\x20','mp4','uuid','error','-vn','stream','toVideo','temp/','120IhKxvF','fluent-ffm','385286Bddsue','pipe','juwiF','-crf','YACpr','defineProp','slow','GSjcj','PMbnq','bakyM','tAxpZ','CJKKE','JIrHa','ess','1405179FdPbNG','promises','HyhSY','fWsnX','libopus','efDnh','cWWmO','readFile','6200790PJiHPd','toPTT','XNKxs','vGFJp','iooyv','INKjn','toAudio','hJkcN','lFNKt','Dklnt','close','TtPLM','ng\x20convers','fault','-b:a','2037552hQCiLa','BRPxJ','rAXnj','GLkHd','-c:v','-ab'];k=function(){return L;};return k();}exports[N(0x1aa)]=new Converter();