Built motion from commit 9d1906d1.|2.5.40
[motion2.git] / server / api / openchannelMessage / openchannelMessage.events.js
index ab2d61a..12526df 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2283=['hasOwnProperty','hook','exports','events','../../mysqldb','OpenchannelMessage','setMaxListeners','save','update','emit'];(function(_0x1b5a5a,_0x1c3b75){var _0x42b32d=function(_0x3d35ab){while(--_0x3d35ab){_0x1b5a5a['push'](_0x1b5a5a['shift']());}};_0x42b32d(++_0x1c3b75);}(_0x2283,0x8f));var _0x3228=function(_0x68205b,_0x348090){_0x68205b=_0x68205b-0x0;var _0x504d89=_0x2283[_0x68205b];return _0x504d89;};'use strict';var EventEmitter=require(_0x3228('0x0'));var OpenchannelMessage=require(_0x3228('0x1'))['db'][_0x3228('0x2')];var OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0x3228('0x3')](0x0);var events={'afterCreate':_0x3228('0x4'),'afterUpdate':_0x3228('0x5'),'afterDestroy':'remove'};function emitEvent(_0x2b736e){return function(_0x1fe873,_0x56823b,_0x58751f){OpenchannelMessageEvents[_0x3228('0x6')](_0x2b736e+':'+_0x1fe873['id'],_0x1fe873);OpenchannelMessageEvents[_0x3228('0x6')](_0x2b736e,_0x1fe873);_0x58751f(null);};}for(var e in events){if(events[_0x3228('0x7')](e)){var event=events[e];OpenchannelMessage[_0x3228('0x8')](e,emitEvent(event));}}module[_0x3228('0x9')]=OpenchannelMessageEvents;
\ No newline at end of file
+var _0xe880=['../../mysqldb','OpenchannelMessage','setMaxListeners','save','update','remove','emit','exports','events'];(function(_0x187718,_0x427383){var _0x29ddf4=function(_0x2ec62a){while(--_0x2ec62a){_0x187718['push'](_0x187718['shift']());}};_0x29ddf4(++_0x427383);}(_0xe880,0x6b));var _0x0e88=function(_0x3305de,_0x16582f){_0x3305de=_0x3305de-0x0;var _0x3b5a84=_0xe880[_0x3305de];return _0x3b5a84;};'use strict';var EventEmitter=require(_0x0e88('0x0'));var OpenchannelMessage=require(_0x0e88('0x1'))['db'][_0x0e88('0x2')];var OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0x0e88('0x3')](0x0);var events={'afterCreate':_0x0e88('0x4'),'afterUpdate':_0x0e88('0x5'),'afterDestroy':_0x0e88('0x6')};function emitEvent(_0x2752d0){return function(_0x50e966,_0x145d1d,_0x3cedd5){OpenchannelMessageEvents[_0x0e88('0x7')](_0x2752d0+':'+_0x50e966['id'],_0x50e966);OpenchannelMessageEvents[_0x0e88('0x7')](_0x2752d0,_0x50e966);_0x3cedd5(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];OpenchannelMessage['hook'](e,emitEvent(event));}}module[_0x0e88('0x8')]=OpenchannelMessageEvents;
\ No newline at end of file