Built motion from commit 82438f7.|0.0.115
[motion.git] / server / config / ami / fax.js
index 5cc3e54..c12e006 100644 (file)
@@ -1 +1 @@
-var _0xd2c3=["\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x2D\x70\x72\x6F\x63\x65\x73\x73\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x66\x73\x2D\x65\x78\x74\x72\x61","\x6D\x6F\x6D\x65\x6E\x74","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x46\x61\x78\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x54\x72\x75\x6E\x6B","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x72\x6F\x75\x74\x69\x6E\x67\x2F\x73\x63\x68\x65\x64\x75\x6C\x65\x72","\x46\x61\x78\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x63\x68\x61\x6E\x67\x65\x64","\x53\x45\x4E\x44\x49\x4E\x47","\x72\x65\x74\x72\x79","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x45\x72\x72\x6F\x72","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x45\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x46\x61\x78\x20\x6D\x65\x73\x73\x61\x67\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x76\x61\x6C\x75\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x74\x68\x65\x6E","\x63\x68\x61\x6E\x6E\x65\x6C","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x70\x64\x61\x74\x65\x4D\x65\x73\x73\x61\x67\x65","\x63\x68\x61\x6E\x6E\x65\x6C\x73\x74\x61\x74\x65","\x63\x68\x61\x6E\x6E\x65\x6C\x73\x74\x61\x74\x65\x64\x65\x73\x63","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x75\x6D","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x61\x6D\x65","\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x63\x6F\x6E\x74\x65\x78\x74","\x65\x78\x74\x65\x6E","\x70\x72\x69\x6F\x72\x69\x74\x79","\x75\x6E\x69\x71\x75\x65\x69\x64","\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x75\x70\x64\x61\x74\x65\x53\x65\x6E\x64","\x46\x61\x78\x20\x72\x6F\x6F\x6D\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x53\x45\x4E\x54","\x67\x65\x74\x46\x61\x78\x52\x6F\x6F\x6D","\x70\x61\x67\x65\x73\x74\x72\x61\x6E\x73\x66\x65\x72\x72\x65\x64","\x30","\x46\x41\x49\x4C\x45\x44","\x72\x65\x6D\x6F\x74\x65\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x72\x65\x73\x6F\x6C\x75\x74\x69\x6F\x6E","\x74\x72\x61\x6E\x73\x66\x65\x72\x72\x61\x74\x65","\x72\x65\x63\x65\x69\x76\x65\x66\x61\x78","\x4E\x65\x77\x20\x46\x61\x78\x20\x6D\x65\x73\x73\x61\x67\x65\x20\x66\x72\x6F\x6D\x20\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x63\x6C\x6F\x6E\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x63\x65\x69\x76\x69\x6E\x67\x20\x66\x61\x78\x20\x6D\x65\x73\x73\x61\x67\x65","\x66\x61\x78","\x25\x73\x2E\x25\x73","\x75\x6E\x69\x78","\x69\x64","\x6E\x61\x6D\x65","\x66\x72\x6F\x6D","\x69\x6E\x69\x74","\x74\x69\x66\x66\x32\x70\x64\x66\x20\x2D\x6F\x20","\x20","\x70\x61\x72\x73\x65","\x2E\x70\x64\x66","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x69\x6E\x62\x6F\x75\x6E\x64","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x6A\x6F\x69\x6E","\x63\x72\x65\x61\x74\x65","\x46\x61\x78\x20\x72\x6F\x6F\x6D\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2F\x63\x72\x65\x61\x74\x65\x64","\x46\x61\x78\x52\x6F\x6F\x6D\x49\x64","\x52\x45\x43\x45\x49\x56\x45\x44","\x74\x6F","\x4E\x45\x57","\x43\x4C\x4F\x53\x45\x44","\x73\x70\x72\x65\x61\x64","\x46\x61\x78\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x46\x61\x78\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x4C\x69\x73\x74\x49\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x45\x72\x72\x6F\x72\x20\x73\x65\x6E\x64\x69\x6E\x67\x20\x66\x61\x78","\x45\x72\x72\x6F\x72\x20\x75\x70\x64\x61\x74\x69\x6E\x67\x20\x65\x72\x72\x6F\x72\x20\x73\x74\x61\x74\x75\x73","\x75\x70\x64\x61\x74\x65","\x72\x65\x73","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x25\x73\x2F\x25\x73\x2F\x25\x73","\x74\x65\x63\x68","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x22\x25\x73\x22\x20\x3C\x25\x73\x3E","\x65\x63\x6D","\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F","\x6D\x69\x6E\x72\x61\x74\x65","\x6D\x61\x78\x72\x61\x74\x65","\x22\x25\x73\x22","\x6D\x6F\x64\x65\x6D","\x67\x61\x74\x65\x77\x61\x79","\x74\x33\x38\x74\x69\x6D\x65\x6F\x75\x74","\x61\x63\x74\x69\x6F\x6E","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x46\x61\x78\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x74\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x70\x64\x66","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x2F","\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","\x62\x61\x73\x65","\x63\x6F\x70\x79\x53\x79\x6E\x63","\x61\x64\x64\x55\x73\x65\x72","\x61\x64\x64\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x54\x72\x75\x6E\x6B\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x4F\x50\x45\x4E","\x54\x72\x75\x6E\x6B\x4E\x61\x6D\x65","\x65\x78\x70\x6F\x72\x74\x73"];var fs=require(_0xd2c3[0]);var util=require(_0xd2c3[1]);var path=require(_0xd2c3[2]);var config=require(_0xd2c3[3]);var _=require(_0xd2c3[4]);var Promise=require(_0xd2c3[5]);var exec=require(_0xd2c3[7])[_0xd2c3[6]];var fse=require(_0xd2c3[8]);var moment=require(_0xd2c3[9]);var FaxAccount=require(_0xd2c3[11])[_0xd2c3[10]];var FaxRoom=require(_0xd2c3[11])[_0xd2c3[12]];var FaxMessage=require(_0xd2c3[11])[_0xd2c3[13]];var FaxAttachment=require(_0xd2c3[11])[_0xd2c3[14]];var Trunk=require(_0xd2c3[11])[_0xd2c3[15]];var Contact=require(_0xd2c3[11])[_0xd2c3[16]];var Scheduler=require(_0xd2c3[17]);function Fax(_0xc4dax12){console[_0xd2c3[19]](_0xd2c3[18]);FaxMessage[_0xd2c3[20]](function(_0xc4dax13){sendfax(_0xc4dax13,_0xc4dax12,0)});FaxMessage[_0xd2c3[25]](function(_0xc4dax13){if(_0xc4dax13[_0xd2c3[22]](_0xd2c3[21])&& _0xc4dax13[_0xd2c3[21]]=== _0xd2c3[23]){sendfax(_0xc4dax13,_0xc4dax12,_0xc4dax13[_0xd2c3[24]]+ 1)}})}Fax[_0xd2c3[27]][_0xd2c3[26]]= function(_0xc4dax14){return FaxMessage[_0xd2c3[35]]({where:{channel:_0xc4dax14[_0xd2c3[34]]}})[_0xd2c3[33]](function(_0xc4dax16){if(!_0xc4dax16){throw  new Error(_0xd2c3[30])};return _0xc4dax16[_0xd2c3[32]]({error:_0xc4dax14[_0xd2c3[31]]})})[_0xd2c3[29]](function(_0xc4dax15){console[_0xd2c3[19]](_0xd2c3[28],_0xc4dax15)})};Fax[_0xd2c3[27]][_0xd2c3[36]]= function(_0xc4dax14){return FaxMessage[_0xd2c3[35]]({where:{filename:_0xc4dax14[_0xd2c3[49]],localstationid:_0xc4dax14[_0xd2c3[50]]}})[_0xd2c3[33]](function(_0xc4dax16){if(!_0xc4dax16){throw  new Error(_0xd2c3[30])};return _0xc4dax16[_0xd2c3[32]]({channel:_0xc4dax14[_0xd2c3[34]],channelstate:_0xc4dax14[_0xd2c3[37]],channelstatedesc:_0xc4dax14[_0xd2c3[38]],calleridnum:_0xc4dax14[_0xd2c3[39]],calleridname:_0xc4dax14[_0xd2c3[40]],connectedlinenum:_0xc4dax14[_0xd2c3[41]],connectedlinename:_0xc4dax14[_0xd2c3[42]],accountcode:_0xc4dax14[_0xd2c3[43]],context:_0xc4dax14[_0xd2c3[44]],exten:_0xc4dax14[_0xd2c3[45]],priority:_0xc4dax14[_0xd2c3[46]],uniqueid:_0xc4dax14[_0xd2c3[47]],linkedid:_0xc4dax14[_0xd2c3[48]],lastStatus:_0xc4dax14[_0xd2c3[21]]})})[_0xd2c3[29]](function(_0xc4dax15){console[_0xd2c3[19]](_0xd2c3[28],_0xc4dax15)})};Fax[_0xd2c3[27]][_0xd2c3[51]]= function(_0xc4dax14){var _0xc4dax17;return FaxMessage[_0xd2c3[35]]({where:{filename:_0xc4dax14[_0xd2c3[49]],localstationid:_0xc4dax14[_0xd2c3[50]]}})[_0xd2c3[33]](function(_0xc4dax16){if(!_0xc4dax16){throw  new Error(_0xd2c3[30])};_0xc4dax17= _0xc4dax16;var _0xc4dax19=_0xd2c3[53];if(_0xc4dax14[_0xd2c3[55]]== _0xd2c3[56]){_0xc4dax19= _0xd2c3[57]};return _0xc4dax17[_0xd2c3[32]]({remotestationid:_0xc4dax14[_0xd2c3[58]],pagestransferred:_0xc4dax14[_0xd2c3[55]],resolution:_0xc4dax14[_0xd2c3[59]],transferrate:_0xc4dax14[_0xd2c3[60]],status:_0xc4dax19})})[_0xd2c3[33]](function(){return _0xc4dax17[_0xd2c3[54]]()})[_0xd2c3[33]](function(_0xc4dax18){if(!_0xc4dax18){throw  new Error(_0xd2c3[52])};return _0xc4dax18[_0xd2c3[32]]({lastEvent:_0xd2c3[53]})})[_0xd2c3[29]](function(_0xc4dax15){console[_0xd2c3[19]](_0xd2c3[28],_0xc4dax15)})};Fax[_0xd2c3[27]][_0xd2c3[61]]= function(_0xc4dax14){console[_0xd2c3[19]](util[_0xd2c3[63]](_0xd2c3[62],_0xc4dax14[_0xd2c3[39]]));var _0xc4dax1a=_[_0xd2c3[64]](_0xc4dax14);var _0xc4dax1b;var _0xc4dax17,_0xc4dax1c;return FaxAccount[_0xd2c3[35]]({where:{localstationid:_0xc4dax14[_0xd2c3[50]]}})[_0xd2c3[33]](function(_0xc4dax26){if(!_0xc4dax26){throw  new Error(_0xd2c3[91])};console[_0xd2c3[19]](_0xd2c3[92],_0xc4dax14[_0xd2c3[50]]);_0xc4dax1b= _0xc4dax26;if(_0xc4dax1b[_0xd2c3[93]]){return Contact[_0xd2c3[94]]({where:{ListId:_0xc4dax1b[_0xd2c3[93]],$or:[{phone:_0xc4dax14[_0xd2c3[39]]},{fax:_0xc4dax14[_0xd2c3[39]]}]},defaults:{phone:_0xc4dax14[_0xd2c3[39]],fax:_0xc4dax14[_0xd2c3[39]],firstName:_0xc4dax14[_0xd2c3[39]],ListId:_0xc4dax1b[_0xd2c3[93]]}})}else {return []}})[_0xd2c3[90]](function(_0xc4dax24,_0xc4dax25){if(_0xc4dax25!= undefined&&  !_0xc4dax25){return _0xc4dax24[_0xd2c3[32]]({fax:_0xc4dax14[_0xd2c3[39]]})};return})[_0xd2c3[33]](function(){return FaxRoom[_0xd2c3[35]]({where:{from:_0xc4dax14[_0xd2c3[39]],FaxAccountId:_0xc4dax1b[_0xd2c3[69]],status:{$ne:_0xd2c3[89]}}})})[_0xd2c3[33]](function(_0xc4dax23){if(_0xc4dax23){return _0xc4dax23[_0xd2c3[32]]({lastEvent:_0xd2c3[86]})}else {return FaxRoom[_0xd2c3[83]]({from:_0xc4dax1a[_0xd2c3[39]],account:_0xc4dax1b[_0xd2c3[70]],status:_0xd2c3[88],lastEvent:_0xd2c3[86],FaxAccountId:_0xc4dax1b[_0xd2c3[69]]})}})[_0xd2c3[33]](function(_0xc4dax23){if(!_0xc4dax23){throw  new Error(_0xd2c3[84])};_0xc4dax1c= _0xc4dax23;_0xc4dax1a[_0xd2c3[85]]= _0xc4dax23[_0xd2c3[69]];_0xc4dax1a[_0xd2c3[21]]= _0xd2c3[86];_0xc4dax1a[_0xd2c3[71]]= _0xc4dax1a[_0xd2c3[39]];_0xc4dax1a[_0xd2c3[87]]= _0xc4dax1a[_0xd2c3[50]];return FaxMessage[_0xd2c3[83]](_0xc4dax1a)})[_0xd2c3[33]](function(_0xc4dax1f){_0xc4dax17= _0xc4dax1f;var _0xc4dax20=[];var _0xc4dax21=path[_0xd2c3[75]](_0xc4dax14[_0xd2c3[49]])[_0xd2c3[70]];var _0xc4dax22=_0xc4dax21+ _0xd2c3[76];return FaxAttachment[_0xd2c3[83]]({path:path[_0xd2c3[82]](config[_0xd2c3[77]],_0xd2c3[78],_0xd2c3[79],_0xd2c3[66],_0xd2c3[80],_0xd2c3[81],_0xc4dax22),basename:_0xc4dax22,name:_0xc4dax21,FaxMessageId:_0xc4dax1f[_0xd2c3[69]]})})[_0xd2c3[33]](function(_0xc4dax1e){return exec(_0xd2c3[73]+ _0xc4dax1e[_0xd2c3[2]]+ _0xd2c3[74]+ _0xc4dax14[_0xd2c3[49]])})[_0xd2c3[33]](function(){var _0xc4dax1d= new Scheduler({channel:_0xd2c3[66],uniqueid:util[_0xd2c3[63]](_0xd2c3[67],moment()[_0xd2c3[68]](),_0xc4dax1c[_0xd2c3[69]]),messageid:_0xc4dax17[_0xd2c3[69]],roomid:_0xc4dax1c[_0xd2c3[69]],accountid:_0xc4dax1b[_0xd2c3[69]],accountname:_0xc4dax1b[_0xd2c3[70]],accountphone:_0xc4dax1b[_0xd2c3[50]],from:_0xc4dax17[_0xd2c3[71]]});_0xc4dax1d[_0xd2c3[72]]()})[_0xd2c3[29]](function(_0xc4dax15){console[_0xd2c3[19]](_0xd2c3[65],_0xc4dax15)})};function sendfax(_0xc4dax1f,_0xc4dax12,_0xc4dax28){if(_0xc4dax1f[_0xd2c3[21]]=== _0xd2c3[23]){var _0xc4dax1c;var _0xc4dax17=_0xc4dax1f;var _0xc4dax29=_0xc4dax1f[_0xd2c3[71]];var _0xc4dax2a=_0xc4dax1f[_0xd2c3[87]];var _0xc4dax2b;var _0xc4dax2c;var _0xc4dax2d,_0xc4dax2e;return FaxAccount[_0xd2c3[35]]({where:{localstationid:_0xc4dax17[_0xd2c3[71]]}})[_0xd2c3[33]](function(_0xc4dax26){if(!_0xc4dax26){throw  new Error(_0xd2c3[91])};_0xc4dax2b= _0xc4dax26;return Trunk[_0xd2c3[35]]({where:{name:_0xc4dax2b[_0xd2c3[129]]}})})[_0xd2c3[33]](function(_0xc4dax30){if(!_0xc4dax30){throw  new Error(_0xd2c3[126])};_0xc4dax2c= _0xc4dax30;if(_0xc4dax17[_0xd2c3[85]]){return FaxRoom[_0xd2c3[127]](_0xc4dax17.FaxRoomId)}else {return FaxRoom[_0xd2c3[83]]({from:_0xc4dax29,account:_0xc4dax2b[_0xd2c3[70]],status:_0xd2c3[128],FaxAccountId:_0xc4dax2b[_0xd2c3[69]]})}})[_0xd2c3[33]](function(_0xc4dax18){_0xc4dax1c= _0xc4dax18;return _0xc4dax1c[_0xd2c3[125]](_0xc4dax17[_0xd2c3[69]])})[_0xd2c3[33]](function(){return _0xc4dax1c[_0xd2c3[32]]({lastEvent:_0xd2c3[23]})})[_0xd2c3[33]](function(){return _0xc4dax1c[_0xd2c3[124]](_0xc4dax17.UserId)})[_0xd2c3[33]](function(){if(_0xc4dax2b[_0xd2c3[93]]){return Contact[_0xd2c3[94]]({where:{ListId:_0xc4dax2b[_0xd2c3[93]],$or:[{phone:_0xc4dax2a},{fax:_0xc4dax2a}]},defaults:{fax:_0xc4dax2a,phone:_0xc4dax2a,firstName:_0xc4dax2a,ListId:_0xc4dax2b[_0xd2c3[93]]}})}else {return []}})[_0xd2c3[90]](function(_0xc4dax24,_0xc4dax25){if(_0xc4dax25!= undefined&&  !_0xc4dax25){return _0xc4dax24[_0xd2c3[32]]({fax:_0xc4dax2a})};return})[_0xd2c3[33]](function(){_0xc4dax2d= _0xc4dax17[_0xd2c3[115]][0][_0xd2c3[2]];if(_0xc4dax17[_0xd2c3[115]][0][_0xd2c3[116]]=== _0xd2c3[117]){_0xc4dax2e= path[_0xd2c3[82]](config[_0xd2c3[77]],_0xd2c3[78],_0xd2c3[79],_0xd2c3[66],_0xd2c3[118],_0xd2c3[81],_0xd2c3[119],path[_0xd2c3[75]](_0xc4dax2d)[_0xd2c3[70]]+ _0xd2c3[120]);return exec(_0xd2c3[121]+ _0xc4dax2e+ _0xd2c3[74]+ _0xc4dax2d)}else {_0xc4dax2e= path[_0xd2c3[82]](config[_0xd2c3[77]],_0xd2c3[78],_0xd2c3[79],_0xd2c3[66],_0xd2c3[118],_0xd2c3[81],_0xd2c3[119],path[_0xd2c3[75]](_0xc4dax2d)[_0xd2c3[122]]);fse[_0xd2c3[123]](_0xc4dax2d,_0xc4dax2e);return}})[_0xd2c3[33]](function(){fs[_0xd2c3[114]](_0xc4dax2e,511);return _0xc4dax17[_0xd2c3[32]]({filename:_0xc4dax2e,localstationid:_0xc4dax17[_0xd2c3[71]],retry:_0xc4dax28})})[_0xd2c3[33]](function(){return Promise[_0xd2c3[113]](_0xc4dax12[_0xd2c3[112]])({action:_0xd2c3[99],channel:util[_0xd2c3[63]](_0xd2c3[100],_0xc4dax2b[_0xd2c3[101]],_0xc4dax2c[_0xd2c3[70]],_0xc4dax2a),exten:_0xc4dax2a,context:_0xd2c3[102],priority:1,callerid:util[_0xd2c3[63]](_0xd2c3[103],_0xc4dax2b[_0xd2c3[50]],_0xc4dax2b[_0xd2c3[50]]),variable:{FAXNAME:_0xc4dax2b[_0xd2c3[70]],FAXNUMBER:_0xc4dax2a,FAXECM:_0xc4dax2b[_0xd2c3[104]],FAXHEADERINFO:_0xc4dax2b[_0xd2c3[105]],FAXLOCALSTATIONID:_0xc4dax2b[_0xd2c3[50]],FAXMINRATE:_0xc4dax2b[_0xd2c3[106]],FAXMAXRATE:_0xc4dax2b[_0xd2c3[107]],FAXMODEM:util[_0xd2c3[63]](_0xd2c3[108],_0xc4dax2b[_0xd2c3[109]]),FAXGATEWAY:_0xc4dax2b[_0xd2c3[110]],FAXT38TIMEOUT:_0xc4dax2b[_0xd2c3[111]],FAXOUTFILE:_0xc4dax2e},account:_0xc4dax2b[_0xd2c3[50]]})})[_0xd2c3[33]](function(_0xc4dax2f){console[_0xd2c3[19]](_0xd2c3[98],_0xc4dax2f)})[_0xd2c3[29]](function(_0xc4dax15){console[_0xd2c3[19]](_0xd2c3[95],_0xc4dax15);return _0xc4dax17[_0xd2c3[97]]({status:_0xd2c3[57]})[_0xd2c3[33]](function(){if(_0xc4dax1c){return _0xc4dax1c[_0xd2c3[32]]({lastEvent:_0xd2c3[57]})};return})[_0xd2c3[29]](function(_0xc4dax15){console[_0xd2c3[19]](_0xd2c3[96])})})}}module[_0xd2c3[130]]= Fax
\ No newline at end of file
+var _0x3d55=["\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x2D\x70\x72\x6F\x63\x65\x73\x73\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x66\x73\x2D\x65\x78\x74\x72\x61","\x6D\x6F\x6D\x65\x6E\x74","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x46\x61\x78\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x54\x72\x75\x6E\x6B","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x72\x6F\x75\x74\x69\x6E\x67\x2F\x73\x63\x68\x65\x64\x75\x6C\x65\x72","\x46\x61\x78\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x63\x68\x61\x6E\x67\x65\x64","\x53\x45\x4E\x44\x49\x4E\x47","\x72\x65\x74\x72\x79","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x45\x72\x72\x6F\x72","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x45\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x46\x61\x78\x20\x6D\x65\x73\x73\x61\x67\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x76\x61\x6C\x75\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x74\x68\x65\x6E","\x63\x68\x61\x6E\x6E\x65\x6C","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x70\x64\x61\x74\x65\x4D\x65\x73\x73\x61\x67\x65","\x63\x68\x61\x6E\x6E\x65\x6C\x73\x74\x61\x74\x65","\x63\x68\x61\x6E\x6E\x65\x6C\x73\x74\x61\x74\x65\x64\x65\x73\x63","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x75\x6D","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x61\x6D\x65","\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x63\x6F\x6E\x74\x65\x78\x74","\x65\x78\x74\x65\x6E","\x70\x72\x69\x6F\x72\x69\x74\x79","\x75\x6E\x69\x71\x75\x65\x69\x64","\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x75\x70\x64\x61\x74\x65\x53\x65\x6E\x64","\x46\x61\x78\x20\x72\x6F\x6F\x6D\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x53\x45\x4E\x54","\x67\x65\x74\x46\x61\x78\x52\x6F\x6F\x6D","\x70\x61\x67\x65\x73\x74\x72\x61\x6E\x73\x66\x65\x72\x72\x65\x64","\x30","\x46\x41\x49\x4C\x45\x44","\x72\x65\x6D\x6F\x74\x65\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x72\x65\x73\x6F\x6C\x75\x74\x69\x6F\x6E","\x74\x72\x61\x6E\x73\x66\x65\x72\x72\x61\x74\x65","\x72\x65\x63\x65\x69\x76\x65\x66\x61\x78","\x4E\x65\x77\x20\x46\x61\x78\x20\x6D\x65\x73\x73\x61\x67\x65\x20\x66\x72\x6F\x6D\x20\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x63\x6C\x6F\x6E\x65","\x45\x72\x72\x6F\x72\x20\x72\x65\x63\x65\x69\x76\x69\x6E\x67\x20\x66\x61\x78\x20\x6D\x65\x73\x73\x61\x67\x65","\x66\x61\x78","\x25\x73\x2E\x25\x73","\x75\x6E\x69\x78","\x69\x64","\x6E\x61\x6D\x65","\x66\x72\x6F\x6D","\x69\x6E\x69\x74","\x74\x69\x66\x66\x32\x70\x64\x66\x20\x2D\x6F\x20","\x20","\x70\x61\x72\x73\x65","\x2E\x70\x64\x66","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x69\x6E\x62\x6F\x75\x6E\x64","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x6A\x6F\x69\x6E","\x63\x72\x65\x61\x74\x65","\x46\x61\x78\x20\x72\x6F\x6F\x6D\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2F\x63\x72\x65\x61\x74\x65\x64","\x46\x61\x78\x52\x6F\x6F\x6D\x49\x64","\x52\x45\x43\x45\x49\x56\x45\x44","\x74\x6F","\x4E\x45\x57","\x43\x4C\x4F\x53\x45\x44","\x73\x70\x72\x65\x61\x64","\x46\x61\x78\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x46\x61\x78\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x4C\x69\x73\x74\x49\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x45\x72\x72\x6F\x72\x20\x73\x65\x6E\x64\x69\x6E\x67\x20\x66\x61\x78","\x45\x72\x72\x6F\x72\x20\x75\x70\x64\x61\x74\x69\x6E\x67\x20\x65\x72\x72\x6F\x72\x20\x73\x74\x61\x74\x75\x73","\x75\x70\x64\x61\x74\x65","\x72\x65\x73","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x25\x73\x2F\x25\x73\x2F\x25\x73","\x74\x65\x63\x68","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x22\x25\x73\x22\x20\x3C\x25\x73\x3E","\x65\x63\x6D","\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F","\x6D\x69\x6E\x72\x61\x74\x65","\x6D\x61\x78\x72\x61\x74\x65","\x22\x25\x73\x22","\x6D\x6F\x64\x65\x6D","\x67\x61\x74\x65\x77\x61\x79","\x74\x33\x38\x74\x69\x6D\x65\x6F\x75\x74","\x61\x63\x74\x69\x6F\x6E","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x46\x61\x78\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x74\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x70\x64\x66","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x2F","\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","\x62\x61\x73\x65","\x63\x6F\x70\x79\x53\x79\x6E\x63","\x61\x64\x64\x55\x73\x65\x72","\x61\x64\x64\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x54\x72\x75\x6E\x6B\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x4F\x50\x45\x4E","\x54\x72\x75\x6E\x6B\x4E\x61\x6D\x65","\x65\x78\x70\x6F\x72\x74\x73"];var fs=require(_0x3d55[0]);var util=require(_0x3d55[1]);var path=require(_0x3d55[2]);var config=require(_0x3d55[3]);var _=require(_0x3d55[4]);var Promise=require(_0x3d55[5]);var exec=require(_0x3d55[7])[_0x3d55[6]];var fse=require(_0x3d55[8]);var moment=require(_0x3d55[9]);var FaxAccount=require(_0x3d55[11])[_0x3d55[10]];var FaxRoom=require(_0x3d55[11])[_0x3d55[12]];var FaxMessage=require(_0x3d55[11])[_0x3d55[13]];var FaxAttachment=require(_0x3d55[11])[_0x3d55[14]];var Trunk=require(_0x3d55[11])[_0x3d55[15]];var Contact=require(_0x3d55[11])[_0x3d55[16]];var Scheduler=require(_0x3d55[17]);function Fax(_0xfa06x12){console[_0x3d55[19]](_0x3d55[18]);FaxMessage[_0x3d55[20]](function(_0xfa06x13){sendfax(_0xfa06x13,_0xfa06x12,0)});FaxMessage[_0x3d55[25]](function(_0xfa06x13){if(_0xfa06x13[_0x3d55[22]](_0x3d55[21])&& _0xfa06x13[_0x3d55[21]]=== _0x3d55[23]){sendfax(_0xfa06x13,_0xfa06x12,_0xfa06x13[_0x3d55[24]]+ 1)}})}Fax[_0x3d55[27]][_0x3d55[26]]= function(_0xfa06x14){return FaxMessage[_0x3d55[35]]({where:{channel:_0xfa06x14[_0x3d55[34]]}})[_0x3d55[33]](function(_0xfa06x16){if(!_0xfa06x16){throw  new Error(_0x3d55[30])};return _0xfa06x16[_0x3d55[32]]({error:_0xfa06x14[_0x3d55[31]]})})[_0x3d55[29]](function(_0xfa06x15){console[_0x3d55[19]](_0x3d55[28],_0xfa06x15)})};Fax[_0x3d55[27]][_0x3d55[36]]= function(_0xfa06x14){return FaxMessage[_0x3d55[35]]({where:{filename:_0xfa06x14[_0x3d55[49]],localstationid:_0xfa06x14[_0x3d55[50]]}})[_0x3d55[33]](function(_0xfa06x16){if(!_0xfa06x16){throw  new Error(_0x3d55[30])};return _0xfa06x16[_0x3d55[32]]({channel:_0xfa06x14[_0x3d55[34]],channelstate:_0xfa06x14[_0x3d55[37]],channelstatedesc:_0xfa06x14[_0x3d55[38]],calleridnum:_0xfa06x14[_0x3d55[39]],calleridname:_0xfa06x14[_0x3d55[40]],connectedlinenum:_0xfa06x14[_0x3d55[41]],connectedlinename:_0xfa06x14[_0x3d55[42]],accountcode:_0xfa06x14[_0x3d55[43]],context:_0xfa06x14[_0x3d55[44]],exten:_0xfa06x14[_0x3d55[45]],priority:_0xfa06x14[_0x3d55[46]],uniqueid:_0xfa06x14[_0x3d55[47]],linkedid:_0xfa06x14[_0x3d55[48]],lastStatus:_0xfa06x14[_0x3d55[21]]})})[_0x3d55[29]](function(_0xfa06x15){console[_0x3d55[19]](_0x3d55[28],_0xfa06x15)})};Fax[_0x3d55[27]][_0x3d55[51]]= function(_0xfa06x14){var _0xfa06x17;return FaxMessage[_0x3d55[35]]({where:{filename:_0xfa06x14[_0x3d55[49]],localstationid:_0xfa06x14[_0x3d55[50]]}})[_0x3d55[33]](function(_0xfa06x16){if(!_0xfa06x16){throw  new Error(_0x3d55[30])};_0xfa06x17= _0xfa06x16;var _0xfa06x19=_0x3d55[53];if(_0xfa06x14[_0x3d55[55]]== _0x3d55[56]){_0xfa06x19= _0x3d55[57]};return _0xfa06x17[_0x3d55[32]]({remotestationid:_0xfa06x14[_0x3d55[58]],pagestransferred:_0xfa06x14[_0x3d55[55]],resolution:_0xfa06x14[_0x3d55[59]],transferrate:_0xfa06x14[_0x3d55[60]],status:_0xfa06x19})})[_0x3d55[33]](function(){return _0xfa06x17[_0x3d55[54]]()})[_0x3d55[33]](function(_0xfa06x18){if(!_0xfa06x18){throw  new Error(_0x3d55[52])};return _0xfa06x18[_0x3d55[32]]({lastEvent:_0x3d55[53]})})[_0x3d55[29]](function(_0xfa06x15){console[_0x3d55[19]](_0x3d55[28],_0xfa06x15)})};Fax[_0x3d55[27]][_0x3d55[61]]= function(_0xfa06x14){console[_0x3d55[19]](util[_0x3d55[63]](_0x3d55[62],_0xfa06x14[_0x3d55[39]]));var _0xfa06x1a=_[_0x3d55[64]](_0xfa06x14);var _0xfa06x1b;var _0xfa06x17,_0xfa06x1c;return FaxAccount[_0x3d55[35]]({where:{localstationid:_0xfa06x14[_0x3d55[50]]}})[_0x3d55[33]](function(_0xfa06x26){if(!_0xfa06x26){throw  new Error(_0x3d55[91])};console[_0x3d55[19]](_0x3d55[92],_0xfa06x14[_0x3d55[50]]);_0xfa06x1b= _0xfa06x26;if(_0xfa06x1b[_0x3d55[93]]){return Contact[_0x3d55[94]]({where:{ListId:_0xfa06x1b[_0x3d55[93]],$or:[{phone:_0xfa06x14[_0x3d55[39]]},{fax:_0xfa06x14[_0x3d55[39]]}]},defaults:{phone:_0xfa06x14[_0x3d55[39]],fax:_0xfa06x14[_0x3d55[39]],firstName:_0xfa06x14[_0x3d55[39]],ListId:_0xfa06x1b[_0x3d55[93]]}})}else {return []}})[_0x3d55[90]](function(_0xfa06x24,_0xfa06x25){if(_0xfa06x25!= undefined&&  !_0xfa06x25){return _0xfa06x24[_0x3d55[32]]({fax:_0xfa06x14[_0x3d55[39]]})};return})[_0x3d55[33]](function(){return FaxRoom[_0x3d55[35]]({where:{from:_0xfa06x14[_0x3d55[39]],FaxAccountId:_0xfa06x1b[_0x3d55[69]],status:{$ne:_0x3d55[89]}}})})[_0x3d55[33]](function(_0xfa06x23){if(_0xfa06x23){return _0xfa06x23[_0x3d55[32]]({lastEvent:_0x3d55[86]})}else {return FaxRoom[_0x3d55[83]]({from:_0xfa06x1a[_0x3d55[39]],account:_0xfa06x1b[_0x3d55[70]],status:_0x3d55[88],lastEvent:_0x3d55[86],FaxAccountId:_0xfa06x1b[_0x3d55[69]]})}})[_0x3d55[33]](function(_0xfa06x23){if(!_0xfa06x23){throw  new Error(_0x3d55[84])};_0xfa06x1c= _0xfa06x23;_0xfa06x1a[_0x3d55[85]]= _0xfa06x23[_0x3d55[69]];_0xfa06x1a[_0x3d55[21]]= _0x3d55[86];_0xfa06x1a[_0x3d55[71]]= _0xfa06x1a[_0x3d55[39]];_0xfa06x1a[_0x3d55[87]]= _0xfa06x1a[_0x3d55[50]];return FaxMessage[_0x3d55[83]](_0xfa06x1a)})[_0x3d55[33]](function(_0xfa06x1f){_0xfa06x17= _0xfa06x1f;var _0xfa06x20=[];var _0xfa06x21=path[_0x3d55[75]](_0xfa06x14[_0x3d55[49]])[_0x3d55[70]];var _0xfa06x22=_0xfa06x21+ _0x3d55[76];return FaxAttachment[_0x3d55[83]]({path:path[_0x3d55[82]](config[_0x3d55[77]],_0x3d55[78],_0x3d55[79],_0x3d55[66],_0x3d55[80],_0x3d55[81],_0xfa06x22),basename:_0xfa06x22,name:_0xfa06x21,FaxMessageId:_0xfa06x1f[_0x3d55[69]]})})[_0x3d55[33]](function(_0xfa06x1e){return exec(_0x3d55[73]+ _0xfa06x1e[_0x3d55[2]]+ _0x3d55[74]+ _0xfa06x14[_0x3d55[49]])})[_0x3d55[33]](function(){var _0xfa06x1d= new Scheduler({channel:_0x3d55[66],uniqueid:util[_0x3d55[63]](_0x3d55[67],moment()[_0x3d55[68]](),_0xfa06x1c[_0x3d55[69]]),messageid:_0xfa06x17[_0x3d55[69]],roomid:_0xfa06x1c[_0x3d55[69]],accountid:_0xfa06x1b[_0x3d55[69]],accountname:_0xfa06x1b[_0x3d55[70]],accountphone:_0xfa06x1b[_0x3d55[50]],from:_0xfa06x17[_0x3d55[71]]});_0xfa06x1d[_0x3d55[72]]()})[_0x3d55[29]](function(_0xfa06x15){console[_0x3d55[19]](_0x3d55[65],_0xfa06x15)})};function sendfax(_0xfa06x1f,_0xfa06x12,_0xfa06x28){if(_0xfa06x1f[_0x3d55[21]]=== _0x3d55[23]){var _0xfa06x1c;var _0xfa06x17=_0xfa06x1f;var _0xfa06x29=_0xfa06x1f[_0x3d55[71]];var _0xfa06x2a=_0xfa06x1f[_0x3d55[87]];var _0xfa06x2b;var _0xfa06x2c;var _0xfa06x2d,_0xfa06x2e;return FaxAccount[_0x3d55[35]]({where:{localstationid:_0xfa06x17[_0x3d55[71]]}})[_0x3d55[33]](function(_0xfa06x26){if(!_0xfa06x26){throw  new Error(_0x3d55[91])};_0xfa06x2b= _0xfa06x26;return Trunk[_0x3d55[35]]({where:{name:_0xfa06x2b[_0x3d55[129]]}})})[_0x3d55[33]](function(_0xfa06x30){if(!_0xfa06x30){throw  new Error(_0x3d55[126])};_0xfa06x2c= _0xfa06x30;if(_0xfa06x17[_0x3d55[85]]){return FaxRoom[_0x3d55[127]](_0xfa06x17.FaxRoomId)}else {return FaxRoom[_0x3d55[83]]({from:_0xfa06x29,account:_0xfa06x2b[_0x3d55[70]],status:_0x3d55[128],FaxAccountId:_0xfa06x2b[_0x3d55[69]]})}})[_0x3d55[33]](function(_0xfa06x18){_0xfa06x1c= _0xfa06x18;return _0xfa06x1c[_0x3d55[125]](_0xfa06x17[_0x3d55[69]])})[_0x3d55[33]](function(){return _0xfa06x1c[_0x3d55[32]]({lastEvent:_0x3d55[23]})})[_0x3d55[33]](function(){return _0xfa06x1c[_0x3d55[124]](_0xfa06x17.UserId)})[_0x3d55[33]](function(){if(_0xfa06x2b[_0x3d55[93]]){return Contact[_0x3d55[94]]({where:{ListId:_0xfa06x2b[_0x3d55[93]],$or:[{phone:_0xfa06x2a},{fax:_0xfa06x2a}]},defaults:{fax:_0xfa06x2a,phone:_0xfa06x2a,firstName:_0xfa06x2a,ListId:_0xfa06x2b[_0x3d55[93]]}})}else {return []}})[_0x3d55[90]](function(_0xfa06x24,_0xfa06x25){if(_0xfa06x25!= undefined&&  !_0xfa06x25){return _0xfa06x24[_0x3d55[32]]({fax:_0xfa06x2a})};return})[_0x3d55[33]](function(){_0xfa06x2d= _0xfa06x17[_0x3d55[115]][0][_0x3d55[2]];if(_0xfa06x17[_0x3d55[115]][0][_0x3d55[116]]=== _0x3d55[117]){_0xfa06x2e= path[_0x3d55[82]](config[_0x3d55[77]],_0x3d55[78],_0x3d55[79],_0x3d55[66],_0x3d55[118],_0x3d55[81],_0x3d55[119],path[_0x3d55[75]](_0xfa06x2d)[_0x3d55[70]]+ _0x3d55[120]);return exec(_0x3d55[121]+ _0xfa06x2e+ _0x3d55[74]+ _0xfa06x2d)}else {_0xfa06x2e= path[_0x3d55[82]](config[_0x3d55[77]],_0x3d55[78],_0x3d55[79],_0x3d55[66],_0x3d55[118],_0x3d55[81],_0x3d55[119],path[_0x3d55[75]](_0xfa06x2d)[_0x3d55[122]]);fse[_0x3d55[123]](_0xfa06x2d,_0xfa06x2e);return}})[_0x3d55[33]](function(){fs[_0x3d55[114]](_0xfa06x2e,511);return _0xfa06x17[_0x3d55[32]]({filename:_0xfa06x2e,localstationid:_0xfa06x17[_0x3d55[71]],retry:_0xfa06x28})})[_0x3d55[33]](function(){return Promise[_0x3d55[113]](_0xfa06x12[_0x3d55[112]])({action:_0x3d55[99],channel:util[_0x3d55[63]](_0x3d55[100],_0xfa06x2b[_0x3d55[101]],_0xfa06x2c[_0x3d55[70]],_0xfa06x2a),exten:_0xfa06x2a,context:_0x3d55[102],priority:1,callerid:util[_0x3d55[63]](_0x3d55[103],_0xfa06x2b[_0x3d55[50]],_0xfa06x2b[_0x3d55[50]]),variable:{FAXNAME:_0xfa06x2b[_0x3d55[70]],FAXNUMBER:_0xfa06x2a,FAXECM:_0xfa06x2b[_0x3d55[104]],FAXHEADERINFO:_0xfa06x2b[_0x3d55[105]],FAXLOCALSTATIONID:_0xfa06x2b[_0x3d55[50]],FAXMINRATE:_0xfa06x2b[_0x3d55[106]],FAXMAXRATE:_0xfa06x2b[_0x3d55[107]],FAXMODEM:util[_0x3d55[63]](_0x3d55[108],_0xfa06x2b[_0x3d55[109]]),FAXGATEWAY:_0xfa06x2b[_0x3d55[110]],FAXT38TIMEOUT:_0xfa06x2b[_0x3d55[111]],FAXOUTFILE:_0xfa06x2e},account:_0xfa06x2b[_0x3d55[50]]})})[_0x3d55[33]](function(_0xfa06x2f){console[_0x3d55[19]](_0x3d55[98],_0xfa06x2f)})[_0x3d55[29]](function(_0xfa06x15){console[_0x3d55[19]](_0x3d55[95],_0xfa06x15);return _0xfa06x17[_0x3d55[97]]({status:_0x3d55[57]})[_0x3d55[33]](function(){if(_0xfa06x1c){return _0xfa06x1c[_0x3d55[32]]({lastEvent:_0x3d55[57]})};return})[_0x3d55[29]](function(_0xfa06x15){console[_0x3d55[19]](_0x3d55[96])})})}}module[_0x3d55[130]]= Fax
\ No newline at end of file