Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / openchannelMessage / openchannelMessage.events.js
index d0eeb72..5610e85 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x264f=['setMaxListeners','save','update','remove','emit','hook','exports','events','../../mysqldb','OpenchannelMessage'];(function(_0x4d9a92,_0x2d76f0){var _0x4053fd=function(_0x2fd1ba){while(--_0x2fd1ba){_0x4d9a92['push'](_0x4d9a92['shift']());}};_0x4053fd(++_0x2d76f0);}(_0x264f,0x1e7));var _0xf264=function(_0x1a9574,_0x506994){_0x1a9574=_0x1a9574-0x0;var _0x110ee6=_0x264f[_0x1a9574];return _0x110ee6;};'use strict';var EventEmitter=require(_0xf264('0x0'));var OpenchannelMessage=require(_0xf264('0x1'))['db'][_0xf264('0x2')];var OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0xf264('0x3')](0x0);var events={'afterCreate':_0xf264('0x4'),'afterUpdate':_0xf264('0x5'),'afterDestroy':_0xf264('0x6')};function emitEvent(_0x10667d){return function(_0x406374,_0x4bddc8,_0x275870){OpenchannelMessageEvents[_0xf264('0x7')](_0x10667d+':'+_0x406374['id'],_0x406374);OpenchannelMessageEvents[_0xf264('0x7')](_0x10667d,_0x406374);_0x275870(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];OpenchannelMessage[_0xf264('0x8')](e,emitEvent(event));}}module[_0xf264('0x9')]=OpenchannelMessageEvents;
\ No newline at end of file
+var _0xa7aa=['hasOwnProperty','../../mysqldb','OpenchannelMessage','setMaxListeners','save','update','remove'];(function(_0x546ebf,_0x51f323){var _0xe82ed3=function(_0x3f89bc){while(--_0x3f89bc){_0x546ebf['push'](_0x546ebf['shift']());}};_0xe82ed3(++_0x51f323);}(_0xa7aa,0x8d));var _0xaa7a=function(_0x5000dc,_0x483dda){_0x5000dc=_0x5000dc-0x0;var _0x11ae91=_0xa7aa[_0x5000dc];return _0x11ae91;};'use strict';var EventEmitter=require('events');var OpenchannelMessage=require(_0xaa7a('0x0'))['db'][_0xaa7a('0x1')];var OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0xaa7a('0x2')](0x0);var events={'afterCreate':_0xaa7a('0x3'),'afterUpdate':_0xaa7a('0x4'),'afterDestroy':_0xaa7a('0x5')};function emitEvent(_0x4d0175){return function(_0x53edc8,_0x428169,_0x5cb06b){OpenchannelMessageEvents['emit'](_0x4d0175+':'+_0x53edc8['id'],_0x53edc8);OpenchannelMessageEvents['emit'](_0x4d0175,_0x53edc8);_0x5cb06b(null);};}for(var e in events){if(events[_0xaa7a('0x6')](e)){var event=events[e];OpenchannelMessage['hook'](e,emitEvent(event));}}module['exports']=OpenchannelMessageEvents;
\ No newline at end of file