Built motion from commit (unavailable).|2.5.28
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.events.js
index 7e6f907..d4328f7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5395=['events','ChatInternalMessage','update','remove','emit','hasOwnProperty','hook','exports'];(function(_0x20629d,_0x3b92c2){var _0x50e340=function(_0x3973b7){while(--_0x3973b7){_0x20629d['push'](_0x20629d['shift']());}};_0x50e340(++_0x3b92c2);}(_0x5395,0x150));var _0x5539=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0x5395[_0x46698a];return _0x356db0;};'use strict';var EventEmitter=require(_0x5539('0x0'));var ChatInternalMessage=require('../../mysqldb')['db'][_0x5539('0x1')];var ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0x5539('0x2'),'afterDestroy':_0x5539('0x3')};function emitEvent(_0x2d24c7){return function(_0x4cd571,_0x2b6f8b,_0x453ad5){ChatInternalMessageEvents[_0x5539('0x4')](_0x2d24c7+':'+_0x4cd571['id'],_0x4cd571);ChatInternalMessageEvents[_0x5539('0x4')](_0x2d24c7,_0x4cd571);_0x453ad5(null);};}for(var e in events){if(events[_0x5539('0x5')](e)){var event=events[e];ChatInternalMessage[_0x5539('0x6')](e,emitEvent(event));}}module[_0x5539('0x7')]=ChatInternalMessageEvents;
\ No newline at end of file
+var _0x27c9=['../../mysqldb','ChatInternalMessage','setMaxListeners','update','remove','emit','hook','exports','events'];(function(_0x16443f,_0x34740a){var _0x3203e2=function(_0x42b1ab){while(--_0x42b1ab){_0x16443f['push'](_0x16443f['shift']());}};_0x3203e2(++_0x34740a);}(_0x27c9,0x1af));var _0x927c=function(_0x3e5086,_0x48f4a2){_0x3e5086=_0x3e5086-0x0;var _0xfeb102=_0x27c9[_0x3e5086];return _0xfeb102;};'use strict';var EventEmitter=require(_0x927c('0x0'));var ChatInternalMessage=require(_0x927c('0x1'))['db'][_0x927c('0x2')];var ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[_0x927c('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x927c('0x4'),'afterDestroy':_0x927c('0x5')};function emitEvent(_0x591cb0){return function(_0x3a091e,_0x3ec1a0,_0x3c36f6){ChatInternalMessageEvents[_0x927c('0x6')](_0x591cb0+':'+_0x3a091e['id'],_0x3a091e);ChatInternalMessageEvents[_0x927c('0x6')](_0x591cb0,_0x3a091e);_0x3c36f6(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];ChatInternalMessage[_0x927c('0x7')](e,emitEvent(event));}}module[_0x927c('0x8')]=ChatInternalMessageEvents;
\ No newline at end of file