Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / dashboardItem / dashboardItem.events.js
index 12b131f..993d473 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x360c=['hook','exports','events','../../mysqldb','setMaxListeners','save','update','remove','emit','hasOwnProperty'];(function(_0x239282,_0x156d60){var _0x1a26a4=function(_0x4d2b8){while(--_0x4d2b8){_0x239282['push'](_0x239282['shift']());}};_0x1a26a4(++_0x156d60);}(_0x360c,0xac));var _0xc360=function(_0x8a5a5c,_0x38f3a5){_0x8a5a5c=_0x8a5a5c-0x0;var _0x403f5d=_0x360c[_0x8a5a5c];return _0x403f5d;};'use strict';var EventEmitter=require(_0xc360('0x0'));var DashboardItem=require(_0xc360('0x1'))['db']['DashboardItem'];var DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0xc360('0x2')](0x0);var events={'afterCreate':_0xc360('0x3'),'afterUpdate':_0xc360('0x4'),'afterDestroy':_0xc360('0x5')};function emitEvent(_0x2b8770){return function(_0x4ff88a,_0x212391,_0x59ab61){DashboardItemEvents[_0xc360('0x6')](_0x2b8770+':'+_0x4ff88a['id'],_0x4ff88a);DashboardItemEvents['emit'](_0x2b8770,_0x4ff88a);_0x59ab61(null);};}for(var e in events){if(events[_0xc360('0x7')](e)){var event=events[e];DashboardItem[_0xc360('0x8')](e,emitEvent(event));}}module[_0xc360('0x9')]=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