Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / userProfile / userProfile.events.js
index 9a44724..abb65cc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x09b9=['../../mysqldb','UserProfile','save','update','remove','emit','hook','exports'];(function(_0x1ebd07,_0x593879){var _0x30cde2=function(_0x5b34e3){while(--_0x5b34e3){_0x1ebd07['push'](_0x1ebd07['shift']());}};_0x30cde2(++_0x593879);}(_0x09b9,0x100));var _0x909b=function(_0x42bdb0,_0x1395ab){_0x42bdb0=_0x42bdb0-0x0;var _0x118c20=_0x09b9[_0x42bdb0];return _0x118c20;};'use strict';var EventEmitter=require('events');var UserProfile=require(_0x909b('0x0'))['db'][_0x909b('0x1')];var UserProfileEvents=new EventEmitter();UserProfileEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x909b('0x2'),'afterUpdate':_0x909b('0x3'),'afterDestroy':_0x909b('0x4')};function emitEvent(_0x3c3ec5){return function(_0x3e92d4,_0x14bfe9,_0x4c870b){UserProfileEvents[_0x909b('0x5')](_0x3c3ec5+':'+_0x3e92d4['id'],_0x3e92d4);UserProfileEvents[_0x909b('0x5')](_0x3c3ec5,_0x3e92d4);_0x4c870b(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserProfile[_0x909b('0x6')](e,emitEvent(event));}}module[_0x909b('0x7')]=UserProfileEvents;
\ No newline at end of file
+var _0x16ce=['exports','../../mysqldb','UserProfile','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook'];(function(_0x3aff33,_0x16cb91){var _0x9e3356=function(_0x3ad616){while(--_0x3ad616){_0x3aff33['push'](_0x3aff33['shift']());}};_0x9e3356(++_0x16cb91);}(_0x16ce,0xfb));var _0xe16c=function(_0x50dd6e,_0x193585){_0x50dd6e=_0x50dd6e-0x0;var _0x5611c2=_0x16ce[_0x50dd6e];return _0x5611c2;};'use strict';var EventEmitter=require('events');var UserProfile=require(_0xe16c('0x0'))['db'][_0xe16c('0x1')];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0xe16c('0x2')](0x0);var events={'afterCreate':_0xe16c('0x3'),'afterUpdate':_0xe16c('0x4'),'afterDestroy':_0xe16c('0x5')};function emitEvent(_0x546ed6){return function(_0x55c37e,_0x4a5fc8,_0x884769){UserProfileEvents['emit'](_0x546ed6+':'+_0x55c37e['id'],_0x55c37e);UserProfileEvents[_0xe16c('0x6')](_0x546ed6,_0x55c37e);_0x884769(null);};}for(var e in events){if(events[_0xe16c('0x7')](e)){var event=events[e];UserProfile[_0xe16c('0x8')](e,emitEvent(event));}}module[_0xe16c('0x9')]=UserProfileEvents;
\ No newline at end of file