99707eec9816faeb94d7b00e1596a96a82042708
[motion.git] / server / api / report_openchannel / report_openchannel.controller.js
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)})}