Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index c8619a9..9bf79aa 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 _0x5328=['hook','events','../../mysqldb','VoiceQueue','setMaxListeners','save','update','emit','hasOwnProperty'];(function(_0x1789c2,_0x2a99c1){var _0x4dfe76=function(_0x3a4e5c){while(--_0x3a4e5c){_0x1789c2['push'](_0x1789c2['shift']());}};_0x4dfe76(++_0x2a99c1);}(_0x5328,0x121));var _0x8532=function(_0x3f3117,_0x9074ba){_0x3f3117=_0x3f3117-0x0;var _0x5cdf22=_0x5328[_0x3f3117];return _0x5cdf22;};'use strict';var EventEmitter=require(_0x8532('0x0'));var VoiceQueue=require(_0x8532('0x1'))['db'][_0x8532('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x8532('0x3')](0x0);var events={'afterCreate':_0x8532('0x4'),'afterUpdate':_0x8532('0x5'),'afterDestroy':'remove'};function emitEvent(_0x21336c){return function(_0x220ca1,_0x460bf0,_0x3941cf){VoiceQueueEvents[_0x8532('0x6')](_0x21336c+':'+_0x220ca1['id'],_0x220ca1);VoiceQueueEvents['emit'](_0x21336c,_0x220ca1);_0x3941cf(null);};}for(var e in events){if(events[_0x8532('0x7')](e)){var event=events[e];VoiceQueue[_0x8532('0x8')](e,emitEvent(event));}}module['exports']=VoiceQueueEvents;
\ No newline at end of file