Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / dashboardItem / dashboardItem.events.js
index 492fee6..993d473 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfcf0=['hasOwnProperty','hook','exports','events','../../mysqldb','DashboardItem','save','update','emit'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0xfcf0,0xe4));var _0x0fcf=function(_0x3d38ae,_0x51102b){_0x3d38ae=_0x3d38ae-0x0;var _0x3757ee=_0xfcf0[_0x3d38ae];return _0x3757ee;};'use strict';var EventEmitter=require(_0x0fcf('0x0'));var DashboardItem=require(_0x0fcf('0x1'))['db'][_0x0fcf('0x2')];var DashboardItemEvents=new EventEmitter();DashboardItemEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x0fcf('0x3'),'afterUpdate':_0x0fcf('0x4'),'afterDestroy':'remove'};function emitEvent(_0x425726){return function(_0x9546b6,_0x20a275,_0x1b5cd6){DashboardItemEvents[_0x0fcf('0x5')](_0x425726+':'+_0x9546b6['id'],_0x9546b6);DashboardItemEvents[_0x0fcf('0x5')](_0x425726,_0x9546b6);_0x1b5cd6(null);};}for(var e in events){if(events[_0x0fcf('0x6')](e)){var event=events[e];DashboardItem[_0x0fcf('0x7')](e,emitEvent(event));}}module[_0x0fcf('0x8')]=DashboardItemEvents;
\ No newline at end of file
+var _0xd991=['exports','events','../../mysqldb','save','update','remove','emit','hasOwnProperty','hook'];(function(_0x499e97,_0x106a76){var _0x5b4f4d=function(_0x190701){while(--_0x190701){_0x499e97['push'](_0x499e97['shift']());}};_0x5b4f4d(++_0x106a76);}(_0xd991,0x1a8));var _0x1d99=function(_0x5ec25e,_0x3fff60){_0x5ec25e=_0x5ec25e-0x0;var _0x2f31d1=_0xd991[_0x5ec25e];return _0x2f31d1;};'use strict';var EventEmitter=require(_0x1d99('0x0'));var DashboardItem=require(_0x1d99('0x1'))['db']['DashboardItem'];var DashboardItemEvents=new EventEmitter();DashboardItemEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x1d99('0x2'),'afterUpdate':_0x1d99('0x3'),'afterDestroy':_0x1d99('0x4')};function emitEvent(_0x46ec21){return function(_0x1c603d,_0x8a598e,_0x51fd54){DashboardItemEvents[_0x1d99('0x5')](_0x46ec21+':'+_0x1c603d['id'],_0x1c603d);DashboardItemEvents[_0x1d99('0x5')](_0x46ec21,_0x1c603d);_0x51fd54(null);};}for(var e in events){if(events[_0x1d99('0x6')](e)){var event=events[e];DashboardItem[_0x1d99('0x7')](e,emitEvent(event));}}module[_0x1d99('0x8')]=DashboardItemEvents;
\ No newline at end of file