Built motion from commit eddce310.|2.6.12
[motion2.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.events.js
index bea081c..5f0d5b2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x755b=['remove','emit','hasOwnProperty','events','../../mysqldb','UserVoiceQueueRt','setMaxListeners','save','update'];(function(_0x5027b1,_0x1409a5){var _0x4a46cf=function(_0x121920){while(--_0x121920){_0x5027b1['push'](_0x5027b1['shift']());}};_0x4a46cf(++_0x1409a5);}(_0x755b,0x12c));var _0xb755=function(_0x33a0fd,_0x4349ad){_0x33a0fd=_0x33a0fd-0x0;var _0x3184ee=_0x755b[_0x33a0fd];return _0x3184ee;};'use strict';var EventEmitter=require(_0xb755('0x0'));var UserVoiceQueueRt=require(_0xb755('0x1'))['db'][_0xb755('0x2')];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0xb755('0x3')](0x0);var events={'afterCreate':_0xb755('0x4'),'afterUpdate':_0xb755('0x5'),'afterDestroy':_0xb755('0x6')};function emitEvent(_0x190061){return function(_0xb35939,_0x4f3f5c,_0x194972){UserVoiceQueueRtEvents['emit'](_0x190061+':'+_0xb35939['id'],_0xb35939);UserVoiceQueueRtEvents[_0xb755('0x7')](_0x190061,_0xb35939);_0x194972(null);};}for(var e in events){if(events[_0xb755('0x8')](e)){var event=events[e];UserVoiceQueueRt['hook'](e,emitEvent(event));}}module['exports']=UserVoiceQueueRtEvents;
\ No newline at end of file
+var _0x58da=['exports','../../mysqldb','UserVoiceQueueRt','setMaxListeners','emit','hasOwnProperty'];(function(_0x3835b6,_0x4477f3){var _0x20e8f1=function(_0x246200){while(--_0x246200){_0x3835b6['push'](_0x3835b6['shift']());}};_0x20e8f1(++_0x4477f3);}(_0x58da,0x1c9));var _0xa58d=function(_0x4443f0,_0x2c7e2f){_0x4443f0=_0x4443f0-0x0;var _0x4eb758=_0x58da[_0x4443f0];return _0x4eb758;};'use strict';var EventEmitter=require('events');var UserVoiceQueueRt=require(_0xa58d('0x0'))['db'][_0xa58d('0x1')];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0xa58d('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x3289bb){return function(_0x2036a1,_0x3592a4,_0x219e48){UserVoiceQueueRtEvents[_0xa58d('0x3')](_0x3289bb+':'+_0x2036a1['id'],_0x2036a1);UserVoiceQueueRtEvents['emit'](_0x3289bb,_0x2036a1);_0x219e48(null);};}for(var e in events){if(events[_0xa58d('0x4')](e)){var event=events[e];UserVoiceQueueRt['hook'](e,emitEvent(event));}}module[_0xa58d('0x5')]=UserVoiceQueueRtEvents;
\ No newline at end of file