Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / user / user.events.js
index 7628dfd..8bb5d5c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x89fb=['emit','hasOwnProperty','exports','../../mysqldb','User','setMaxListeners','save','update'];(function(_0x40db9a,_0x210b5c){var _0x49f14f=function(_0xcdf9f6){while(--_0xcdf9f6){_0x40db9a['push'](_0x40db9a['shift']());}};_0x49f14f(++_0x210b5c);}(_0x89fb,0x14b));var _0xb89f=function(_0x215c99,_0x485dc4){_0x215c99=_0x215c99-0x0;var _0x3d9122=_0x89fb[_0x215c99];return _0x3d9122;};'use strict';var EventEmitter=require('events');var User=require(_0xb89f('0x0'))['db'][_0xb89f('0x1')];var UserEvents=new EventEmitter();UserEvents[_0xb89f('0x2')](0x0);var events={'afterCreate':_0xb89f('0x3'),'afterUpdate':_0xb89f('0x4'),'afterDestroy':'remove'};function emitEvent(_0x358c4d){return function(_0xa626e8,_0x3d0629,_0x34c4ce){UserEvents[_0xb89f('0x5')](_0x358c4d+':'+_0xa626e8['id'],_0xa626e8);UserEvents['emit'](_0x358c4d,_0xa626e8);_0x34c4ce(null);};}for(var e in events){if(events[_0xb89f('0x6')](e)){var event=events[e];User['hook'](e,emitEvent(event));}}module[_0xb89f('0x7')]=UserEvents;
\ No newline at end of file
+var _0xfb67=['exports','events','../../mysqldb','User','setMaxListeners','save','update','remove','emit','hook'];(function(_0x3abb6c,_0x2765bb){var _0x4eb220=function(_0x436493){while(--_0x436493){_0x3abb6c['push'](_0x3abb6c['shift']());}};_0x4eb220(++_0x2765bb);}(_0xfb67,0xdd));var _0x7fb6=function(_0x3958f5,_0x38700f){_0x3958f5=_0x3958f5-0x0;var _0x20e1e0=_0xfb67[_0x3958f5];return _0x20e1e0;};'use strict';var EventEmitter=require(_0x7fb6('0x0'));var User=require(_0x7fb6('0x1'))['db'][_0x7fb6('0x2')];var UserEvents=new EventEmitter();UserEvents[_0x7fb6('0x3')](0x0);var events={'afterCreate':_0x7fb6('0x4'),'afterUpdate':_0x7fb6('0x5'),'afterDestroy':_0x7fb6('0x6')};function emitEvent(_0x5db5cf){return function(_0x40c3ce,_0x29dadc,_0x1c528e){UserEvents[_0x7fb6('0x7')](_0x5db5cf+':'+_0x40c3ce['id'],_0x40c3ce);UserEvents[_0x7fb6('0x7')](_0x5db5cf,_0x40c3ce);_0x1c528e(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];User[_0x7fb6('0x8')](e,emitEvent(event));}}module[_0x7fb6('0x9')]=UserEvents;
\ No newline at end of file