Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.events.js
index bd0f7d1..062dd91 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x27c7=['save','remove','emit','hook','UserVoiceQueueRt','setMaxListeners'];(function(_0x4c01b,_0x43a88b){var _0x2fa10a=function(_0x17b5c7){while(--_0x17b5c7){_0x4c01b['push'](_0x4c01b['shift']());}};_0x2fa10a(++_0x43a88b);}(_0x27c7,0x190));var _0x727c=function(_0x6131cd,_0x4c26a1){_0x6131cd=_0x6131cd-0x0;var _0x47e916=_0x27c7[_0x6131cd];return _0x47e916;};'use strict';var EventEmitter=require('events');var UserVoiceQueueRt=require('../../mysqldb')['db'][_0x727c('0x0')];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0x727c('0x1')](0x0);var events={'afterCreate':_0x727c('0x2'),'afterUpdate':'update','afterDestroy':_0x727c('0x3')};function emitEvent(_0x7a6d37){return function(_0xdd84ea,_0x5e6886,_0x241540){UserVoiceQueueRtEvents[_0x727c('0x4')](_0x7a6d37+':'+_0xdd84ea['id'],_0xdd84ea);UserVoiceQueueRtEvents['emit'](_0x7a6d37,_0xdd84ea);_0x241540(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserVoiceQueueRt[_0x727c('0x5')](e,emitEvent(event));}}module['exports']=UserVoiceQueueRtEvents;
\ No newline at end of file
+var _0xdd8d=['UserVoiceQueueRt','update','remove','emit','hasOwnProperty','hook','exports','../../mysqldb'];(function(_0x367c20,_0x5362c1){var _0x20da8d=function(_0xe670b6){while(--_0xe670b6){_0x367c20['push'](_0x367c20['shift']());}};_0x20da8d(++_0x5362c1);}(_0xdd8d,0x1e7));var _0xddd8=function(_0x5c5c52,_0x36d085){_0x5c5c52=_0x5c5c52-0x0;var _0x4229ff=_0xdd8d[_0x5c5c52];return _0x4229ff;};'use strict';var EventEmitter=require('events');var UserVoiceQueueRt=require(_0xddd8('0x0'))['db'][_0xddd8('0x1')];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0xddd8('0x2'),'afterDestroy':_0xddd8('0x3')};function emitEvent(_0x3dce80){return function(_0x5bc901,_0x1b1af9,_0x1a6147){UserVoiceQueueRtEvents['emit'](_0x3dce80+':'+_0x5bc901['id'],_0x5bc901);UserVoiceQueueRtEvents[_0xddd8('0x4')](_0x3dce80,_0x5bc901);_0x1a6147(null);};}for(var e in events){if(events[_0xddd8('0x5')](e)){var event=events[e];UserVoiceQueueRt[_0xddd8('0x6')](e,emitEvent(event));}}module[_0xddd8('0x7')]=UserVoiceQueueRtEvents;
\ No newline at end of file