4d2ed171593294e9896621dee6d0c92a1516709d
[motion-next.git] / server / api / voicePrefix / voicePrefix.socket.js
1 const a750_0xd7db=['length','voicePrefix:','update','register','./voicePrefix.events'];(function(_0x55a29d,_0xd7db22){const _0x3ea05f=function(_0x862822){while(--_0x862822){_0x55a29d['push'](_0x55a29d['shift']());}};_0x3ea05f(++_0xd7db22);}(a750_0xd7db,0x181));const a750_0x3ea0=function(_0x55a29d,_0xd7db22){_0x55a29d=_0x55a29d-0x0;let _0x3ea05f=a750_0xd7db[_0x55a29d];return _0x3ea05f;};const _0x53ccf1=a750_0x3ea0;'use strict';const VoicePrefixEvents=require(_0x53ccf1('0x4')),events=['save','remove',_0x53ccf1('0x2')];function createListener(_0x862822,_0x4c8593){return function(_0x257bcc){_0x4c8593['emit'](_0x862822,_0x257bcc);};}exports[_0x53ccf1('0x3')]=function(_0x3d3d53){const _0x52812=_0x53ccf1;for(let _0x48f19a=0x0,_0x197a21=events[_0x52812('0x0')];_0x48f19a<_0x197a21;_0x48f19a++){const _0x1b5a81=events[_0x48f19a],_0x24da15=createListener(_0x52812('0x1')+_0x1b5a81,_0x3d3d53);VoicePrefixEvents['on'](_0x1b5a81,_0x24da15);}};