Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / openchannelMessage / openchannelMessage.events.js
index 101cd5f..5610e85 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x926c=['remove','emit','hook','exports','events','../../mysqldb','OpenchannelMessage','setMaxListeners','save','update'];(function(_0x407309,_0x5a9f06){var _0x402686=function(_0x127327){while(--_0x127327){_0x407309['push'](_0x407309['shift']());}};_0x402686(++_0x5a9f06);}(_0x926c,0x13a));var _0xc926=function(_0x35ac23,_0x1c2599){_0x35ac23=_0x35ac23-0x0;var _0x3e8d81=_0x926c[_0x35ac23];return _0x3e8d81;};'use strict';var EventEmitter=require(_0xc926('0x0'));var OpenchannelMessage=require(_0xc926('0x1'))['db'][_0xc926('0x2')];var OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0xc926('0x3')](0x0);var events={'afterCreate':_0xc926('0x4'),'afterUpdate':_0xc926('0x5'),'afterDestroy':_0xc926('0x6')};function emitEvent(_0x1fcf5f){return function(_0x206f7c,_0x9a4ea8,_0x11a4ed){OpenchannelMessageEvents[_0xc926('0x7')](_0x1fcf5f+':'+_0x206f7c['id'],_0x206f7c);OpenchannelMessageEvents['emit'](_0x1fcf5f,_0x206f7c);_0x11a4ed(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];OpenchannelMessage[_0xc926('0x8')](e,emitEvent(event));}}module[_0xc926('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