Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index e63bb23..2507102 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe6ca=['exports','events','../../mysqldb','setMaxListeners','update','remove','emit','hasOwnProperty','hook'];(function(_0x252345,_0x4b8182){var _0x4b0f28=function(_0x327930){while(--_0x327930){_0x252345['push'](_0x252345['shift']());}};_0x4b0f28(++_0x4b8182);}(_0xe6ca,0x12a));var _0xae6c=function(_0x30b4a5,_0x56d08d){_0x30b4a5=_0x30b4a5-0x0;var _0x3dd26c=_0xe6ca[_0x30b4a5];return _0x3dd26c;};'use strict';var EventEmitter=require(_0xae6c('0x0'));var VoiceQueueReport=require(_0xae6c('0x1'))['db']['VoiceQueueReport'];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0xae6c('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0xae6c('0x3'),'afterDestroy':_0xae6c('0x4')};function emitEvent(_0x354568){return function(_0x592f3a,_0x398c9a,_0x1275cb){VoiceQueueReportEvents['emit'](_0x354568+':'+_0x592f3a['id'],_0x592f3a);VoiceQueueReportEvents[_0xae6c('0x5')](_0x354568,_0x592f3a);_0x1275cb(null);};}for(var e in events){if(events[_0xae6c('0x6')](e)){var event=events[e];VoiceQueueReport[_0xae6c('0x7')](e,emitEvent(event));}}module[_0xae6c('0x8')]=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