Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / user-setting / user-setting.events.js
index 098f7cc..1b0fe34 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3ecb=['save','emit','hasOwnProperty','exports','events','setMaxListeners'];(function(_0x92a6b4,_0x51c3a0){var _0x43e0f2=function(_0x3e6313){while(--_0x3e6313){_0x92a6b4['push'](_0x92a6b4['shift']());}};_0x43e0f2(++_0x51c3a0);}(_0x3ecb,0x1a2));var _0xb3ec=function(_0x32e7d6,_0x682bc5){_0x32e7d6=_0x32e7d6-0x0;var _0x5427cf=_0x3ecb[_0x32e7d6];return _0x5427cf;};'use strict';var EventEmitter=require(_0xb3ec('0x0'));var UserSetting=require('../../mysqldb')['db']['UserSetting'];var UserSettingEvents=new EventEmitter();UserSettingEvents[_0xb3ec('0x1')](0x0);var events={'afterCreate':_0xb3ec('0x2'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x4a8217){return function(_0x51a220,_0x219045,_0x39861d){UserSettingEvents[_0xb3ec('0x3')](_0x4a8217+':'+_0x51a220['id'],_0x51a220);UserSettingEvents[_0xb3ec('0x3')](_0x4a8217,_0x51a220);_0x39861d(null);};}for(var e in events){if(events[_0xb3ec('0x4')](e)){var event=events[e];UserSetting['hook'](e,emitEvent(event));}}module[_0xb3ec('0x5')]=UserSettingEvents;
\ No newline at end of file
+var _0x52a5=['save','update','remove','emit','hasOwnProperty','exports','events','../../mysqldb'];(function(_0x36ed48,_0x1ee0d4){var _0x51c63a=function(_0x2d0a40){while(--_0x2d0a40){_0x36ed48['push'](_0x36ed48['shift']());}};_0x51c63a(++_0x1ee0d4);}(_0x52a5,0xd6));var _0x552a=function(_0x51018d,_0xb6c4e8){_0x51018d=_0x51018d-0x0;var _0x132dfa=_0x52a5[_0x51018d];return _0x132dfa;};'use strict';var EventEmitter=require(_0x552a('0x0'));var UserSetting=require(_0x552a('0x1'))['db']['UserSetting'];var UserSettingEvents=new EventEmitter();UserSettingEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x552a('0x2'),'afterUpdate':_0x552a('0x3'),'afterDestroy':_0x552a('0x4')};function emitEvent(_0xabc24c){return function(_0x2c7d85,_0x54006d,_0x91d9b){UserSettingEvents[_0x552a('0x5')](_0xabc24c+':'+_0x2c7d85['id'],_0x2c7d85);UserSettingEvents[_0x552a('0x5')](_0xabc24c,_0x2c7d85);_0x91d9b(null);};}for(var e in events){if(events[_0x552a('0x6')](e)){var event=events[e];UserSetting['hook'](e,emitEvent(event));}}module[_0x552a('0x7')]=UserSettingEvents;
\ No newline at end of file