Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / api / whatsappQueue / whatsappQueue.socket.js
1 const a972_0x5827=['emit','length','save','remove','./whatsappQueue.events','update'];(function(_0x27f2e6,_0x4f8297){const _0x58270c=function(_0x8f3162){while(--_0x8f3162){_0x27f2e6['push'](_0x27f2e6['shift']());}};_0x58270c(++_0x4f8297);}(a972_0x5827,0x13d));const a972_0x8f31=function(_0x27f2e6,_0x4f8297){_0x27f2e6=_0x27f2e6-0x85;let _0x58270c=a972_0x5827[_0x27f2e6];return _0x58270c;};const a972_0x8bd365=a972_0x8f31;'use strict';const WhatsappQueueEvents=require(a972_0x8bd365(0x8a)),events=[a972_0x8bd365(0x88),a972_0x8bd365(0x89),a972_0x8bd365(0x85)];function createListener(_0x28c58d,_0x57d4ef){return function(_0x3e8062){const _0x1ad948=a972_0x8f31;_0x57d4ef[_0x1ad948(0x86)](_0x28c58d,_0x3e8062);};}exports['register']=function(_0x3b7837){const _0x5adcbe=a972_0x8bd365;for(let _0xa7044d=0x0,_0x1e2fe3=events[_0x5adcbe(0x87)];_0xa7044d<_0x1e2fe3;_0xa7044d++){const _0x2c34d4=events[_0xa7044d],_0x2843e0=createListener('whatsappQueue:'+_0x2c34d4,_0x3b7837);WhatsappQueueEvents['on'](_0x2c34d4,_0x2843e0);}};