Built motion from commit (unavailable).|2.5.15
[motion2.git] / server / api / dashboardItem / dashboardItem.events.js
index bf81548..e75b40d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x24c5=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','DashboardItem','save','update'];(function(_0xef1d3f,_0x266cd4){var _0x4bf4bd=function(_0x57ee29){while(--_0x57ee29){_0xef1d3f['push'](_0xef1d3f['shift']());}};_0x4bf4bd(++_0x266cd4);}(_0x24c5,0x91));var _0x524c=function(_0x1153ed,_0x54a75e){_0x1153ed=_0x1153ed-0x0;var _0x45349a=_0x24c5[_0x1153ed];return _0x45349a;};'use strict';var EventEmitter=require(_0x524c('0x0'));var DashboardItem=require(_0x524c('0x1'))['db'][_0x524c('0x2')];var DashboardItemEvents=new EventEmitter();DashboardItemEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x524c('0x3'),'afterUpdate':_0x524c('0x4'),'afterDestroy':_0x524c('0x5')};function emitEvent(_0x28e210){return function(_0x3599d7,_0x3c69dd,_0x2ac5db){DashboardItemEvents[_0x524c('0x6')](_0x28e210+':'+_0x3599d7['id'],_0x3599d7);DashboardItemEvents[_0x524c('0x6')](_0x28e210,_0x3599d7);_0x2ac5db(null);};}for(var e in events){if(events[_0x524c('0x7')](e)){var event=events[e];DashboardItem[_0x524c('0x8')](e,emitEvent(event));}}module[_0x524c('0x9')]=DashboardItemEvents;
\ No newline at end of file
+var _0x1caf=['exports','events','DashboardItem','remove','emit','hook'];(function(_0xf9c1d,_0x22129b){var _0x53a527=function(_0xacdd5c){while(--_0xacdd5c){_0xf9c1d['push'](_0xf9c1d['shift']());}};_0x53a527(++_0x22129b);}(_0x1caf,0x1e1));var _0xf1ca=function(_0x55e08b,_0x421620){_0x55e08b=_0x55e08b-0x0;var _0xd1a7ff=_0x1caf[_0x55e08b];return _0xd1a7ff;};'use strict';var EventEmitter=require(_0xf1ca('0x0'));var DashboardItem=require('../../mysqldb')['db'][_0xf1ca('0x1')];var DashboardItemEvents=new EventEmitter();DashboardItemEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0xf1ca('0x2')};function emitEvent(_0x4c6608){return function(_0x14851b,_0x5a1889,_0x54b227){DashboardItemEvents['emit'](_0x4c6608+':'+_0x14851b['id'],_0x14851b);DashboardItemEvents[_0xf1ca('0x3')](_0x4c6608,_0x14851b);_0x54b227(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];DashboardItem[_0xf1ca('0x4')](e,emitEvent(event));}}module[_0xf1ca('0x5')]=DashboardItemEvents;
\ No newline at end of file