Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / dashboardItem / dashboardItem.events.js
index 6489b63..3bb8843 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2ede=['save','update','remove','emit','hasOwnProperty','hook','exports'];(function(_0x187266,_0x3f99df){var _0x1a83bc=function(_0x189626){while(--_0x189626){_0x187266['push'](_0x187266['shift']());}};_0x1a83bc(++_0x3f99df);}(_0x2ede,0x69));var _0xe2ed=function(_0x457729,_0x4edaf7){_0x457729=_0x457729-0x0;var _0x2a7e43=_0x2ede[_0x457729];return _0x2a7e43;};'use strict';var EventEmitter=require('events');var DashboardItem=require('../../mysqldb')['db']['DashboardItem'];var DashboardItemEvents=new EventEmitter();DashboardItemEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xe2ed('0x0'),'afterUpdate':_0xe2ed('0x1'),'afterDestroy':_0xe2ed('0x2')};function emitEvent(_0x1f4343){return function(_0x5234ef,_0x441f04,_0x9a284b){DashboardItemEvents['emit'](_0x1f4343+':'+_0x5234ef['id'],_0x5234ef);DashboardItemEvents[_0xe2ed('0x3')](_0x1f4343,_0x5234ef);_0x9a284b(null);};}for(var e in events){if(events[_0xe2ed('0x4')](e)){var event=events[e];DashboardItem[_0xe2ed('0x5')](e,emitEvent(event));}}module[_0xe2ed('0x6')]=DashboardItemEvents;
\ No newline at end of file
+var _0x7764=['events','../../mysqldb','DashboardItem','setMaxListeners','save','update','emit','hasOwnProperty','hook'];(function(_0x5c854f,_0x557516){var _0x5e1f97=function(_0x524ecc){while(--_0x524ecc){_0x5c854f['push'](_0x5c854f['shift']());}};_0x5e1f97(++_0x557516);}(_0x7764,0x120));var _0x4776=function(_0x40bffc,_0x3a45d7){_0x40bffc=_0x40bffc-0x0;var _0x3007e9=_0x7764[_0x40bffc];return _0x3007e9;};'use strict';var EventEmitter=require(_0x4776('0x0'));var DashboardItem=require(_0x4776('0x1'))['db'][_0x4776('0x2')];var DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0x4776('0x3')](0x0);var events={'afterCreate':_0x4776('0x4'),'afterUpdate':_0x4776('0x5'),'afterDestroy':'remove'};function emitEvent(_0x5c4442){return function(_0x54c34c,_0x37c97a,_0x4150fa){DashboardItemEvents[_0x4776('0x6')](_0x5c4442+':'+_0x54c34c['id'],_0x54c34c);DashboardItemEvents[_0x4776('0x6')](_0x5c4442,_0x54c34c);_0x4150fa(null);};}for(var e in events){if(events[_0x4776('0x7')](e)){var event=events[e];DashboardItem[_0x4776('0x8')](e,emitEvent(event));}}module['exports']=DashboardItemEvents;
\ No newline at end of file