Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index aad8df0..2507102 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa907=['VoiceQueueReport','setMaxListeners','save','update','remove','emit','hook','exports','events','../../mysqldb'];(function(_0x115a3f,_0x49e45d){var _0x3d8f24=function(_0x454699){while(--_0x454699){_0x115a3f['push'](_0x115a3f['shift']());}};_0x3d8f24(++_0x49e45d);}(_0xa907,0x152));var _0x7a90=function(_0xfc0976,_0x33776f){_0xfc0976=_0xfc0976-0x0;var _0x23579f=_0xa907[_0xfc0976];return _0x23579f;};'use strict';var EventEmitter=require(_0x7a90('0x0'));var VoiceQueueReport=require(_0x7a90('0x1'))['db'][_0x7a90('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x7a90('0x3')](0x0);var events={'afterCreate':_0x7a90('0x4'),'afterUpdate':_0x7a90('0x5'),'afterDestroy':_0x7a90('0x6')};function emitEvent(_0x24ad16){return function(_0x53a75d,_0x28d446,_0x30efd3){VoiceQueueReportEvents['emit'](_0x24ad16+':'+_0x53a75d['id'],_0x53a75d);VoiceQueueReportEvents[_0x7a90('0x7')](_0x24ad16,_0x53a75d);_0x30efd3(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport[_0x7a90('0x8')](e,emitEvent(event));}}module[_0x7a90('0x9')]=VoiceQueueReportEvents;
\ No newline at end of file
+var _0x8c63=['setMaxListeners','update','emit','hasOwnProperty','hook','exports','events','../../mysqldb','VoiceQueueReport'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x8c63,0x180));var _0x38c6=function(_0x45d394,_0x12d576){_0x45d394=_0x45d394-0x0;var _0xa947eb=_0x8c63[_0x45d394];return _0xa947eb;};'use strict';var EventEmitter=require(_0x38c6('0x0'));var VoiceQueueReport=require(_0x38c6('0x1'))['db'][_0x38c6('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x38c6('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x38c6('0x4'),'afterDestroy':'remove'};function emitEvent(_0x2a3a92){return function(_0x40815d,_0x34a1b2,_0x57d621){VoiceQueueReportEvents[_0x38c6('0x5')](_0x2a3a92+':'+_0x40815d['id'],_0x40815d);VoiceQueueReportEvents[_0x38c6('0x5')](_0x2a3a92,_0x40815d);_0x57d621(null);};}for(var e in events){if(events[_0x38c6('0x6')](e)){var event=events[e];VoiceQueueReport[_0x38c6('0x7')](e,emitEvent(event));}}module[_0x38c6('0x8')]=VoiceQueueReportEvents;
\ No newline at end of file