Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index 9496745..3f05a16 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x95d8=['update','remove','emit','hasOwnProperty','hook','VoiceQueueReport','setMaxListeners','save'];(function(_0x2fdbbb,_0xf61a01){var _0x1cd613=function(_0x2587b2){while(--_0x2587b2){_0x2fdbbb['push'](_0x2fdbbb['shift']());}};_0x1cd613(++_0xf61a01);}(_0x95d8,0xad));var _0x895d=function(_0x1f8fbb,_0x21916d){_0x1f8fbb=_0x1f8fbb-0x0;var _0x2c99ea=_0x95d8[_0x1f8fbb];return _0x2c99ea;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require('../../mysqldb')['db'][_0x895d('0x0')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x895d('0x1')](0x0);var events={'afterCreate':_0x895d('0x2'),'afterUpdate':_0x895d('0x3'),'afterDestroy':_0x895d('0x4')};function emitEvent(_0x4c36a5){return function(_0x4376a2,_0x1285d7,_0x3252fb){VoiceQueueReportEvents['emit'](_0x4c36a5+':'+_0x4376a2['id'],_0x4376a2);VoiceQueueReportEvents[_0x895d('0x5')](_0x4c36a5,_0x4376a2);_0x3252fb(null);};}for(var e in events){if(events[_0x895d('0x6')](e)){var event=events[e];VoiceQueueReport[_0x895d('0x7')](e,emitEvent(event));}}module['exports']=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