Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index 0d4e1a1..6d0f303 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0099=['save','update','emit','hasOwnProperty','exports','events','../../mysqldb','setMaxListeners'];(function(_0x32c14b,_0x865349){var _0x2dfae7=function(_0x5b5ade){while(--_0x5b5ade){_0x32c14b['push'](_0x32c14b['shift']());}};_0x2dfae7(++_0x865349);}(_0x0099,0x115));var _0x9009=function(_0x2c3bd9,_0x45f815){_0x2c3bd9=_0x2c3bd9-0x0;var _0x112e55=_0x0099[_0x2c3bd9];return _0x112e55;};'use strict';var EventEmitter=require(_0x9009('0x0'));var VoiceQueue=require(_0x9009('0x1'))['db']['VoiceQueue'];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x9009('0x2')](0x0);var events={'afterCreate':_0x9009('0x3'),'afterUpdate':_0x9009('0x4'),'afterDestroy':'remove'};function emitEvent(_0x12f427){return function(_0x562b11,_0x5cf7ae,_0x3328f8){VoiceQueueEvents[_0x9009('0x5')](_0x12f427+':'+_0x562b11['id'],_0x562b11);VoiceQueueEvents['emit'](_0x12f427,_0x562b11);_0x3328f8(null);};}for(var e in events){if(events[_0x9009('0x6')](e)){var event=events[e];VoiceQueue['hook'](e,emitEvent(event));}}module[_0x9009('0x7')]=VoiceQueueEvents;
\ No newline at end of file
+var _0x7121=['hook','exports','events','../../mysqldb','VoiceQueue','save','emit','hasOwnProperty'];(function(_0x5bdb83,_0x3605de){var _0x1986bb=function(_0x2d6e94){while(--_0x2d6e94){_0x5bdb83['push'](_0x5bdb83['shift']());}};_0x1986bb(++_0x3605de);}(_0x7121,0xf2));var _0x1712=function(_0x618414,_0x1a7a60){_0x618414=_0x618414-0x0;var _0x21c19a=_0x7121[_0x618414];return _0x21c19a;};'use strict';var EventEmitter=require(_0x1712('0x0'));var VoiceQueue=require(_0x1712('0x1'))['db'][_0x1712('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x1712('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x1a50b0){return function(_0x1ce6df,_0x56b786,_0x1a320e){VoiceQueueEvents[_0x1712('0x4')](_0x1a50b0+':'+_0x1ce6df['id'],_0x1ce6df);VoiceQueueEvents[_0x1712('0x4')](_0x1a50b0,_0x1ce6df);_0x1a320e(null);};}for(var e in events){if(events[_0x1712('0x5')](e)){var event=events[e];VoiceQueue[_0x1712('0x6')](e,emitEvent(event));}}module[_0x1712('0x7')]=VoiceQueueEvents;
\ No newline at end of file