Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index e63bb23..967cccb 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 _0x40ff=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','VoiceQueueReport','setMaxListeners','update'];(function(_0x1a6b60,_0x1532fa){var _0x35a681=function(_0x1e5c37){while(--_0x1e5c37){_0x1a6b60['push'](_0x1a6b60['shift']());}};_0x35a681(++_0x1532fa);}(_0x40ff,0xe1));var _0xf40f=function(_0x2207fe,_0x52adbb){_0x2207fe=_0x2207fe-0x0;var _0x2bbe48=_0x40ff[_0x2207fe];return _0x2bbe48;};'use strict';var EventEmitter=require(_0xf40f('0x0'));var VoiceQueueReport=require(_0xf40f('0x1'))['db'][_0xf40f('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0xf40f('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0xf40f('0x4'),'afterDestroy':_0xf40f('0x5')};function emitEvent(_0xc55b82){return function(_0x3b51d7,_0x58952f,_0x14766){VoiceQueueReportEvents['emit'](_0xc55b82+':'+_0x3b51d7['id'],_0x3b51d7);VoiceQueueReportEvents[_0xf40f('0x6')](_0xc55b82,_0x3b51d7);_0x14766(null);};}for(var e in events){if(events[_0xf40f('0x7')](e)){var event=events[e];VoiceQueueReport[_0xf40f('0x8')](e,emitEvent(event));}}module[_0xf40f('0x9')]=VoiceQueueReportEvents;
\ No newline at end of file