Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / user / user.events.js
index e432e1c..a8a37a4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf73e=['remove','emit','exports','events','../../mysqldb','User','update'];(function(_0x142ca0,_0x2a12d9){var _0xb7484b=function(_0x4b6e60){while(--_0x4b6e60){_0x142ca0['push'](_0x142ca0['shift']());}};_0xb7484b(++_0x2a12d9);}(_0xf73e,0x9d));var _0xef73=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf73e[_0x3dd15e];return _0x231fd0;};'use strict';var EventEmitter=require(_0xef73('0x0'));var User=require(_0xef73('0x1'))['db'][_0xef73('0x2')];var UserEvents=new EventEmitter();UserEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0xef73('0x3'),'afterDestroy':_0xef73('0x4')};function emitEvent(_0x1612cc){return function(_0x4f105f,_0x54f677,_0x5d9439){UserEvents[_0xef73('0x5')](_0x1612cc+':'+_0x4f105f['id'],_0x4f105f);UserEvents[_0xef73('0x5')](_0x1612cc,_0x4f105f);_0x5d9439(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];User['hook'](e,emitEvent(event));}}module[_0xef73('0x6')]=UserEvents;
\ No newline at end of file
+var _0x37e8=['exports','events','../../mysqldb','User','setMaxListeners','update','emit','hasOwnProperty'];(function(_0x74552c,_0x51ce06){var _0xfc27d7=function(_0x1fa991){while(--_0x1fa991){_0x74552c['push'](_0x74552c['shift']());}};_0xfc27d7(++_0x51ce06);}(_0x37e8,0xc9));var _0x837e=function(_0x4de306,_0x9ac209){_0x4de306=_0x4de306-0x0;var _0x34c528=_0x37e8[_0x4de306];return _0x34c528;};'use strict';var EventEmitter=require(_0x837e('0x0'));var User=require(_0x837e('0x1'))['db'][_0x837e('0x2')];var UserEvents=new EventEmitter();UserEvents[_0x837e('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x837e('0x4'),'afterDestroy':'remove'};function emitEvent(_0x5ec6af){return function(_0x2f2a6e,_0x1f0054,_0x15b56b){UserEvents[_0x837e('0x5')](_0x5ec6af+':'+_0x2f2a6e['id'],_0x2f2a6e);UserEvents['emit'](_0x5ec6af,_0x2f2a6e);_0x15b56b(null);};}for(var e in events){if(events[_0x837e('0x6')](e)){var event=events[e];User['hook'](e,emitEvent(event));}}module[_0x837e('0x7')]=UserEvents;
\ No newline at end of file