Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / whatsappInteraction / whatsappInteraction.socket.js
1 const a798_0x5962=['emit','register','length','update','./whatsappInteraction.events'];(function(_0x1be46d,_0x5962c0){const _0x2868f2=function(_0x5cb005){while(--_0x5cb005){_0x1be46d['push'](_0x1be46d['shift']());}};_0x2868f2(++_0x5962c0);}(a798_0x5962,0x18f));const a798_0x2868=function(_0x1be46d,_0x5962c0){_0x1be46d=_0x1be46d-0x0;let _0x2868f2=a798_0x5962[_0x1be46d];return _0x2868f2;};const _0xfa6118=a798_0x2868;'use strict';const WhatsappInteractionEvents=require(_0xfa6118('0x0')),events=['save','remove',_0xfa6118('0x4')];function createListener(_0x5cb005,_0x452da8){return function(_0x5be66b){const _0x1acd7f=a798_0x2868;_0x452da8[_0x1acd7f('0x1')](_0x5cb005,_0x5be66b);};}exports[_0xfa6118('0x2')]=function(_0x3271f6){const _0x1b5c66=_0xfa6118;for(let _0x44edcf=0x0,_0x113bf4=events[_0x1b5c66('0x3')];_0x44edcf<_0x113bf4;_0x44edcf++){const _0x1b2b2a=events[_0x44edcf],_0x3b3fd5=createListener('whatsappInteraction:'+_0x1b2b2a,_0x3271f6);WhatsappInteractionEvents['on'](_0x1b2b2a,_0x3b3fd5);}};