Built motion from commit 76eb00b9e.|1.0.24
[motion.git] / server / api / report_openchannel / report_openchannel.controller.js
index 27616f4..fe724cd 100644 (file)
@@ -1 +1 @@
-var _0xe2ba=["\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"];_0xe2ba[0];var _=require(_0xe2ba[1]);var ReportOpenchannel=require(_0xe2ba[3])[_0xe2ba[2]];var OpenchannelRoom=require(_0xe2ba[3])[_0xe2ba[4]];var sequelize=require(_0xe2ba[3])[_0xe2ba[5]];var Agent=require(_0xe2ba[3])[_0xe2ba[6]];var Util=require(_0xe2ba[7]);var moment=require(_0xe2ba[8]);var logger=require(_0xe2ba[10])(_0xe2ba[9]);function handleError(_0xa3e2xa,_0xa3e2xb){logger[_0xe2ba[12]](_0xa3e2xb[_0xe2ba[11]]);return _0xa3e2xa[_0xe2ba[14]](500)[_0xe2ba[13]](_0xa3e2xb)}exports[_0xe2ba[15]]= function(_0xa3e2xc,_0xa3e2xa){return ReportOpenchannel[_0xe2ba[20]](Util[_0xe2ba[19]](_0xa3e2xc[_0xe2ba[18]]))[_0xe2ba[17]](function(_0xa3e2xd){_0xa3e2xa[_0xe2ba[14]](200)[_0xe2ba[13]](_0xa3e2xd)})[_0xe2ba[16]](function(_0xa3e2xb){return handleError(_0xa3e2xa,_0xa3e2xb)})};exports[_0xe2ba[21]]= function(_0xa3e2xc,_0xa3e2xa){var _0xa3e2xe;var _0xa3e2xf=_0xa3e2xc[_0xe2ba[25]][_0xe2ba[24]][_0xe2ba[23]](_0xe2ba[22])[1];return Agent[_0xe2ba[34]](_0xa3e2xc[_0xe2ba[29]][_0xe2ba[33]],{attributes:[_0xe2ba[33],_0xe2ba[37]]})[_0xe2ba[17]](function(_0xa3e2x13){_0xa3e2xe= _0xa3e2x13;return _0xa3e2x13[_0xe2ba[36]]({where:{status:{$ne:_0xe2ba[35]},id:{$ne:_0xa3e2xf}},attributes:[_0xe2ba[33]]})})[_0xe2ba[17]](function(_0xa3e2x12){return ReportOpenchannel[_0xe2ba[34]](_0xa3e2xc[_0xe2ba[25]][_0xe2ba[33]])})[_0xe2ba[17]](function(_0xa3e2x10){if(!_0xa3e2x10){return _0xa3e2xa[_0xe2ba[26]](404)};var _0xa3e2x11=_[_0xe2ba[31]](_0xa3e2x10,{connectid:_0xa3e2xc[_0xe2ba[25]][_0xe2ba[24]]});return _0xa3e2x11[_0xe2ba[32]]()})[_0xe2ba[17]](function(){return OpenchannelRoom[_0xe2ba[30]]({status:_0xe2ba[27],openReason:_0xe2ba[28]},{where:{id:_0xa3e2xf},user:_0xa3e2xc[_0xe2ba[29]],individualHooks:true})})[_0xe2ba[17]](function(){return _0xa3e2xa[_0xe2ba[26]](200)})[_0xe2ba[16]](sequelize.UniqueConstraintError,function(_0xa3e2xb){return _0xa3e2xa[_0xe2ba[26]](504)})[_0xe2ba[16]](function(_0xa3e2xb){return handleError(_0xa3e2xa,_0xa3e2xb)})};exports[_0xe2ba[38]]= function(_0xa3e2xc,_0xa3e2xa){return ReportOpenchannel[_0xe2ba[34]](_0xa3e2xc[_0xe2ba[25]][_0xe2ba[33]])[_0xe2ba[17]](function(_0xa3e2x10){if(!_0xa3e2x10){return _0xa3e2xa[_0xe2ba[26]](404)};var _0xa3e2x11=_[_0xe2ba[31]](_0xa3e2x10,{rejectedAt:moment()[_0xe2ba[40]](_0xe2ba[39])});return _0xa3e2x11[_0xe2ba[32]]()})[_0xe2ba[17]](function(){return _0xa3e2xa[_0xe2ba[26]](200)})[_0xe2ba[16]](function(_0xa3e2xb){return handleError(_0xa3e2xa,_0xa3e2xb)})}
\ No newline at end of file
+var _0xf397=["\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"];_0xf397[0];var _=require(_0xf397[1]);var ReportOpenchannel=require(_0xf397[3])[_0xf397[2]];var OpenchannelRoom=require(_0xf397[3])[_0xf397[4]];var sequelize=require(_0xf397[3])[_0xf397[5]];var Agent=require(_0xf397[3])[_0xf397[6]];var Util=require(_0xf397[7]);var moment=require(_0xf397[8]);var logger=require(_0xf397[10])(_0xf397[9]);function handleError(_0x67bbxa,_0x67bbxb){logger[_0xf397[12]](_0x67bbxb[_0xf397[11]]);return _0x67bbxa[_0xf397[14]](500)[_0xf397[13]](_0x67bbxb)}exports[_0xf397[15]]= function(_0x67bbxc,_0x67bbxa){return ReportOpenchannel[_0xf397[20]](Util[_0xf397[19]](_0x67bbxc[_0xf397[18]]))[_0xf397[17]](function(_0x67bbxd){_0x67bbxa[_0xf397[14]](200)[_0xf397[13]](_0x67bbxd)})[_0xf397[16]](function(_0x67bbxb){return handleError(_0x67bbxa,_0x67bbxb)})};exports[_0xf397[21]]= function(_0x67bbxc,_0x67bbxa){var _0x67bbxe;var _0x67bbxf=_0x67bbxc[_0xf397[25]][_0xf397[24]][_0xf397[23]](_0xf397[22])[1];return Agent[_0xf397[34]](_0x67bbxc[_0xf397[29]][_0xf397[33]],{attributes:[_0xf397[33],_0xf397[37]]})[_0xf397[17]](function(_0x67bbx13){_0x67bbxe= _0x67bbx13;return _0x67bbx13[_0xf397[36]]({where:{status:{$ne:_0xf397[35]},id:{$ne:_0x67bbxf}},attributes:[_0xf397[33]]})})[_0xf397[17]](function(_0x67bbx12){return ReportOpenchannel[_0xf397[34]](_0x67bbxc[_0xf397[25]][_0xf397[33]])})[_0xf397[17]](function(_0x67bbx10){if(!_0x67bbx10){return _0x67bbxa[_0xf397[26]](404)};var _0x67bbx11=_[_0xf397[31]](_0x67bbx10,{connectid:_0x67bbxc[_0xf397[25]][_0xf397[24]]});return _0x67bbx11[_0xf397[32]]()})[_0xf397[17]](function(){return OpenchannelRoom[_0xf397[30]]({status:_0xf397[27],openReason:_0xf397[28]},{where:{id:_0x67bbxf},user:_0x67bbxc[_0xf397[29]],individualHooks:true})})[_0xf397[17]](function(){return _0x67bbxa[_0xf397[26]](200)})[_0xf397[16]](sequelize.UniqueConstraintError,function(_0x67bbxb){return _0x67bbxa[_0xf397[26]](504)})[_0xf397[16]](function(_0x67bbxb){return handleError(_0x67bbxa,_0x67bbxb)})};exports[_0xf397[38]]= function(_0x67bbxc,_0x67bbxa){return ReportOpenchannel[_0xf397[34]](_0x67bbxc[_0xf397[25]][_0xf397[33]])[_0xf397[17]](function(_0x67bbx10){if(!_0x67bbx10){return _0x67bbxa[_0xf397[26]](404)};var _0x67bbx11=_[_0xf397[31]](_0x67bbx10,{rejectedAt:moment()[_0xf397[40]](_0xf397[39])});return _0x67bbx11[_0xf397[32]]()})[_0xf397[17]](function(){return _0x67bbxa[_0xf397[26]](200)})[_0xf397[16]](function(_0x67bbxb){return handleError(_0x67bbxa,_0x67bbxb)})}
\ No newline at end of file