Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / user / user.events.js
index 7a6b1cf..4d1e9f6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2da6=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','User','setMaxListeners','save','update','remove'];(function(_0x324012,_0x23f45f){var _0x435cf2=function(_0x378a82){while(--_0x378a82){_0x324012['push'](_0x324012['shift']());}};_0x435cf2(++_0x23f45f);}(_0x2da6,0x1dd));var _0x62da=function(_0xe9ef38,_0x1a6d10){_0xe9ef38=_0xe9ef38-0x0;var _0x37e3d2=_0x2da6[_0xe9ef38];return _0x37e3d2;};'use strict';var EventEmitter=require(_0x62da('0x0'));var User=require(_0x62da('0x1'))['db'][_0x62da('0x2')];var UserEvents=new EventEmitter();UserEvents[_0x62da('0x3')](0x0);var events={'afterCreate':_0x62da('0x4'),'afterUpdate':_0x62da('0x5'),'afterDestroy':_0x62da('0x6')};function emitEvent(_0x3552dc){return function(_0x4c079d,_0x4a8428,_0xe28204){UserEvents[_0x62da('0x7')](_0x3552dc+':'+_0x4c079d['id'],_0x4c079d);UserEvents[_0x62da('0x7')](_0x3552dc,_0x4c079d);_0xe28204(null);};}for(var e in events){if(events[_0x62da('0x8')](e)){var event=events[e];User[_0x62da('0x9')](e,emitEvent(event));}}module[_0x62da('0xa')]=UserEvents;
\ No newline at end of file
+var _0x08e1=['exports','events','../../mysqldb','User','save','update','emit','hasOwnProperty','hook'];(function(_0x3594aa,_0x5b1b0b){var _0x38a186=function(_0x258d87){while(--_0x258d87){_0x3594aa['push'](_0x3594aa['shift']());}};_0x38a186(++_0x5b1b0b);}(_0x08e1,0xd9));var _0x108e=function(_0x1fb1c1,_0x4ebe69){_0x1fb1c1=_0x1fb1c1-0x0;var _0x1622df=_0x08e1[_0x1fb1c1];return _0x1622df;};'use strict';var EventEmitter=require(_0x108e('0x0'));var User=require(_0x108e('0x1'))['db'][_0x108e('0x2')];var UserEvents=new EventEmitter();UserEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x108e('0x3'),'afterUpdate':_0x108e('0x4'),'afterDestroy':'remove'};function emitEvent(_0x4ac872){return function(_0x5574e2,_0x5e2682,_0x4d66a){UserEvents[_0x108e('0x5')](_0x4ac872+':'+_0x5574e2['id'],_0x5574e2);UserEvents[_0x108e('0x5')](_0x4ac872,_0x5574e2);_0x4d66a(null);};}for(var e in events){if(events[_0x108e('0x6')](e)){var event=events[e];User[_0x108e('0x7')](e,emitEvent(event));}}module[_0x108e('0x8')]=UserEvents;
\ No newline at end of file