Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / openchannelAccount / openchannelAccount.events.js
index 4af23fa..51a43db 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x98e7=['exports','events','../../mysqldb','OpenchannelAccount','setMaxListeners','save','update','remove','emit','hasOwnProperty'];(function(_0x56f14f,_0x50460f){var _0x408256=function(_0xc333bb){while(--_0xc333bb){_0x56f14f['push'](_0x56f14f['shift']());}};_0x408256(++_0x50460f);}(_0x98e7,0x14b));var _0x798e=function(_0x4ff7d1,_0x3331d1){_0x4ff7d1=_0x4ff7d1-0x0;var _0x16e063=_0x98e7[_0x4ff7d1];return _0x16e063;};'use strict';var EventEmitter=require(_0x798e('0x0'));var OpenchannelAccount=require(_0x798e('0x1'))['db'][_0x798e('0x2')];var OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[_0x798e('0x3')](0x0);var events={'afterCreate':_0x798e('0x4'),'afterUpdate':_0x798e('0x5'),'afterDestroy':_0x798e('0x6')};function emitEvent(_0x3cfe53){return function(_0xde751c,_0x5e5965,_0x390618){OpenchannelAccountEvents[_0x798e('0x7')](_0x3cfe53+':'+_0xde751c['id'],_0xde751c);OpenchannelAccountEvents[_0x798e('0x7')](_0x3cfe53,_0xde751c);_0x390618(null);};}for(var e in events){if(events[_0x798e('0x8')](e)){var event=events[e];OpenchannelAccount['hook'](e,emitEvent(event));}}module[_0x798e('0x9')]=OpenchannelAccountEvents;
\ No newline at end of file
+var _0x2dae=['remove','emit','hasOwnProperty','hook','exports','events','OpenchannelAccount','setMaxListeners','save','update'];(function(_0x84aaad,_0x5274a4){var _0x41af6b=function(_0x164921){while(--_0x164921){_0x84aaad['push'](_0x84aaad['shift']());}};_0x41af6b(++_0x5274a4);}(_0x2dae,0xc3));var _0xe2da=function(_0x494d1f,_0x3f72ff){_0x494d1f=_0x494d1f-0x0;var _0x457b6e=_0x2dae[_0x494d1f];return _0x457b6e;};'use strict';var EventEmitter=require(_0xe2da('0x0'));var OpenchannelAccount=require('../../mysqldb')['db'][_0xe2da('0x1')];var OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[_0xe2da('0x2')](0x0);var events={'afterCreate':_0xe2da('0x3'),'afterUpdate':_0xe2da('0x4'),'afterDestroy':_0xe2da('0x5')};function emitEvent(_0x481d97){return function(_0x25b9f2,_0x439b5d,_0x77e45e){OpenchannelAccountEvents[_0xe2da('0x6')](_0x481d97+':'+_0x25b9f2['id'],_0x25b9f2);OpenchannelAccountEvents['emit'](_0x481d97,_0x25b9f2);_0x77e45e(null);};}for(var e in events){if(events[_0xe2da('0x7')](e)){var event=events[e];OpenchannelAccount[_0xe2da('0x8')](e,emitEvent(event));}}module[_0xe2da('0x9')]=OpenchannelAccountEvents;
\ No newline at end of file