Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index d483a88..2507102 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x70d1=['../../mysqldb','setMaxListeners','emit','hasOwnProperty','hook'];(function(_0x4c7d8b,_0x572388){var _0x187158=function(_0x5e956d){while(--_0x5e956d){_0x4c7d8b['push'](_0x4c7d8b['shift']());}};_0x187158(++_0x572388);}(_0x70d1,0x1cc));var _0x170d=function(_0x51472d,_0x592b0b){_0x51472d=_0x51472d-0x0;var _0x5f00f1=_0x70d1[_0x51472d];return _0x5f00f1;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require(_0x170d('0x0'))['db']['VoiceQueueReport'];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x170d('0x1')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x198900){return function(_0xa05d97,_0x2d1f2c,_0x19f4fc){VoiceQueueReportEvents[_0x170d('0x2')](_0x198900+':'+_0xa05d97['id'],_0xa05d97);VoiceQueueReportEvents['emit'](_0x198900,_0xa05d97);_0x19f4fc(null);};}for(var e in events){if(events[_0x170d('0x3')](e)){var event=events[e];VoiceQueueReport[_0x170d('0x4')](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents;
\ No newline at end of file
+var _0x8c63=['setMaxListeners','update','emit','hasOwnProperty','hook','exports','events','../../mysqldb','VoiceQueueReport'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x8c63,0x180));var _0x38c6=function(_0x45d394,_0x12d576){_0x45d394=_0x45d394-0x0;var _0xa947eb=_0x8c63[_0x45d394];return _0xa947eb;};'use strict';var EventEmitter=require(_0x38c6('0x0'));var VoiceQueueReport=require(_0x38c6('0x1'))['db'][_0x38c6('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x38c6('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x38c6('0x4'),'afterDestroy':'remove'};function emitEvent(_0x2a3a92){return function(_0x40815d,_0x34a1b2,_0x57d621){VoiceQueueReportEvents[_0x38c6('0x5')](_0x2a3a92+':'+_0x40815d['id'],_0x40815d);VoiceQueueReportEvents[_0x38c6('0x5')](_0x2a3a92,_0x40815d);_0x57d621(null);};}for(var e in events){if(events[_0x38c6('0x6')](e)){var event=events[e];VoiceQueueReport[_0x38c6('0x7')](e,emitEvent(event));}}module[_0x38c6('0x8')]=VoiceQueueReportEvents;
\ No newline at end of file