Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index bf922f1..6b5e599 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf264=['save','update','remove','emit','hasOwnProperty','hook','../../mysqldb','VoiceQueue','setMaxListeners'];(function(_0x349f16,_0x63ad15){var _0x40cbbc=function(_0x5ca67d){while(--_0x5ca67d){_0x349f16['push'](_0x349f16['shift']());}};_0x40cbbc(++_0x63ad15);}(_0xf264,0x1bf));var _0x4f26=function(_0x419ba7,_0x59031d){_0x419ba7=_0x419ba7-0x0;var _0x2283d4=_0xf264[_0x419ba7];return _0x2283d4;};'use strict';var EventEmitter=require('events');var VoiceQueue=require(_0x4f26('0x0'))['db'][_0x4f26('0x1')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x4f26('0x2')](0x0);var events={'afterCreate':_0x4f26('0x3'),'afterUpdate':_0x4f26('0x4'),'afterDestroy':_0x4f26('0x5')};function emitEvent(_0x152d7a){return function(_0x29d93a,_0x15c22b,_0x3189a2){VoiceQueueEvents[_0x4f26('0x6')](_0x152d7a+':'+_0x29d93a['id'],_0x29d93a);VoiceQueueEvents[_0x4f26('0x6')](_0x152d7a,_0x29d93a);_0x3189a2(null);};}for(var e in events){if(events[_0x4f26('0x7')](e)){var event=events[e];VoiceQueue[_0x4f26('0x8')](e,emitEvent(event));}}module['exports']=VoiceQueueEvents;
\ No newline at end of file
+var _0x9b1f=['hasOwnProperty','exports','events','update','emit'];(function(_0x46c535,_0x4b0863){var _0x4c1187=function(_0x5b0c0b){while(--_0x5b0c0b){_0x46c535['push'](_0x46c535['shift']());}};_0x4c1187(++_0x4b0863);}(_0x9b1f,0x19c));var _0xf9b1=function(_0x29d915,_0x54a040){_0x29d915=_0x29d915-0x0;var _0x160f86=_0x9b1f[_0x29d915];return _0x160f86;};'use strict';var EventEmitter=require(_0xf9b1('0x0'));var VoiceQueue=require('../../mysqldb')['db']['VoiceQueue'];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0xf9b1('0x1'),'afterDestroy':'remove'};function emitEvent(_0x34841b){return function(_0x32178d,_0xf4c1ab,_0x35a146){VoiceQueueEvents[_0xf9b1('0x2')](_0x34841b+':'+_0x32178d['id'],_0x32178d);VoiceQueueEvents[_0xf9b1('0x2')](_0x34841b,_0x32178d);_0x35a146(null);};}for(var e in events){if(events[_0xf9b1('0x3')](e)){var event=events[e];VoiceQueue['hook'](e,emitEvent(event));}}module[_0xf9b1('0x4')]=VoiceQueueEvents;
\ No newline at end of file