Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
1 const a761_0x4762=['../../mysqldb','VoiceQueueReport','save','emit','addHook','events','update'];(function(_0x46310e,_0x476212){const _0x32f412=function(_0x4b571f){while(--_0x4b571f){_0x46310e['push'](_0x46310e['shift']());}};_0x32f412(++_0x476212);}(a761_0x4762,0x10a));const a761_0x32f4=function(_0x46310e,_0x476212){_0x46310e=_0x46310e-0x0;let _0x32f412=a761_0x4762[_0x46310e];return _0x32f412;};const _0x529694=a761_0x32f4;'use strict';const EventEmitter=require(_0x529694('0x5')),VoiceQueueReport=require(_0x529694('0x0'))['db'][_0x529694('0x1')],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x529694('0x2'),'afterUpdate':_0x529694('0x6'),'afterDestroy':'remove'};function emitEvent(_0x4b571f){return function(_0x464d65){const _0x57b407=a761_0x32f4;VoiceQueueReportEvents[_0x57b407('0x3')](_0x4b571f+':'+_0x464d65['id'],_0x464d65),VoiceQueueReportEvents[_0x57b407('0x3')](_0x4b571f,_0x464d65);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoiceQueueReport[_0x529694('0x4')](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents;