Built motion from commit b18b7a808.|1.0.23
[motion.git] / server / api / report_fax / report_fax.controller.js
index 3a82001..8a9a52d 100644 (file)
@@ -1 +1 @@
-var _0x63c6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x46\x61\x78\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D\x53\x74\x61\x74\x75\x73","\x52\x65\x70\x6F\x72\x74\x46\x61\x78","\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","\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","\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\x46\x61\x78\x52\x6F\x6F\x6D\x73","\x66\x61\x78\x43\x61\x70\x61\x63\x69\x74\x79","\x72\x65\x6A\x65\x63\x74","\x52\x45\x4A\x45\x43\x54","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x72\x6F\x6F\x6D\x69\x64","\x63\x72\x65\x61\x74\x65","\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"];_0x63c6[0];var _=require(_0x63c6[1]);var moment=require(_0x63c6[2]);var FaxRoom=require(_0x63c6[4])[_0x63c6[3]];var FaxRoomStatus=require(_0x63c6[4])[_0x63c6[5]];var ReportFax=require(_0x63c6[4])[_0x63c6[6]];var sequelize=require(_0x63c6[4])[_0x63c6[7]];var Agent=require(_0x63c6[4])[_0x63c6[8]];var Util=require(_0x63c6[9]);exports[_0x63c6[10]]= function(_0x23eex9,_0x23eexa,_0x23eexb){return ReportFax[_0x63c6[17]](Util[_0x63c6[16]](_0x23eex9[_0x63c6[15]]))[_0x63c6[14]](function(_0x23eexd){_0x23eexa[_0x63c6[13]](200)[_0x63c6[12]](_0x23eexd)})[_0x63c6[11]](function(_0x23eexc){return handleError(_0x23eexa,_0x23eexc)})};exports[_0x63c6[18]]= function(_0x23eex9,_0x23eexa){var _0x23eexe;var _0x23eexf=_0x23eex9[_0x63c6[22]][_0x63c6[21]][_0x63c6[20]](_0x63c6[19])[1];return Agent[_0x63c6[31]](_0x23eex9[_0x63c6[26]][_0x63c6[30]],{attributes:[_0x63c6[30],_0x63c6[34]]})[_0x63c6[14]](function(_0x23eex13){_0x23eexe= _0x23eex13;return _0x23eex13[_0x63c6[33]]({where:{status:{$ne:_0x63c6[32]},id:{$ne:_0x23eexf}},attributes:[_0x63c6[30]]})})[_0x63c6[14]](function(_0x23eex12){return ReportFax[_0x63c6[31]](_0x23eex9[_0x63c6[22]][_0x63c6[30]])})[_0x63c6[14]](function(_0x23eex10){if(!_0x23eex10){return _0x23eexa[_0x63c6[23]](404)};var _0x23eex11=_[_0x63c6[28]](_0x23eex10,{connectid:_0x23eex9[_0x63c6[22]][_0x63c6[21]]});return _0x23eex11[_0x63c6[29]]()})[_0x63c6[14]](function(){return FaxRoom[_0x63c6[27]]({status:_0x63c6[24],openReason:_0x63c6[25]},{where:{id:_0x23eexf},user:_0x23eex9[_0x63c6[26]],individualHooks:true})})[_0x63c6[14]](function(){return _0x23eexa[_0x63c6[23]](200)})[_0x63c6[11]](sequelize.UniqueConstraintError,function(_0x23eexc){return _0x23eexa[_0x63c6[23]](504)})[_0x63c6[11]](function(_0x23eexc){return handleError(_0x23eexa,_0x23eexc)})};exports[_0x63c6[35]]= function(_0x23eex9,_0x23eexa){var _0x23eex14;return ReportFax[_0x63c6[31]](_0x23eex9[_0x63c6[22]][_0x63c6[30]])[_0x63c6[14]](function(_0x23eex10){_0x23eex14= _0x23eex10;if(!_0x23eex10){return _0x23eexa[_0x63c6[23]](404)};var _0x23eex11=_[_0x63c6[28]](_0x23eex10,{rejectedAt:moment()[_0x63c6[42]](_0x63c6[41])});return _0x23eex11[_0x63c6[29]]()})[_0x63c6[14]](function(){return FaxRoomStatus[_0x63c6[40]]({status:_0x63c6[36],data1:_0x23eex9[_0x63c6[26]][_0x63c6[37]],data2:_0x23eex9[_0x63c6[26]][_0x63c6[38]],UserId:_0x23eex9[_0x63c6[26]][_0x63c6[30]],MailRoomId:_0x23eex14[_0x63c6[39]]})})[_0x63c6[14]](function(){return _0x23eexa[_0x63c6[23]](200)})[_0x63c6[11]](function(_0x23eexc){return handleError(_0x23eexa,_0x23eexc)})};function handleError(_0x23eexa,_0x23eexc){return _0x23eexa[_0x63c6[13]](500)[_0x63c6[12]](_0x23eexc)}
\ No newline at end of file
+var _0xd09e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\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","\x46\x61\x78\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D\x53\x74\x61\x74\x75\x73","\x52\x65\x70\x6F\x72\x74\x46\x61\x78","\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","\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","\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","\x72\x65\x6A\x65\x63\x74","\x52\x45\x4A\x45\x43\x54","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x72\x6F\x6F\x6D\x69\x64","\x63\x72\x65\x61\x74\x65","\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","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xd09e[0];var _=require(_0xd09e[1]);var moment=require(_0xd09e[2]);var logger=require(_0xd09e[4])(_0xd09e[3]);var FaxRoom=require(_0xd09e[6])[_0xd09e[5]];var FaxRoomStatus=require(_0xd09e[6])[_0xd09e[7]];var ReportFax=require(_0xd09e[6])[_0xd09e[8]];var sequelize=require(_0xd09e[6])[_0xd09e[9]];var Agent=require(_0xd09e[6])[_0xd09e[10]];var Util=require(_0xd09e[11]);exports[_0xd09e[12]]= function(_0xd616xa,_0xd616xb,_0xd616xc){return ReportFax[_0xd09e[19]](Util[_0xd09e[18]](_0xd616xa[_0xd09e[17]]))[_0xd09e[16]](function(_0xd616xe){_0xd616xb[_0xd09e[15]](200)[_0xd09e[14]](_0xd616xe)})[_0xd09e[13]](function(_0xd616xd){return handleError(_0xd616xb,_0xd616xd)})};exports[_0xd09e[20]]= function(_0xd616xa,_0xd616xb){var _0xd616xf=_0xd616xa[_0xd09e[24]][_0xd09e[23]][_0xd09e[22]](_0xd09e[21])[1];return ReportFax[_0xd09e[33]](_0xd616xa[_0xd09e[24]][_0xd09e[32]])[_0xd09e[16]](function(_0xd616x10){if(!_0xd616x10){return _0xd616xb[_0xd09e[25]](404)};var _0xd616x11=_[_0xd09e[30]](_0xd616x10,{connectid:_0xd616xa[_0xd09e[24]][_0xd09e[23]]});return _0xd616x11[_0xd09e[31]]()})[_0xd09e[16]](function(){return FaxRoom[_0xd09e[29]]({status:_0xd09e[26],openReason:_0xd09e[27]},{where:{id:_0xd616xf},user:_0xd616xa[_0xd09e[28]],individualHooks:true})})[_0xd09e[16]](function(){return _0xd616xb[_0xd09e[25]](200)})[_0xd09e[13]](sequelize.UniqueConstraintError,function(_0xd616xd){return _0xd616xb[_0xd09e[25]](504)})[_0xd09e[13]](function(_0xd616xd){return handleError(_0xd616xb,_0xd616xd)})};exports[_0xd09e[34]]= function(_0xd616xa,_0xd616xb){var _0xd616x12;return ReportFax[_0xd09e[33]](_0xd616xa[_0xd09e[24]][_0xd09e[32]])[_0xd09e[16]](function(_0xd616x13){_0xd616x12= _0xd616x13;if(!_0xd616x13){return _0xd616xb[_0xd09e[25]](404)};var _0xd616x11=_[_0xd09e[30]](_0xd616x13,{rejectedAt:moment()[_0xd09e[41]](_0xd09e[40])});return _0xd616x11[_0xd09e[31]]()})[_0xd09e[16]](function(){return FaxRoomStatus[_0xd09e[39]]({status:_0xd09e[35],data1:_0xd616xa[_0xd09e[28]][_0xd09e[36]],data2:_0xd616xa[_0xd09e[28]][_0xd09e[37]],UserId:_0xd616xa[_0xd09e[28]][_0xd09e[32]],FaxRoomId:_0xd616x12[_0xd09e[38]]})})[_0xd09e[16]](function(){return _0xd616xb[_0xd09e[25]](200)})[_0xd09e[13]](function(_0xd616xd){return handleError(_0xd616xb,_0xd616xd)})};function handleError(_0xd616xb,_0xd616xd){logger[_0xd09e[43]](_0xd616xd[_0xd09e[42]]);return _0xd616xb[_0xd09e[15]](500)[_0xd09e[14]](_0xd616xd)}
\ No newline at end of file