879a1a8ed147e545556bc26594571ff1c2613c5f
[motion-next.git] / server / api / voiceQueue / voiceQueue.socket.js
1 const a757_0x29d5=['length','register','./voiceQueue.events','save','emit'];(function(_0x5f185a,_0x29d54b){const _0x216e6b=function(_0xc72b1f){while(--_0xc72b1f){_0x5f185a['push'](_0x5f185a['shift']());}};_0x216e6b(++_0x29d54b);}(a757_0x29d5,0x75));const a757_0x216e=function(_0x5f185a,_0x29d54b){_0x5f185a=_0x5f185a-0x0;let _0x216e6b=a757_0x29d5[_0x5f185a];return _0x216e6b;};const _0xf3b13c=a757_0x216e;'use strict';const VoiceQueueEvents=require(_0xf3b13c('0x0')),events=[_0xf3b13c('0x1'),'remove','update'];function createListener(_0xc72b1f,_0x44641d){return function(_0x457453){const _0x243a21=a757_0x216e;_0x44641d[_0x243a21('0x2')](_0xc72b1f,_0x457453);};}exports[_0xf3b13c('0x4')]=function(_0x3fbb37){const _0x24470a=_0xf3b13c;for(let _0x40c947=0x0,_0x18226e=events[_0x24470a('0x3')];_0x40c947<_0x18226e;_0x40c947++){const _0x55409f=events[_0x40c947],_0x1913e6=createListener('voiceQueue:'+_0x55409f,_0x3fbb37);VoiceQueueEvents['on'](_0x55409f,_0x1913e6);}};