Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index 79271e9..de88e69 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 _0xf0f3=['events','../../mysqldb','VoiceQueueReport','setMaxListeners','update','emit','hasOwnProperty','hook','exports'];(function(_0x38fb8b,_0x70dd0a){var _0x1ec681=function(_0x58f130){while(--_0x58f130){_0x38fb8b['push'](_0x38fb8b['shift']());}};_0x1ec681(++_0x70dd0a);}(_0xf0f3,0x1ef));var _0x3f0f=function(_0x543259,_0x537ff6){_0x543259=_0x543259-0x0;var _0x8a88f5=_0xf0f3[_0x543259];return _0x8a88f5;};'use strict';var EventEmitter=require(_0x3f0f('0x0'));var VoiceQueueReport=require(_0x3f0f('0x1'))['db'][_0x3f0f('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x3f0f('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x3f0f('0x4'),'afterDestroy':'remove'};function emitEvent(_0x454919){return function(_0x2ea36c,_0xeb5a23,_0xfe2218){VoiceQueueReportEvents[_0x3f0f('0x5')](_0x454919+':'+_0x2ea36c['id'],_0x2ea36c);VoiceQueueReportEvents[_0x3f0f('0x5')](_0x454919,_0x2ea36c);_0xfe2218(null);};}for(var e in events){if(events[_0x3f0f('0x6')](e)){var event=events[e];VoiceQueueReport[_0x3f0f('0x7')](e,emitEvent(event));}}module[_0x3f0f('0x8')]=VoiceQueueReportEvents;
\ No newline at end of file