Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / userProfile / userProfile.events.js
index a3202c1..8f52d2a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x20f8=['../../mysqldb','UserProfile','setMaxListeners','save','update','emit','hasOwnProperty','events'];(function(_0x2b4a9b,_0x192db0){var _0x34fd4d=function(_0x23983e){while(--_0x23983e){_0x2b4a9b['push'](_0x2b4a9b['shift']());}};_0x34fd4d(++_0x192db0);}(_0x20f8,0x1bf));var _0x820f=function(_0x429a48,_0x170fb7){_0x429a48=_0x429a48-0x0;var _0x301f89=_0x20f8[_0x429a48];return _0x301f89;};'use strict';var EventEmitter=require(_0x820f('0x0'));var UserProfile=require(_0x820f('0x1'))['db'][_0x820f('0x2')];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0x820f('0x3')](0x0);var events={'afterCreate':_0x820f('0x4'),'afterUpdate':_0x820f('0x5'),'afterDestroy':'remove'};function emitEvent(_0x1e10ec){return function(_0x53bb40,_0x2bc004,_0x314d67){UserProfileEvents[_0x820f('0x6')](_0x1e10ec+':'+_0x53bb40['id'],_0x53bb40);UserProfileEvents['emit'](_0x1e10ec,_0x53bb40);_0x314d67(null);};}for(var e in events){if(events[_0x820f('0x7')](e)){var event=events[e];UserProfile['hook'](e,emitEvent(event));}}module['exports']=UserProfileEvents;
\ No newline at end of file
+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