Built motion from commit ab870f9e.|2.5.44
[motion2.git] / server / api / openchannelMessage / openchannelMessage.events.js
index 52846a0..8ce658c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9d64=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','setMaxListeners','update','remove'];(function(_0x179997,_0x46607e){var _0x233b87=function(_0x38a354){while(--_0x38a354){_0x179997['push'](_0x179997['shift']());}};_0x233b87(++_0x46607e);}(_0x9d64,0x15a));var _0x49d6=function(_0x48e78d,_0x45f682){_0x48e78d=_0x48e78d-0x0;var _0x210141=_0x9d64[_0x48e78d];return _0x210141;};'use strict';var EventEmitter=require(_0x49d6('0x0'));var OpenchannelMessage=require(_0x49d6('0x1'))['db']['OpenchannelMessage'];var OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0x49d6('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0x49d6('0x3'),'afterDestroy':_0x49d6('0x4')};function emitEvent(_0x3354c4){return function(_0x65616a,_0x12301e,_0x3bc2d1){OpenchannelMessageEvents[_0x49d6('0x5')](_0x3354c4+':'+_0x65616a['id'],_0x65616a);OpenchannelMessageEvents[_0x49d6('0x5')](_0x3354c4,_0x65616a);_0x3bc2d1(null);};}for(var e in events){if(events[_0x49d6('0x6')](e)){var event=events[e];OpenchannelMessage[_0x49d6('0x7')](e,emitEvent(event));}}module[_0x49d6('0x8')]=OpenchannelMessageEvents;
\ No newline at end of file
+var _0x0ce3=['emit','hasOwnProperty','exports','events','../../mysqldb','OpenchannelMessage','setMaxListeners','update','remove'];(function(_0x53a6b4,_0x251898){var _0x4526c2=function(_0x4faeac){while(--_0x4faeac){_0x53a6b4['push'](_0x53a6b4['shift']());}};_0x4526c2(++_0x251898);}(_0x0ce3,0x147));var _0x30ce=function(_0x21eb7e,_0x97b820){_0x21eb7e=_0x21eb7e-0x0;var _0x19fda4=_0x0ce3[_0x21eb7e];return _0x19fda4;};'use strict';var EventEmitter=require(_0x30ce('0x0'));var OpenchannelMessage=require(_0x30ce('0x1'))['db'][_0x30ce('0x2')];var OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0x30ce('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x30ce('0x4'),'afterDestroy':_0x30ce('0x5')};function emitEvent(_0x97b907){return function(_0x130e1c,_0x5c7a85,_0x54eb11){OpenchannelMessageEvents[_0x30ce('0x6')](_0x97b907+':'+_0x130e1c['id'],_0x130e1c);OpenchannelMessageEvents['emit'](_0x97b907,_0x130e1c);_0x54eb11(null);};}for(var e in events){if(events[_0x30ce('0x7')](e)){var event=events[e];OpenchannelMessage['hook'](e,emitEvent(event));}}module[_0x30ce('0x8')]=OpenchannelMessageEvents;
\ No newline at end of file