// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x46e6=['ChatMessage','setMaxListeners','save','update','emit','hasOwnProperty','hook','exports','events','../../mysqldb'];(function(_0x1f33fd,_0xb0ced9){var _0x496cfc=function(_0x3f8002){while(--_0x3f8002){_0x1f33fd['push'](_0x1f33fd['shift']());}};_0x496cfc(++_0xb0ced9);}(_0x46e6,0xa8));var _0x646e=function(_0x50c911,_0x528dbe){_0x50c911=_0x50c911-0x0;var _0x444a94=_0x46e6[_0x50c911];return _0x444a94;};'use strict';var EventEmitter=require(_0x646e('0x0'));var ChatMessage=require(_0x646e('0x1'))['db'][_0x646e('0x2')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x646e('0x3')](0x0);var events={'afterCreate':_0x646e('0x4'),'afterUpdate':_0x646e('0x5'),'afterDestroy':'remove'};function emitEvent(_0x55ebbf){return function(_0x73ab76,_0x546391,_0x222ff3){ChatMessageEvents[_0x646e('0x6')](_0x55ebbf+':'+_0x73ab76['id'],_0x73ab76);ChatMessageEvents[_0x646e('0x6')](_0x55ebbf,_0x73ab76);_0x222ff3(null);};}for(var e in events){if(events[_0x646e('0x7')](e)){var event=events[e];ChatMessage[_0x646e('0x8')](e,emitEvent(event));}}module[_0x646e('0x9')]=ChatMessageEvents;
\ No newline at end of file
+var _0x1d60=['save','update','emit','hasOwnProperty','hook','exports','events','../../mysqldb','ChatMessage','setMaxListeners'];(function(_0x50b57f,_0x2f01e9){var _0x4386fd=function(_0x9aa517){while(--_0x9aa517){_0x50b57f['push'](_0x50b57f['shift']());}};_0x4386fd(++_0x2f01e9);}(_0x1d60,0x100));var _0x01d6=function(_0x11116a,_0x462932){_0x11116a=_0x11116a-0x0;var _0x35dbc7=_0x1d60[_0x11116a];return _0x35dbc7;};'use strict';var EventEmitter=require(_0x01d6('0x0'));var ChatMessage=require(_0x01d6('0x1'))['db'][_0x01d6('0x2')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x01d6('0x3')](0x0);var events={'afterCreate':_0x01d6('0x4'),'afterUpdate':_0x01d6('0x5'),'afterDestroy':'remove'};function emitEvent(_0x2a9ae6){return function(_0x3449a8,_0x1accec,_0x10aa7c){ChatMessageEvents[_0x01d6('0x6')](_0x2a9ae6+':'+_0x3449a8['id'],_0x3449a8);ChatMessageEvents[_0x01d6('0x6')](_0x2a9ae6,_0x3449a8);_0x10aa7c(null);};}for(var e in events){if(events[_0x01d6('0x7')](e)){var event=events[e];ChatMessage[_0x01d6('0x8')](e,emitEvent(event));}}module[_0x01d6('0x9')]=ChatMessageEvents;
\ No newline at end of file