1 var _0xd9d3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6E\x6F\x64\x65\x2D\x75\x75\x69\x64","\x74\x69\x66\x66\x2D\x74\x6F\x2D\x70\x6E\x67","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x66\x73","\x70\x61\x74\x68","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x43\x6F\x6E\x74\x61\x63\x74","\x45\x76\x65\x6E\x74","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x65\x67\x69\x73\x74\x65\x72","\x72\x65\x63\x65\x69\x76\x65\x66\x61\x78","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x73\x74\x61\x74\x75\x73","\x52\x45\x43\x45\x49\x56\x45\x44","\x46\x61\x78\x52\x6F\x6F\x6D\x49\x64","\x69\x64","\x49\x4E\x43\x4F\x4D\x49\x4E\x47","\x46\x41\x58","\x63\x72\x65\x61\x74\x65","\x73\x65\x74\x46\x72\x6F\x6D","\x73\x70\x72\x65\x61\x64","\x72\x65\x6D\x6F\x74\x65\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x73\x65\x74\x54\x6F","\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x76\x34","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x66\x61\x78","\x69\x6E\x62\x6F\x75\x6E\x64","\x2E\x70\x64\x66","\x6A\x6F\x69\x6E","\x63\x6F\x6E\x76\x65\x72\x74\x20","\x20","\x54\x68\x65\x20\x66\x69\x6C\x65\x20","\x20\x65\x78\x69\x74\x73","\x20\x77\x61\x73\x20\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x20\x69\x6E\x20\x50\x44\x46","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x65\x78\x69\x74\x73","\x65\x78\x69\x73\x74\x73","\x4E\x45\x57","\x6F\x6E","\x73\x65\x6E\x64\x66\x61\x78","\x2A\x2A\x2A\x53\x65\x6E\x64\x46\x41\x58\x2A\x2A\x2A","\x6C\x6F\x67","\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x76\x61\x72\x73\x65\x74","\x66\x61\x78\x73\x74\x61\x74\x75\x73","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x53\x65\x74\x3A\x20","\x76\x61\x6C\x75\x65","\x46\x41\x49\x4C\x45\x44","\x53\x45\x4E\x54","\x66\x61\x78\x65\x72\x72\x6F\x72","\x66\x61\x78\x73\x74\x61\x74\x75\x73\x73\x74\x72\x69\x6E\x67","\x6C\x61\x73\x74\x73\x74\x61\x74\x75\x73","\x75\x73\x65\x72\x65\x76\x65\x6E\x74","\x46\x61\x78","\x53\x45\x4E\x44\x49\x4E\x47","\x75\x75\x69\x64","\x46\x41\x58\x53\x74\x61\x74\x75\x73\x3A\x20","\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x61\x6D\x69"];_0xd9d3[0];var _=require(_0xd9d3[1]);var uuidLib=require(_0xd9d3[2]);var ConvertTiff=require(_0xd9d3[3]);var exec=require(_0xd9d3[5])[_0xd9d3[4]];var fs=require(_0xd9d3[6]);var path=require(_0xd9d3[7]);var FaxMessage=require(_0xd9d3[9])[_0xd9d3[8]];var FaxRoom=require(_0xd9d3[9])[_0xd9d3[10]];var Contact=require(_0xd9d3[9])[_0xd9d3[11]];var Event=require(_0xd9d3[9])[_0xd9d3[12]];var config=require(_0xd9d3[13]);exports[_0xd9d3[14]]= function(_0xee2exc){_0xee2exc[_0xd9d3[50]](_0xd9d3[15],function(_0xee2exd){FaxRoom[_0xd9d3[24]]({status:_0xd9d3[49],from:_0xee2exd[_0xd9d3[27]],FaxAccountId:1})[_0xd9d3[45]](function(_0xee2exf){_0xee2exd[_0xd9d3[18]]= _0xd9d3[19];_0xee2exd[_0xd9d3[20]]= _0xee2exf[_0xd9d3[21]];FaxMessage[_0xd9d3[24]](_0xee2exd)[_0xd9d3[45]](function(_0xee2ex10){Event[_0xd9d3[24]]({name:_0xd9d3[22],channel:_0xd9d3[23],FaxRoomId:_0xee2exf[_0xd9d3[21]],FaxAccountId:1})[_0xd9d3[17]](function(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)});Contact[_0xd9d3[28]]({where:{phone:_0xee2exd[_0xd9d3[27]]},defaults:{phone:_0xee2exd[_0xd9d3[27]],fullname:_0xee2exd[_0xd9d3[27]]}})[_0xd9d3[26]](function(_0xee2ex11,_0xee2ex12){_0xee2ex10[_0xd9d3[25]](_0xee2ex11)});Contact[_0xd9d3[28]]({where:{phone:_0xee2exd[_0xd9d3[30]]},defaults:{phone:_0xee2exd[_0xd9d3[30]],fullname:_0xee2exd[_0xd9d3[30]]}})[_0xd9d3[26]](function(_0xee2ex11,_0xee2ex12){_0xee2ex10[_0xd9d3[29]](_0xee2ex11)});var _0xee2ex13=uuidLib[_0xd9d3[31]]();var _0xee2ex14=_0xee2exd[_0xd9d3[32]];var _0xee2ex15=path[_0xd9d3[39]](config[_0xd9d3[33]],_0xd9d3[34],_0xd9d3[35],_0xd9d3[36],_0xd9d3[37],_0xee2ex13+ _0xd9d3[38]);var _0xee2ex16=_0xd9d3[40]+ _0xee2ex14+ _0xd9d3[41]+ _0xee2ex15;fs[_0xd9d3[48]](_0xee2ex14,function(_0xee2ex17){if(_0xee2ex17){console[_0xd9d3[16]](_0xd9d3[42]+ _0xee2ex14+ _0xd9d3[43]);exec(_0xee2ex16,function(_0xee2exe){if(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)}else {_0xee2ex10[_0xd9d3[46]]({filenamePDF:_0xee2ex13+ _0xd9d3[38]})[_0xd9d3[45]](function(){console[_0xd9d3[16]](_0xd9d3[42]+ _0xee2ex14+ _0xd9d3[44])})[_0xd9d3[17]](function(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)})}})}else {console[_0xd9d3[16]](_0xd9d3[42]+ _0xee2ex14+ _0xd9d3[47])}})})[_0xd9d3[17]](function(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)})})[_0xd9d3[17]](function(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)})});_0xee2exc[_0xd9d3[50]](_0xd9d3[51],function(_0xee2exd){console[_0xd9d3[53]](_0xd9d3[52]);FaxMessage[_0xd9d3[55]]({where:{uniqueid:_0xee2exd[_0xd9d3[54]]}})[_0xd9d3[45]](function(_0xee2ex10){if(_0xee2ex10){_0xee2ex10[_0xd9d3[46]](_0xee2exd)}})[_0xd9d3[17]](function(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)})});_0xee2exc[_0xd9d3[50]](_0xd9d3[56],function(_0xee2exd){if(_0xee2exd[_0xd9d3[59]][_0xd9d3[58]](_0xd9d3[57])){FaxMessage[_0xd9d3[55]]({where:{uniqueid:_0xee2exd[_0xd9d3[54]]}})[_0xd9d3[45]](function(_0xee2ex10){if(_0xee2ex10){console[_0xd9d3[53]](_0xd9d3[60],_0xd9d3[18],_0xee2exd[_0xd9d3[61]]);_0xee2ex10[_0xd9d3[46]]({status:_0xee2exd[_0xd9d3[61]]== _0xd9d3[62]?_0xd9d3[62]:_0xd9d3[63]})}})[_0xd9d3[17]](function(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)})}else {if(_0xee2exd[_0xd9d3[59]][_0xd9d3[58]](_0xd9d3[64])){FaxMessage[_0xd9d3[55]]({where:{uniqueid:_0xee2exd[_0xd9d3[54]]}})[_0xd9d3[45]](function(_0xee2ex10){if(_0xee2ex10){console[_0xd9d3[53]](_0xd9d3[60],_0xd9d3[16],_0xee2exd[_0xd9d3[61]]);_0xee2ex10[_0xd9d3[46]]({error:_0xee2exd[_0xd9d3[61]]})}})[_0xd9d3[17]](function(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)})}else {if(_0xee2exd[_0xd9d3[59]][_0xd9d3[58]](_0xd9d3[65])){FaxMessage[_0xd9d3[55]]({where:{uniqueid:_0xee2exd[_0xd9d3[54]]}})[_0xd9d3[45]](function(_0xee2ex10){if(_0xee2ex10){console[_0xd9d3[53]](_0xd9d3[60],_0xd9d3[66],_0xee2exd[_0xd9d3[61]]);_0xee2ex10[_0xd9d3[46]]({laststatus:_0xee2exd[_0xd9d3[61]]})}})[_0xd9d3[17]](function(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)})}}}});_0xee2exc[_0xd9d3[50]](_0xd9d3[67],function(_0xee2exd){if(_0xee2exd[_0xd9d3[67]]=== _0xd9d3[68]){FaxMessage[_0xd9d3[55]]({where:{uuid:_0xee2exd[_0xd9d3[70]]}})[_0xd9d3[45]](function(_0xee2ex10){if(_0xee2ex10){_0xee2exd[_0xd9d3[18]]= _0xd9d3[69];_0xee2ex10[_0xd9d3[46]](_0xee2exd)}})[_0xd9d3[17]](function(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)})}});_0xee2exc[_0xd9d3[50]](_0xd9d3[57],function(_0xee2exd){FaxMessage[_0xd9d3[55]]({where:{uniqueid:_0xee2exd[_0xd9d3[54]]}})[_0xd9d3[45]](function(_0xee2ex10){if(_0xee2ex10){console[_0xd9d3[53]](_0xd9d3[71],_0xee2exd[_0xd9d3[54]],_0xee2exd[_0xd9d3[18]]);_0xee2ex10[_0xd9d3[46]]({operation:_0xee2exd[_0xd9d3[72]],laststatus:_0xee2exd[_0xd9d3[18]]})}})[_0xd9d3[17]](function(_0xee2exe){console[_0xd9d3[16]](_0xee2exe)})});require(_0xd9d3[73])[_0xd9d3[14]](_0xee2exc)}