Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index e83e0c7..6d0f303 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5fb2=['hook','events','../../mysqldb','VoiceQueue','setMaxListeners','save','update','remove'];(function(_0x15085f,_0x28fdca){var _0x5bcc27=function(_0x1064cc){while(--_0x1064cc){_0x15085f['push'](_0x15085f['shift']());}};_0x5bcc27(++_0x28fdca);}(_0x5fb2,0x129));var _0x25fb=function(_0x2a24de,_0x21fcbc){_0x2a24de=_0x2a24de-0x0;var _0x32b38e=_0x5fb2[_0x2a24de];return _0x32b38e;};'use strict';var EventEmitter=require(_0x25fb('0x0'));var VoiceQueue=require(_0x25fb('0x1'))['db'][_0x25fb('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x25fb('0x3')](0x0);var events={'afterCreate':_0x25fb('0x4'),'afterUpdate':_0x25fb('0x5'),'afterDestroy':_0x25fb('0x6')};function emitEvent(_0x3ff7c8){return function(_0x16ec0d,_0x2753b8,_0x5c704a){VoiceQueueEvents['emit'](_0x3ff7c8+':'+_0x16ec0d['id'],_0x16ec0d);VoiceQueueEvents['emit'](_0x3ff7c8,_0x16ec0d);_0x5c704a(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueue[_0x25fb('0x7')](e,emitEvent(event));}}module['exports']=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