Built motion from commit 0c27b27.|1.0.11
[motion.git] / server / api / team / team.controller.js
index c9f8ecb..b184c25 100644 (file)
@@ -1 +1 @@
-var _0xce45=["\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","\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x73\x49\x6E\x64\x65\x78","\x6C\x65\x6E\x67\x74\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x67\x65\x6E\x74\x73","\x72\x6F\x77\x73","\x69\x64","\x6D\x61\x70","\x67\x65\x74\x41\x67\x65\x6E\x74\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x70\x61\x72\x61\x6D\x73","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x55\x73\x65\x72\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\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"];_0xce45[0];var _=require(_0xce45[1]);var util=require(_0xce45[2]);var Util=require(_0xce45[3]);var sequelize=require(_0xce45[5])[_0xce45[4]];var Team=require(_0xce45[5])[_0xce45[6]];var Agent=require(_0xce45[5])[_0xce45[7]];var User=require(_0xce45[5])[_0xce45[7]];exports[_0xce45[8]]=function(_0x6eb2x8,_0x6eb2x9){return Team[_0xce45[18]](_0xce45[17])[_0xce45[16]](_[_0xce45[15]](Util[_0xce45[14]](_0x6eb2x8[_0xce45[13]])))[_0xce45[12]](function(_0x6eb2xb){_0x6eb2x9[_0xce45[11]](200)[_0xce45[10]](_0x6eb2xb)})[_0xce45[9]](function(_0x6eb2xa){return handleError(_0x6eb2x9,_0x6eb2xa)})};exports[_0xce45[19]]=function(_0x6eb2x8,_0x6eb2x9){switch(_0x6eb2x8[_0xce45[28]][_0xce45[30]]){case _0xce45[28]:return User[_0xce45[29]](_0x6eb2x8[_0xce45[28]][_0xce45[24]])[_0xce45[12]](function(_0x6eb2xd){if(!_0x6eb2xd){return _0x6eb2x9[_0xce45[27]](404)};return _0x6eb2xd})[_0xce45[12]](Util[_0xce45[26]](_0x6eb2x8[_0xce45[13]]))[_0xce45[12]](function(_0x6eb2xc){return Team[_0xce45[18]]({method:[_0xce45[22],_[_0xce45[25]](_0x6eb2xc[_0xce45[23]],_0xce45[24])]})[_0xce45[21]](_[_0xce45[15]](Util[_0xce45[14]](_0x6eb2x8[_0xce45[13]])))})[_0xce45[12]](function(_0x6eb2xb){_0x6eb2x9[_0xce45[11]](200)[_0xce45[10]]({rows:_0x6eb2xb,count:_0x6eb2xb[_0xce45[20]]})})[_0xce45[9]](function(_0x6eb2xa){return handleError(_0x6eb2x9,_0x6eb2xa)});default:return Team[_0xce45[18]](_0xce45[22])[_0xce45[21]](_[_0xce45[15]](Util[_0xce45[14]](_0x6eb2x8[_0xce45[13]])))[_0xce45[12]](function(_0x6eb2xb){_0x6eb2x9[_0xce45[11]](200)[_0xce45[10]]({rows:_0x6eb2xb,count:_0x6eb2xb[_0xce45[20]]})})[_0xce45[9]](function(_0x6eb2xa){return handleError(_0x6eb2x9,_0x6eb2xa)})}};exports[_0xce45[31]]=function(_0x6eb2x8,_0x6eb2x9){return Team[_0xce45[29]](_0x6eb2x8[_0xce45[32]][_0xce45[24]])[_0xce45[12]](function(_0x6eb2xe){if(!_0x6eb2xe){return _0x6eb2x9[_0xce45[27]](404)};return _0x6eb2x9[_0xce45[10]](_0x6eb2xe)})[_0xce45[9]](function(_0x6eb2xa){return handleError(_0x6eb2x9,_0x6eb2xa)})};exports[_0xce45[33]]=function(_0x6eb2x8,_0x6eb2x9){switch(_0x6eb2x8[_0xce45[28]][_0xce45[30]]){case _0xce45[28]:return User[_0xce45[29]](_0x6eb2x8[_0xce45[28]][_0xce45[24]])[_0xce45[12]](function(_0x6eb2xd){if(!_0x6eb2xd){return _0x6eb2x9[_0xce45[27]](404)};return _0x6eb2xd})[_0xce45[12]](Util[_0xce45[26]](_0x6eb2x8[_0xce45[13]]))[_0xce45[12]](function(_0x6eb2xc){return Team[_0xce45[18]]({method:[_0xce45[22],_[_0xce45[25]](_0x6eb2xc[_0xce45[23]],_0xce45[24])]})[_0xce45[29]](_0x6eb2x8[_0xce45[32]][_0xce45[24]])})[_0xce45[12]](function(_0x6eb2xe){if(!_0x6eb2xe){return _0x6eb2x9[_0xce45[27]](404)};return _0x6eb2x9[_0xce45[11]](200)[_0xce45[10]]({count:_0x6eb2xe[_0xce45[34]][_0xce45[20]],rows:_0x6eb2xe[_0xce45[34]]})})[_0xce45[9]](function(_0x6eb2xa){return handleError(_0x6eb2x9,_0x6eb2xa)});default:return Team[_0xce45[18]](_0xce45[22])[_0xce45[29]](_0x6eb2x8[_0xce45[32]][_0xce45[24]])[_0xce45[12]](function(_0x6eb2xe){if(!_0x6eb2xe){return _0x6eb2x9[_0xce45[27]](404)};return _0x6eb2x9[_0xce45[11]](200)[_0xce45[10]]({count:_0x6eb2xe[_0xce45[34]][_0xce45[20]],rows:_0x6eb2xe[_0xce45[34]]})})[_0xce45[9]](function(_0x6eb2xa){return handleError(_0x6eb2x9,_0x6eb2xa)})}};exports[_0xce45[35]]=function(_0x6eb2x8,_0x6eb2x9){return Team[_0xce45[35]](_0x6eb2x8[_0xce45[38]])[_0xce45[12]](function(_0x6eb2xe){return _0x6eb2x9[_0xce45[11]](201)[_0xce45[10]](_0x6eb2xe)})[_0xce45[9]](sequelize.UniqueConstraintError,function(_0x6eb2xa){return Util[_0xce45[37]][_0xce45[36]](_0x6eb2x9,_0x6eb2xa)})[_0xce45[9]](function(_0x6eb2xa){return handleError(_0x6eb2x9,_0x6eb2xa)})};exports[_0xce45[39]]=function(_0x6eb2x8,_0x6eb2x9){if(_0x6eb2x8[_0xce45[38]][_0xce45[24]]){delete _0x6eb2x8[_0xce45[38]][_0xce45[24]]};return Team[_0xce45[29]](_0x6eb2x8[_0xce45[32]][_0xce45[24]])[_0xce45[12]](function(_0x6eb2xe){if(!_0x6eb2xe){return _0x6eb2x9[_0xce45[27]](404)};var _0x6eb2xf=_[_0xce45[15]](_0x6eb2xe,_0x6eb2x8[_0xce45[38]]);return _0x6eb2xf[_0xce45[40]]()})[_0xce45[12]](function(_0x6eb2xe){return _0x6eb2x9[_0xce45[11]](200)[_0xce45[10]](_0x6eb2xe)})[_0xce45[9]](function(_0x6eb2xa){return handleError(_0x6eb2x9,_0x6eb2xa)})};exports[_0xce45[41]]=function(_0x6eb2x8,_0x6eb2x9){return Team[_0xce45[29]](_0x6eb2x8[_0xce45[32]][_0xce45[24]])[_0xce45[12]](function(_0x6eb2xe){if(!_0x6eb2xe){return _0x6eb2x9[_0xce45[27]](404)};return _0x6eb2xe[_0xce45[41]]()})[_0xce45[12]](function(){return _0x6eb2x9[_0xce45[27]](204)})[_0xce45[9]](function(_0x6eb2xa){return handleError(_0x6eb2x9,_0x6eb2xa)})};exports[_0xce45[42]]=function(_0x6eb2x8,_0x6eb2x9){return Team[_0xce45[41]]({where:{id:_0x6eb2x8[_0xce45[13]][_0xce45[43]]},individualHooks:true})[_0xce45[12]](function(){return _0x6eb2x9[_0xce45[27]](204)})[_0xce45[9]](function(_0x6eb2xa){return handleError(_0x6eb2x9,_0x6eb2xa)})};exports[_0xce45[44]]=function(_0x6eb2x8,_0x6eb2x9,_0x6eb2x10){return Team[_0xce45[29]](_0x6eb2x8[_0xce45[32]][_0xce45[24]])[_0xce45[12]](function(_0x6eb2xe){if(!_0x6eb2xe){return _0x6eb2x9[_0xce45[27]](404)};return _0x6eb2xe[_0xce45[45]](_0x6eb2x8[_0xce45[38]][_0xce45[22]])})[_0xce45[12]](function(){return _0x6eb2x9[_0xce45[27]](204)})[_0xce45[9]](function(_0x6eb2xa){return _0x6eb2x10(_0x6eb2xa)})};exports[_0xce45[46]]=function(_0x6eb2x8,_0x6eb2x9,_0x6eb2x10){return Team[_0xce45[29]](_0x6eb2x8[_0xce45[32]][_0xce45[24]])[_0xce45[12]](function(_0x6eb2xe){if(!_0x6eb2xe){return _0x6eb2x9[_0xce45[27]](404)};return _0x6eb2xe[_0xce45[47]](_0x6eb2x8[_0xce45[13]][_0xce45[22]])})[_0xce45[12]](function(){return _0x6eb2x9[_0xce45[27]](202)})[_0xce45[9]](function(_0x6eb2xa){return _0x6eb2x10(_0x6eb2xa)})};function handleError(_0x6eb2x9,_0x6eb2xa){return _0x6eb2x9[_0xce45[11]](500)[_0xce45[10]](_0x6eb2xa)}
\ No newline at end of file
+var _0xd769=["\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","\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x73\x49\x6E\x64\x65\x78","\x6C\x65\x6E\x67\x74\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x67\x65\x6E\x74\x73","\x72\x6F\x77\x73","\x69\x64","\x6D\x61\x70","\x67\x65\x74\x41\x67\x65\x6E\x74\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x70\x61\x72\x61\x6D\x73","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x55\x73\x65\x72\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\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"];_0xd769[0];var _=require(_0xd769[1]);var util=require(_0xd769[2]);var Util=require(_0xd769[3]);var sequelize=require(_0xd769[5])[_0xd769[4]];var Team=require(_0xd769[5])[_0xd769[6]];var Agent=require(_0xd769[5])[_0xd769[7]];var User=require(_0xd769[5])[_0xd769[7]];exports[_0xd769[8]]= function(_0xa282x8,_0xa282x9){return Team[_0xd769[18]](_0xd769[17])[_0xd769[16]](_[_0xd769[15]](Util[_0xd769[14]](_0xa282x8[_0xd769[13]])))[_0xd769[12]](function(_0xa282xb){_0xa282x9[_0xd769[11]](200)[_0xd769[10]](_0xa282xb)})[_0xd769[9]](function(_0xa282xa){return handleError(_0xa282x9,_0xa282xa)})};exports[_0xd769[19]]= function(_0xa282x8,_0xa282x9){switch(_0xa282x8[_0xd769[28]][_0xd769[30]]){case _0xd769[28]:return User[_0xd769[29]](_0xa282x8[_0xd769[28]][_0xd769[24]])[_0xd769[12]](function(_0xa282xd){if(!_0xa282xd){return _0xa282x9[_0xd769[27]](404)};return _0xa282xd})[_0xd769[12]](Util[_0xd769[26]](_0xa282x8[_0xd769[13]]))[_0xd769[12]](function(_0xa282xc){return Team[_0xd769[18]]({method:[_0xd769[22],_[_0xd769[25]](_0xa282xc[_0xd769[23]],_0xd769[24])]})[_0xd769[21]](_[_0xd769[15]](Util[_0xd769[14]](_0xa282x8[_0xd769[13]])))})[_0xd769[12]](function(_0xa282xb){_0xa282x9[_0xd769[11]](200)[_0xd769[10]]({rows:_0xa282xb,count:_0xa282xb[_0xd769[20]]})})[_0xd769[9]](function(_0xa282xa){return handleError(_0xa282x9,_0xa282xa)});default:return Team[_0xd769[18]](_0xd769[22])[_0xd769[21]](_[_0xd769[15]](Util[_0xd769[14]](_0xa282x8[_0xd769[13]])))[_0xd769[12]](function(_0xa282xb){_0xa282x9[_0xd769[11]](200)[_0xd769[10]]({rows:_0xa282xb,count:_0xa282xb[_0xd769[20]]})})[_0xd769[9]](function(_0xa282xa){return handleError(_0xa282x9,_0xa282xa)})}};exports[_0xd769[31]]= function(_0xa282x8,_0xa282x9){return Team[_0xd769[29]](_0xa282x8[_0xd769[32]][_0xd769[24]])[_0xd769[12]](function(_0xa282xe){if(!_0xa282xe){return _0xa282x9[_0xd769[27]](404)};return _0xa282x9[_0xd769[10]](_0xa282xe)})[_0xd769[9]](function(_0xa282xa){return handleError(_0xa282x9,_0xa282xa)})};exports[_0xd769[33]]= function(_0xa282x8,_0xa282x9){switch(_0xa282x8[_0xd769[28]][_0xd769[30]]){case _0xd769[28]:return User[_0xd769[29]](_0xa282x8[_0xd769[28]][_0xd769[24]])[_0xd769[12]](function(_0xa282xd){if(!_0xa282xd){return _0xa282x9[_0xd769[27]](404)};return _0xa282xd})[_0xd769[12]](Util[_0xd769[26]](_0xa282x8[_0xd769[13]]))[_0xd769[12]](function(_0xa282xc){return Team[_0xd769[18]]({method:[_0xd769[22],_[_0xd769[25]](_0xa282xc[_0xd769[23]],_0xd769[24])]})[_0xd769[29]](_0xa282x8[_0xd769[32]][_0xd769[24]])})[_0xd769[12]](function(_0xa282xe){if(!_0xa282xe){return _0xa282x9[_0xd769[27]](404)};return _0xa282x9[_0xd769[11]](200)[_0xd769[10]]({count:_0xa282xe[_0xd769[34]][_0xd769[20]],rows:_0xa282xe[_0xd769[34]]})})[_0xd769[9]](function(_0xa282xa){return handleError(_0xa282x9,_0xa282xa)});default:return Team[_0xd769[18]](_0xd769[22])[_0xd769[29]](_0xa282x8[_0xd769[32]][_0xd769[24]])[_0xd769[12]](function(_0xa282xe){if(!_0xa282xe){return _0xa282x9[_0xd769[27]](404)};return _0xa282x9[_0xd769[11]](200)[_0xd769[10]]({count:_0xa282xe[_0xd769[34]][_0xd769[20]],rows:_0xa282xe[_0xd769[34]]})})[_0xd769[9]](function(_0xa282xa){return handleError(_0xa282x9,_0xa282xa)})}};exports[_0xd769[35]]= function(_0xa282x8,_0xa282x9){return Team[_0xd769[35]](_0xa282x8[_0xd769[38]])[_0xd769[12]](function(_0xa282xe){return _0xa282x9[_0xd769[11]](201)[_0xd769[10]](_0xa282xe)})[_0xd769[9]](sequelize.UniqueConstraintError,function(_0xa282xa){return Util[_0xd769[37]][_0xd769[36]](_0xa282x9,_0xa282xa)})[_0xd769[9]](function(_0xa282xa){return handleError(_0xa282x9,_0xa282xa)})};exports[_0xd769[39]]= function(_0xa282x8,_0xa282x9){if(_0xa282x8[_0xd769[38]][_0xd769[24]]){delete _0xa282x8[_0xd769[38]][_0xd769[24]]};return Team[_0xd769[29]](_0xa282x8[_0xd769[32]][_0xd769[24]])[_0xd769[12]](function(_0xa282xe){if(!_0xa282xe){return _0xa282x9[_0xd769[27]](404)};var _0xa282xf=_[_0xd769[15]](_0xa282xe,_0xa282x8[_0xd769[38]]);return _0xa282xf[_0xd769[40]]()})[_0xd769[12]](function(_0xa282xe){return _0xa282x9[_0xd769[11]](200)[_0xd769[10]](_0xa282xe)})[_0xd769[9]](function(_0xa282xa){return handleError(_0xa282x9,_0xa282xa)})};exports[_0xd769[41]]= function(_0xa282x8,_0xa282x9){return Team[_0xd769[29]](_0xa282x8[_0xd769[32]][_0xd769[24]])[_0xd769[12]](function(_0xa282xe){if(!_0xa282xe){return _0xa282x9[_0xd769[27]](404)};return _0xa282xe[_0xd769[41]]()})[_0xd769[12]](function(){return _0xa282x9[_0xd769[27]](204)})[_0xd769[9]](function(_0xa282xa){return handleError(_0xa282x9,_0xa282xa)})};exports[_0xd769[42]]= function(_0xa282x8,_0xa282x9){return Team[_0xd769[41]]({where:{id:_0xa282x8[_0xd769[13]][_0xd769[43]]},individualHooks:true})[_0xd769[12]](function(){return _0xa282x9[_0xd769[27]](204)})[_0xd769[9]](function(_0xa282xa){return handleError(_0xa282x9,_0xa282xa)})};exports[_0xd769[44]]= function(_0xa282x8,_0xa282x9,_0xa282x10){return Team[_0xd769[29]](_0xa282x8[_0xd769[32]][_0xd769[24]])[_0xd769[12]](function(_0xa282xe){if(!_0xa282xe){return _0xa282x9[_0xd769[27]](404)};return _0xa282xe[_0xd769[45]](_0xa282x8[_0xd769[38]][_0xd769[22]])})[_0xd769[12]](function(){return _0xa282x9[_0xd769[27]](204)})[_0xd769[9]](function(_0xa282xa){return _0xa282x10(_0xa282xa)})};exports[_0xd769[46]]= function(_0xa282x8,_0xa282x9,_0xa282x10){return Team[_0xd769[29]](_0xa282x8[_0xd769[32]][_0xd769[24]])[_0xd769[12]](function(_0xa282xe){if(!_0xa282xe){return _0xa282x9[_0xd769[27]](404)};return _0xa282xe[_0xd769[47]](_0xa282x8[_0xd769[13]][_0xd769[22]])})[_0xd769[12]](function(){return _0xa282x9[_0xd769[27]](202)})[_0xd769[9]](function(_0xa282xa){return _0xa282x10(_0xa282xa)})};function handleError(_0xa282x9,_0xa282xa){return _0xa282x9[_0xd769[11]](500)[_0xd769[10]](_0xa282xa)}
\ No newline at end of file