Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / team / team.events.js
index b0e623c..cde9c69 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4dce=['hook','exports','events','Team','setMaxListeners','save','update','remove','emit','hasOwnProperty'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4dce,0x14c));var _0xe4dc=function(_0x481bf7,_0x437f69){_0x481bf7=_0x481bf7-0x0;var _0x461787=_0x4dce[_0x481bf7];return _0x461787;};'use strict';var EventEmitter=require(_0xe4dc('0x0'));var Team=require('../../mysqldb')['db'][_0xe4dc('0x1')];var TeamEvents=new EventEmitter();TeamEvents[_0xe4dc('0x2')](0x0);var events={'afterCreate':_0xe4dc('0x3'),'afterUpdate':_0xe4dc('0x4'),'afterDestroy':_0xe4dc('0x5')};function emitEvent(_0x20f918){return function(_0x12c51a,_0x5cb9bb,_0x58a5c5){TeamEvents[_0xe4dc('0x6')](_0x20f918+':'+_0x12c51a['id'],_0x12c51a);TeamEvents['emit'](_0x20f918,_0x12c51a);_0x58a5c5(null);};}for(var e in events){if(events[_0xe4dc('0x7')](e)){var event=events[e];Team[_0xe4dc('0x8')](e,emitEvent(event));}}module[_0xe4dc('0x9')]=TeamEvents;
\ No newline at end of file
+var _0x6be1=['emit','hasOwnProperty','hook','exports','events','Team','setMaxListeners','update','remove'];(function(_0x45f951,_0x2750c8){var _0x24756c=function(_0x31c931){while(--_0x31c931){_0x45f951['push'](_0x45f951['shift']());}};_0x24756c(++_0x2750c8);}(_0x6be1,0x1c6));var _0x16be=function(_0x506339,_0x55a013){_0x506339=_0x506339-0x0;var _0xae1f30=_0x6be1[_0x506339];return _0xae1f30;};'use strict';var EventEmitter=require(_0x16be('0x0'));var Team=require('../../mysqldb')['db'][_0x16be('0x1')];var TeamEvents=new EventEmitter();TeamEvents[_0x16be('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0x16be('0x3'),'afterDestroy':_0x16be('0x4')};function emitEvent(_0x8542d9){return function(_0x850c92,_0x158858,_0x4dce1a){TeamEvents[_0x16be('0x5')](_0x8542d9+':'+_0x850c92['id'],_0x850c92);TeamEvents[_0x16be('0x5')](_0x8542d9,_0x850c92);_0x4dce1a(null);};}for(var e in events){if(events[_0x16be('0x6')](e)){var event=events[e];Team[_0x16be('0x7')](e,emitEvent(event));}}module[_0x16be('0x8')]=TeamEvents;
\ No newline at end of file