Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / openchannelQueue / openchannelQueue.events.js
index 58be471..d67b17b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8af0=['setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','OpenchannelQueue'];(function(_0x1d1aaf,_0x19e68c){var _0x5d6668=function(_0x514b35){while(--_0x514b35){_0x1d1aaf['push'](_0x1d1aaf['shift']());}};_0x5d6668(++_0x19e68c);}(_0x8af0,0x15d));var _0x08af=function(_0xf6e75d,_0xc70967){_0xf6e75d=_0xf6e75d-0x0;var _0x27514d=_0x8af0[_0xf6e75d];return _0x27514d;};'use strict';var EventEmitter=require(_0x08af('0x0'));var OpenchannelQueue=require(_0x08af('0x1'))['db'][_0x08af('0x2')];var OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[_0x08af('0x3')](0x0);var events={'afterCreate':_0x08af('0x4'),'afterUpdate':_0x08af('0x5'),'afterDestroy':_0x08af('0x6')};function emitEvent(_0x5378ae){return function(_0x5eb83f,_0x5dcf7e,_0x22c77c){OpenchannelQueueEvents[_0x08af('0x7')](_0x5378ae+':'+_0x5eb83f['id'],_0x5eb83f);OpenchannelQueueEvents[_0x08af('0x7')](_0x5378ae,_0x5eb83f);_0x22c77c(null);};}for(var e in events){if(events[_0x08af('0x8')](e)){var event=events[e];OpenchannelQueue[_0x08af('0x9')](e,emitEvent(event));}}module[_0x08af('0xa')]=OpenchannelQueueEvents;
\ No newline at end of file
+var _0xc9d0=['update','emit','events','../../mysqldb','OpenchannelQueue','save'];(function(_0x51461b,_0x32ad42){var _0x1a66c4=function(_0x291777){while(--_0x291777){_0x51461b['push'](_0x51461b['shift']());}};_0x1a66c4(++_0x32ad42);}(_0xc9d0,0xda));var _0x0c9d=function(_0xb18b7f,_0x1c735b){_0xb18b7f=_0xb18b7f-0x0;var _0x51e2bd=_0xc9d0[_0xb18b7f];return _0x51e2bd;};'use strict';var EventEmitter=require(_0x0c9d('0x0'));var OpenchannelQueue=require(_0x0c9d('0x1'))['db'][_0x0c9d('0x2')];var OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x0c9d('0x3'),'afterUpdate':_0x0c9d('0x4'),'afterDestroy':'remove'};function emitEvent(_0x3f94d7){return function(_0x1c8dca,_0x4f58d5,_0x18efa0){OpenchannelQueueEvents[_0x0c9d('0x5')](_0x3f94d7+':'+_0x1c8dca['id'],_0x1c8dca);OpenchannelQueueEvents['emit'](_0x3f94d7,_0x1c8dca);_0x18efa0(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];OpenchannelQueue['hook'](e,emitEvent(event));}}module['exports']=OpenchannelQueueEvents;
\ No newline at end of file