Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index 9a06a3d..f4d1cea 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1eca=['exports','events','../../mysqldb','setMaxListeners','save','emit','hasOwnProperty','hook'];(function(_0x3f53c8,_0xe7381){var _0x376557=function(_0x3f9433){while(--_0x3f9433){_0x3f53c8['push'](_0x3f53c8['shift']());}};_0x376557(++_0xe7381);}(_0x1eca,0x1d9));var _0xa1ec=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x1eca[_0x3dd15e];return _0x231fd0;};'use strict';var EventEmitter=require(_0xa1ec('0x0'));var VoiceQueue=require(_0xa1ec('0x1'))['db']['VoiceQueue'];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0xa1ec('0x2')](0x0);var events={'afterCreate':_0xa1ec('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x249024){return function(_0x4c26ed,_0xdc5ea7,_0x530fc0){VoiceQueueEvents[_0xa1ec('0x4')](_0x249024+':'+_0x4c26ed['id'],_0x4c26ed);VoiceQueueEvents[_0xa1ec('0x4')](_0x249024,_0x4c26ed);_0x530fc0(null);};}for(var e in events){if(events[_0xa1ec('0x5')](e)){var event=events[e];VoiceQueue[_0xa1ec('0x6')](e,emitEvent(event));}}module[_0xa1ec('0x7')]=VoiceQueueEvents;
\ No newline at end of file
+var _0x6d4a=['remove','emit','exports','events','../../mysqldb','VoiceQueue','save'];(function(_0x4f6377,_0x348124){var _0x276428=function(_0x45b4b6){while(--_0x45b4b6){_0x4f6377['push'](_0x4f6377['shift']());}};_0x276428(++_0x348124);}(_0x6d4a,0x10d));var _0xa6d4=function(_0x462ea7,_0x37869a){_0x462ea7=_0x462ea7-0x0;var _0x4abbc1=_0x6d4a[_0x462ea7];return _0x4abbc1;};'use strict';var EventEmitter=require(_0xa6d4('0x0'));var VoiceQueue=require(_0xa6d4('0x1'))['db'][_0xa6d4('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xa6d4('0x3'),'afterUpdate':'update','afterDestroy':_0xa6d4('0x4')};function emitEvent(_0xed4b03){return function(_0x3a7972,_0x307216,_0x20a824){VoiceQueueEvents[_0xa6d4('0x5')](_0xed4b03+':'+_0x3a7972['id'],_0x3a7972);VoiceQueueEvents['emit'](_0xed4b03,_0x3a7972);_0x20a824(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];VoiceQueue['hook'](e,emitEvent(event));}}module[_0xa6d4('0x6')]=VoiceQueueEvents;
\ No newline at end of file