Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / api / dashboardItem / dashboardItem.events.js
index f241312..367fb8e 100644 (file)
@@ -1 +1 @@
-const a176_0x3bca=['events','emit','remove','setMaxListeners','addHook','DashboardItem','exports','update'];(function(_0x50adfc,_0x3bcada){const _0x24a828=function(_0x578997){while(--_0x578997){_0x50adfc['push'](_0x50adfc['shift']());}};_0x24a828(++_0x3bcada);}(a176_0x3bca,0x112));const a176_0x24a8=function(_0x50adfc,_0x3bcada){_0x50adfc=_0x50adfc-0x0;let _0x24a828=a176_0x3bca[_0x50adfc];return _0x24a828;};const _0xfbeb82=a176_0x24a8;'use strict';const EventEmitter=require(_0xfbeb82('0x6')),DashboardItem=require('../../mysqldb')['db'][_0xfbeb82('0x3')],DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0xfbeb82('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0xfbeb82('0x5'),'afterDestroy':_0xfbeb82('0x0')};function emitEvent(_0x578997){return function(_0x41b8d4){const _0x4746d8=a176_0x24a8;DashboardItemEvents[_0x4746d8('0x7')](_0x578997+':'+_0x41b8d4['id'],_0x41b8d4),DashboardItemEvents[_0x4746d8('0x7')](_0x578997,_0x41b8d4);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];DashboardItem[_0xfbeb82('0x2')](e,emitEvent(event));}}module[_0xfbeb82('0x4')]=DashboardItemEvents;
\ No newline at end of file
+const a176_0x4c66=['exports','remove','setMaxListeners','emit','update','DashboardItem','addHook'];(function(_0x284026,_0x4c664b){const _0x1668da=function(_0x46976){while(--_0x46976){_0x284026['push'](_0x284026['shift']());}};_0x1668da(++_0x4c664b);}(a176_0x4c66,0xa6));const a176_0x1668=function(_0x284026,_0x4c664b){_0x284026=_0x284026-0x0;let _0x1668da=a176_0x4c66[_0x284026];return _0x1668da;};const _0x39306c=a176_0x1668;'use strict';const EventEmitter=require('events'),DashboardItem=require('../../mysqldb')['db'][_0x39306c('0x0')],DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0x39306c('0x4')](0x0);const events={'afterCreate':'save','afterUpdate':_0x39306c('0x6'),'afterDestroy':_0x39306c('0x3')};function emitEvent(_0x46976){return function(_0x292e03){const _0x5e2eb1=a176_0x1668;DashboardItemEvents[_0x5e2eb1('0x5')](_0x46976+':'+_0x292e03['id'],_0x292e03),DashboardItemEvents[_0x5e2eb1('0x5')](_0x46976,_0x292e03);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];DashboardItem[_0x39306c('0x1')](e,emitEvent(event));}}module[_0x39306c('0x2')]=DashboardItemEvents;
\ No newline at end of file