Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / dashboard / dashboard.events.js
index 7d3fc07..679c34b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1cce=['Dashboard','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','events','../../mysqldb'];(function(_0x274253,_0x259430){var _0x46179a=function(_0x5869cd){while(--_0x5869cd){_0x274253['push'](_0x274253['shift']());}};_0x46179a(++_0x259430);}(_0x1cce,0x80));var _0xe1cc=function(_0x53080e,_0x252127){_0x53080e=_0x53080e-0x0;var _0x1a0c14=_0x1cce[_0x53080e];return _0x1a0c14;};'use strict';var EventEmitter=require(_0xe1cc('0x0'));var Dashboard=require(_0xe1cc('0x1'))['db'][_0xe1cc('0x2')];var DashboardEvents=new EventEmitter();DashboardEvents[_0xe1cc('0x3')](0x0);var events={'afterCreate':_0xe1cc('0x4'),'afterUpdate':_0xe1cc('0x5'),'afterDestroy':_0xe1cc('0x6')};function emitEvent(_0x5c168b){return function(_0x5720e8,_0x434241,_0x5de6a9){DashboardEvents[_0xe1cc('0x7')](_0x5c168b+':'+_0x5720e8['id'],_0x5720e8);DashboardEvents[_0xe1cc('0x7')](_0x5c168b,_0x5720e8);_0x5de6a9(null);};}for(var e in events){if(events[_0xe1cc('0x8')](e)){var event=events[e];Dashboard[_0xe1cc('0x9')](e,emitEvent(event));}}module['exports']=DashboardEvents;
\ No newline at end of file
+var _0xf398=['hook','events','../../mysqldb','setMaxListeners','save','update','remove','emit'];(function(_0x1db251,_0xf0443d){var _0x56685a=function(_0x6ec6b7){while(--_0x6ec6b7){_0x1db251['push'](_0x1db251['shift']());}};_0x56685a(++_0xf0443d);}(_0xf398,0x181));var _0x8f39=function(_0x5324a2,_0x55f16c){_0x5324a2=_0x5324a2-0x0;var _0x4f9892=_0xf398[_0x5324a2];return _0x4f9892;};'use strict';var EventEmitter=require(_0x8f39('0x0'));var Dashboard=require(_0x8f39('0x1'))['db']['Dashboard'];var DashboardEvents=new EventEmitter();DashboardEvents[_0x8f39('0x2')](0x0);var events={'afterCreate':_0x8f39('0x3'),'afterUpdate':_0x8f39('0x4'),'afterDestroy':_0x8f39('0x5')};function emitEvent(_0x58d0fa){return function(_0x2c2360,_0x6337a,_0x79e024){DashboardEvents[_0x8f39('0x6')](_0x58d0fa+':'+_0x2c2360['id'],_0x2c2360);DashboardEvents[_0x8f39('0x6')](_0x58d0fa,_0x2c2360);_0x79e024(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];Dashboard[_0x8f39('0x7')](e,emitEvent(event));}}module['exports']=DashboardEvents;
\ No newline at end of file