Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.events.js
index 700fb56..ffd1406 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbc88=['VoiceQueueReport','emit','hasOwnProperty','hook','exports','events','../../mysqldb'];(function(_0x2112d4,_0x3c863c){var _0x434972=function(_0x477020){while(--_0x477020){_0x2112d4['push'](_0x2112d4['shift']());}};_0x434972(++_0x3c863c);}(_0xbc88,0x67));var _0x8bc8=function(_0x288c5a,_0x3f65f1){_0x288c5a=_0x288c5a-0x0;var _0x28354f=_0xbc88[_0x288c5a];return _0x28354f;};'use strict';var EventEmitter=require(_0x8bc8('0x0'));var VoiceQueueReport=require(_0x8bc8('0x1'))['db'][_0x8bc8('0x2')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x179124){return function(_0x11ccc5,_0x1ae28a,_0x1c23bf){VoiceQueueReportEvents[_0x8bc8('0x3')](_0x179124+':'+_0x11ccc5['id'],_0x11ccc5);VoiceQueueReportEvents['emit'](_0x179124,_0x11ccc5);_0x1c23bf(null);};}for(var e in events){if(events[_0x8bc8('0x4')](e)){var event=events[e];VoiceQueueReport[_0x8bc8('0x5')](e,emitEvent(event));}}module[_0x8bc8('0x6')]=VoiceQueueReportEvents;
\ No newline at end of file
+var _0xf3d2=['remove','emit','hasOwnProperty','exports','../../mysqldb','VoiceQueueReport','save','update'];(function(_0x4d2b2c,_0x13d5ec){var _0x58e0fa=function(_0x133108){while(--_0x133108){_0x4d2b2c['push'](_0x4d2b2c['shift']());}};_0x58e0fa(++_0x13d5ec);}(_0xf3d2,0x1bc));var _0x2f3d=function(_0x560d2a,_0x4a9f54){_0x560d2a=_0x560d2a-0x0;var _0x3df62d=_0xf3d2[_0x560d2a];return _0x3df62d;};'use strict';var EventEmitter=require('events');var VoiceQueueReport=require(_0x2f3d('0x0'))['db'][_0x2f3d('0x1')];var VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x2f3d('0x2'),'afterUpdate':_0x2f3d('0x3'),'afterDestroy':_0x2f3d('0x4')};function emitEvent(_0x43b520){return function(_0x8877eb,_0x2477ba,_0x2bd232){VoiceQueueReportEvents['emit'](_0x43b520+':'+_0x8877eb['id'],_0x8877eb);VoiceQueueReportEvents[_0x2f3d('0x5')](_0x43b520,_0x8877eb);_0x2bd232(null);};}for(var e in events){if(events[_0x2f3d('0x6')](e)){var event=events[e];VoiceQueueReport['hook'](e,emitEvent(event));}}module[_0x2f3d('0x7')]=VoiceQueueReportEvents;
\ No newline at end of file