Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / chatOfflineMessage / chatOfflineMessage.events.js
index 990e0c6..31af38e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0c46=['events','ChatOfflineMessage','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','exports'];(function(_0x5ada6d,_0x3e6a3d){var _0xc2a26c=function(_0x51afa){while(--_0x51afa){_0x5ada6d['push'](_0x5ada6d['shift']());}};_0xc2a26c(++_0x3e6a3d);}(_0x0c46,0xe6));var _0x60c4=function(_0x22613e,_0x150bf0){_0x22613e=_0x22613e-0x0;var _0x22bad4=_0x0c46[_0x22613e];return _0x22bad4;};'use strict';var EventEmitter=require(_0x60c4('0x0'));var ChatOfflineMessage=require('../../mysqldb')['db'][_0x60c4('0x1')];var ChatOfflineMessageEvents=new EventEmitter();ChatOfflineMessageEvents[_0x60c4('0x2')](0x0);var events={'afterCreate':_0x60c4('0x3'),'afterUpdate':_0x60c4('0x4'),'afterDestroy':_0x60c4('0x5')};function emitEvent(_0x34b6d6){return function(_0x31b326,_0x33600d,_0x3c6452){ChatOfflineMessageEvents['emit'](_0x34b6d6+':'+_0x31b326['id'],_0x31b326);ChatOfflineMessageEvents[_0x60c4('0x6')](_0x34b6d6,_0x31b326);_0x3c6452(null);};}for(var e in events){if(events[_0x60c4('0x7')](e)){var event=events[e];ChatOfflineMessage[_0x60c4('0x8')](e,emitEvent(event));}}module[_0x60c4('0x9')]=ChatOfflineMessageEvents;
\ No newline at end of file
+var _0xd706=['ChatOfflineMessage','save','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb'];(function(_0x8cda52,_0x3f037f){var _0x46d6db=function(_0x24ebf6){while(--_0x24ebf6){_0x8cda52['push'](_0x8cda52['shift']());}};_0x46d6db(++_0x3f037f);}(_0xd706,0x115));var _0x6d70=function(_0x32db21,_0xb432b7){_0x32db21=_0x32db21-0x0;var _0x271632=_0xd706[_0x32db21];return _0x271632;};'use strict';var EventEmitter=require(_0x6d70('0x0'));var ChatOfflineMessage=require(_0x6d70('0x1'))['db'][_0x6d70('0x2')];var ChatOfflineMessageEvents=new EventEmitter();ChatOfflineMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x6d70('0x3'),'afterUpdate':'update','afterDestroy':_0x6d70('0x4')};function emitEvent(_0x512beb){return function(_0x4a6af3,_0x333383,_0x24a4a9){ChatOfflineMessageEvents[_0x6d70('0x5')](_0x512beb+':'+_0x4a6af3['id'],_0x4a6af3);ChatOfflineMessageEvents[_0x6d70('0x5')](_0x512beb,_0x4a6af3);_0x24a4a9(null);};}for(var e in events){if(events[_0x6d70('0x6')](e)){var event=events[e];ChatOfflineMessage[_0x6d70('0x7')](e,emitEvent(event));}}module[_0x6d70('0x8')]=ChatOfflineMessageEvents;
\ No newline at end of file