Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index 57f9c43..f4d1cea 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xccc0=['VoiceQueue','save','update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb'];(function(_0x137c34,_0x2ebd98){var _0x145d9b=function(_0x1b7701){while(--_0x1b7701){_0x137c34['push'](_0x137c34['shift']());}};_0x145d9b(++_0x2ebd98);}(_0xccc0,0x1a2));var _0x0ccc=function(_0xf68c69,_0x5b6a37){_0xf68c69=_0xf68c69-0x0;var _0x26dba9=_0xccc0[_0xf68c69];return _0x26dba9;};'use strict';var EventEmitter=require(_0x0ccc('0x0'));var VoiceQueue=require(_0x0ccc('0x1'))['db'][_0x0ccc('0x2')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x0ccc('0x3'),'afterUpdate':_0x0ccc('0x4'),'afterDestroy':_0x0ccc('0x5')};function emitEvent(_0x557581){return function(_0x281a0c,_0x190e0e,_0x10bfc2){VoiceQueueEvents['emit'](_0x557581+':'+_0x281a0c['id'],_0x281a0c);VoiceQueueEvents[_0x0ccc('0x6')](_0x557581,_0x281a0c);_0x10bfc2(null);};}for(var e in events){if(events[_0x0ccc('0x7')](e)){var event=events[e];VoiceQueue[_0x0ccc('0x8')](e,emitEvent(event));}}module[_0x0ccc('0x9')]=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