Built motion from commit 9362eee.|1.0.9
[motion.git] / server / api / fax_message / fax_message.controller.js
index a81c81b..2fd27cd 100644 (file)
@@ -1 +1 @@
-var _0x22f1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x66\x73","\x70\x61\x74\x68","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x6E\x6F\x64\x65\x2D\x75\x75\x69\x64","\x68\x74\x6D\x6C\x2D\x70\x64\x66","\x66\x6F\x72\x6D\x69\x64\x61\x62\x6C\x65","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x43\x6F\x6E\x74\x61\x63\x74","\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","\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x44\x45\x53\x43","\x46\x72\x6F\x6D","\x54\x6F","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x66\x61\x78","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x2E\x70\x64\x66","\x6A\x6F\x69\x6E","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x2E\x74\x69\x66","\x67\x73","\x20\x2D\x71\x20\x2D\x64\x4E\x4F\x50\x41\x55\x53\x45\x20\x2D\x64\x42\x41\x54\x43\x48\x20\x2D\x73\x44\x45\x56\x49\x43\x45\x3D\x74\x69\x66\x66\x67\x34\x20","\x2D\x73\x50\x41\x50\x45\x52\x53\x49\x5A\x45\x3D\x6C\x65\x74\x74\x65\x72\x20\x2D\x73\x4F\x75\x74\x70\x75\x74\x46\x69\x6C\x65\x3D","\x20","\x76\x34","\x53\x49\x50","\x74\x6F\x4E\x75\x6D","\x70\x68\x6F\x6E\x65","\x66\x61\x78\x68\x65\x61\x64\x65\x72","\x6C\x6F\x63\x61\x6C\x69\x64","\x6D\x61\x78\x72\x61\x74\x65","\x6D\x69\x6E\x72\x61\x74\x65","\x65\x63\x6D","\x54\x72\x75\x6E\x6B\x49\x64","\x46\x69\x6C\x65\x20\x6E\x6F\x74\x20\x65\x78\x69\x73\x74\x73","\x65\x72\x72\x6F\x72","\x46\x61\x78\x3A\x20\x50\x44\x46\x20\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x20\x74\x6F\x20\x54\x49\x46\x46","\x6C\x6F\x67","\x72\x6F\x6F\x6D\x49\x64","\x73\x65\x74\x46\x72\x6F\x6D","\x73\x70\x72\x65\x61\x64","\x66\x72\x6F\x6D","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x73\x65\x74\x54\x6F","\x74\x6F","\x4E\x4F\x54\x20\x53\x45\x4E\x54","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x4F\x50\x45\x4E","\x61\x63\x63\x6F\x75\x6E\x74\x49\x64","\x75\x73\x65\x72\x49\x64","\x63\x68\x6D\x6F\x64","\x65\x78\x69\x73\x74\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x67\x65\x74\x43\x6F\x6E\x74\x65\x6E\x74\x46\x72\x6F\x6D\x4D\x65\x73\x73\x61\x67\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65\x50\x44\x46","\x52\x45\x43\x45\x49\x56\x45\x44","\x69\x6E\x62\x6F\x75\x6E\x64","\x73\x65\x6E\x64\x46\x69\x6C\x65","\x64\x69\x72\x65\x63\x74\x6F\x72\x79","\x53\x45\x4E\x54","\x46\x41\x49\x4C\x45\x44"];_0x22f1[0];var _=require(_0x22f1[1]);var fs=require(_0x22f1[2]);var path=require(_0x22f1[3]);var uploadFile=require(_0x22f1[4]);var uuidLib=require(_0x22f1[5]);var pdf=require(_0x22f1[6]);var formidable=require(_0x22f1[7]);var exec=require(_0x22f1[9])[_0x22f1[8]];var config=require(_0x22f1[10]);var FaxMessage=require(_0x22f1[12])[_0x22f1[11]];var FaxRoom=require(_0x22f1[12])[_0x22f1[13]];var FaxAccount=require(_0x22f1[12])[_0x22f1[14]];var Contact=require(_0x22f1[12])[_0x22f1[15]];exports[_0x22f1[16]]=function(_0x4f2dxe,_0x4f2dxf){FaxMessage[_0x22f1[25]]({where:_0x4f2dxe[_0x22f1[21]],order:_0x22f1[22],include:[{model:Contact,as:_0x22f1[23]},{model:Contact,as:_0x22f1[24]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0x22f1[20]](function(_0x4f2dx11){return _0x4f2dxf[_0x22f1[19]](200)[_0x22f1[18]](_0x4f2dx11)})[_0x22f1[17]](function(_0x4f2dx10){return handleError(_0x4f2dxf,_0x4f2dx10)})};exports[_0x22f1[26]]=function(_0x4f2dxe,_0x4f2dxf){FaxMessage[_0x22f1[30]]({where:{id:_0x4f2dxe[_0x22f1[29]][_0x22f1[28]]},include:[{model:Contact,as:_0x22f1[23]},{model:Contact,as:_0x22f1[24]}]})[_0x22f1[20]](function(_0x4f2dx12){if(!_0x4f2dx12){return _0x4f2dxf[_0x22f1[27]](404)};return _0x4f2dxf[_0x22f1[18]](_0x4f2dx12)})[_0x22f1[17]](function(_0x4f2dx10){return handleError(_0x4f2dxf,_0x4f2dx10)})};exports[_0x22f1[31]]=function(_0x4f2dxe,_0x4f2dxf,_0x4f2dx13){FaxMessage[_0x22f1[31]](_0x4f2dxe[_0x22f1[32]])[_0x22f1[20]](function(_0x4f2dx12){return _0x4f2dxf[_0x22f1[19]](201)[_0x22f1[18]](_0x4f2dx12)})[_0x22f1[17]](function(_0x4f2dx10){return handleError(_0x4f2dxf,_0x4f2dx10)})};function convertPdfAndSendFax(_0x4f2dxe,_0x4f2dxf,_0x4f2dx15,_0x4f2dx16){var _0x4f2dx17=path[_0x22f1[40]](config[_0x22f1[33]],_0x22f1[34],_0x22f1[35],_0x22f1[36],_0x22f1[37],_0x22f1[38],_0x4f2dx15+_0x22f1[39]);var _0x4f2dx18=path[_0x22f1[40]](config[_0x22f1[33]],_0x22f1[34],_0x22f1[35],_0x22f1[36],_0x22f1[37],_0x22f1[41],_0x4f2dx15+_0x22f1[42]);var _0x4f2dx19=_0x22f1[43]+_0x22f1[44]+_0x22f1[45]+_0x4f2dx18+_0x22f1[46]+_0x4f2dx17;var _0x4f2dx1a=uuidLib[_0x22f1[47]]();FaxAccount[_0x22f1[75]](_0x4f2dx16[_0x22f1[71]])[_0x22f1[20]](function(_0x4f2dx1b){if(_0x4f2dx1b){var _0x4f2dx1c={technology:_0x22f1[48],to:_0x4f2dx16[_0x22f1[49]],from:_0x4f2dx1b[_0x22f1[50]],fax_file:_0x4f2dx18,fax_header:_0x4f2dx1b[_0x22f1[51]],fax_localid:_0x4f2dx1b[_0x22f1[52]],maxrate:_0x4f2dx1b[_0x22f1[53]],minrate:_0x4f2dx1b[_0x22f1[54]],ecm:_0x4f2dx1b[_0x22f1[55]],uuid:_0x4f2dx1a,trunk:{id:_0x4f2dx1b[_0x22f1[56]]}};fs[_0x22f1[74]](_0x4f2dx17,function(_0x4f2dx1d){if(!_0x4f2dx1d){handleError(_0x4f2dxf, new Error(_0x22f1[57]))}else {exec(_0x4f2dx19,function(_0x4f2dx10){if(_0x4f2dx10){console[_0x22f1[58]](_0x4f2dx10);handleError(_0x4f2dxf,_0x4f2dx10)}else {console[_0x22f1[60]](_0x22f1[59]);fs[_0x22f1[73]](_0x4f2dx18,511,function(_0x4f2dx10){if(_0x4f2dx16[_0x22f1[61]]){FaxRoom[_0x22f1[65]]({where:{id:_0x4f2dx16[_0x22f1[61]]},defaults:{}})[_0x22f1[63]](function(_0x4f2dx1e,_0x4f2dx1f){FaxMessage[_0x22f1[31]]({status:_0x22f1[68],read:true,filenamePDF:_0x4f2dx15+_0x22f1[39],filename:_0x4f2dx15+_0x22f1[42],body:JSON[_0x22f1[69]](_0x4f2dx1c),uuid:_0x4f2dx1a,FaxRoomId:_0x4f2dx1e[_0x22f1[28]]})[_0x22f1[20]](function(_0x4f2dx20){Contact[_0x22f1[65]]({where:{phone:_0x4f2dx1c[_0x22f1[64]]},defaults:{phone:_0x4f2dx1c[_0x22f1[64]],fullname:_0x4f2dx1c[_0x22f1[64]]}})[_0x22f1[63]](function(_0x4f2dx21,_0x4f2dx1f){_0x4f2dx20[_0x22f1[62]](_0x4f2dx21)});Contact[_0x22f1[65]]({where:{phone:_0x4f2dx1c[_0x22f1[67]]},defaults:{phone:_0x4f2dx1c[_0x22f1[67]],fullname:_0x4f2dx1c[_0x22f1[67]]}})[_0x22f1[63]](function(_0x4f2dx21,_0x4f2dx1f){_0x4f2dx20[_0x22f1[66]](_0x4f2dx21)});return _0x4f2dxf[_0x22f1[19]](200)[_0x22f1[18]](_0x4f2dx20)})[_0x22f1[17]](function(_0x4f2dx10){handleError(_0x4f2dxf,_0x4f2dx10)})})}else {FaxRoom[_0x22f1[31]]({status:_0x22f1[70],from:_0x4f2dx16[_0x22f1[49]],FaxAccountId:_0x4f2dx16[_0x22f1[71]],UserId:_0x4f2dx16[_0x22f1[72]]})[_0x22f1[20]](function(_0x4f2dx1e){FaxMessage[_0x22f1[31]]({status:_0x22f1[68],read:true,filenamePDF:_0x4f2dx15+_0x22f1[39],filename:_0x4f2dx15+_0x22f1[42],body:JSON[_0x22f1[69]](_0x4f2dx1c),uuid:_0x4f2dx1a,FaxRoomId:_0x4f2dx1e[_0x22f1[28]]})[_0x22f1[20]](function(_0x4f2dx20){Contact[_0x22f1[65]]({where:{phone:_0x4f2dx1c[_0x22f1[64]]},defaults:{phone:_0x4f2dx1c[_0x22f1[64]],fullname:_0x4f2dx1c[_0x22f1[64]]}})[_0x22f1[63]](function(_0x4f2dx21,_0x4f2dx1f){_0x4f2dx20[_0x22f1[62]](_0x4f2dx21)});Contact[_0x22f1[65]]({where:{phone:_0x4f2dx1c[_0x22f1[67]]},defaults:{phone:_0x4f2dx1c[_0x22f1[67]],fullname:_0x4f2dx1c[_0x22f1[67]]}})[_0x22f1[63]](function(_0x4f2dx21,_0x4f2dx1f){_0x4f2dx20[_0x22f1[66]](_0x4f2dx21)});return _0x4f2dxf[_0x22f1[19]](200)[_0x22f1[18]](_0x4f2dx20)})[_0x22f1[17]](function(_0x4f2dx10){handleError(_0x4f2dxf,_0x4f2dx10)})})[_0x22f1[17]](function(_0x4f2dx10){handleError(_0x4f2dxf,_0x4f2dx10)})}})}})}})}})}exports[_0x22f1[76]]=function(_0x4f2dxe,_0x4f2dxf){if(_0x4f2dxe[_0x22f1[32]][_0x22f1[28]]){delete _0x4f2dxe[_0x22f1[32]][_0x22f1[28]]};FaxMessage[_0x22f1[30]]({where:{id:_0x4f2dxe[_0x22f1[29]][_0x22f1[28]]},include:[{model:Contact,as:_0x22f1[23]},{model:Contact,as:_0x22f1[24]}]})[_0x22f1[20]](function(_0x4f2dx12){if(!_0x4f2dx12){return _0x4f2dxf[_0x22f1[27]](404)};var _0x4f2dx22=_[_0x22f1[77]](_0x4f2dx12,_0x4f2dxe[_0x22f1[32]]);_0x4f2dx22[_0x22f1[78]]()[_0x22f1[20]](function(){return _0x4f2dxf[_0x22f1[19]](200)[_0x22f1[18]](_0x4f2dx12)})[_0x22f1[17]](function(_0x4f2dx10){return handleError(_0x4f2dxf,_0x4f2dx10)})})[_0x22f1[17]](function(_0x4f2dx10){return handleError(_0x4f2dxf,_0x4f2dx10)})};exports[_0x22f1[79]]=function(_0x4f2dxe,_0x4f2dxf){FaxMessage[_0x22f1[80]]({where:{id:_0x4f2dxe[_0x22f1[29]][_0x22f1[28]]}})[_0x22f1[20]](function(_0x4f2dx12){if(!_0x4f2dx12){return _0x4f2dxf[_0x22f1[27]](404)};_0x4f2dx12[_0x22f1[79]]()[_0x22f1[20]](function(){return _0x4f2dxf[_0x22f1[27]](204)})[_0x22f1[17]](function(_0x4f2dx10){return handleError(_0x4f2dxf,_0x4f2dx10)})})[_0x22f1[17]](function(_0x4f2dx10){return handleError(_0x4f2dxf,_0x4f2dx10)})};exports[_0x22f1[81]]=function(_0x4f2dxe,_0x4f2dxf){FaxMessage[_0x22f1[75]](_0x4f2dxe[_0x22f1[29]][_0x22f1[28]])[_0x22f1[20]](function(_0x4f2dx12){if(!_0x4f2dx12){return _0x4f2dxf[_0x22f1[27]](404)};if(_0x4f2dx12[_0x22f1[82]]){if(_0x4f2dx12[_0x22f1[19]]===_0x22f1[83]){var _0x4f2dx23=path[_0x22f1[40]](config[_0x22f1[33]],_0x22f1[34],_0x22f1[35],_0x22f1[36],_0x22f1[84],_0x4f2dx12[_0x22f1[82]]);fs[_0x22f1[74]](_0x4f2dx23,function(_0x4f2dx1d){if(_0x4f2dx1d){return _0x4f2dxf[_0x22f1[85]](_0x4f2dx23)}else {return _0x4f2dxf[_0x22f1[27]](404)}})}else {if(_0x4f2dx12[_0x22f1[19]]===_0x22f1[68]||_0x4f2dx12[_0x22f1[86]]===_0x22f1[87]||_0x4f2dx12[_0x22f1[19]]===_0x22f1[88]){var _0x4f2dx23=path[_0x22f1[40]](config[_0x22f1[33]],_0x22f1[34],_0x22f1[35],_0x22f1[36],_0x22f1[37],_0x22f1[38],_0x4f2dx12[_0x22f1[82]]);fs[_0x22f1[74]](_0x4f2dx23,function(_0x4f2dx1d){if(_0x4f2dx1d){return _0x4f2dxf[_0x22f1[85]](_0x4f2dx23)}else {return _0x4f2dxf[_0x22f1[27]](404)}})}}}else {_0x4f2dxf[_0x22f1[27]](404)}})[_0x22f1[17]](function(_0x4f2dx10){return handleError(_0x4f2dxf,_0x4f2dx10)})};function handleError(_0x4f2dxf,_0x4f2dx10){return _0x4f2dxf[_0x22f1[19]](500)[_0x22f1[18]](_0x4f2dx10)}
\ No newline at end of file
+var _0x6dc0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x66\x73","\x70\x61\x74\x68","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x6E\x6F\x64\x65\x2D\x75\x75\x69\x64","\x68\x74\x6D\x6C\x2D\x70\x64\x66","\x66\x6F\x72\x6D\x69\x64\x61\x62\x6C\x65","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x55\x73\x65\x72","\x69\x6E\x64\x65\x78","\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x44\x45\x53\x43","\x77\x68\x65\x72\x65","\x71\x75\x65\x72\x79","\x61\x64\x6D\x69\x6E","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x75\x73\x65\x72","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x55\x73\x65\x72\x49\x64","\x62\x6F\x64\x79","\x74\x65\x78\x74","\x75\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x6C\x65\x74\x65","\x54\x52\x41\x53\x48","\x62\x75\x6C\x6B\x55\x70\x64\x61\x74\x65"];_0x6dc0[0];var _=require(_0x6dc0[1]);var fs=require(_0x6dc0[2]);var path=require(_0x6dc0[3]);var uploadFile=require(_0x6dc0[4]);var uuidLib=require(_0x6dc0[5]);var pdf=require(_0x6dc0[6]);var formidable=require(_0x6dc0[7]);var exec=require(_0x6dc0[9])[_0x6dc0[8]];var config=require(_0x6dc0[10]);var FaxMessage=require(_0x6dc0[12])[_0x6dc0[11]];var FaxAttachment=require(_0x6dc0[12])[_0x6dc0[13]];var FaxRoom=require(_0x6dc0[12])[_0x6dc0[14]];var FaxAccount=require(_0x6dc0[12])[_0x6dc0[15]];var FaxAttachment=require(_0x6dc0[12])[_0x6dc0[13]];var User=require(_0x6dc0[12])[_0x6dc0[16]];exports[_0x6dc0[17]]= function(_0xa1fcxf,_0xa1fcx10,_0xa1fcx11){var _0xa1fcx12={order:_0x6dc0[18],include:[{all:true,include:[{all:true}]}]};switch(_0xa1fcxf[_0x6dc0[24]][_0x6dc0[23]]){case _0x6dc0[21]:_0xa1fcx12[_0x6dc0[19]]= _0xa1fcxf[_0x6dc0[20]];break;case _0x6dc0[22]:break;default:};return FaxMessage[_0x6dc0[29]](_0xa1fcx12)[_0x6dc0[28]](function(_0xa1fcx14){return _0xa1fcx10[_0x6dc0[27]](200)[_0x6dc0[26]](_0xa1fcx14)})[_0x6dc0[25]](function(_0xa1fcx13){return handleError(_0xa1fcx10,_0xa1fcx13,_0xa1fcx11)})};exports[_0x6dc0[30]]= function(_0xa1fcxf,_0xa1fcx10){return FaxMessage[_0x6dc0[30]]()[_0x6dc0[28]](function(_0xa1fcx15){return _0xa1fcx10[_0x6dc0[27]](200)[_0x6dc0[26]](_0xa1fcx15)})[_0x6dc0[25]](function(_0xa1fcx13){return handleError(_0xa1fcx10,_0xa1fcx13)})};exports[_0x6dc0[31]]= function(_0xa1fcxf,_0xa1fcx10,_0xa1fcx11){return FaxMessage[_0x6dc0[38]](_0xa1fcxf[_0x6dc0[34]][_0x6dc0[33]],{include:[{model:FaxAttachment},{model:User,attributes:[_0x6dc0[33],_0x6dc0[35],_0x6dc0[36],_0x6dc0[37]]}]})[_0x6dc0[28]](function(_0xa1fcx16){if(!_0xa1fcx16){return _0xa1fcx10[_0x6dc0[32]](404)};return _0xa1fcx10[_0x6dc0[26]](_0xa1fcx16)})[_0x6dc0[25]](function(_0xa1fcx13){return handleError(_0xa1fcx10,_0xa1fcx13,_0xa1fcx11)})};exports[_0x6dc0[39]]= function(_0xa1fcxf,_0xa1fcx10,_0xa1fcx11){_0xa1fcxf[_0x6dc0[41]][_0x6dc0[40]]= _0xa1fcxf[_0x6dc0[24]][_0x6dc0[33]];_0xa1fcxf[_0x6dc0[41]][_0x6dc0[42]]= _0xa1fcxf[_0x6dc0[41]][_0x6dc0[42]];return FaxMessage[_0x6dc0[39]](_0xa1fcxf[_0x6dc0[41]],{include:[{model:FaxAttachment}]})[_0x6dc0[28]](function(_0xa1fcx16){return _0xa1fcx10[_0x6dc0[27]](201)[_0x6dc0[26]](_0xa1fcx16)})[_0x6dc0[25]](function(_0xa1fcx13){return handleError(_0xa1fcx10,_0xa1fcx13)})};exports[_0x6dc0[43]]= function(_0xa1fcxf,_0xa1fcx10,_0xa1fcx11){return FaxMessage[_0x6dc0[38]](_0xa1fcxf[_0x6dc0[34]][_0x6dc0[33]],{include:[{all:true}]})[_0x6dc0[28]](function(_0xa1fcx16){if(!_0xa1fcx16){return _0xa1fcx10[_0x6dc0[32]](404)};return _0xa1fcx16[_0x6dc0[44]](_0xa1fcxf[_0x6dc0[41]],{user:_0xa1fcxf[_0x6dc0[24]]})})[_0x6dc0[28]](function(_0xa1fcx17){return _0xa1fcx10[_0x6dc0[27]](200)[_0x6dc0[26]](_0xa1fcx17)})[_0x6dc0[25]](function(_0xa1fcx13){return handleError(_0xa1fcx10,_0xa1fcx13,_0xa1fcx11)})};exports[_0x6dc0[45]]= function(_0xa1fcxf,_0xa1fcx10,_0xa1fcx11){return FaxMessage[_0x6dc0[38]](_0xa1fcxf[_0x6dc0[34]][_0x6dc0[33]])[_0x6dc0[28]](function(_0xa1fcx16){if(!_0xa1fcx16){return _0xa1fcx10[_0x6dc0[32]](404)};return _0xa1fcx16[_0x6dc0[45]]()})[_0x6dc0[28]](function(){return _0xa1fcx10[_0x6dc0[32]](204)})[_0x6dc0[25]](function(_0xa1fcx13){return handleError(_0xa1fcx10,_0xa1fcx13,_0xa1fcx11)})};exports[_0x6dc0[46]]= function(_0xa1fcxf,_0xa1fcx10,_0xa1fcx11){return FaxMessage[_0x6dc0[48]]({where:{id:{$in:_0xa1fcxf[_0x6dc0[41]][_0x6dc0[33]]}},attributes:{directory:_0x6dc0[47]}})[_0x6dc0[28]](function(_0xa1fcx16){if(!_0xa1fcx16){return _0xa1fcx10[_0x6dc0[32]](404)};return _0xa1fcx16[_0x6dc0[45]]()})[_0x6dc0[28]](function(){return _0xa1fcx10[_0x6dc0[32]](204)})[_0x6dc0[25]](function(_0xa1fcx13){return handleError(_0xa1fcx10,_0xa1fcx13,_0xa1fcx11)})};function handleError(_0xa1fcx10,_0xa1fcx13,_0xa1fcx11){return _0xa1fcx10[_0x6dc0[27]](500)[_0x6dc0[26]](_0xa1fcx13)}
\ No newline at end of file