Built motion from commit 6a0adb95.|2.6.31
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index 8ddaa44..eaf47e4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2a65=['VoiceQueueReport','update','emit','hasOwnProperty','hook','exports','events'];(function(_0x5e7073,_0x34c98b){var _0x295f11=function(_0x4c8404){while(--_0x4c8404){_0x5e7073['push'](_0x5e7073['shift']());}};_0x295f11(++_0x34c98b);}(_0x2a65,0x1a3));var _0x52a6=function(_0xf35672,_0x3833af){_0xf35672=_0xf35672-0x0;var _0x26afcf=_0x2a65[_0xf35672];return _0x26afcf;};'use strict';var EventEmitter=require(_0x52a6('0x0'));var VoiceQueueReport=require('../../mysqldb')['db'][_0x52a6('0x1')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0x52a6('0x2'),'afterDestroy':'remove'};function emitEvent(_0x3e13ab){return function(_0x2c5faa,_0x5b9813,_0x389a16){VoiceQueueReportEvents[_0x52a6('0x3')](_0x3e13ab+':'+_0x2c5faa['id'],_0x2c5faa);VoiceQueueReportEvents[_0x52a6('0x3')](_0x3e13ab,_0x2c5faa);_0x389a16(null);};}for(var e in events){if(events[_0x52a6('0x4')](e)){var event=events[e];VoiceQueueReport[_0x52a6('0x5')](e,emitEvent(event));}}module[_0x52a6('0x6')]=VoiceQueueReportEvents;
\ No newline at end of file
+var _0x20ea=['exports','events','../../mysqldb','update','emit','hasOwnProperty','hook'];(function(_0xbc4560,_0x4020b8){var _0x298cfb=function(_0x254423){while(--_0x254423){_0xbc4560['push'](_0xbc4560['shift']());}};_0x298cfb(++_0x4020b8);}(_0x20ea,0x120));var _0xa20e=function(_0xa1acc8,_0x5c6b7f){_0xa1acc8=_0xa1acc8-0x0;var _0x3776b4=_0x20ea[_0xa1acc8];return _0x3776b4;};'use strict';var EventEmitter=require(_0xa20e('0x0'));var VoiceQueueReport=require(_0xa20e('0x1'))['db']['VoiceQueueReport'];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0xa20e('0x2'),'afterDestroy':'remove'};function emitEvent(_0x2a22cf){return function(_0x3a306a,_0xd8ca27,_0xb6d5f8){VoiceQueueReportEvents['emit'](_0x2a22cf+':'+_0x3a306a['id'],_0x3a306a);VoiceQueueReportEvents[_0xa20e('0x3')](_0x2a22cf,_0x3a306a);_0xb6d5f8(null);};}for(var e in events){if(events[_0xa20e('0x4')](e)){var event=events[e];VoiceQueueReport[_0xa20e('0x5')](e,emitEvent(event));}}module[_0xa20e('0x6')]=VoiceQueueReportEvents;
\ No newline at end of file