Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / openchannelQueue / openchannelQueue.events.js
index ddc16a0..c52da66 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x34c7=['events','../../mysqldb','OpenchannelQueue','setMaxListeners','save','update','remove','hasOwnProperty','hook','exports'];(function(_0x28f19d,_0x33bb1e){var _0x504a5e=function(_0x54c808){while(--_0x54c808){_0x28f19d['push'](_0x28f19d['shift']());}};_0x504a5e(++_0x33bb1e);}(_0x34c7,0xaa));var _0x734c=function(_0x3236b6,_0x290141){_0x3236b6=_0x3236b6-0x0;var _0x13f66c=_0x34c7[_0x3236b6];return _0x13f66c;};'use strict';var EventEmitter=require(_0x734c('0x0'));var OpenchannelQueue=require(_0x734c('0x1'))['db'][_0x734c('0x2')];var OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[_0x734c('0x3')](0x0);var events={'afterCreate':_0x734c('0x4'),'afterUpdate':_0x734c('0x5'),'afterDestroy':_0x734c('0x6')};function emitEvent(_0x199071){return function(_0x258c6c,_0x358979,_0x315c75){OpenchannelQueueEvents['emit'](_0x199071+':'+_0x258c6c['id'],_0x258c6c);OpenchannelQueueEvents['emit'](_0x199071,_0x258c6c);_0x315c75(null);};}for(var e in events){if(events[_0x734c('0x7')](e)){var event=events[e];OpenchannelQueue[_0x734c('0x8')](e,emitEvent(event));}}module[_0x734c('0x9')]=OpenchannelQueueEvents;
\ No newline at end of file
+var _0x82df=['setMaxListeners','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0x82df,0x1d6));var _0xf82d=function(_0x15b71c,_0x25708f){_0x15b71c=_0x15b71c-0x0;var _0x35c8c8=_0x82df[_0x15b71c];return _0x35c8c8;};'use strict';var EventEmitter=require(_0xf82d('0x0'));var OpenchannelQueue=require(_0xf82d('0x1'))['db']['OpenchannelQueue'];var OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[_0xf82d('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0xf82d('0x3')};function emitEvent(_0x2c75f7){return function(_0x2ca9ba,_0x4bf301,_0x37f7fc){OpenchannelQueueEvents[_0xf82d('0x4')](_0x2c75f7+':'+_0x2ca9ba['id'],_0x2ca9ba);OpenchannelQueueEvents[_0xf82d('0x4')](_0x2c75f7,_0x2ca9ba);_0x37f7fc(null);};}for(var e in events){if(events[_0xf82d('0x5')](e)){var event=events[e];OpenchannelQueue[_0xf82d('0x6')](e,emitEvent(event));}}module[_0xf82d('0x7')]=OpenchannelQueueEvents;
\ No newline at end of file