X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FchatOfflineMessage%2FchatOfflineMessage.events.js;h=c5ea32cdde3c06e6bdaebc48aa6c7397d427cb54;hb=110da1ff22cb856a228cc5d87556e5aa36ca0d22;hp=5ae0e9dd9a003d91afb6b9dabedd01395d73cc6d;hpb=ebe00679b2d367c1cf2b2b91609ee1ce4bd8fb94;p=motion2.git diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.events.js b/server/api/chatOfflineMessage/chatOfflineMessage.events.js index 5ae0e9d..c5ea32c 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.events.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.events.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x9b09=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','ChatOfflineMessage'];(function(_0x2134b7,_0x1eb5e2){var _0x6c5914=function(_0x1da201){while(--_0x1da201){_0x2134b7['push'](_0x2134b7['shift']());}};_0x6c5914(++_0x1eb5e2);}(_0x9b09,0xfd));var _0x99b0=function(_0x1559a5,_0x41924e){_0x1559a5=_0x1559a5-0x0;var _0x17a783=_0x9b09[_0x1559a5];return _0x17a783;};'use strict';var EventEmitter=require(_0x99b0('0x0'));var ChatOfflineMessage=require(_0x99b0('0x1'))['db'][_0x99b0('0x2')];var ChatOfflineMessageEvents=new EventEmitter();ChatOfflineMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x99b0('0x3')};function emitEvent(_0x38c7be){return function(_0x163d3b,_0x30f596,_0x120ca5){ChatOfflineMessageEvents[_0x99b0('0x4')](_0x38c7be+':'+_0x163d3b['id'],_0x163d3b);ChatOfflineMessageEvents[_0x99b0('0x4')](_0x38c7be,_0x163d3b);_0x120ca5(null);};}for(var e in events){if(events[_0x99b0('0x5')](e)){var event=events[e];ChatOfflineMessage[_0x99b0('0x6')](e,emitEvent(event));}}module[_0x99b0('0x7')]=ChatOfflineMessageEvents; \ No newline at end of file +var _0xcf98=['save','update','emit','hasOwnProperty','hook','exports','../../mysqldb','ChatOfflineMessage','setMaxListeners'];(function(_0x4bacb6,_0x2b299d){var _0x58c029=function(_0x2faaf5){while(--_0x2faaf5){_0x4bacb6['push'](_0x4bacb6['shift']());}};_0x58c029(++_0x2b299d);}(_0xcf98,0x8d));var _0x8cf9=function(_0x5a68e5,_0x510207){_0x5a68e5=_0x5a68e5-0x0;var _0x18b9d2=_0xcf98[_0x5a68e5];return _0x18b9d2;};'use strict';var EventEmitter=require('events');var ChatOfflineMessage=require(_0x8cf9('0x0'))['db'][_0x8cf9('0x1')];var ChatOfflineMessageEvents=new EventEmitter();ChatOfflineMessageEvents[_0x8cf9('0x2')](0x0);var events={'afterCreate':_0x8cf9('0x3'),'afterUpdate':_0x8cf9('0x4'),'afterDestroy':'remove'};function emitEvent(_0x479f6b){return function(_0x2ebf57,_0x28ae77,_0x1ce13f){ChatOfflineMessageEvents[_0x8cf9('0x5')](_0x479f6b+':'+_0x2ebf57['id'],_0x2ebf57);ChatOfflineMessageEvents[_0x8cf9('0x5')](_0x479f6b,_0x2ebf57);_0x1ce13f(null);};}for(var e in events){if(events[_0x8cf9('0x6')](e)){var event=events[e];ChatOfflineMessage[_0x8cf9('0x7')](e,emitEvent(event));}}module[_0x8cf9('0x8')]=ChatOfflineMessageEvents; \ No newline at end of file