Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / userProfile / userProfile.events.js
index 8f52d2a..d6703fc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4ccc=['setMaxListeners','update','remove','emit','hasOwnProperty','../../mysqldb'];(function(_0x35da42,_0x5c2610){var _0x370035=function(_0x546db5){while(--_0x546db5){_0x35da42['push'](_0x35da42['shift']());}};_0x370035(++_0x5c2610);}(_0x4ccc,0x19d));var _0xc4cc=function(_0x458ecc,_0x51d25){_0x458ecc=_0x458ecc-0x0;var _0x2dab38=_0x4ccc[_0x458ecc];return _0x2dab38;};'use strict';var EventEmitter=require('events');var UserProfile=require(_0xc4cc('0x0'))['db']['UserProfile'];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0xc4cc('0x1')](0x0);var events={'afterCreate':'save','afterUpdate':_0xc4cc('0x2'),'afterDestroy':_0xc4cc('0x3')};function emitEvent(_0xa4f570){return function(_0x2ab575,_0x17d567,_0x118719){UserProfileEvents[_0xc4cc('0x4')](_0xa4f570+':'+_0x2ab575['id'],_0x2ab575);UserProfileEvents[_0xc4cc('0x4')](_0xa4f570,_0x2ab575);_0x118719(null);};}for(var e in events){if(events[_0xc4cc('0x5')](e)){var event=events[e];UserProfile['hook'](e,emitEvent(event));}}module['exports']=UserProfileEvents;
\ No newline at end of file
+var _0x96fd=['setMaxListeners','save','remove','emit','hook','exports','../../mysqldb'];(function(_0x506cbf,_0xb7e1d8){var _0x5513f1=function(_0x25a9c4){while(--_0x25a9c4){_0x506cbf['push'](_0x506cbf['shift']());}};_0x5513f1(++_0xb7e1d8);}(_0x96fd,0x1e9));var _0xd96f=function(_0x4624d3,_0x329cb9){_0x4624d3=_0x4624d3-0x0;var _0x40678e=_0x96fd[_0x4624d3];return _0x40678e;};'use strict';var EventEmitter=require('events');var UserProfile=require(_0xd96f('0x0'))['db']['UserProfile'];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0xd96f('0x1')](0x0);var events={'afterCreate':_0xd96f('0x2'),'afterUpdate':'update','afterDestroy':_0xd96f('0x3')};function emitEvent(_0x110958){return function(_0x44f63c,_0x22b39b,_0x5d8681){UserProfileEvents[_0xd96f('0x4')](_0x110958+':'+_0x44f63c['id'],_0x44f63c);UserProfileEvents[_0xd96f('0x4')](_0x110958,_0x44f63c);_0x5d8681(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserProfile[_0xd96f('0x5')](e,emitEvent(event));}}module[_0xd96f('0x6')]=UserProfileEvents;
\ No newline at end of file