8435e98267f9865f6579d813ea687a6ac31e5cf7
[motion-next.git] / server / api / voicePrefix / voicePrefix.socket.js
1 const a750_0x38e6=['length','save','update','./voicePrefix.events','register'];(function(_0x3dc161,_0x38e6b2){const _0x1f5891=function(_0x4c0c44){while(--_0x4c0c44){_0x3dc161['push'](_0x3dc161['shift']());}};_0x1f5891(++_0x38e6b2);}(a750_0x38e6,0x99));const a750_0x1f58=function(_0x3dc161,_0x38e6b2){_0x3dc161=_0x3dc161-0x0;let _0x1f5891=a750_0x38e6[_0x3dc161];return _0x1f5891;};const _0x4276aa=a750_0x1f58;'use strict';const VoicePrefixEvents=require(_0x4276aa('0x0')),events=[_0x4276aa('0x3'),'remove',_0x4276aa('0x4')];function createListener(_0x4c0c44,_0x14fd9a){return function(_0x1ca3b7){_0x14fd9a['emit'](_0x4c0c44,_0x1ca3b7);};}exports[_0x4276aa('0x1')]=function(_0x38fdae){const _0x5b58cb=_0x4276aa;for(let _0x4811fd=0x0,_0xabb118=events[_0x5b58cb('0x2')];_0x4811fd<_0xabb118;_0x4811fd++){const _0x33fc7b=events[_0x4811fd],_0x14eec0=createListener('voicePrefix:'+_0x33fc7b,_0x38fdae);VoicePrefixEvents['on'](_0x33fc7b,_0x14eec0);}};