Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / user-setting / user-setting.events.js
index 2b2d257..eb5fa2c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5d99=['exports','events','../../mysqldb','UserSetting','setMaxListeners','update','emit','hook'];(function(_0x52b1b2,_0x357e8d){var _0x10f2a3=function(_0x3e0e93){while(--_0x3e0e93){_0x52b1b2['push'](_0x52b1b2['shift']());}};_0x10f2a3(++_0x357e8d);}(_0x5d99,0x1e9));var _0x95d9=function(_0x2c1114,_0x2a5c50){_0x2c1114=_0x2c1114-0x0;var _0x2b877c=_0x5d99[_0x2c1114];return _0x2b877c;};'use strict';var EventEmitter=require(_0x95d9('0x0'));var UserSetting=require(_0x95d9('0x1'))['db'][_0x95d9('0x2')];var UserSettingEvents=new EventEmitter();UserSettingEvents[_0x95d9('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x95d9('0x4'),'afterDestroy':'remove'};function emitEvent(_0x1e4740){return function(_0x1796c1,_0x291cec,_0x5e12a9){UserSettingEvents['emit'](_0x1e4740+':'+_0x1796c1['id'],_0x1796c1);UserSettingEvents[_0x95d9('0x5')](_0x1e4740,_0x1796c1);_0x5e12a9(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserSetting[_0x95d9('0x6')](e,emitEvent(event));}}module[_0x95d9('0x7')]=UserSettingEvents;
\ No newline at end of file
+var _0xeaa6=['remove','emit','hook','exports','events','../../mysqldb','UserSetting','update'];(function(_0xd1d19a,_0x1933f0){var _0x52a79d=function(_0x5199e2){while(--_0x5199e2){_0xd1d19a['push'](_0xd1d19a['shift']());}};_0x52a79d(++_0x1933f0);}(_0xeaa6,0xcc));var _0x6eaa=function(_0x46a388,_0x31706c){_0x46a388=_0x46a388-0x0;var _0x16b9ff=_0xeaa6[_0x46a388];return _0x16b9ff;};'use strict';var EventEmitter=require(_0x6eaa('0x0'));var UserSetting=require(_0x6eaa('0x1'))['db'][_0x6eaa('0x2')];var UserSettingEvents=new EventEmitter();UserSettingEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0x6eaa('0x3'),'afterDestroy':_0x6eaa('0x4')};function emitEvent(_0x3118c0){return function(_0x4aba0d,_0x5220e8,_0x2eb0b3){UserSettingEvents['emit'](_0x3118c0+':'+_0x4aba0d['id'],_0x4aba0d);UserSettingEvents[_0x6eaa('0x5')](_0x3118c0,_0x4aba0d);_0x2eb0b3(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserSetting[_0x6eaa('0x6')](e,emitEvent(event));}}module[_0x6eaa('0x7')]=UserSettingEvents;
\ No newline at end of file