-var _0x812b=["\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"];_0x812b[0];var _=require(_0x812b[1]);var uuidLib=require(_0x812b[2]);var ConvertTiff=require(_0x812b[3]);var exec=require(_0x812b[5])[_0x812b[4]];var fs=require(_0x812b[6]);var path=require(_0x812b[7]);var FaxMessage=require(_0x812b[9])[_0x812b[8]];var FaxRoom=require(_0x812b[9])[_0x812b[10]];var Contact=require(_0x812b[9])[_0x812b[11]];var Event=require(_0x812b[9])[_0x812b[12]];var config=require(_0x812b[13]);exports[_0x812b[14]]=function(_0x12edxc){_0x12edxc[_0x812b[50]](_0x812b[15],function(_0x12edxd){FaxRoom[_0x812b[24]]({status:_0x812b[49],from:_0x12edxd[_0x812b[27]],FaxAccountId:1})[_0x812b[45]](function(_0x12edxf){_0x12edxd[_0x812b[18]]=_0x812b[19];_0x12edxd[_0x812b[20]]=_0x12edxf[_0x812b[21]];FaxMessage[_0x812b[24]](_0x12edxd)[_0x812b[45]](function(_0x12edx10){Event[_0x812b[24]]({name:_0x812b[22],channel:_0x812b[23],FaxRoomId:_0x12edxf[_0x812b[21]],FaxAccountId:1})[_0x812b[17]](function(_0x12edxe){console[_0x812b[16]](_0x12edxe)});Contact[_0x812b[28]]({where:{phone:_0x12edxd[_0x812b[27]]},defaults:{phone:_0x12edxd[_0x812b[27]],fullname:_0x12edxd[_0x812b[27]]}})[_0x812b[26]](function(_0x12edx11,_0x12edx12){_0x12edx10[_0x812b[25]](_0x12edx11)});Contact[_0x812b[28]]({where:{phone:_0x12edxd[_0x812b[30]]},defaults:{phone:_0x12edxd[_0x812b[30]],fullname:_0x12edxd[_0x812b[30]]}})[_0x812b[26]](function(_0x12edx11,_0x12edx12){_0x12edx10[_0x812b[29]](_0x12edx11)});var _0x12edx13=uuidLib[_0x812b[31]]();var _0x12edx14=_0x12edxd[_0x812b[32]];var _0x12edx15=path[_0x812b[39]](config[_0x812b[33]],_0x812b[34],_0x812b[35],_0x812b[36],_0x812b[37],_0x12edx13+_0x812b[38]);var _0x12edx16=_0x812b[40]+_0x12edx14+_0x812b[41]+_0x12edx15;fs[_0x812b[48]](_0x12edx14,function(_0x12edx17){if(_0x12edx17){console[_0x812b[16]](_0x812b[42]+_0x12edx14+_0x812b[43]);exec(_0x12edx16,function(_0x12edxe){if(_0x12edxe){console[_0x812b[16]](_0x12edxe)}else {_0x12edx10[_0x812b[46]]({filenamePDF:_0x12edx13+_0x812b[38]})[_0x812b[45]](function(){console[_0x812b[16]](_0x812b[42]+_0x12edx14+_0x812b[44])})[_0x812b[17]](function(_0x12edxe){console[_0x812b[16]](_0x12edxe)})}})}else {console[_0x812b[16]](_0x812b[42]+_0x12edx14+_0x812b[47])}})})[_0x812b[17]](function(_0x12edxe){console[_0x812b[16]](_0x12edxe)})})[_0x812b[17]](function(_0x12edxe){console[_0x812b[16]](_0x12edxe)})});_0x12edxc[_0x812b[50]](_0x812b[51],function(_0x12edxd){console[_0x812b[53]](_0x812b[52]);FaxMessage[_0x812b[55]]({where:{uniqueid:_0x12edxd[_0x812b[54]]}})[_0x812b[45]](function(_0x12edx10){if(_0x12edx10){_0x12edx10[_0x812b[46]](_0x12edxd)}})[_0x812b[17]](function(_0x12edxe){console[_0x812b[16]](_0x12edxe)})});_0x12edxc[_0x812b[50]](_0x812b[56],function(_0x12edxd){if(_0x12edxd[_0x812b[59]][_0x812b[58]](_0x812b[57])){FaxMessage[_0x812b[55]]({where:{uniqueid:_0x12edxd[_0x812b[54]]}})[_0x812b[45]](function(_0x12edx10){if(_0x12edx10){console[_0x812b[53]](_0x812b[60],_0x812b[18],_0x12edxd[_0x812b[61]]);_0x12edx10[_0x812b[46]]({status:_0x12edxd[_0x812b[61]]==_0x812b[62]?_0x812b[62]:_0x812b[63]})}})[_0x812b[17]](function(_0x12edxe){console[_0x812b[16]](_0x12edxe)})}else {if(_0x12edxd[_0x812b[59]][_0x812b[58]](_0x812b[64])){FaxMessage[_0x812b[55]]({where:{uniqueid:_0x12edxd[_0x812b[54]]}})[_0x812b[45]](function(_0x12edx10){if(_0x12edx10){console[_0x812b[53]](_0x812b[60],_0x812b[16],_0x12edxd[_0x812b[61]]);_0x12edx10[_0x812b[46]]({error:_0x12edxd[_0x812b[61]]})}})[_0x812b[17]](function(_0x12edxe){console[_0x812b[16]](_0x12edxe)})}else {if(_0x12edxd[_0x812b[59]][_0x812b[58]](_0x812b[65])){FaxMessage[_0x812b[55]]({where:{uniqueid:_0x12edxd[_0x812b[54]]}})[_0x812b[45]](function(_0x12edx10){if(_0x12edx10){console[_0x812b[53]](_0x812b[60],_0x812b[66],_0x12edxd[_0x812b[61]]);_0x12edx10[_0x812b[46]]({laststatus:_0x12edxd[_0x812b[61]]})}})[_0x812b[17]](function(_0x12edxe){console[_0x812b[16]](_0x12edxe)})}}}});_0x12edxc[_0x812b[50]](_0x812b[67],function(_0x12edxd){if(_0x12edxd[_0x812b[67]]===_0x812b[68]){FaxMessage[_0x812b[55]]({where:{uuid:_0x12edxd[_0x812b[70]]}})[_0x812b[45]](function(_0x12edx10){if(_0x12edx10){_0x12edxd[_0x812b[18]]=_0x812b[69];_0x12edx10[_0x812b[46]](_0x12edxd)}})[_0x812b[17]](function(_0x12edxe){console[_0x812b[16]](_0x12edxe)})}});_0x12edxc[_0x812b[50]](_0x812b[57],function(_0x12edxd){FaxMessage[_0x812b[55]]({where:{uniqueid:_0x12edxd[_0x812b[54]]}})[_0x812b[45]](function(_0x12edx10){if(_0x12edx10){console[_0x812b[53]](_0x812b[71],_0x12edxd[_0x812b[54]],_0x12edxd[_0x812b[18]]);_0x12edx10[_0x812b[46]]({operation:_0x12edxd[_0x812b[72]],laststatus:_0x12edxd[_0x812b[18]]})}})[_0x812b[17]](function(_0x12edxe){console[_0x812b[16]](_0x12edxe)})});require(_0x812b[73])[_0x812b[14]](_0x12edxc)}
\ No newline at end of file
+var _0x491e=["\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"];_0x491e[0];var _=require(_0x491e[1]);var uuidLib=require(_0x491e[2]);var ConvertTiff=require(_0x491e[3]);var exec=require(_0x491e[5])[_0x491e[4]];var fs=require(_0x491e[6]);var path=require(_0x491e[7]);var FaxMessage=require(_0x491e[9])[_0x491e[8]];var FaxRoom=require(_0x491e[9])[_0x491e[10]];var Contact=require(_0x491e[9])[_0x491e[11]];var Event=require(_0x491e[9])[_0x491e[12]];var config=require(_0x491e[13]);exports[_0x491e[14]]= function(_0xb2abxc){_0xb2abxc[_0x491e[50]](_0x491e[15],function(_0xb2abxd){FaxRoom[_0x491e[24]]({status:_0x491e[49],from:_0xb2abxd[_0x491e[27]],FaxAccountId:1})[_0x491e[45]](function(_0xb2abxf){_0xb2abxd[_0x491e[18]]= _0x491e[19];_0xb2abxd[_0x491e[20]]= _0xb2abxf[_0x491e[21]];FaxMessage[_0x491e[24]](_0xb2abxd)[_0x491e[45]](function(_0xb2abx10){Event[_0x491e[24]]({name:_0x491e[22],channel:_0x491e[23],FaxRoomId:_0xb2abxf[_0x491e[21]],FaxAccountId:1})[_0x491e[17]](function(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)});Contact[_0x491e[28]]({where:{phone:_0xb2abxd[_0x491e[27]]},defaults:{phone:_0xb2abxd[_0x491e[27]],fullname:_0xb2abxd[_0x491e[27]]}})[_0x491e[26]](function(_0xb2abx11,_0xb2abx12){_0xb2abx10[_0x491e[25]](_0xb2abx11)});Contact[_0x491e[28]]({where:{phone:_0xb2abxd[_0x491e[30]]},defaults:{phone:_0xb2abxd[_0x491e[30]],fullname:_0xb2abxd[_0x491e[30]]}})[_0x491e[26]](function(_0xb2abx11,_0xb2abx12){_0xb2abx10[_0x491e[29]](_0xb2abx11)});var _0xb2abx13=uuidLib[_0x491e[31]]();var _0xb2abx14=_0xb2abxd[_0x491e[32]];var _0xb2abx15=path[_0x491e[39]](config[_0x491e[33]],_0x491e[34],_0x491e[35],_0x491e[36],_0x491e[37],_0xb2abx13+ _0x491e[38]);var _0xb2abx16=_0x491e[40]+ _0xb2abx14+ _0x491e[41]+ _0xb2abx15;fs[_0x491e[48]](_0xb2abx14,function(_0xb2abx17){if(_0xb2abx17){console[_0x491e[16]](_0x491e[42]+ _0xb2abx14+ _0x491e[43]);exec(_0xb2abx16,function(_0xb2abxe){if(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)}else {_0xb2abx10[_0x491e[46]]({filenamePDF:_0xb2abx13+ _0x491e[38]})[_0x491e[45]](function(){console[_0x491e[16]](_0x491e[42]+ _0xb2abx14+ _0x491e[44])})[_0x491e[17]](function(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)})}})}else {console[_0x491e[16]](_0x491e[42]+ _0xb2abx14+ _0x491e[47])}})})[_0x491e[17]](function(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)})})[_0x491e[17]](function(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)})});_0xb2abxc[_0x491e[50]](_0x491e[51],function(_0xb2abxd){console[_0x491e[53]](_0x491e[52]);FaxMessage[_0x491e[55]]({where:{uniqueid:_0xb2abxd[_0x491e[54]]}})[_0x491e[45]](function(_0xb2abx10){if(_0xb2abx10){_0xb2abx10[_0x491e[46]](_0xb2abxd)}})[_0x491e[17]](function(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)})});_0xb2abxc[_0x491e[50]](_0x491e[56],function(_0xb2abxd){if(_0xb2abxd[_0x491e[59]][_0x491e[58]](_0x491e[57])){FaxMessage[_0x491e[55]]({where:{uniqueid:_0xb2abxd[_0x491e[54]]}})[_0x491e[45]](function(_0xb2abx10){if(_0xb2abx10){console[_0x491e[53]](_0x491e[60],_0x491e[18],_0xb2abxd[_0x491e[61]]);_0xb2abx10[_0x491e[46]]({status:_0xb2abxd[_0x491e[61]]== _0x491e[62]?_0x491e[62]:_0x491e[63]})}})[_0x491e[17]](function(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)})}else {if(_0xb2abxd[_0x491e[59]][_0x491e[58]](_0x491e[64])){FaxMessage[_0x491e[55]]({where:{uniqueid:_0xb2abxd[_0x491e[54]]}})[_0x491e[45]](function(_0xb2abx10){if(_0xb2abx10){console[_0x491e[53]](_0x491e[60],_0x491e[16],_0xb2abxd[_0x491e[61]]);_0xb2abx10[_0x491e[46]]({error:_0xb2abxd[_0x491e[61]]})}})[_0x491e[17]](function(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)})}else {if(_0xb2abxd[_0x491e[59]][_0x491e[58]](_0x491e[65])){FaxMessage[_0x491e[55]]({where:{uniqueid:_0xb2abxd[_0x491e[54]]}})[_0x491e[45]](function(_0xb2abx10){if(_0xb2abx10){console[_0x491e[53]](_0x491e[60],_0x491e[66],_0xb2abxd[_0x491e[61]]);_0xb2abx10[_0x491e[46]]({laststatus:_0xb2abxd[_0x491e[61]]})}})[_0x491e[17]](function(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)})}}}});_0xb2abxc[_0x491e[50]](_0x491e[67],function(_0xb2abxd){if(_0xb2abxd[_0x491e[67]]=== _0x491e[68]){FaxMessage[_0x491e[55]]({where:{uuid:_0xb2abxd[_0x491e[70]]}})[_0x491e[45]](function(_0xb2abx10){if(_0xb2abx10){_0xb2abxd[_0x491e[18]]= _0x491e[69];_0xb2abx10[_0x491e[46]](_0xb2abxd)}})[_0x491e[17]](function(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)})}});_0xb2abxc[_0x491e[50]](_0x491e[57],function(_0xb2abxd){FaxMessage[_0x491e[55]]({where:{uniqueid:_0xb2abxd[_0x491e[54]]}})[_0x491e[45]](function(_0xb2abx10){if(_0xb2abx10){console[_0x491e[53]](_0x491e[71],_0xb2abxd[_0x491e[54]],_0xb2abxd[_0x491e[18]]);_0xb2abx10[_0x491e[46]]({operation:_0xb2abxd[_0x491e[72]],laststatus:_0xb2abxd[_0x491e[18]]})}})[_0x491e[17]](function(_0xb2abxe){console[_0x491e[16]](_0xb2abxe)})});require(_0x491e[73])[_0x491e[14]](_0xb2abxc)}
\ No newline at end of file