Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / api / voiceQueue / voiceQueue.events.js
1 const a754_0x258a=['../../mysqldb','VoiceQueue','emit','setMaxListeners','addHook','remove','update','events','undefined','save'];(function(_0x48f33c,_0x258aba){const _0x4327a2=function(_0x10807a){while(--_0x10807a){_0x48f33c['push'](_0x48f33c['shift']());}};_0x4327a2(++_0x258aba);}(a754_0x258a,0x99));const a754_0x4327=function(_0x48f33c,_0x258aba){_0x48f33c=_0x48f33c-0x0;let _0x4327a2=a754_0x258a[_0x48f33c];return _0x4327a2;};const _0x163c55=a754_0x4327;'use strict';const EventEmitter=require(_0x163c55('0x4')),VoiceQueue=require(_0x163c55('0x7'))['db'][_0x163c55('0x8')],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x163c55('0x0')](0x0);const events={'afterCreate':_0x163c55('0x6'),'afterUpdate':_0x163c55('0x3'),'afterDestroy':_0x163c55('0x2')};function emitEvent(_0x10807a){return function(_0x1afdc2){const _0x4ee77b=a754_0x4327;VoiceQueueEvents[_0x4ee77b('0x9')](_0x10807a+':'+_0x1afdc2['id'],_0x1afdc2),VoiceQueueEvents[_0x4ee77b('0x9')](_0x10807a,_0x1afdc2);};}for(const e in events){if(typeof events[e]!==_0x163c55('0x5')){const event=events[e];VoiceQueue[_0x163c55('0x1')](e,emitEvent(event));}}module['exports']=VoiceQueueEvents;