Built motion from commit 16cc8f1.|1.0.14
[motion.git] / server / api / fax_message / fax_message.ami.js
index ce9723e..96bc25f 100644 (file)
@@ -1 +1 @@
-var _0x2c53=["\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"];_0x2c53[0];var _=require(_0x2c53[1]);var util=require(_0x2c53[2]);var FaxMessage=require(_0x2c53[4])[_0x2c53[3]];var Trunk=require(_0x2c53[4])[_0x2c53[5]];exports[_0x2c53[6]]=function(_0xc8c9x5){FaxMessage[_0x2c53[9]](function(_0xc8c9x6){console[_0x2c53[8]](_0x2c53[7]);onSave(_0xc8c9x5,_0xc8c9x6)})};function onSave(_0xc8c9x5,_0xc8c9x6,_0xc8c9x8){if(_0xc8c9x6[_0x2c53[10]]===_0x2c53[11]&&!_0xc8c9x6[_0x2c53[12]]){var _0xc8c9x9=JSON[_0x2c53[14]](_0xc8c9x6[_0x2c53[13]]);console[_0x2c53[8]](_0x2c53[15],_0xc8c9x9);Trunk[_0x2c53[44]](_0xc8c9x9[_0x2c53[43]][_0x2c53[42]])[_0x2c53[41]](function(_0xc8c9xb){var _0xc8c9xc={Action:_0x2c53[18],CallerID:_0xc8c9x9[_0x2c53[19]],Channel:util[_0x2c53[24]](_0x2c53[20],_0xc8c9x9[_0x2c53[21]],_0xc8c9x9[_0x2c53[22]],_0xc8c9xb[_0x2c53[23]]),Context:_0x2c53[25],Exten:_0x2c53[26],Priority:1,Async:_0x2c53[27],Variable:{MAXRATE:_0xc8c9x9[_0x2c53[28]],MINRATE:_0xc8c9x9[_0x2c53[29]],ECM:_0xc8c9x9[_0x2c53[30]]?_0x2c53[31]:_0x2c53[32],LOCALID:_0xc8c9x9[_0x2c53[33]],FAXFILE:_0xc8c9x9[_0x2c53[34]],FAXHEADER:_0xc8c9x9[_0x2c53[35]],FAXUUID:_0xc8c9x9[_0x2c53[36]]}};_0xc8c9x5[_0x2c53[40]](_0xc8c9xc,function(_0xc8c9xa,_0xc8c9xd){if(_0xc8c9xa){_0xc8c9x6[_0x2c53[38]]({status:_0x2c53[37]})}else {if(_0xc8c9xd[_0x2c53[39]]&&_0xc8c9xd[_0x2c53[12]]){_0xc8c9x6[_0x2c53[38]]({actionid:_0xc8c9xd[_0x2c53[12]]})}}})})[_0x2c53[17]](function(_0xc8c9xa){console[_0x2c53[16]](_0xc8c9xa)})}}
\ No newline at end of file
+var _0x9000=["\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"];_0x9000[0];var _=require(_0x9000[1]);var util=require(_0x9000[2]);var FaxMessage=require(_0x9000[4])[_0x9000[3]];var Trunk=require(_0x9000[4])[_0x9000[5]];exports[_0x9000[6]]= function(_0x432fx5){FaxMessage[_0x9000[9]](function(_0x432fx6){console[_0x9000[8]](_0x9000[7])})};function onSave(_0x432fx5,_0x432fx6,_0x432fx8){if(_0x432fx6[_0x9000[10]]=== _0x9000[11]&&  !_0x432fx6[_0x9000[12]]){var _0x432fx9=JSON[_0x9000[14]](_0x432fx6[_0x9000[13]]);console[_0x9000[8]](_0x9000[15],_0x432fx9);Trunk[_0x9000[44]](_0x432fx9[_0x9000[43]][_0x9000[42]])[_0x9000[41]](function(_0x432fxb){var _0x432fxc={Action:_0x9000[18],CallerID:_0x432fx9[_0x9000[19]],Channel:util[_0x9000[24]](_0x9000[20],_0x432fx9[_0x9000[21]],_0x432fx9[_0x9000[22]],_0x432fxb[_0x9000[23]]),Context:_0x9000[25],Exten:_0x9000[26],Priority:1,Async:_0x9000[27],Variable:{MAXRATE:_0x432fx9[_0x9000[28]],MINRATE:_0x432fx9[_0x9000[29]],ECM:_0x432fx9[_0x9000[30]]?_0x9000[31]:_0x9000[32],LOCALID:_0x432fx9[_0x9000[33]],FAXFILE:_0x432fx9[_0x9000[34]],FAXHEADER:_0x432fx9[_0x9000[35]],FAXUUID:_0x432fx9[_0x9000[36]]}};_0x432fx5[_0x9000[40]](_0x432fxc,function(_0x432fxa,_0x432fxd){if(_0x432fxa){_0x432fx6[_0x9000[38]]({status:_0x9000[37]})}else {if(_0x432fxd[_0x9000[39]]&& _0x432fxd[_0x9000[12]]){_0x432fx6[_0x9000[38]]({actionid:_0x432fxd[_0x9000[12]]})}}})})[_0x9000[17]](function(_0x432fxa){console[_0x9000[16]](_0x432fxa)})}}
\ No newline at end of file