Built motion from commit 616d3211.|2.6.4
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index 79a7241..3ac11f6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3195=['emit','events','../../mysqldb','VoiceQueue','setMaxListeners','save','update','remove'];(function(_0x4eecdb,_0x18046c){var _0x6ec56e=function(_0x21b93a){while(--_0x21b93a){_0x4eecdb['push'](_0x4eecdb['shift']());}};_0x6ec56e(++_0x18046c);}(_0x3195,0xa1));var _0x5319=function(_0x176a89,_0x4aa78a){_0x176a89=_0x176a89-0x0;var _0x37b62d=_0x3195[_0x176a89];return _0x37b62d;};'use strict';var EventEmitter=require(_0x5319('0x0'));var VoiceQueue=require(_0x5319('0x1'))['db'][_0x5319('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x5319('0x3')](0x0);var events={'afterCreate':_0x5319('0x4'),'afterUpdate':_0x5319('0x5'),'afterDestroy':_0x5319('0x6')};function emitEvent(_0x299a6c){return function(_0x34322a,_0x452dff,_0x130e13){VoiceQueueEvents[_0x5319('0x7')](_0x299a6c+':'+_0x34322a['id'],_0x34322a);VoiceQueueEvents[_0x5319('0x7')](_0x299a6c,_0x34322a);_0x130e13(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueue['hook'](e,emitEvent(event));}}module['exports']=VoiceQueueEvents;
\ No newline at end of file
+var _0x5046=['setMaxListeners','update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','VoiceQueue'];(function(_0x65c903,_0x41e920){var _0x23e1d7=function(_0x4279cd){while(--_0x4279cd){_0x65c903['push'](_0x65c903['shift']());}};_0x23e1d7(++_0x41e920);}(_0x5046,0xb1));var _0x6504=function(_0x4288bd,_0x7382f8){_0x4288bd=_0x4288bd-0x0;var _0x2f740f=_0x5046[_0x4288bd];return _0x2f740f;};'use strict';var EventEmitter=require(_0x6504('0x0'));var VoiceQueue=require(_0x6504('0x1'))['db'][_0x6504('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x6504('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x6504('0x4'),'afterDestroy':_0x6504('0x5')};function emitEvent(_0x1560f2){return function(_0x2872ed,_0x109aca,_0x968d30){VoiceQueueEvents[_0x6504('0x6')](_0x1560f2+':'+_0x2872ed['id'],_0x2872ed);VoiceQueueEvents[_0x6504('0x6')](_0x1560f2,_0x2872ed);_0x968d30(null);};}for(var e in events){if(events[_0x6504('0x7')](e)){var event=events[e];VoiceQueue[_0x6504('0x8')](e,emitEvent(event));}}module[_0x6504('0x9')]=VoiceQueueEvents;
\ No newline at end of file