Built motion from commit 497d3d92.|2.5.43
[motion2.git] / server / api / team / team.events.js
index b7c0c6b..d938f72 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf52c=['exports','events','../../mysqldb','Team','setMaxListeners','save','emit','hasOwnProperty'];(function(_0x4c9b15,_0xa00fef){var _0x42655f=function(_0x158198){while(--_0x158198){_0x4c9b15['push'](_0x4c9b15['shift']());}};_0x42655f(++_0xa00fef);}(_0xf52c,0x179));var _0xcf52=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf52c[_0x3dd15e];return _0x231fd0;};'use strict';var EventEmitter=require(_0xcf52('0x0'));var Team=require(_0xcf52('0x1'))['db'][_0xcf52('0x2')];var TeamEvents=new EventEmitter();TeamEvents[_0xcf52('0x3')](0x0);var events={'afterCreate':_0xcf52('0x4'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x3e40fd){return function(_0x1561de,_0x5c88a7,_0x2dc27e){TeamEvents[_0xcf52('0x5')](_0x3e40fd+':'+_0x1561de['id'],_0x1561de);TeamEvents[_0xcf52('0x5')](_0x3e40fd,_0x1561de);_0x2dc27e(null);};}for(var e in events){if(events[_0xcf52('0x6')](e)){var event=events[e];Team['hook'](e,emitEvent(event));}}module[_0xcf52('0x7')]=TeamEvents;
\ No newline at end of file
+var _0x430d=['exports','events','../../mysqldb','Team','save','update','remove','emit','hasOwnProperty'];(function(_0x1da4e1,_0x4b753b){var _0x3c8633=function(_0x89d7cd){while(--_0x89d7cd){_0x1da4e1['push'](_0x1da4e1['shift']());}};_0x3c8633(++_0x4b753b);}(_0x430d,0x157));var _0xd430=function(_0x304fee,_0x2a4bc0){_0x304fee=_0x304fee-0x0;var _0x22c870=_0x430d[_0x304fee];return _0x22c870;};'use strict';var EventEmitter=require(_0xd430('0x0'));var Team=require(_0xd430('0x1'))['db'][_0xd430('0x2')];var TeamEvents=new EventEmitter();TeamEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xd430('0x3'),'afterUpdate':_0xd430('0x4'),'afterDestroy':_0xd430('0x5')};function emitEvent(_0x3a9e2e){return function(_0xa62442,_0x2ff68c,_0x3f0ce6){TeamEvents[_0xd430('0x6')](_0x3a9e2e+':'+_0xa62442['id'],_0xa62442);TeamEvents['emit'](_0x3a9e2e,_0xa62442);_0x3f0ce6(null);};}for(var e in events){if(events[_0xd430('0x7')](e)){var event=events[e];Team['hook'](e,emitEvent(event));}}module[_0xd430('0x8')]=TeamEvents;
\ No newline at end of file