Built motion from commit 20e1a16.|0.0.54
[motion.git] / server / api / team / team.controller.js
1 var _0x3a19=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x54\x65\x61\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x75\x73\x65\x72","\x73\x63\x6F\x70\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x55\x73\x65\x72\x73","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72"];_0x3a19[0];var _=require(_0x3a19[1]);var util=require(_0x3a19[2]);var Util=require(_0x3a19[3]);var Team=require(_0x3a19[5])[_0x3a19[4]];exports[_0x3a19[6]]=function(_0xf808x5,_0xf808x6){return Team[_0x3a19[16]](_0x3a19[15])[_0x3a19[14]](_[_0x3a19[13]](Util[_0x3a19[12]](_0xf808x5[_0x3a19[11]])))[_0x3a19[10]](function(_0xf808x8){_0xf808x6[_0x3a19[9]](200)[_0x3a19[8]](_0xf808x8)})[_0x3a19[7]](function(_0xf808x7){return handleError(_0xf808x6,_0xf808x7)})};exports[_0x3a19[17]]=function(_0xf808x5,_0xf808x6){return Team[_0x3a19[16]](_0x3a19[15])[_0x3a19[21]](_0xf808x5[_0x3a19[20]][_0x3a19[19]])[_0x3a19[10]](function(_0xf808x9){if(!_0xf808x9){return _0xf808x6[_0x3a19[18]](404)};return _0xf808x6[_0x3a19[8]](_0xf808x9)})[_0x3a19[7]](function(_0xf808x7){return handleError(_0xf808x6,_0xf808x7)})};exports[_0x3a19[22]]=function(_0xf808x5,_0xf808x6){return Team[_0x3a19[21]](_0xf808x5[_0x3a19[20]][_0x3a19[19]])[_0x3a19[10]](function(_0xf808x9){if(!_0xf808x9){return _0xf808x6[_0x3a19[18]](404)};return _0xf808x9[_0x3a19[27]]({where:{role:_0x3a19[23]},attributes:[_0x3a19[19],_0x3a19[24],_0x3a19[25],_0x3a19[26]]})})[_0x3a19[10]](function(_0xf808xa){return _0xf808x6[_0x3a19[9]](200)[_0x3a19[8]](_0xf808xa)})[_0x3a19[7]](function(_0xf808x7){return handleError(_0xf808x6,_0xf808x7)})};exports[_0x3a19[28]]=function(_0xf808x5,_0xf808x6){return Team[_0x3a19[28]](_0xf808x5[_0x3a19[29]])[_0x3a19[10]](function(_0xf808x9){return _0xf808x6[_0x3a19[9]](201)[_0x3a19[8]](_0xf808x9)})[_0x3a19[7]](function(_0xf808x7){return handleError(_0xf808x6,_0xf808x7)})};exports[_0x3a19[30]]=function(_0xf808x5,_0xf808x6){if(_0xf808x5[_0x3a19[29]][_0x3a19[19]]){delete _0xf808x5[_0x3a19[29]][_0x3a19[19]]};return Team[_0x3a19[21]](_0xf808x5[_0x3a19[20]][_0x3a19[19]])[_0x3a19[10]](function(_0xf808x9){if(!_0xf808x9){return _0xf808x6[_0x3a19[18]](404)};var _0xf808xb=_[_0x3a19[13]](_0xf808x9,_0xf808x5[_0x3a19[29]]);return _0xf808xb[_0x3a19[31]]()})[_0x3a19[10]](function(_0xf808x9){return _0xf808x6[_0x3a19[9]](200)[_0x3a19[8]](_0xf808x9)})[_0x3a19[7]](function(_0xf808x7){return handleError(_0xf808x6,_0xf808x7)})};exports[_0x3a19[32]]=function(_0xf808x5,_0xf808x6){return Team[_0x3a19[21]](_0xf808x5[_0x3a19[20]][_0x3a19[19]])[_0x3a19[10]](function(_0xf808x9){if(!_0xf808x9){return _0xf808x6[_0x3a19[18]](404)};return _0xf808x9[_0x3a19[32]]()})[_0x3a19[10]](function(){return _0xf808x6[_0x3a19[18]](204)})[_0x3a19[7]](function(_0xf808x7){return handleError(_0xf808x6,_0xf808x7)})};exports[_0x3a19[33]]=function(_0xf808x5,_0xf808x6){return Team[_0x3a19[32]]({where:{id:_0xf808x5[_0x3a19[11]][_0x3a19[34]]},individualHooks:true})[_0x3a19[10]](function(){return _0xf808x6[_0x3a19[18]](204)})[_0x3a19[7]](function(_0xf808x7){return handleError(_0xf808x6,_0xf808x7)})};exports[_0x3a19[35]]=function(_0xf808x5,_0xf808x6,_0xf808xc){return Team[_0x3a19[21]](_0xf808x5[_0x3a19[20]][_0x3a19[19]])[_0x3a19[10]](function(_0xf808x9){if(!_0xf808x9){return _0xf808x6[_0x3a19[18]](404)};return _0xf808x9[_0x3a19[37]](_0xf808x5[_0x3a19[29]][_0x3a19[36]])})[_0x3a19[10]](function(){return _0xf808x6[_0x3a19[18]](201)})[_0x3a19[7]](function(_0xf808x7){return _0xf808xc(_0xf808x7)})};exports[_0x3a19[38]]=function(_0xf808x5,_0xf808x6,_0xf808xc){return Team[_0x3a19[21]](_0xf808x5[_0x3a19[20]][_0x3a19[19]])[_0x3a19[10]](function(_0xf808x9){if(!_0xf808x9){return _0xf808x6[_0x3a19[18]](404)};return _0xf808x9[_0x3a19[39]](_0xf808x5[_0x3a19[11]][_0x3a19[36]])})[_0x3a19[10]](function(){return _0xf808x6[_0x3a19[18]](202)})[_0x3a19[7]](function(_0xf808x7){return _0xf808xc(_0xf808x7)})};function handleError(_0xf808x6,_0xf808x7){return _0xf808x6[_0x3a19[9]](500)[_0x3a19[8]](_0xf808x7)}