Built motion from commit 54a160d.|0.0.140
[motion.git] / server / api / report_openchannel / report_openchannel.controller.js
index 99707ee..8961765 100644 (file)
@@ -1 +1 @@
-var _0x48f6=["\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","\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","\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","\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","\x75\x73\x65\x72","\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"];_0x48f6[0];var _=require(_0x48f6[1]);var ReportOpenchannel=require(_0x48f6[3])[_0x48f6[2]];var sequelize=require(_0x48f6[3])[_0x48f6[4]];var Agent=require(_0x48f6[3])[_0x48f6[5]];var Util=require(_0x48f6[6]);var moment=require(_0x48f6[7]);function handleError(_0xe5c7x8,_0xe5c7x9){return _0xe5c7x8[_0x48f6[9]](500)[_0x48f6[8]](_0xe5c7x9)}exports[_0x48f6[10]]= function(_0xe5c7xa,_0xe5c7x8){return ReportOpenchannel[_0x48f6[15]](Util[_0x48f6[14]](_0xe5c7xa[_0x48f6[13]]))[_0x48f6[12]](function(_0xe5c7xb){_0xe5c7x8[_0x48f6[9]](200)[_0x48f6[8]](_0xe5c7xb)})[_0x48f6[11]](function(_0xe5c7x9){return handleError(_0xe5c7x8,_0xe5c7x9)})};exports[_0x48f6[16]]= function(_0xe5c7xa,_0xe5c7x8){var _0xe5c7xc;var _0xe5c7xd=_0xe5c7xa[_0x48f6[20]][_0x48f6[19]][_0x48f6[18]](_0x48f6[17])[1];return Agent[_0x48f6[25]](_0xe5c7xa[_0x48f6[28]][_0x48f6[24]],{attributes:[_0x48f6[24],_0x48f6[29]]})[_0x48f6[12]](function(_0xe5c7x11){_0xe5c7xc= _0xe5c7x11;return _0xe5c7x11[_0x48f6[27]]({where:{status:{$ne:_0x48f6[26]},id:{$ne:_0xe5c7xd}},attributes:[_0x48f6[24]]})})[_0x48f6[12]](function(_0xe5c7x10){return ReportOpenchannel[_0x48f6[25]](_0xe5c7xa[_0x48f6[20]][_0x48f6[24]])})[_0x48f6[12]](function(_0xe5c7xe){if(!_0xe5c7xe){return _0xe5c7x8[_0x48f6[21]](404)};var _0xe5c7xf=_[_0x48f6[22]](_0xe5c7xe,{connectid:_0xe5c7xa[_0x48f6[20]][_0x48f6[19]]});return _0xe5c7xf[_0x48f6[23]]()})[_0x48f6[12]](function(){return _0xe5c7x8[_0x48f6[21]](200)})[_0x48f6[11]](sequelize.UniqueConstraintError,function(_0xe5c7x9){return _0xe5c7x8[_0x48f6[21]](504)})[_0x48f6[11]](function(_0xe5c7x9){return handleError(_0xe5c7x8,_0xe5c7x9)})};exports[_0x48f6[30]]= function(_0xe5c7xa,_0xe5c7x8){return ReportOpenchannel[_0x48f6[25]](_0xe5c7xa[_0x48f6[20]][_0x48f6[24]])[_0x48f6[12]](function(_0xe5c7xe){if(!_0xe5c7xe){return _0xe5c7x8[_0x48f6[21]](404)};var _0xe5c7xf=_[_0x48f6[22]](_0xe5c7xe,{rejectedAt:moment()[_0x48f6[32]](_0x48f6[31])});return _0xe5c7xf[_0x48f6[23]]()})[_0x48f6[12]](function(){return _0xe5c7x8[_0x48f6[21]](200)})[_0x48f6[11]](function(_0xe5c7x9){return handleError(_0xe5c7x8,_0xe5c7x9)})}
\ No newline at end of file
+var _0x60f0=["\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","\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"];_0x60f0[0];var _=require(_0x60f0[1]);var ReportOpenchannel=require(_0x60f0[3])[_0x60f0[2]];var OpenchannelRoom=require(_0x60f0[3])[_0x60f0[4]];var sequelize=require(_0x60f0[3])[_0x60f0[5]];var Agent=require(_0x60f0[3])[_0x60f0[6]];var Util=require(_0x60f0[7]);var moment=require(_0x60f0[8]);function handleError(_0x3c1ex9,_0x3c1exa){return _0x3c1ex9[_0x60f0[10]](500)[_0x60f0[9]](_0x3c1exa)}exports[_0x60f0[11]]= function(_0x3c1exb,_0x3c1ex9){return ReportOpenchannel[_0x60f0[16]](Util[_0x60f0[15]](_0x3c1exb[_0x60f0[14]]))[_0x60f0[13]](function(_0x3c1exc){_0x3c1ex9[_0x60f0[10]](200)[_0x60f0[9]](_0x3c1exc)})[_0x60f0[12]](function(_0x3c1exa){return handleError(_0x3c1ex9,_0x3c1exa)})};exports[_0x60f0[17]]= function(_0x3c1exb,_0x3c1ex9){var _0x3c1exd;var _0x3c1exe=_0x3c1exb[_0x60f0[21]][_0x60f0[20]][_0x60f0[19]](_0x60f0[18])[1];return Agent[_0x60f0[30]](_0x3c1exb[_0x60f0[25]][_0x60f0[29]],{attributes:[_0x60f0[29],_0x60f0[33]]})[_0x60f0[13]](function(_0x3c1ex12){_0x3c1exd= _0x3c1ex12;return _0x3c1ex12[_0x60f0[32]]({where:{status:{$ne:_0x60f0[31]},id:{$ne:_0x3c1exe}},attributes:[_0x60f0[29]]})})[_0x60f0[13]](function(_0x3c1ex11){return ReportOpenchannel[_0x60f0[30]](_0x3c1exb[_0x60f0[21]][_0x60f0[29]])})[_0x60f0[13]](function(_0x3c1exf){if(!_0x3c1exf){return _0x3c1ex9[_0x60f0[22]](404)};var _0x3c1ex10=_[_0x60f0[27]](_0x3c1exf,{connectid:_0x3c1exb[_0x60f0[21]][_0x60f0[20]]});return _0x3c1ex10[_0x60f0[28]]()})[_0x60f0[13]](function(){return OpenchannelRoom[_0x60f0[26]]({status:_0x60f0[23],openReason:_0x60f0[24]},{where:{id:_0x3c1exe},user:_0x3c1exb[_0x60f0[25]],individualHooks:true})})[_0x60f0[13]](function(){return _0x3c1ex9[_0x60f0[22]](200)})[_0x60f0[12]](sequelize.UniqueConstraintError,function(_0x3c1exa){return _0x3c1ex9[_0x60f0[22]](504)})[_0x60f0[12]](function(_0x3c1exa){return handleError(_0x3c1ex9,_0x3c1exa)})};exports[_0x60f0[34]]= function(_0x3c1exb,_0x3c1ex9){return ReportOpenchannel[_0x60f0[30]](_0x3c1exb[_0x60f0[21]][_0x60f0[29]])[_0x60f0[13]](function(_0x3c1exf){if(!_0x3c1exf){return _0x3c1ex9[_0x60f0[22]](404)};var _0x3c1ex10=_[_0x60f0[27]](_0x3c1exf,{rejectedAt:moment()[_0x60f0[36]](_0x60f0[35])});return _0x3c1ex10[_0x60f0[28]]()})[_0x60f0[13]](function(){return _0x3c1ex9[_0x60f0[22]](200)})[_0x60f0[12]](function(_0x3c1exa){return handleError(_0x3c1ex9,_0x3c1exa)})}
\ No newline at end of file