Built motion from commit eddce310.|2.6.12
[motion2.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.events.js
index 094136a..5f0d5b2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x299d=['update','remove','hasOwnProperty','UserVoiceQueueRt','setMaxListeners','save'];(function(_0x4f996a,_0x9e49f5){var _0x369c8f=function(_0x1c721f){while(--_0x1c721f){_0x4f996a['push'](_0x4f996a['shift']());}};_0x369c8f(++_0x9e49f5);}(_0x299d,0xff));var _0xd299=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x299d[_0x3bf83f];return _0x22c4a9;};'use strict';var EventEmitter=require('events');var UserVoiceQueueRt=require('../../mysqldb')['db'][_0xd299('0x0')];var UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0xd299('0x1')](0x0);var events={'afterCreate':_0xd299('0x2'),'afterUpdate':_0xd299('0x3'),'afterDestroy':_0xd299('0x4')};function emitEvent(_0x4e8ef2){return function(_0x5dfa97,_0x3766f8,_0x205396){UserVoiceQueueRtEvents['emit'](_0x4e8ef2+':'+_0x5dfa97['id'],_0x5dfa97);UserVoiceQueueRtEvents['emit'](_0x4e8ef2,_0x5dfa97);_0x205396(null);};}for(var e in events){if(events[_0xd299('0x5')](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