Built motion from commit fe909640.|2.6.8
[motion2.git] / server / api / voiceQueue / voiceQueue.events.js
index 57f9c43..a31f67c 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 _0xc50a=['remove','emit','hasOwnProperty','hook','events','VoiceQueue','save','update'];(function(_0xc4001c,_0x1bf8f0){var _0x49f7bc=function(_0x1059b8){while(--_0x1059b8){_0xc4001c['push'](_0xc4001c['shift']());}};_0x49f7bc(++_0x1bf8f0);}(_0xc50a,0x1e4));var _0xac50=function(_0x2c500c,_0x49e32b){_0x2c500c=_0x2c500c-0x0;var _0x24a508=_0xc50a[_0x2c500c];return _0x24a508;};'use strict';var EventEmitter=require(_0xac50('0x0'));var VoiceQueue=require('../../mysqldb')['db'][_0xac50('0x1')];var VoiceQueueEvents=new EventEmitter();VoiceQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xac50('0x2'),'afterUpdate':_0xac50('0x3'),'afterDestroy':_0xac50('0x4')};function emitEvent(_0x2bd7c5){return function(_0x167b84,_0x17391c,_0x23e994){VoiceQueueEvents['emit'](_0x2bd7c5+':'+_0x167b84['id'],_0x167b84);VoiceQueueEvents[_0xac50('0x5')](_0x2bd7c5,_0x167b84);_0x23e994(null);};}for(var e in events){if(events[_0xac50('0x6')](e)){var event=events[e];VoiceQueue[_0xac50('0x7')](e,emitEvent(event));}}module['exports']=VoiceQueueEvents;
\ No newline at end of file