Built motion from commit b387bb7c7.|1.0.28
[motion.git] / server / api / report_fax / report_fax.controller.js
index 456cc0c..ea28bd7 100644 (file)
@@ -1 +1 @@
-var _0x5c99=["\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"];_0x5c99[0];var _=require(_0x5c99[1]);var moment=require(_0x5c99[2]);var logger=require(_0x5c99[4])(_0x5c99[3]);var FaxRoom=require(_0x5c99[6])[_0x5c99[5]];var FaxRoomStatus=require(_0x5c99[6])[_0x5c99[7]];var ReportFax=require(_0x5c99[6])[_0x5c99[8]];var sequelize=require(_0x5c99[6])[_0x5c99[9]];var Agent=require(_0x5c99[6])[_0x5c99[10]];var Util=require(_0x5c99[11]);exports[_0x5c99[12]]= function(_0x6f68xa,_0x6f68xb,_0x6f68xc){return ReportFax[_0x5c99[19]](Util[_0x5c99[18]](_0x6f68xa[_0x5c99[17]]))[_0x5c99[16]](function(_0x6f68xe){_0x6f68xb[_0x5c99[15]](200)[_0x5c99[14]](_0x6f68xe)})[_0x5c99[13]](function(_0x6f68xd){return handleError(_0x6f68xb,_0x6f68xd)})};exports[_0x5c99[20]]= function(_0x6f68xa,_0x6f68xb){var _0x6f68xf=_0x6f68xa[_0x5c99[24]][_0x5c99[23]][_0x5c99[22]](_0x5c99[21])[1];return ReportFax[_0x5c99[33]](_0x6f68xa[_0x5c99[24]][_0x5c99[32]])[_0x5c99[16]](function(_0x6f68x10){if(!_0x6f68x10){return _0x6f68xb[_0x5c99[25]](404)};var _0x6f68x11=_[_0x5c99[30]](_0x6f68x10,{connectid:_0x6f68xa[_0x5c99[24]][_0x5c99[23]]});return _0x6f68x11[_0x5c99[31]]()})[_0x5c99[16]](function(){return FaxRoom[_0x5c99[29]]({status:_0x5c99[26],openReason:_0x5c99[27]},{where:{id:_0x6f68xf},user:_0x6f68xa[_0x5c99[28]],individualHooks:true})})[_0x5c99[16]](function(){return _0x6f68xb[_0x5c99[25]](200)})[_0x5c99[13]](sequelize.UniqueConstraintError,function(_0x6f68xd){return _0x6f68xb[_0x5c99[25]](504)})[_0x5c99[13]](function(_0x6f68xd){return handleError(_0x6f68xb,_0x6f68xd)})};exports[_0x5c99[34]]= function(_0x6f68xa,_0x6f68xb){var _0x6f68x12;return ReportFax[_0x5c99[33]](_0x6f68xa[_0x5c99[24]][_0x5c99[32]])[_0x5c99[16]](function(_0x6f68x13){_0x6f68x12= _0x6f68x13;if(!_0x6f68x13){return _0x6f68xb[_0x5c99[25]](404)};var _0x6f68x11=_[_0x5c99[30]](_0x6f68x13,{rejectedAt:moment()[_0x5c99[41]](_0x5c99[40])});return _0x6f68x11[_0x5c99[31]]()})[_0x5c99[16]](function(){return FaxRoomStatus[_0x5c99[39]]({status:_0x5c99[35],data1:_0x6f68xa[_0x5c99[28]][_0x5c99[36]],data2:_0x6f68xa[_0x5c99[28]][_0x5c99[37]],UserId:_0x6f68xa[_0x5c99[28]][_0x5c99[32]],FaxRoomId:_0x6f68x12[_0x5c99[38]]})})[_0x5c99[16]](function(){return _0x6f68xb[_0x5c99[25]](200)})[_0x5c99[13]](function(_0x6f68xd){return handleError(_0x6f68xb,_0x6f68xd)})};function handleError(_0x6f68xb,_0x6f68xd){logger[_0x5c99[43]](_0x6f68xd[_0x5c99[42]]);return _0x6f68xb[_0x5c99[15]](500)[_0x5c99[14]](_0x6f68xd)}
\ No newline at end of file
+var _0x58ec=["\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"];_0x58ec[0];var _=require(_0x58ec[1]);var moment=require(_0x58ec[2]);var logger=require(_0x58ec[4])(_0x58ec[3]);var FaxRoom=require(_0x58ec[6])[_0x58ec[5]];var FaxRoomStatus=require(_0x58ec[6])[_0x58ec[7]];var ReportFax=require(_0x58ec[6])[_0x58ec[8]];var sequelize=require(_0x58ec[6])[_0x58ec[9]];var Agent=require(_0x58ec[6])[_0x58ec[10]];var Util=require(_0x58ec[11]);exports[_0x58ec[12]]= function(_0x1115xa,_0x1115xb,_0x1115xc){return ReportFax[_0x58ec[19]](Util[_0x58ec[18]](_0x1115xa[_0x58ec[17]]))[_0x58ec[16]](function(_0x1115xe){_0x1115xb[_0x58ec[15]](200)[_0x58ec[14]](_0x1115xe)})[_0x58ec[13]](function(_0x1115xd){return handleError(_0x1115xb,_0x1115xd)})};exports[_0x58ec[20]]= function(_0x1115xa,_0x1115xb){var _0x1115xf=_0x1115xa[_0x58ec[24]][_0x58ec[23]][_0x58ec[22]](_0x58ec[21])[1];return ReportFax[_0x58ec[33]](_0x1115xa[_0x58ec[24]][_0x58ec[32]])[_0x58ec[16]](function(_0x1115x10){if(!_0x1115x10){return _0x1115xb[_0x58ec[25]](404)};var _0x1115x11=_[_0x58ec[30]](_0x1115x10,{connectid:_0x1115xa[_0x58ec[24]][_0x58ec[23]]});return _0x1115x11[_0x58ec[31]]()})[_0x58ec[16]](function(){return FaxRoom[_0x58ec[29]]({status:_0x58ec[26],openReason:_0x58ec[27]},{where:{id:_0x1115xf},user:_0x1115xa[_0x58ec[28]],individualHooks:true})})[_0x58ec[16]](function(){return _0x1115xb[_0x58ec[25]](200)})[_0x58ec[13]](sequelize.UniqueConstraintError,function(_0x1115xd){return _0x1115xb[_0x58ec[25]](504)})[_0x58ec[13]](function(_0x1115xd){return handleError(_0x1115xb,_0x1115xd)})};exports[_0x58ec[34]]= function(_0x1115xa,_0x1115xb){var _0x1115x12;return ReportFax[_0x58ec[33]](_0x1115xa[_0x58ec[24]][_0x58ec[32]])[_0x58ec[16]](function(_0x1115x13){_0x1115x12= _0x1115x13;if(!_0x1115x13){return _0x1115xb[_0x58ec[25]](404)};var _0x1115x11=_[_0x58ec[30]](_0x1115x13,{rejectedAt:moment()[_0x58ec[41]](_0x58ec[40])});return _0x1115x11[_0x58ec[31]]()})[_0x58ec[16]](function(){return FaxRoomStatus[_0x58ec[39]]({status:_0x58ec[35],data1:_0x1115xa[_0x58ec[28]][_0x58ec[36]],data2:_0x1115xa[_0x58ec[28]][_0x58ec[37]],UserId:_0x1115xa[_0x58ec[28]][_0x58ec[32]],FaxRoomId:_0x1115x12[_0x58ec[38]]})})[_0x58ec[16]](function(){return _0x1115xb[_0x58ec[25]](200)})[_0x58ec[13]](function(_0x1115xd){return handleError(_0x1115xb,_0x1115xd)})};function handleError(_0x1115xb,_0x1115xd){logger[_0x58ec[43]](_0x1115xd[_0x58ec[42]]);return _0x1115xb[_0x58ec[15]](500)[_0x58ec[14]](_0x1115xd)}
\ No newline at end of file