Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index 79271e9..3f05a16 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x58c6=['VoiceQueueReport','setMaxListeners','remove','emit','exports','events','../../mysqldb'];(function(_0x76e010,_0x2cd47f){var _0x46edc=function(_0x4777a6){while(--_0x4777a6){_0x76e010['push'](_0x76e010['shift']());}};_0x46edc(++_0x2cd47f);}(_0x58c6,0x178));var _0x658c=function(_0x25c326,_0x250137){_0x25c326=_0x25c326-0x0;var _0x762452=_0x58c6[_0x25c326];return _0x762452;};'use strict';var EventEmitter=require(_0x658c('0x0'));var VoiceQueueReport=require(_0x658c('0x1'))['db'][_0x658c('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x658c('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x658c('0x4')};function emitEvent(_0x5a11d4){return function(_0x1434be,_0xdabb45,_0x1c6fda){VoiceQueueReportEvents[_0x658c('0x5')](_0x5a11d4+':'+_0x1434be['id'],_0x1434be);VoiceQueueReportEvents['emit'](_0x5a11d4,_0x1434be);_0x1c6fda(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module[_0x658c('0x6')]=VoiceQueueReportEvents;
\ No newline at end of file
+var _0x4d92=['VoiceQueueReport','setMaxListeners','save','update','emit','exports','events','../../mysqldb'];(function(_0x36dfbd,_0x5bfe2d){var _0x4ecad9=function(_0x5230da){while(--_0x5230da){_0x36dfbd['push'](_0x36dfbd['shift']());}};_0x4ecad9(++_0x5bfe2d);}(_0x4d92,0x1ee));var _0x24d9=function(_0xc4001c,_0x1bf8f0){_0xc4001c=_0xc4001c-0x0;var _0x49f7bc=_0x4d92[_0xc4001c];return _0x49f7bc;};'use strict';var EventEmitter=require(_0x24d9('0x0'));var VoiceQueueReport=require(_0x24d9('0x1'))['db'][_0x24d9('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x24d9('0x3')](0x0);var events={'afterCreate':_0x24d9('0x4'),'afterUpdate':_0x24d9('0x5'),'afterDestroy':'remove'};function emitEvent(_0x5b2066){return function(_0x1103f1,_0x2e8423,_0x1ae8dc){VoiceQueueReportEvents[_0x24d9('0x6')](_0x5b2066+':'+_0x1103f1['id'],_0x1103f1);VoiceQueueReportEvents['emit'](_0x5b2066,_0x1103f1);_0x1ae8dc(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module[_0x24d9('0x7')]=VoiceQueueReportEvents;
\ No newline at end of file