Built motion from commit 5b5850835.|1.0.25
[motion.git] / server / api / report_openchannel / report_openchannel.controller.js
index c3168cb..6cebb60 100644 (file)
@@ -1 +1 @@
-var _0xe0ed=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x52\x6F\x6F\x6D","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\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","\x61\x63\x63\x65\x70\x74","\x2E","\x73\x70\x6C\x69\x74","\x75\x6E\x69\x71\x75\x65\x69\x64","\x70\x61\x72\x61\x6D\x73","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x4F\x50\x45\x4E","\x61\x67\x65\x6E\x74","\x75\x73\x65\x72","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x43\x4C\x4F\x53\x45\x44","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x52\x6F\x6F\x6D\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x43\x61\x70\x61\x63\x69\x74\x79","\x72\x65\x6A\x65\x63\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74"];_0xe0ed[0];var _=require(_0xe0ed[1]);var ReportOpenchannel=require(_0xe0ed[3])[_0xe0ed[2]];var OpenchannelRoom=require(_0xe0ed[3])[_0xe0ed[4]];var sequelize=require(_0xe0ed[3])[_0xe0ed[5]];var Agent=require(_0xe0ed[3])[_0xe0ed[6]];var Util=require(_0xe0ed[7]);var moment=require(_0xe0ed[8]);var logger=require(_0xe0ed[10])(_0xe0ed[9]);function handleError(_0xaa22xa,_0xaa22xb){logger[_0xe0ed[12]](_0xaa22xb[_0xe0ed[11]]);return _0xaa22xa[_0xe0ed[14]](500)[_0xe0ed[13]](_0xaa22xb)}exports[_0xe0ed[15]]= function(_0xaa22xc,_0xaa22xa){return ReportOpenchannel[_0xe0ed[20]](Util[_0xe0ed[19]](_0xaa22xc[_0xe0ed[18]]))[_0xe0ed[17]](function(_0xaa22xd){_0xaa22xa[_0xe0ed[14]](200)[_0xe0ed[13]](_0xaa22xd)})[_0xe0ed[16]](function(_0xaa22xb){return handleError(_0xaa22xa,_0xaa22xb)})};exports[_0xe0ed[21]]= function(_0xaa22xc,_0xaa22xa){var _0xaa22xe;var _0xaa22xf=_0xaa22xc[_0xe0ed[25]][_0xe0ed[24]][_0xe0ed[23]](_0xe0ed[22])[1];return Agent[_0xe0ed[34]](_0xaa22xc[_0xe0ed[29]][_0xe0ed[33]],{attributes:[_0xe0ed[33],_0xe0ed[37]]})[_0xe0ed[17]](function(_0xaa22x13){_0xaa22xe= _0xaa22x13;return _0xaa22x13[_0xe0ed[36]]({where:{status:{$ne:_0xe0ed[35]},id:{$ne:_0xaa22xf}},attributes:[_0xe0ed[33]]})})[_0xe0ed[17]](function(_0xaa22x12){return ReportOpenchannel[_0xe0ed[34]](_0xaa22xc[_0xe0ed[25]][_0xe0ed[33]])})[_0xe0ed[17]](function(_0xaa22x10){if(!_0xaa22x10){return _0xaa22xa[_0xe0ed[26]](404)};var _0xaa22x11=_[_0xe0ed[31]](_0xaa22x10,{connectid:_0xaa22xc[_0xe0ed[25]][_0xe0ed[24]]});return _0xaa22x11[_0xe0ed[32]]()})[_0xe0ed[17]](function(){return OpenchannelRoom[_0xe0ed[30]]({status:_0xe0ed[27],openReason:_0xe0ed[28]},{where:{id:_0xaa22xf},user:_0xaa22xc[_0xe0ed[29]],individualHooks:true})})[_0xe0ed[17]](function(){return _0xaa22xa[_0xe0ed[26]](200)})[_0xe0ed[16]](sequelize.UniqueConstraintError,function(_0xaa22xb){return _0xaa22xa[_0xe0ed[26]](504)})[_0xe0ed[16]](function(_0xaa22xb){return handleError(_0xaa22xa,_0xaa22xb)})};exports[_0xe0ed[38]]= function(_0xaa22xc,_0xaa22xa){return ReportOpenchannel[_0xe0ed[34]](_0xaa22xc[_0xe0ed[25]][_0xe0ed[33]])[_0xe0ed[17]](function(_0xaa22x10){if(!_0xaa22x10){return _0xaa22xa[_0xe0ed[26]](404)};var _0xaa22x11=_[_0xe0ed[31]](_0xaa22x10,{rejectedAt:moment()[_0xe0ed[40]](_0xe0ed[39])});return _0xaa22x11[_0xe0ed[32]]()})[_0xe0ed[17]](function(){return _0xaa22xa[_0xe0ed[26]](200)})[_0xe0ed[16]](function(_0xaa22xb){return handleError(_0xaa22xa,_0xaa22xb)})}
\ No newline at end of file
+var _0x4d5b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x52\x6F\x6F\x6D","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\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","\x61\x63\x63\x65\x70\x74","\x2E","\x73\x70\x6C\x69\x74","\x75\x6E\x69\x71\x75\x65\x69\x64","\x70\x61\x72\x61\x6D\x73","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x4F\x50\x45\x4E","\x61\x67\x65\x6E\x74","\x75\x73\x65\x72","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x43\x4C\x4F\x53\x45\x44","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x52\x6F\x6F\x6D\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x43\x61\x70\x61\x63\x69\x74\x79","\x72\x65\x6A\x65\x63\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74"];_0x4d5b[0];var _=require(_0x4d5b[1]);var ReportOpenchannel=require(_0x4d5b[3])[_0x4d5b[2]];var OpenchannelRoom=require(_0x4d5b[3])[_0x4d5b[4]];var sequelize=require(_0x4d5b[3])[_0x4d5b[5]];var Agent=require(_0x4d5b[3])[_0x4d5b[6]];var Util=require(_0x4d5b[7]);var moment=require(_0x4d5b[8]);var logger=require(_0x4d5b[10])(_0x4d5b[9]);function handleError(_0x1488xa,_0x1488xb){logger[_0x4d5b[12]](_0x1488xb[_0x4d5b[11]]);return _0x1488xa[_0x4d5b[14]](500)[_0x4d5b[13]](_0x1488xb)}exports[_0x4d5b[15]]= function(_0x1488xc,_0x1488xa){return ReportOpenchannel[_0x4d5b[20]](Util[_0x4d5b[19]](_0x1488xc[_0x4d5b[18]]))[_0x4d5b[17]](function(_0x1488xd){_0x1488xa[_0x4d5b[14]](200)[_0x4d5b[13]](_0x1488xd)})[_0x4d5b[16]](function(_0x1488xb){return handleError(_0x1488xa,_0x1488xb)})};exports[_0x4d5b[21]]= function(_0x1488xc,_0x1488xa){var _0x1488xe;var _0x1488xf=_0x1488xc[_0x4d5b[25]][_0x4d5b[24]][_0x4d5b[23]](_0x4d5b[22])[1];return Agent[_0x4d5b[34]](_0x1488xc[_0x4d5b[29]][_0x4d5b[33]],{attributes:[_0x4d5b[33],_0x4d5b[37]]})[_0x4d5b[17]](function(_0x1488x13){_0x1488xe= _0x1488x13;return _0x1488x13[_0x4d5b[36]]({where:{status:{$ne:_0x4d5b[35]},id:{$ne:_0x1488xf}},attributes:[_0x4d5b[33]]})})[_0x4d5b[17]](function(_0x1488x12){return ReportOpenchannel[_0x4d5b[34]](_0x1488xc[_0x4d5b[25]][_0x4d5b[33]])})[_0x4d5b[17]](function(_0x1488x10){if(!_0x1488x10){return _0x1488xa[_0x4d5b[26]](404)};var _0x1488x11=_[_0x4d5b[31]](_0x1488x10,{connectid:_0x1488xc[_0x4d5b[25]][_0x4d5b[24]]});return _0x1488x11[_0x4d5b[32]]()})[_0x4d5b[17]](function(){return OpenchannelRoom[_0x4d5b[30]]({status:_0x4d5b[27],openReason:_0x4d5b[28]},{where:{id:_0x1488xf},user:_0x1488xc[_0x4d5b[29]],individualHooks:true})})[_0x4d5b[17]](function(){return _0x1488xa[_0x4d5b[26]](200)})[_0x4d5b[16]](sequelize.UniqueConstraintError,function(_0x1488xb){return _0x1488xa[_0x4d5b[26]](504)})[_0x4d5b[16]](function(_0x1488xb){return handleError(_0x1488xa,_0x1488xb)})};exports[_0x4d5b[38]]= function(_0x1488xc,_0x1488xa){return ReportOpenchannel[_0x4d5b[34]](_0x1488xc[_0x4d5b[25]][_0x4d5b[33]])[_0x4d5b[17]](function(_0x1488x10){if(!_0x1488x10){return _0x1488xa[_0x4d5b[26]](404)};var _0x1488x11=_[_0x4d5b[31]](_0x1488x10,{rejectedAt:moment()[_0x4d5b[40]](_0x4d5b[39])});return _0x1488x11[_0x4d5b[32]]()})[_0x4d5b[17]](function(){return _0x1488xa[_0x4d5b[26]](200)})[_0x4d5b[16]](function(_0x1488xb){return handleError(_0x1488xa,_0x1488xb)})}
\ No newline at end of file