Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.events.js
index 6c4fcc6..b90ceed 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x40c2=['emit','hasOwnProperty','exports','../../mysqldb','ChatInternalMessage','setMaxListeners','save'];(function(_0x39e84d,_0x11931d){var _0x1991bc=function(_0xc81e32){while(--_0xc81e32){_0x39e84d['push'](_0x39e84d['shift']());}};_0x1991bc(++_0x11931d);}(_0x40c2,0x10d));var _0x240c=function(_0x270e77,_0x4628fe){_0x270e77=_0x270e77-0x0;var _0x2d03ac=_0x40c2[_0x270e77];return _0x2d03ac;};'use strict';var EventEmitter=require('events');var ChatInternalMessage=require(_0x240c('0x0'))['db'][_0x240c('0x1')];var ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[_0x240c('0x2')](0x0);var events={'afterCreate':_0x240c('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x25a75a){return function(_0x1827b7,_0x6cb99e,_0x3c3213){ChatInternalMessageEvents[_0x240c('0x4')](_0x25a75a+':'+_0x1827b7['id'],_0x1827b7);ChatInternalMessageEvents[_0x240c('0x4')](_0x25a75a,_0x1827b7);_0x3c3213(null);};}for(var e in events){if(events[_0x240c('0x5')](e)){var event=events[e];ChatInternalMessage['hook'](e,emitEvent(event));}}module[_0x240c('0x6')]=ChatInternalMessageEvents;
\ No newline at end of file
+var _0x4ef9=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','ChatInternalMessage','save','update','remove'];(function(_0xb305f3,_0x4d9926){var _0x1a418a=function(_0x6b026){while(--_0x6b026){_0xb305f3['push'](_0xb305f3['shift']());}};_0x1a418a(++_0x4d9926);}(_0x4ef9,0x144));var _0x94ef=function(_0x57486e,_0x32283b){_0x57486e=_0x57486e-0x0;var _0x5f110b=_0x4ef9[_0x57486e];return _0x5f110b;};'use strict';var EventEmitter=require(_0x94ef('0x0'));var ChatInternalMessage=require(_0x94ef('0x1'))['db'][_0x94ef('0x2')];var ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x94ef('0x3'),'afterUpdate':_0x94ef('0x4'),'afterDestroy':_0x94ef('0x5')};function emitEvent(_0x53eae1){return function(_0x1a8030,_0x2cb58e,_0x4b2398){ChatInternalMessageEvents[_0x94ef('0x6')](_0x53eae1+':'+_0x1a8030['id'],_0x1a8030);ChatInternalMessageEvents[_0x94ef('0x6')](_0x53eae1,_0x1a8030);_0x4b2398(null);};}for(var e in events){if(events[_0x94ef('0x7')](e)){var event=events[e];ChatInternalMessage[_0x94ef('0x8')](e,emitEvent(event));}}module[_0x94ef('0x9')]=ChatInternalMessageEvents;
\ No newline at end of file