a4c5ae0cedb0340321e42acb729e656f49cafd2f
[motion-next.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.events.js
1 const a688_0x49ca=['save','emit','UserVoiceQueueRt','exports','events','undefined','addHook','remove','../../mysqldb'];(function(_0x56747e,_0x49ca02){const _0x929875=function(_0x38982e){while(--_0x38982e){_0x56747e['push'](_0x56747e['shift']());}};_0x929875(++_0x49ca02);}(a688_0x49ca,0xd5));const a688_0x9298=function(_0x56747e,_0x49ca02){_0x56747e=_0x56747e-0x0;let _0x929875=a688_0x49ca[_0x56747e];return _0x929875;};const _0x12dea4=a688_0x9298;'use strict';const EventEmitter=require(_0x12dea4('0x7')),UserVoiceQueueRt=require(_0x12dea4('0x2'))['db'][_0x12dea4('0x5')],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x12dea4('0x3'),'afterUpdate':'update','afterDestroy':_0x12dea4('0x1')};function emitEvent(_0x38982e){return function(_0x122b32){const _0x186ba4=a688_0x9298;UserVoiceQueueRtEvents[_0x186ba4('0x4')](_0x38982e+':'+_0x122b32['id'],_0x122b32),UserVoiceQueueRtEvents[_0x186ba4('0x4')](_0x38982e,_0x122b32);};}for(const e in events){if(typeof events[e]!==_0x12dea4('0x8')){const event=events[e];UserVoiceQueueRt[_0x12dea4('0x0')](e,emitEvent(event));}}module[_0x12dea4('0x6')]=UserVoiceQueueRtEvents;