Built motion from commit 616d3211.|2.6.4
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index e63bb23..85d6ad0 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 _0x12d8=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','VoiceQueueReport','save','update'];(function(_0x478d72,_0x2d6b7a){var _0x5ef7cf=function(_0x199aea){while(--_0x199aea){_0x478d72['push'](_0x478d72['shift']());}};_0x5ef7cf(++_0x2d6b7a);}(_0x12d8,0xcd));var _0x812d=function(_0x4ce9ac,_0x3a98d8){_0x4ce9ac=_0x4ce9ac-0x0;var _0x34fcb4=_0x12d8[_0x4ce9ac];return _0x34fcb4;};'use strict';var EventEmitter=require(_0x812d('0x0'));var VoiceQueueReport=require(_0x812d('0x1'))['db'][_0x812d('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x812d('0x3'),'afterUpdate':_0x812d('0x4'),'afterDestroy':_0x812d('0x5')};function emitEvent(_0xe6fc3d){return function(_0x606b62,_0x32b3a1,_0x839fe){VoiceQueueReportEvents[_0x812d('0x6')](_0xe6fc3d+':'+_0x606b62['id'],_0x606b62);VoiceQueueReportEvents['emit'](_0xe6fc3d,_0x606b62);_0x839fe(null);};}for(var e in events){if(events[_0x812d('0x7')](e)){var event=events[e];VoiceQueueReport[_0x812d('0x8')](e,emitEvent(event));}}module[_0x812d('0x9')]=VoiceQueueReportEvents;
\ No newline at end of file