Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / dashboardItem / dashboardItem.events.js
index 0349e88..9438b84 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4d23=['hasOwnProperty','hook','../../mysqldb','DashboardItem','setMaxListeners','save','update','remove'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4d23,0x82));var _0x34d2=function(_0x2f148f,_0x2d20e0){_0x2f148f=_0x2f148f-0x0;var _0x11a1b5=_0x4d23[_0x2f148f];return _0x11a1b5;};'use strict';var EventEmitter=require('events');var DashboardItem=require(_0x34d2('0x0'))['db'][_0x34d2('0x1')];var DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0x34d2('0x2')](0x0);var events={'afterCreate':_0x34d2('0x3'),'afterUpdate':_0x34d2('0x4'),'afterDestroy':_0x34d2('0x5')};function emitEvent(_0x416604){return function(_0x4035d9,_0x8a28cd,_0x321097){DashboardItemEvents['emit'](_0x416604+':'+_0x4035d9['id'],_0x4035d9);DashboardItemEvents['emit'](_0x416604,_0x4035d9);_0x321097(null);};}for(var e in events){if(events[_0x34d2('0x6')](e)){var event=events[e];DashboardItem[_0x34d2('0x7')](e,emitEvent(event));}}module['exports']=DashboardItemEvents;
\ No newline at end of file
+var _0xe8cc=['exports','setMaxListeners','save','emit','hook'];(function(_0x146ef3,_0x1c7bb0){var _0x5d9bae=function(_0x3b70f7){while(--_0x3b70f7){_0x146ef3['push'](_0x146ef3['shift']());}};_0x5d9bae(++_0x1c7bb0);}(_0xe8cc,0x1cd));var _0xce8c=function(_0x479515,_0x25ae1c){_0x479515=_0x479515-0x0;var _0x21214a=_0xe8cc[_0x479515];return _0x21214a;};'use strict';var EventEmitter=require('events');var DashboardItem=require('../../mysqldb')['db']['DashboardItem'];var DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0xce8c('0x0')](0x0);var events={'afterCreate':_0xce8c('0x1'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x1e7cd4){return function(_0x33fca3,_0x5f2af4,_0x1c995b){DashboardItemEvents[_0xce8c('0x2')](_0x1e7cd4+':'+_0x33fca3['id'],_0x33fca3);DashboardItemEvents[_0xce8c('0x2')](_0x1e7cd4,_0x33fca3);_0x1c995b(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];DashboardItem[_0xce8c('0x3')](e,emitEvent(event));}}module[_0xce8c('0x4')]=DashboardItemEvents;
\ No newline at end of file