Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / dashboardItem / dashboardItem.events.js
index 4f5ac01..7eb6103 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa2c5=['update','remove','emit','hasOwnProperty','events','../../mysqldb','DashboardItem','save'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xa2c5,0x10c));var _0x5a2c=function(_0x9dfc10,_0x19c2d5){_0x9dfc10=_0x9dfc10-0x0;var _0x4f938a=_0xa2c5[_0x9dfc10];return _0x4f938a;};'use strict';var EventEmitter=require(_0x5a2c('0x0'));var DashboardItem=require(_0x5a2c('0x1'))['db'][_0x5a2c('0x2')];var DashboardItemEvents=new EventEmitter();DashboardItemEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x5a2c('0x3'),'afterUpdate':_0x5a2c('0x4'),'afterDestroy':_0x5a2c('0x5')};function emitEvent(_0x25a74e){return function(_0x323167,_0x31b164,_0xfc2a4f){DashboardItemEvents[_0x5a2c('0x6')](_0x25a74e+':'+_0x323167['id'],_0x323167);DashboardItemEvents[_0x5a2c('0x6')](_0x25a74e,_0x323167);_0xfc2a4f(null);};}for(var e in events){if(events[_0x5a2c('0x7')](e)){var event=events[e];DashboardItem['hook'](e,emitEvent(event));}}module['exports']=DashboardItemEvents;
\ No newline at end of file
+var _0xfdc6=['remove','emit','exports','DashboardItem','setMaxListeners','update'];(function(_0x5f05cc,_0x445ef3){var _0x2e0b68=function(_0x29f952){while(--_0x29f952){_0x5f05cc['push'](_0x5f05cc['shift']());}};_0x2e0b68(++_0x445ef3);}(_0xfdc6,0xf3));var _0x6fdc=function(_0xea1bcd,_0x465e08){_0xea1bcd=_0xea1bcd-0x0;var _0xfbe4c6=_0xfdc6[_0xea1bcd];return _0xfbe4c6;};'use strict';var EventEmitter=require('events');var DashboardItem=require('../../mysqldb')['db'][_0x6fdc('0x0')];var DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0x6fdc('0x1')](0x0);var events={'afterCreate':'save','afterUpdate':_0x6fdc('0x2'),'afterDestroy':_0x6fdc('0x3')};function emitEvent(_0x239c81){return function(_0x339bce,_0x2be0db,_0x53235b){DashboardItemEvents[_0x6fdc('0x4')](_0x239c81+':'+_0x339bce['id'],_0x339bce);DashboardItemEvents['emit'](_0x239c81,_0x339bce);_0x53235b(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];DashboardItem['hook'](e,emitEvent(event));}}module[_0x6fdc('0x5')]=DashboardItemEvents;
\ No newline at end of file