Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index 699f22e..b33cd41 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb7a7=['emit','hasOwnProperty','hook','exports','VoiceQueue','setMaxListeners','save','update'];(function(_0x3a95ea,_0xd128f8){var _0x5b9e26=function(_0x419e4f){while(--_0x419e4f){_0x3a95ea['push'](_0x3a95ea['shift']());}};_0x5b9e26(++_0xd128f8);}(_0xb7a7,0x1bc));var _0x7b7a=function(_0x1a270d,_0x165329){_0x1a270d=_0x1a270d-0x0;var _0x2b17a4=_0xb7a7[_0x1a270d];return _0x2b17a4;};'use strict';var EventEmitter=require('events');var VoiceQueue=require('../../mysqldb')['db'][_0x7b7a('0x0')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x7b7a('0x1')](0x0);var events={'afterCreate':_0x7b7a('0x2'),'afterUpdate':_0x7b7a('0x3'),'afterDestroy':'remove'};function emitEvent(_0x5e2f5a){return function(_0x3b6a84,_0x1af085,_0x42d933){VoiceQueueEvents[_0x7b7a('0x4')](_0x5e2f5a+':'+_0x3b6a84['id'],_0x3b6a84);VoiceQueueEvents[_0x7b7a('0x4')](_0x5e2f5a,_0x3b6a84);_0x42d933(null);};}for(var e in events){if(events[_0x7b7a('0x5')](e)){var event=events[e];VoiceQueue[_0x7b7a('0x6')](e,emitEvent(event));}}module[_0x7b7a('0x7')]=VoiceQueueEvents;
\ No newline at end of file
+var _0xdf8a=['update','remove','emit','hasOwnProperty','hook','../../mysqldb','VoiceQueue','setMaxListeners','save'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xdf8a,0x1b5));var _0xadf8=function(_0x4e9274,_0x49576e){_0x4e9274=_0x4e9274-0x0;var _0x8b474c=_0xdf8a[_0x4e9274];return _0x8b474c;};'use strict';var EventEmitter=require('events');var VoiceQueue=require(_0xadf8('0x0'))['db'][_0xadf8('0x1')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0xadf8('0x2')](0x0);var events={'afterCreate':_0xadf8('0x3'),'afterUpdate':_0xadf8('0x4'),'afterDestroy':_0xadf8('0x5')};function emitEvent(_0x16c48b){return function(_0x430699,_0xaf7a62,_0x18322f){VoiceQueueEvents[_0xadf8('0x6')](_0x16c48b+':'+_0x430699['id'],_0x430699);VoiceQueueEvents['emit'](_0x16c48b,_0x430699);_0x18322f(null);};}for(var e in events){if(events[_0xadf8('0x7')](e)){var event=events[e];VoiceQueue[_0xadf8('0x8')](e,emitEvent(event));}}module['exports']=VoiceQueueEvents;
\ No newline at end of file