Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / openchannelQueue / openchannelQueue.events.js
index 179026b..c98aef6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdfa2=['remove','emit','hasOwnProperty','hook','events','OpenchannelQueue','save','update'];(function(_0x1c5385,_0x3aba1a){var _0x478ddb=function(_0x7ca4a6){while(--_0x7ca4a6){_0x1c5385['push'](_0x1c5385['shift']());}};_0x478ddb(++_0x3aba1a);}(_0xdfa2,0x1a4));var _0x2dfa=function(_0x43de65,_0x2feccd){_0x43de65=_0x43de65-0x0;var _0x5b9032=_0xdfa2[_0x43de65];return _0x5b9032;};'use strict';var EventEmitter=require(_0x2dfa('0x0'));var OpenchannelQueue=require('../../mysqldb')['db'][_0x2dfa('0x1')];var OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x2dfa('0x2'),'afterUpdate':_0x2dfa('0x3'),'afterDestroy':_0x2dfa('0x4')};function emitEvent(_0x254341){return function(_0x52f54f,_0x42648a,_0x213c37){OpenchannelQueueEvents['emit'](_0x254341+':'+_0x52f54f['id'],_0x52f54f);OpenchannelQueueEvents[_0x2dfa('0x5')](_0x254341,_0x52f54f);_0x213c37(null);};}for(var e in events){if(events[_0x2dfa('0x6')](e)){var event=events[e];OpenchannelQueue[_0x2dfa('0x7')](e,emitEvent(event));}}module['exports']=OpenchannelQueueEvents;
\ No newline at end of file
+var _0x3b14=['../../mysqldb','OpenchannelQueue','save','update','remove','emit','hasOwnProperty','exports'];(function(_0x11e0aa,_0x3394bf){var _0x390c38=function(_0x164eda){while(--_0x164eda){_0x11e0aa['push'](_0x11e0aa['shift']());}};_0x390c38(++_0x3394bf);}(_0x3b14,0x80));var _0x43b1=function(_0x5c535e,_0x354509){_0x5c535e=_0x5c535e-0x0;var _0x3eda43=_0x3b14[_0x5c535e];return _0x3eda43;};'use strict';var EventEmitter=require('events');var OpenchannelQueue=require(_0x43b1('0x0'))['db'][_0x43b1('0x1')];var OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x43b1('0x2'),'afterUpdate':_0x43b1('0x3'),'afterDestroy':_0x43b1('0x4')};function emitEvent(_0x420854){return function(_0x143886,_0x1dd5bc,_0x3ca710){OpenchannelQueueEvents[_0x43b1('0x5')](_0x420854+':'+_0x143886['id'],_0x143886);OpenchannelQueueEvents['emit'](_0x420854,_0x143886);_0x3ca710(null);};}for(var e in events){if(events[_0x43b1('0x6')](e)){var event=events[e];OpenchannelQueue['hook'](e,emitEvent(event));}}module[_0x43b1('0x7')]=OpenchannelQueueEvents;
\ No newline at end of file