b71833ae17e542b85bcfd60e667ddad02536000d
[motion.git] / server / config / ami / fax.js
1 var _0xbfcb=["\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(_0xbfcb[0]);var util=require(_0xbfcb[1]);var path=require(_0xbfcb[2]);var config=require(_0xbfcb[3]);var _=require(_0xbfcb[4]);var Promise=require(_0xbfcb[5]);var exec=require(_0xbfcb[7])[_0xbfcb[6]];var fse=require(_0xbfcb[8]);var moment=require(_0xbfcb[9]);var FaxAccount=require(_0xbfcb[11])[_0xbfcb[10]];var FaxRoom=require(_0xbfcb[11])[_0xbfcb[12]];var FaxMessage=require(_0xbfcb[11])[_0xbfcb[13]];var FaxAttachment=require(_0xbfcb[11])[_0xbfcb[14]];var Trunk=require(_0xbfcb[11])[_0xbfcb[15]];var Contact=require(_0xbfcb[11])[_0xbfcb[16]];var Scheduler=require(_0xbfcb[17]);function Fax(_0xfed2x12){console[_0xbfcb[19]](_0xbfcb[18]);FaxMessage[_0xbfcb[20]](function(_0xfed2x13){sendfax(_0xfed2x13,_0xfed2x12,0)});FaxMessage[_0xbfcb[25]](function(_0xfed2x13){if(_0xfed2x13[_0xbfcb[22]](_0xbfcb[21])&& _0xfed2x13[_0xbfcb[21]]=== _0xbfcb[23]){sendfax(_0xfed2x13,_0xfed2x12,_0xfed2x13[_0xbfcb[24]]+ 1)}})}Fax[_0xbfcb[27]][_0xbfcb[26]]= function(_0xfed2x14){return FaxMessage[_0xbfcb[35]]({where:{channel:_0xfed2x14[_0xbfcb[34]]}})[_0xbfcb[33]](function(_0xfed2x16){if(!_0xfed2x16){throw  new Error(_0xbfcb[30])};return _0xfed2x16[_0xbfcb[32]]({error:_0xfed2x14[_0xbfcb[31]]})})[_0xbfcb[29]](function(_0xfed2x15){console[_0xbfcb[19]](_0xbfcb[28],_0xfed2x15)})};Fax[_0xbfcb[27]][_0xbfcb[36]]= function(_0xfed2x14){return FaxMessage[_0xbfcb[35]]({where:{filename:_0xfed2x14[_0xbfcb[49]],localstationid:_0xfed2x14[_0xbfcb[50]]}})[_0xbfcb[33]](function(_0xfed2x16){if(!_0xfed2x16){throw  new Error(_0xbfcb[30])};return _0xfed2x16[_0xbfcb[32]]({channel:_0xfed2x14[_0xbfcb[34]],channelstate:_0xfed2x14[_0xbfcb[37]],channelstatedesc:_0xfed2x14[_0xbfcb[38]],calleridnum:_0xfed2x14[_0xbfcb[39]],calleridname:_0xfed2x14[_0xbfcb[40]],connectedlinenum:_0xfed2x14[_0xbfcb[41]],connectedlinename:_0xfed2x14[_0xbfcb[42]],accountcode:_0xfed2x14[_0xbfcb[43]],context:_0xfed2x14[_0xbfcb[44]],exten:_0xfed2x14[_0xbfcb[45]],priority:_0xfed2x14[_0xbfcb[46]],uniqueid:_0xfed2x14[_0xbfcb[47]],linkedid:_0xfed2x14[_0xbfcb[48]],lastStatus:_0xfed2x14[_0xbfcb[21]]})})[_0xbfcb[29]](function(_0xfed2x15){console[_0xbfcb[19]](_0xbfcb[28],_0xfed2x15)})};Fax[_0xbfcb[27]][_0xbfcb[51]]= function(_0xfed2x14){var _0xfed2x17;return FaxMessage[_0xbfcb[35]]({where:{filename:_0xfed2x14[_0xbfcb[49]],localstationid:_0xfed2x14[_0xbfcb[50]]}})[_0xbfcb[33]](function(_0xfed2x16){if(!_0xfed2x16){throw  new Error(_0xbfcb[30])};_0xfed2x17= _0xfed2x16;var _0xfed2x19=_0xbfcb[53];if(_0xfed2x14[_0xbfcb[55]]== _0xbfcb[56]){_0xfed2x19= _0xbfcb[57]};return _0xfed2x17[_0xbfcb[32]]({remotestationid:_0xfed2x14[_0xbfcb[58]],pagestransferred:_0xfed2x14[_0xbfcb[55]],resolution:_0xfed2x14[_0xbfcb[59]],transferrate:_0xfed2x14[_0xbfcb[60]],status:_0xfed2x19})})[_0xbfcb[33]](function(){return _0xfed2x17[_0xbfcb[54]]()})[_0xbfcb[33]](function(_0xfed2x18){if(!_0xfed2x18){throw  new Error(_0xbfcb[52])};return _0xfed2x18[_0xbfcb[32]]({lastEvent:_0xbfcb[53]})})[_0xbfcb[29]](function(_0xfed2x15){console[_0xbfcb[19]](_0xbfcb[28],_0xfed2x15)})};Fax[_0xbfcb[27]][_0xbfcb[61]]= function(_0xfed2x14){console[_0xbfcb[19]](util[_0xbfcb[63]](_0xbfcb[62],_0xfed2x14[_0xbfcb[39]]));var _0xfed2x1a=_[_0xbfcb[64]](_0xfed2x14);var _0xfed2x1b;var _0xfed2x17,_0xfed2x1c;return FaxAccount[_0xbfcb[35]]({where:{localstationid:_0xfed2x14[_0xbfcb[50]]}})[_0xbfcb[33]](function(_0xfed2x26){if(!_0xfed2x26){throw  new Error(_0xbfcb[91])};console[_0xbfcb[19]](_0xbfcb[92],_0xfed2x14[_0xbfcb[50]]);_0xfed2x1b= _0xfed2x26;if(_0xfed2x1b[_0xbfcb[93]]){return Contact[_0xbfcb[94]]({where:{ListId:_0xfed2x1b[_0xbfcb[93]],$or:[{phone:_0xfed2x14[_0xbfcb[39]]},{fax:_0xfed2x14[_0xbfcb[39]]}]},defaults:{phone:_0xfed2x14[_0xbfcb[39]],fax:_0xfed2x14[_0xbfcb[39]],firstName:_0xfed2x14[_0xbfcb[39]],ListId:_0xfed2x1b[_0xbfcb[93]]}})}else {return []}})[_0xbfcb[90]](function(_0xfed2x24,_0xfed2x25){if(_0xfed2x25!= undefined&&  !_0xfed2x25){return _0xfed2x24[_0xbfcb[32]]({fax:_0xfed2x14[_0xbfcb[39]]})};return})[_0xbfcb[33]](function(){return FaxRoom[_0xbfcb[35]]({where:{from:_0xfed2x14[_0xbfcb[39]],FaxAccountId:_0xfed2x1b[_0xbfcb[69]],status:{$ne:_0xbfcb[89]}}})})[_0xbfcb[33]](function(_0xfed2x23){if(_0xfed2x23){return _0xfed2x23[_0xbfcb[32]]({lastEvent:_0xbfcb[86]})}else {return FaxRoom[_0xbfcb[83]]({from:_0xfed2x1a[_0xbfcb[39]],account:_0xfed2x1b[_0xbfcb[70]],status:_0xbfcb[88],lastEvent:_0xbfcb[86],FaxAccountId:_0xfed2x1b[_0xbfcb[69]]})}})[_0xbfcb[33]](function(_0xfed2x23){if(!_0xfed2x23){throw  new Error(_0xbfcb[84])};_0xfed2x1c= _0xfed2x23;_0xfed2x1a[_0xbfcb[85]]= _0xfed2x23[_0xbfcb[69]];_0xfed2x1a[_0xbfcb[21]]= _0xbfcb[86];_0xfed2x1a[_0xbfcb[71]]= _0xfed2x1a[_0xbfcb[39]];_0xfed2x1a[_0xbfcb[87]]= _0xfed2x1a[_0xbfcb[50]];return FaxMessage[_0xbfcb[83]](_0xfed2x1a)})[_0xbfcb[33]](function(_0xfed2x1f){_0xfed2x17= _0xfed2x1f;var _0xfed2x20=[];var _0xfed2x21=path[_0xbfcb[75]](_0xfed2x14[_0xbfcb[49]])[_0xbfcb[70]];var _0xfed2x22=_0xfed2x21+ _0xbfcb[76];return FaxAttachment[_0xbfcb[83]]({path:path[_0xbfcb[82]](config[_0xbfcb[77]],_0xbfcb[78],_0xbfcb[79],_0xbfcb[66],_0xbfcb[80],_0xbfcb[81],_0xfed2x22),basename:_0xfed2x22,name:_0xfed2x21,FaxMessageId:_0xfed2x1f[_0xbfcb[69]]})})[_0xbfcb[33]](function(_0xfed2x1e){return exec(_0xbfcb[73]+ _0xfed2x1e[_0xbfcb[2]]+ _0xbfcb[74]+ _0xfed2x14[_0xbfcb[49]])})[_0xbfcb[33]](function(){var _0xfed2x1d= new Scheduler({channel:_0xbfcb[66],uniqueid:util[_0xbfcb[63]](_0xbfcb[67],moment()[_0xbfcb[68]](),_0xfed2x1c[_0xbfcb[69]]),messageid:_0xfed2x17[_0xbfcb[69]],roomid:_0xfed2x1c[_0xbfcb[69]],accountid:_0xfed2x1b[_0xbfcb[69]],accountname:_0xfed2x1b[_0xbfcb[70]],accountphone:_0xfed2x1b[_0xbfcb[50]],from:_0xfed2x17[_0xbfcb[71]]});_0xfed2x1d[_0xbfcb[72]]()})[_0xbfcb[29]](function(_0xfed2x15){console[_0xbfcb[19]](_0xbfcb[65],_0xfed2x15)})};function sendfax(_0xfed2x1f,_0xfed2x12,_0xfed2x28){if(_0xfed2x1f[_0xbfcb[21]]=== _0xbfcb[23]){var _0xfed2x1c;var _0xfed2x17=_0xfed2x1f;var _0xfed2x29=_0xfed2x1f[_0xbfcb[71]];var _0xfed2x2a=_0xfed2x1f[_0xbfcb[87]];var _0xfed2x2b;var _0xfed2x2c;var _0xfed2x2d,_0xfed2x2e;return FaxAccount[_0xbfcb[35]]({where:{localstationid:_0xfed2x17[_0xbfcb[71]]}})[_0xbfcb[33]](function(_0xfed2x26){if(!_0xfed2x26){throw  new Error(_0xbfcb[91])};_0xfed2x2b= _0xfed2x26;return Trunk[_0xbfcb[35]]({where:{name:_0xfed2x2b[_0xbfcb[129]]}})})[_0xbfcb[33]](function(_0xfed2x30){if(!_0xfed2x30){throw  new Error(_0xbfcb[126])};_0xfed2x2c= _0xfed2x30;if(_0xfed2x17[_0xbfcb[85]]){return FaxRoom[_0xbfcb[127]](_0xfed2x17.FaxRoomId)}else {return FaxRoom[_0xbfcb[83]]({from:_0xfed2x29,account:_0xfed2x2b[_0xbfcb[70]],status:_0xbfcb[128],FaxAccountId:_0xfed2x2b[_0xbfcb[69]]})}})[_0xbfcb[33]](function(_0xfed2x18){_0xfed2x1c= _0xfed2x18;return _0xfed2x1c[_0xbfcb[125]](_0xfed2x17[_0xbfcb[69]])})[_0xbfcb[33]](function(){return _0xfed2x1c[_0xbfcb[32]]({lastEvent:_0xbfcb[23]})})[_0xbfcb[33]](function(){return _0xfed2x1c[_0xbfcb[124]](_0xfed2x17.UserId)})[_0xbfcb[33]](function(){if(_0xfed2x2b[_0xbfcb[93]]){return Contact[_0xbfcb[94]]({where:{ListId:_0xfed2x2b[_0xbfcb[93]],$or:[{phone:_0xfed2x2a},{fax:_0xfed2x2a}]},defaults:{fax:_0xfed2x2a,phone:_0xfed2x2a,firstName:_0xfed2x2a,ListId:_0xfed2x2b[_0xbfcb[93]]}})}else {return []}})[_0xbfcb[90]](function(_0xfed2x24,_0xfed2x25){if(_0xfed2x25!= undefined&&  !_0xfed2x25){return _0xfed2x24[_0xbfcb[32]]({fax:_0xfed2x2a})};return})[_0xbfcb[33]](function(){_0xfed2x2d= _0xfed2x17[_0xbfcb[115]][0][_0xbfcb[2]];if(_0xfed2x17[_0xbfcb[115]][0][_0xbfcb[116]]=== _0xbfcb[117]){_0xfed2x2e= path[_0xbfcb[82]](config[_0xbfcb[77]],_0xbfcb[78],_0xbfcb[79],_0xbfcb[66],_0xbfcb[118],_0xbfcb[81],_0xbfcb[119],path[_0xbfcb[75]](_0xfed2x2d)[_0xbfcb[70]]+ _0xbfcb[120]);return exec(_0xbfcb[121]+ _0xfed2x2e+ _0xbfcb[74]+ _0xfed2x2d)}else {_0xfed2x2e= path[_0xbfcb[82]](config[_0xbfcb[77]],_0xbfcb[78],_0xbfcb[79],_0xbfcb[66],_0xbfcb[118],_0xbfcb[81],_0xbfcb[119],path[_0xbfcb[75]](_0xfed2x2d)[_0xbfcb[122]]);fse[_0xbfcb[123]](_0xfed2x2d,_0xfed2x2e);return}})[_0xbfcb[33]](function(){fs[_0xbfcb[114]](_0xfed2x2e,511);return _0xfed2x17[_0xbfcb[32]]({filename:_0xfed2x2e,localstationid:_0xfed2x17[_0xbfcb[71]],retry:_0xfed2x28})})[_0xbfcb[33]](function(){return Promise[_0xbfcb[113]](_0xfed2x12[_0xbfcb[112]])({action:_0xbfcb[99],channel:util[_0xbfcb[63]](_0xbfcb[100],_0xfed2x2b[_0xbfcb[101]],_0xfed2x2c[_0xbfcb[70]],_0xfed2x2a),exten:_0xfed2x2a,context:_0xbfcb[102],priority:1,callerid:util[_0xbfcb[63]](_0xbfcb[103],_0xfed2x2b[_0xbfcb[50]],_0xfed2x2b[_0xbfcb[50]]),variable:{FAXNAME:_0xfed2x2b[_0xbfcb[70]],FAXNUMBER:_0xfed2x2a,FAXECM:_0xfed2x2b[_0xbfcb[104]],FAXHEADERINFO:_0xfed2x2b[_0xbfcb[105]],FAXLOCALSTATIONID:_0xfed2x2b[_0xbfcb[50]],FAXMINRATE:_0xfed2x2b[_0xbfcb[106]],FAXMAXRATE:_0xfed2x2b[_0xbfcb[107]],FAXMODEM:util[_0xbfcb[63]](_0xbfcb[108],_0xfed2x2b[_0xbfcb[109]]),FAXGATEWAY:_0xfed2x2b[_0xbfcb[110]],FAXT38TIMEOUT:_0xfed2x2b[_0xbfcb[111]],FAXOUTFILE:_0xfed2x2e},account:_0xfed2x2b[_0xbfcb[50]]})})[_0xbfcb[33]](function(_0xfed2x2f){console[_0xbfcb[19]](_0xbfcb[98],_0xfed2x2f)})[_0xbfcb[29]](function(_0xfed2x15){console[_0xbfcb[19]](_0xbfcb[95],_0xfed2x15);return _0xfed2x17[_0xbfcb[97]]({status:_0xbfcb[57]})[_0xbfcb[33]](function(){if(_0xfed2x1c){return _0xfed2x1c[_0xbfcb[32]]({lastEvent:_0xbfcb[57]})};return})[_0xbfcb[29]](function(_0xfed2x15){console[_0xbfcb[19]](_0xbfcb[96])})})}}module[_0xbfcb[130]]= Fax