Built motion from commit 52def3a.|0.0.67
[motion.git] / server / api / team / team.controller.js
index 2843da4..82b66d6 100644 (file)
@@ -1 +1 @@
-var _0x3aa9=["\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","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x65\x61\x6D","\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","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x66\x61\x75\x6C\x74","\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","\x63\x72\x65\x61\x74\x65","\x68\x61\x6E\x64\x6C\x65\x55\x6E\x69\x71\x75\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x65\x72\x72\x6F\x72\x4D\x61\x6E\x61\x67\x65\x72","\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"];_0x3aa9[0];var _=require(_0x3aa9[1]);var util=require(_0x3aa9[2]);var Util=require(_0x3aa9[3]);var sequelize=require(_0x3aa9[5])[_0x3aa9[4]];var Team=require(_0x3aa9[5])[_0x3aa9[6]];var Agent=require(_0x3aa9[5])[_0x3aa9[7]];exports[_0x3aa9[8]]=function(_0x1925x7,_0x1925x8){return Team[_0x3aa9[18]](_0x3aa9[17])[_0x3aa9[16]](_[_0x3aa9[15]](Util[_0x3aa9[14]](_0x1925x7[_0x3aa9[13]])))[_0x3aa9[12]](function(_0x1925xa){_0x1925x8[_0x3aa9[11]](200)[_0x3aa9[10]](_0x1925xa)})[_0x3aa9[9]](function(_0x1925x9){return handleError(_0x1925x8,_0x1925x9)})};exports[_0x3aa9[19]]=function(_0x1925x7,_0x1925x8){return Team[_0x3aa9[18]](_0x3aa9[17])[_0x3aa9[23]](_0x1925x7[_0x3aa9[22]][_0x3aa9[21]])[_0x3aa9[12]](function(_0x1925xb){if(!_0x1925xb){return _0x1925x8[_0x3aa9[20]](404)};return _0x1925x8[_0x3aa9[10]](_0x1925xb)})[_0x3aa9[9]](function(_0x1925x9){return handleError(_0x1925x8,_0x1925x9)})};exports[_0x3aa9[24]]=function(_0x1925x7,_0x1925x8){return Team[_0x3aa9[18]](_0x3aa9[17])[_0x3aa9[23]](_0x1925x7[_0x3aa9[22]][_0x3aa9[21]])[_0x3aa9[12]](function(_0x1925xb){if(!_0x1925xb){return _0x1925x8[_0x3aa9[20]](404)};return _0x1925x8[_0x3aa9[11]](200)[_0x3aa9[10]](_0x1925xb.Users)})[_0x3aa9[9]](function(_0x1925x9){return handleError(_0x1925x8,_0x1925x9)})};exports[_0x3aa9[25]]=function(_0x1925x7,_0x1925x8){return Team[_0x3aa9[18]](_0x3aa9[17])[_0x3aa9[25]](_0x1925x7[_0x3aa9[28]])[_0x3aa9[12]](function(_0x1925xb){return _0x1925x8[_0x3aa9[11]](201)[_0x3aa9[10]](_0x1925xb)})[_0x3aa9[9]](sequelize.UniqueConstraintError,function(_0x1925x9){return Util[_0x3aa9[27]][_0x3aa9[26]](_0x1925x8,_0x1925x9)})[_0x3aa9[9]](function(_0x1925x9){return handleError(_0x1925x8,_0x1925x9)})};exports[_0x3aa9[29]]=function(_0x1925x7,_0x1925x8){if(_0x1925x7[_0x3aa9[28]][_0x3aa9[21]]){delete _0x1925x7[_0x3aa9[28]][_0x3aa9[21]]};return Team[_0x3aa9[23]](_0x1925x7[_0x3aa9[22]][_0x3aa9[21]])[_0x3aa9[12]](function(_0x1925xb){if(!_0x1925xb){return _0x1925x8[_0x3aa9[20]](404)};var _0x1925xc=_[_0x3aa9[15]](_0x1925xb,_0x1925x7[_0x3aa9[28]]);return _0x1925xc[_0x3aa9[30]]()})[_0x3aa9[12]](function(_0x1925xb){return _0x1925x8[_0x3aa9[11]](200)[_0x3aa9[10]](_0x1925xb)})[_0x3aa9[9]](function(_0x1925x9){return handleError(_0x1925x8,_0x1925x9)})};exports[_0x3aa9[31]]=function(_0x1925x7,_0x1925x8){return Team[_0x3aa9[23]](_0x1925x7[_0x3aa9[22]][_0x3aa9[21]])[_0x3aa9[12]](function(_0x1925xb){if(!_0x1925xb){return _0x1925x8[_0x3aa9[20]](404)};return _0x1925xb[_0x3aa9[31]]()})[_0x3aa9[12]](function(){return _0x1925x8[_0x3aa9[20]](204)})[_0x3aa9[9]](function(_0x1925x9){return handleError(_0x1925x8,_0x1925x9)})};exports[_0x3aa9[32]]=function(_0x1925x7,_0x1925x8){return Team[_0x3aa9[31]]({where:{id:_0x1925x7[_0x3aa9[13]][_0x3aa9[33]]},individualHooks:true})[_0x3aa9[12]](function(){return _0x1925x8[_0x3aa9[20]](204)})[_0x3aa9[9]](function(_0x1925x9){return handleError(_0x1925x8,_0x1925x9)})};exports[_0x3aa9[34]]=function(_0x1925x7,_0x1925x8,_0x1925xd){return Team[_0x3aa9[23]](_0x1925x7[_0x3aa9[22]][_0x3aa9[21]])[_0x3aa9[12]](function(_0x1925xb){if(!_0x1925xb){return _0x1925x8[_0x3aa9[20]](404)};return _0x1925xb[_0x3aa9[36]](_0x1925x7[_0x3aa9[28]][_0x3aa9[35]])})[_0x3aa9[12]](function(){return _0x1925x8[_0x3aa9[20]](201)})[_0x3aa9[9]](function(_0x1925x9){return _0x1925xd(_0x1925x9)})};exports[_0x3aa9[37]]=function(_0x1925x7,_0x1925x8,_0x1925xd){return Team[_0x3aa9[23]](_0x1925x7[_0x3aa9[22]][_0x3aa9[21]])[_0x3aa9[12]](function(_0x1925xb){if(!_0x1925xb){return _0x1925x8[_0x3aa9[20]](404)};return _0x1925xb[_0x3aa9[38]](_0x1925x7[_0x3aa9[13]][_0x3aa9[35]])})[_0x3aa9[12]](function(){return _0x1925x8[_0x3aa9[20]](202)})[_0x3aa9[9]](function(_0x1925x9){return _0x1925xd(_0x1925x9)})};function handleError(_0x1925x8,_0x1925x9){return _0x1925x8[_0x3aa9[11]](500)[_0x3aa9[10]](_0x1925x9)}
\ No newline at end of file
+var _0x1290=["\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","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x65\x61\x6D","\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","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x66\x61\x75\x6C\x74","\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","\x63\x72\x65\x61\x74\x65","\x68\x61\x6E\x64\x6C\x65\x55\x6E\x69\x71\x75\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x65\x72\x72\x6F\x72\x4D\x61\x6E\x61\x67\x65\x72","\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"];_0x1290[0];var _=require(_0x1290[1]);var util=require(_0x1290[2]);var Util=require(_0x1290[3]);var sequelize=require(_0x1290[5])[_0x1290[4]];var Team=require(_0x1290[5])[_0x1290[6]];var Agent=require(_0x1290[5])[_0x1290[7]];exports[_0x1290[8]]=function(_0x7cbcx7,_0x7cbcx8){return Team[_0x1290[18]](_0x1290[17])[_0x1290[16]](_[_0x1290[15]](Util[_0x1290[14]](_0x7cbcx7[_0x1290[13]])))[_0x1290[12]](function(_0x7cbcxa){_0x7cbcx8[_0x1290[11]](200)[_0x1290[10]](_0x7cbcxa)})[_0x1290[9]](function(_0x7cbcx9){return handleError(_0x7cbcx8,_0x7cbcx9)})};exports[_0x1290[19]]=function(_0x7cbcx7,_0x7cbcx8){return Team[_0x1290[18]](_0x1290[17])[_0x1290[23]](_0x7cbcx7[_0x1290[22]][_0x1290[21]])[_0x1290[12]](function(_0x7cbcxb){if(!_0x7cbcxb){return _0x7cbcx8[_0x1290[20]](404)};return _0x7cbcx8[_0x1290[10]](_0x7cbcxb)})[_0x1290[9]](function(_0x7cbcx9){return handleError(_0x7cbcx8,_0x7cbcx9)})};exports[_0x1290[24]]=function(_0x7cbcx7,_0x7cbcx8){return Team[_0x1290[18]](_0x1290[17])[_0x1290[23]](_0x7cbcx7[_0x1290[22]][_0x1290[21]])[_0x1290[12]](function(_0x7cbcxb){if(!_0x7cbcxb){return _0x7cbcx8[_0x1290[20]](404)};return _0x7cbcx8[_0x1290[11]](200)[_0x1290[10]](_0x7cbcxb.Users)})[_0x1290[9]](function(_0x7cbcx9){return handleError(_0x7cbcx8,_0x7cbcx9)})};exports[_0x1290[25]]=function(_0x7cbcx7,_0x7cbcx8){return Team[_0x1290[18]](_0x1290[17])[_0x1290[25]](_0x7cbcx7[_0x1290[28]])[_0x1290[12]](function(_0x7cbcxb){return _0x7cbcx8[_0x1290[11]](201)[_0x1290[10]](_0x7cbcxb)})[_0x1290[9]](sequelize.UniqueConstraintError,function(_0x7cbcx9){return Util[_0x1290[27]][_0x1290[26]](_0x7cbcx8,_0x7cbcx9)})[_0x1290[9]](function(_0x7cbcx9){return handleError(_0x7cbcx8,_0x7cbcx9)})};exports[_0x1290[29]]=function(_0x7cbcx7,_0x7cbcx8){if(_0x7cbcx7[_0x1290[28]][_0x1290[21]]){delete _0x7cbcx7[_0x1290[28]][_0x1290[21]]};return Team[_0x1290[23]](_0x7cbcx7[_0x1290[22]][_0x1290[21]])[_0x1290[12]](function(_0x7cbcxb){if(!_0x7cbcxb){return _0x7cbcx8[_0x1290[20]](404)};var _0x7cbcxc=_[_0x1290[15]](_0x7cbcxb,_0x7cbcx7[_0x1290[28]]);return _0x7cbcxc[_0x1290[30]]()})[_0x1290[12]](function(_0x7cbcxb){return _0x7cbcx8[_0x1290[11]](200)[_0x1290[10]](_0x7cbcxb)})[_0x1290[9]](function(_0x7cbcx9){return handleError(_0x7cbcx8,_0x7cbcx9)})};exports[_0x1290[31]]=function(_0x7cbcx7,_0x7cbcx8){return Team[_0x1290[23]](_0x7cbcx7[_0x1290[22]][_0x1290[21]])[_0x1290[12]](function(_0x7cbcxb){if(!_0x7cbcxb){return _0x7cbcx8[_0x1290[20]](404)};return _0x7cbcxb[_0x1290[31]]()})[_0x1290[12]](function(){return _0x7cbcx8[_0x1290[20]](204)})[_0x1290[9]](function(_0x7cbcx9){return handleError(_0x7cbcx8,_0x7cbcx9)})};exports[_0x1290[32]]=function(_0x7cbcx7,_0x7cbcx8){return Team[_0x1290[31]]({where:{id:_0x7cbcx7[_0x1290[13]][_0x1290[33]]},individualHooks:true})[_0x1290[12]](function(){return _0x7cbcx8[_0x1290[20]](204)})[_0x1290[9]](function(_0x7cbcx9){return handleError(_0x7cbcx8,_0x7cbcx9)})};exports[_0x1290[34]]=function(_0x7cbcx7,_0x7cbcx8,_0x7cbcxd){return Team[_0x1290[23]](_0x7cbcx7[_0x1290[22]][_0x1290[21]])[_0x1290[12]](function(_0x7cbcxb){if(!_0x7cbcxb){return _0x7cbcx8[_0x1290[20]](404)};return _0x7cbcxb[_0x1290[36]](_0x7cbcx7[_0x1290[28]][_0x1290[35]])})[_0x1290[12]](function(){return _0x7cbcx8[_0x1290[20]](201)})[_0x1290[9]](function(_0x7cbcx9){return _0x7cbcxd(_0x7cbcx9)})};exports[_0x1290[37]]=function(_0x7cbcx7,_0x7cbcx8,_0x7cbcxd){return Team[_0x1290[23]](_0x7cbcx7[_0x1290[22]][_0x1290[21]])[_0x1290[12]](function(_0x7cbcxb){if(!_0x7cbcxb){return _0x7cbcx8[_0x1290[20]](404)};return _0x7cbcxb[_0x1290[38]](_0x7cbcx7[_0x1290[13]][_0x1290[35]])})[_0x1290[12]](function(){return _0x7cbcx8[_0x1290[20]](202)})[_0x1290[9]](function(_0x7cbcx9){return _0x7cbcxd(_0x7cbcx9)})};function handleError(_0x7cbcx8,_0x7cbcx9){return _0x7cbcx8[_0x1290[11]](500)[_0x1290[10]](_0x7cbcx9)}
\ No newline at end of file