Built motion from commit 57474b6.|0.0.99
[motion.git] / server / api / report_fax / report_fax.controller.js
index 110673d..e0fde3b 100644 (file)
@@ -1 +1 @@
-var _0xe365=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x46\x61\x78","\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","\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","\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","\x75\x73\x65\x72","\x66\x61\x78\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"];_0xe365[0];var _=require(_0xe365[1]);var moment=require(_0xe365[2]);var ReportFax=require(_0xe365[4])[_0xe365[3]];var sequelize=require(_0xe365[4])[_0xe365[5]];var Agent=require(_0xe365[4])[_0xe365[6]];var Util=require(_0xe365[7]);exports[_0xe365[8]]=function(_0xa6f6x7,_0xa6f6x8,_0xa6f6x9){return ReportFax[_0xe365[15]](Util[_0xe365[14]](_0xa6f6x7[_0xe365[13]]))[_0xe365[12]](function(_0xa6f6xb){_0xa6f6x8[_0xe365[11]](200)[_0xe365[10]](_0xa6f6xb)})[_0xe365[9]](function(_0xa6f6xa){return handleError(_0xa6f6x8,_0xa6f6xa)})};exports[_0xe365[16]]=function(_0xa6f6x7,_0xa6f6x8){var _0xa6f6xc;var _0xa6f6xd=_0xa6f6x7[_0xe365[20]][_0xe365[19]][_0xe365[18]](_0xe365[17])[1];return Agent[_0xe365[25]](_0xa6f6x7[_0xe365[28]][_0xe365[24]],{attributes:[_0xe365[24],_0xe365[29]]})[_0xe365[12]](function(_0xa6f6x11){_0xa6f6xc=_0xa6f6x11;return _0xa6f6x11[_0xe365[27]]({where:{status:{$ne:_0xe365[26]},id:{$ne:_0xa6f6xd}},attributes:[_0xe365[24]]})})[_0xe365[12]](function(_0xa6f6x10){return ReportFax[_0xe365[25]](_0xa6f6x7[_0xe365[20]][_0xe365[24]])})[_0xe365[12]](function(_0xa6f6xe){if(!_0xa6f6xe){return _0xa6f6x8[_0xe365[21]](404)};var _0xa6f6xf=_[_0xe365[22]](_0xa6f6xe,{connectid:_0xa6f6x7[_0xe365[20]][_0xe365[19]]});return _0xa6f6xf[_0xe365[23]]()})[_0xe365[12]](function(){return _0xa6f6x8[_0xe365[21]](200)})[_0xe365[9]](function(_0xa6f6xa){return handleError(_0xa6f6x8,_0xa6f6xa)})};exports[_0xe365[30]]=function(_0xa6f6x7,_0xa6f6x8){return ReportFax[_0xe365[25]](_0xa6f6x7[_0xe365[20]][_0xe365[24]])[_0xe365[12]](function(_0xa6f6xe){if(!_0xa6f6xe){return _0xa6f6x8[_0xe365[21]](404)};var _0xa6f6xf=_[_0xe365[22]](_0xa6f6xe,{rejectedAt:moment()[_0xe365[32]](_0xe365[31])});return _0xa6f6xf[_0xe365[23]]()})[_0xe365[12]](function(){return _0xa6f6x8[_0xe365[21]](200)})[_0xe365[9]](function(_0xa6f6xa){return handleError(_0xa6f6x8,_0xa6f6xa)})};function handleError(_0xa6f6x8,_0xa6f6xa){return _0xa6f6x8[_0xe365[11]](500)[_0xe365[10]](_0xa6f6xa)}
\ No newline at end of file
+var _0xf798=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x46\x61\x78","\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","\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","\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","\x75\x73\x65\x72","\x66\x61\x78\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"];_0xf798[0];var _=require(_0xf798[1]);var moment=require(_0xf798[2]);var ReportFax=require(_0xf798[4])[_0xf798[3]];var sequelize=require(_0xf798[4])[_0xf798[5]];var Agent=require(_0xf798[4])[_0xf798[6]];var Util=require(_0xf798[7]);exports[_0xf798[8]]=function(_0xa9b6x7,_0xa9b6x8,_0xa9b6x9){return ReportFax[_0xf798[15]](Util[_0xf798[14]](_0xa9b6x7[_0xf798[13]]))[_0xf798[12]](function(_0xa9b6xb){_0xa9b6x8[_0xf798[11]](200)[_0xf798[10]](_0xa9b6xb)})[_0xf798[9]](function(_0xa9b6xa){return handleError(_0xa9b6x8,_0xa9b6xa)})};exports[_0xf798[16]]=function(_0xa9b6x7,_0xa9b6x8){var _0xa9b6xc;var _0xa9b6xd=_0xa9b6x7[_0xf798[20]][_0xf798[19]][_0xf798[18]](_0xf798[17])[1];return Agent[_0xf798[25]](_0xa9b6x7[_0xf798[28]][_0xf798[24]],{attributes:[_0xf798[24],_0xf798[29]]})[_0xf798[12]](function(_0xa9b6x11){_0xa9b6xc=_0xa9b6x11;return _0xa9b6x11[_0xf798[27]]({where:{status:{$ne:_0xf798[26]},id:{$ne:_0xa9b6xd}},attributes:[_0xf798[24]]})})[_0xf798[12]](function(_0xa9b6x10){return ReportFax[_0xf798[25]](_0xa9b6x7[_0xf798[20]][_0xf798[24]])})[_0xf798[12]](function(_0xa9b6xe){if(!_0xa9b6xe){return _0xa9b6x8[_0xf798[21]](404)};var _0xa9b6xf=_[_0xf798[22]](_0xa9b6xe,{connectid:_0xa9b6x7[_0xf798[20]][_0xf798[19]]});return _0xa9b6xf[_0xf798[23]]()})[_0xf798[12]](function(){return _0xa9b6x8[_0xf798[21]](200)})[_0xf798[9]](sequelize.UniqueConstraintError,function(_0xa9b6xa){return _0xa9b6x8[_0xf798[21]](504)})[_0xf798[9]](function(_0xa9b6xa){return handleError(_0xa9b6x8,_0xa9b6xa)})};exports[_0xf798[30]]=function(_0xa9b6x7,_0xa9b6x8){return ReportFax[_0xf798[25]](_0xa9b6x7[_0xf798[20]][_0xf798[24]])[_0xf798[12]](function(_0xa9b6xe){if(!_0xa9b6xe){return _0xa9b6x8[_0xf798[21]](404)};var _0xa9b6xf=_[_0xf798[22]](_0xa9b6xe,{rejectedAt:moment()[_0xf798[32]](_0xf798[31])});return _0xa9b6xf[_0xf798[23]]()})[_0xf798[12]](function(){return _0xa9b6x8[_0xf798[21]](200)})[_0xf798[9]](function(_0xa9b6xa){return handleError(_0xa9b6x8,_0xa9b6xa)})};function handleError(_0xa9b6x8,_0xa9b6xa){return _0xa9b6x8[_0xf798[11]](500)[_0xf798[10]](_0xa9b6xa)}
\ No newline at end of file