Built motion from commit 57199c8.|0.0.38
[motion.git] / server / api / team / team.controller.js
1 var _0xa88f=["\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","\x55\x73\x65\x72","\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","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\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","\x6D\x65\x72\x67\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"];_0xa88f[0];var _=require(_0xa88f[1]);var util=require(_0xa88f[2]);var Util=require(_0xa88f[3]);var Team=require(_0xa88f[5])[_0xa88f[4]];var User=require(_0xa88f[5])[_0xa88f[6]];exports[_0xa88f[7]]=function(_0x8bddx6,_0x8bddx7){return Team[_0xa88f[14]](Util[_0xa88f[13]](_0x8bddx6[_0xa88f[12]]))[_0xa88f[11]](function(_0x8bddx9){_0x8bddx7[_0xa88f[10]](200)[_0xa88f[9]](_0x8bddx9)})[_0xa88f[8]](function(_0x8bddx8){return handleError(_0x8bddx7,_0x8bddx8)})};exports[_0xa88f[15]]=function(_0x8bddx6,_0x8bddx7){return Team[_0xa88f[19]](_0x8bddx6[_0xa88f[18]][_0xa88f[17]],{include:[User]})[_0xa88f[11]](function(_0x8bddxa){if(!_0x8bddxa){return _0x8bddx7[_0xa88f[16]](404)};return _0x8bddx7[_0xa88f[9]](_0x8bddxa);})[_0xa88f[8]](function(_0x8bddx8){return handleError(_0x8bddx7,_0x8bddx8)})};exports[_0xa88f[20]]=function(_0x8bddx6,_0x8bddx7){return Team[_0xa88f[19]](_0x8bddx6[_0xa88f[18]][_0xa88f[17]])[_0xa88f[11]](function(_0x8bddxa){if(!_0x8bddxa){return _0x8bddx7[_0xa88f[16]](404)};return _0x8bddxa[_0xa88f[25]]({where:{role:_0xa88f[21]},attributes:[_0xa88f[17],_0xa88f[22],_0xa88f[23],_0xa88f[24]]});})[_0xa88f[11]](function(_0x8bddxb){_0x8bddx7[_0xa88f[9]](_0x8bddxb)})[_0xa88f[8]](function(_0x8bddx8){return handleError(_0x8bddx7,_0x8bddx8)})};exports[_0xa88f[26]]=function(_0x8bddx6,_0x8bddx7){return Team[_0xa88f[26]](_0x8bddx6[_0xa88f[27]])[_0xa88f[11]](function(_0x8bddxa){return _0x8bddx7[_0xa88f[10]](201)[_0xa88f[9]](_0x8bddxa)})[_0xa88f[8]](function(_0x8bddx8){return handleError(_0x8bddx7,_0x8bddx8)})};exports[_0xa88f[28]]=function(_0x8bddx6,_0x8bddx7){if(_0x8bddx6[_0xa88f[27]][_0xa88f[17]]){delete _0x8bddx6[_0xa88f[27]][_0xa88f[17]]};return Team[_0xa88f[19]](_0x8bddx6[_0xa88f[18]][_0xa88f[17]])[_0xa88f[11]](function(_0x8bddxa){if(!_0x8bddxa){return _0x8bddx7[_0xa88f[16]](404)};var _0x8bddxc=_[_0xa88f[29]](_0x8bddxa,_0x8bddx6[_0xa88f[27]]);return _0x8bddxc[_0xa88f[30]]();})[_0xa88f[11]](function(_0x8bddxa){return _0x8bddx7[_0xa88f[10]](200)[_0xa88f[9]](_0x8bddxa)})[_0xa88f[8]](function(_0x8bddx8){return handleError(_0x8bddx7,_0x8bddx8)});};exports[_0xa88f[31]]=function(_0x8bddx6,_0x8bddx7){return Team[_0xa88f[19]](_0x8bddx6[_0xa88f[18]][_0xa88f[17]])[_0xa88f[11]](function(_0x8bddxa){if(!_0x8bddxa){return _0x8bddx7[_0xa88f[16]](404)};return _0x8bddxa[_0xa88f[31]]();})[_0xa88f[11]](function(){return _0x8bddx7[_0xa88f[16]](204)})[_0xa88f[8]](function(_0x8bddx8){return handleError(_0x8bddx7,_0x8bddx8)})};exports[_0xa88f[32]]=function(_0x8bddx6,_0x8bddx7){return Team[_0xa88f[31]]({where:{id:_0x8bddx6[_0xa88f[12]][_0xa88f[33]]},individualHooks:true})[_0xa88f[11]](function(){return _0x8bddx7[_0xa88f[16]](204)})[_0xa88f[8]](function(_0x8bddx8){return handleError(_0x8bddx7,_0x8bddx8)})};exports[_0xa88f[34]]=function(_0x8bddx6,_0x8bddx7,_0x8bddxd){return Team[_0xa88f[19]](_0x8bddx6[_0xa88f[18]][_0xa88f[17]])[_0xa88f[11]](function(_0x8bddxa){if(!_0x8bddxa){return _0x8bddx7[_0xa88f[16]](404)};return _0x8bddxa[_0xa88f[36]](_0x8bddx6[_0xa88f[27]][_0xa88f[35]]);})[_0xa88f[11]](function(){return _0x8bddx7[_0xa88f[16]](201)})[_0xa88f[8]](function(_0x8bddx8){return _0x8bddxd(_0x8bddx8)})};exports[_0xa88f[37]]=function(_0x8bddx6,_0x8bddx7,_0x8bddxd){return Team[_0xa88f[19]](_0x8bddx6[_0xa88f[18]][_0xa88f[17]])[_0xa88f[11]](function(_0x8bddxa){if(!_0x8bddxa){return _0x8bddx7[_0xa88f[16]](404)};return _0x8bddxa[_0xa88f[38]](_0x8bddx6[_0xa88f[12]][_0xa88f[21]]);})[_0xa88f[11]](function(){return _0x8bddx7[_0xa88f[16]](202)})[_0xa88f[8]](function(_0x8bddx8){return _0x8bddxd(_0x8bddx8)})};function handleError(_0x8bddx7,_0x8bddx8){return _0x8bddx7[_0xa88f[10]](500)[_0xa88f[9]](_0x8bddx8)}