Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index c8619a9..76c79eb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbbdd=['emit','exports','events','VoiceQueue','setMaxListeners','update'];(function(_0x17c5f7,_0x389980){var _0x57df8d=function(_0xd24535){while(--_0xd24535){_0x17c5f7['push'](_0x17c5f7['shift']());}};_0x57df8d(++_0x389980);}(_0xbbdd,0x194));var _0xdbbd=function(_0x176329,_0x568c84){_0x176329=_0x176329-0x0;var _0x31997c=_0xbbdd[_0x176329];return _0x31997c;};'use strict';var EventEmitter=require(_0xdbbd('0x0'));var VoiceQueue=require('../../mysqldb')['db'][_0xdbbd('0x1')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0xdbbd('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0xdbbd('0x3'),'afterDestroy':'remove'};function emitEvent(_0x25f940){return function(_0x422439,_0x4b2e4c,_0x106e29){VoiceQueueEvents['emit'](_0x25f940+':'+_0x422439['id'],_0x422439);VoiceQueueEvents[_0xdbbd('0x4')](_0x25f940,_0x422439);_0x106e29(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueue['hook'](e,emitEvent(event));}}module[_0xdbbd('0x5')]=VoiceQueueEvents;
\ No newline at end of file
+var _0xf14f=['remove','emit','hasOwnProperty','hook','exports','../../mysqldb','VoiceQueue','setMaxListeners','update'];(function(_0x5eb780,_0x29ee53){var _0x479a83=function(_0x1a4e70){while(--_0x1a4e70){_0x5eb780['push'](_0x5eb780['shift']());}};_0x479a83(++_0x29ee53);}(_0xf14f,0x1e2));var _0xff14=function(_0xaaf2e2,_0x19d28a){_0xaaf2e2=_0xaaf2e2-0x0;var _0x28bc36=_0xf14f[_0xaaf2e2];return _0x28bc36;};'use strict';var EventEmitter=require('events');var VoiceQueue=require(_0xff14('0x0'))['db'][_0xff14('0x1')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0xff14('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0xff14('0x3'),'afterDestroy':_0xff14('0x4')};function emitEvent(_0x51c81e){return function(_0x2e3788,_0x242de6,_0x19a020){VoiceQueueEvents[_0xff14('0x5')](_0x51c81e+':'+_0x2e3788['id'],_0x2e3788);VoiceQueueEvents[_0xff14('0x5')](_0x51c81e,_0x2e3788);_0x19a020(null);};}for(var e in events){if(events[_0xff14('0x6')](e)){var event=events[e];VoiceQueue[_0xff14('0x7')](e,emitEvent(event));}}module[_0xff14('0x8')]=VoiceQueueEvents;
\ No newline at end of file