Built motion from commit 497d3d92.|2.5.43
[motion2.git] / server / api / team / team.events.js
index 73f0b5e..d938f72 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x037a=['exports','events','../../mysqldb','Team','save','remove','emit','hasOwnProperty','hook'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x037a,0x1e7));var _0xa037=function(_0x142131,_0x42196d){_0x142131=_0x142131-0x0;var _0xbdc361=_0x037a[_0x142131];return _0xbdc361;};'use strict';var EventEmitter=require(_0xa037('0x0'));var Team=require(_0xa037('0x1'))['db'][_0xa037('0x2')];var TeamEvents=new EventEmitter();TeamEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xa037('0x3'),'afterUpdate':'update','afterDestroy':_0xa037('0x4')};function emitEvent(_0x5260d3){return function(_0x4a8325,_0x2a07d0,_0x7257fe){TeamEvents[_0xa037('0x5')](_0x5260d3+':'+_0x4a8325['id'],_0x4a8325);TeamEvents['emit'](_0x5260d3,_0x4a8325);_0x7257fe(null);};}for(var e in events){if(events[_0xa037('0x6')](e)){var event=events[e];Team[_0xa037('0x7')](e,emitEvent(event));}}module[_0xa037('0x8')]=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