Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / api / openchannelMessage / openchannelMessage.events.js
index 9faf553..2d618ca 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x665e=['events','../../mysqldb','OpenchannelMessage','setMaxListeners','save','update','remove','emit','hook','exports'];(function(_0x5e8eae,_0x4f81e0){var _0xdd09cd=function(_0x28c85c){while(--_0x28c85c){_0x5e8eae['push'](_0x5e8eae['shift']());}};_0xdd09cd(++_0x4f81e0);}(_0x665e,0x14a));var _0xe665=function(_0x3bf925,_0x4dd8e4){_0x3bf925=_0x3bf925-0x0;var _0x2128a1=_0x665e[_0x3bf925];return _0x2128a1;};'use strict';var EventEmitter=require(_0xe665('0x0'));var OpenchannelMessage=require(_0xe665('0x1'))['db'][_0xe665('0x2')];var OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0xe665('0x3')](0x0);var events={'afterCreate':_0xe665('0x4'),'afterUpdate':_0xe665('0x5'),'afterDestroy':_0xe665('0x6')};function emitEvent(_0x127498){return function(_0x16884f,_0x2c6854,_0x3576c5){OpenchannelMessageEvents[_0xe665('0x7')](_0x127498+':'+_0x16884f['id'],_0x16884f);OpenchannelMessageEvents[_0xe665('0x7')](_0x127498,_0x16884f);_0x3576c5(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];OpenchannelMessage[_0xe665('0x8')](e,emitEvent(event));}}module[_0xe665('0x9')]=OpenchannelMessageEvents;
\ No newline at end of file
+var _0x8fa6=['remove','emit','hook','exports','events','../../mysqldb','OpenchannelMessage','update'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x8fa6,0x1cc));var _0x68fa=function(_0x48e368,_0xe0497d){_0x48e368=_0x48e368-0x0;var _0x28a185=_0x8fa6[_0x48e368];return _0x28a185;};'use strict';var EventEmitter=require(_0x68fa('0x0'));var OpenchannelMessage=require(_0x68fa('0x1'))['db'][_0x68fa('0x2')];var OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0x68fa('0x3'),'afterDestroy':_0x68fa('0x4')};function emitEvent(_0x41f050){return function(_0x81dcf6,_0x25c9ce,_0x33df3b){OpenchannelMessageEvents['emit'](_0x41f050+':'+_0x81dcf6['id'],_0x81dcf6);OpenchannelMessageEvents[_0x68fa('0x5')](_0x41f050,_0x81dcf6);_0x33df3b(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];OpenchannelMessage[_0x68fa('0x6')](e,emitEvent(event));}}module[_0x68fa('0x7')]=OpenchannelMessageEvents;
\ No newline at end of file