3043ae5a0f35dce8bc328619a6a2032bf6c41437
[motion.git] / server / api / fax_message / fax_message.ami.js
1 var _0xc4ca=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x72\x65\x67\x69\x73\x74\x65\x72","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65\x20\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6C\x6F\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x4E\x4F\x54\x20\x53\x45\x4E\x54","\x61\x63\x74\x69\x6F\x6E\x69\x64","\x62\x6F\x64\x79","\x70\x61\x72\x73\x65","\x66\x61\x78\x42\x6F\x64\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x66\x72\x6F\x6D","\x25\x73\x2F\x25\x73\x40\x25\x73","\x74\x65\x63\x68\x6E\x6F\x6C\x6F\x67\x79","\x74\x6F","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x73","\x74\x72\x75\x65","\x6D\x61\x78\x72\x61\x74\x65","\x6D\x69\x6E\x72\x61\x74\x65","\x65\x63\x6D","\x79\x65\x73","\x6E\x6F","\x66\x61\x78\x5F\x6C\x6F\x63\x61\x6C\x69\x64","\x66\x61\x78\x5F\x66\x69\x6C\x65","\x66\x61\x78\x5F\x68\x65\x61\x64\x65\x72","\x75\x75\x69\x64","\x46\x41\x49\x4C\x45\x44","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x61\x63\x74\x69\x6F\x6E","\x74\x68\x65\x6E","\x69\x64","\x74\x72\x75\x6E\x6B","\x66\x69\x6E\x64\x42\x79\x49\x64"];_0xc4ca[0];var _=require(_0xc4ca[1]);var util=require(_0xc4ca[2]);var FaxMessage=require(_0xc4ca[4])[_0xc4ca[3]];var Trunk=require(_0xc4ca[4])[_0xc4ca[5]];exports[_0xc4ca[6]]= function(_0xed31x5){FaxMessage[_0xc4ca[9]](function(_0xed31x6){console[_0xc4ca[8]](_0xc4ca[7])})};function onSave(_0xed31x5,_0xed31x6,_0xed31x8){if(_0xed31x6[_0xc4ca[10]]=== _0xc4ca[11]&&  !_0xed31x6[_0xc4ca[12]]){var _0xed31x9=JSON[_0xc4ca[14]](_0xed31x6[_0xc4ca[13]]);console[_0xc4ca[8]](_0xc4ca[15],_0xed31x9);Trunk[_0xc4ca[44]](_0xed31x9[_0xc4ca[43]][_0xc4ca[42]])[_0xc4ca[41]](function(_0xed31xb){var _0xed31xc={Action:_0xc4ca[18],CallerID:_0xed31x9[_0xc4ca[19]],Channel:util[_0xc4ca[24]](_0xc4ca[20],_0xed31x9[_0xc4ca[21]],_0xed31x9[_0xc4ca[22]],_0xed31xb[_0xc4ca[23]]),Context:_0xc4ca[25],Exten:_0xc4ca[26],Priority:1,Async:_0xc4ca[27],Variable:{MAXRATE:_0xed31x9[_0xc4ca[28]],MINRATE:_0xed31x9[_0xc4ca[29]],ECM:_0xed31x9[_0xc4ca[30]]?_0xc4ca[31]:_0xc4ca[32],LOCALID:_0xed31x9[_0xc4ca[33]],FAXFILE:_0xed31x9[_0xc4ca[34]],FAXHEADER:_0xed31x9[_0xc4ca[35]],FAXUUID:_0xed31x9[_0xc4ca[36]]}};_0xed31x5[_0xc4ca[40]](_0xed31xc,function(_0xed31xa,_0xed31xd){if(_0xed31xa){_0xed31x6[_0xc4ca[38]]({status:_0xc4ca[37]})}else {if(_0xed31xd[_0xc4ca[39]]&& _0xed31xd[_0xc4ca[12]]){_0xed31x6[_0xc4ca[38]]({actionid:_0xed31xd[_0xc4ca[12]]})}}})})[_0xc4ca[17]](function(_0xed31xa){console[_0xc4ca[16]](_0xed31xa)})}}