Built motion from commit 98555a2.|1.0.12
[motion.git] / server / api / fax_message / fax_message.ami.js
index d0b9611..ae3b655 100644 (file)
@@ -1 +1 @@
-var _0xfff7=["\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"];_0xfff7[0];var _=require(_0xfff7[1]);var util=require(_0xfff7[2]);var FaxMessage=require(_0xfff7[4])[_0xfff7[3]];var Trunk=require(_0xfff7[4])[_0xfff7[5]];exports[_0xfff7[6]]=function(_0xb04fx5){FaxMessage[_0xfff7[9]](function(_0xb04fx6){console[_0xfff7[8]](_0xfff7[7]);onSave(_0xb04fx5,_0xb04fx6)})};function onSave(_0xb04fx5,_0xb04fx6,_0xb04fx8){if(_0xb04fx6[_0xfff7[10]]===_0xfff7[11]&&!_0xb04fx6[_0xfff7[12]]){var _0xb04fx9=JSON[_0xfff7[14]](_0xb04fx6[_0xfff7[13]]);console[_0xfff7[8]](_0xfff7[15],_0xb04fx9);Trunk[_0xfff7[44]](_0xb04fx9[_0xfff7[43]][_0xfff7[42]])[_0xfff7[41]](function(_0xb04fxb){var _0xb04fxc={Action:_0xfff7[18],CallerID:_0xb04fx9[_0xfff7[19]],Channel:util[_0xfff7[24]](_0xfff7[20],_0xb04fx9[_0xfff7[21]],_0xb04fx9[_0xfff7[22]],_0xb04fxb[_0xfff7[23]]),Context:_0xfff7[25],Exten:_0xfff7[26],Priority:1,Async:_0xfff7[27],Variable:{MAXRATE:_0xb04fx9[_0xfff7[28]],MINRATE:_0xb04fx9[_0xfff7[29]],ECM:_0xb04fx9[_0xfff7[30]]?_0xfff7[31]:_0xfff7[32],LOCALID:_0xb04fx9[_0xfff7[33]],FAXFILE:_0xb04fx9[_0xfff7[34]],FAXHEADER:_0xb04fx9[_0xfff7[35]],FAXUUID:_0xb04fx9[_0xfff7[36]]}};_0xb04fx5[_0xfff7[40]](_0xb04fxc,function(_0xb04fxa,_0xb04fxd){if(_0xb04fxa){_0xb04fx6[_0xfff7[38]]({status:_0xfff7[37]})}else {if(_0xb04fxd[_0xfff7[39]]&&_0xb04fxd[_0xfff7[12]]){_0xb04fx6[_0xfff7[38]]({actionid:_0xb04fxd[_0xfff7[12]]})}}})})[_0xfff7[17]](function(_0xb04fxa){console[_0xfff7[16]](_0xb04fxa)})}}
\ No newline at end of file
+var _0x5b0a=["\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"];_0x5b0a[0];var _=require(_0x5b0a[1]);var util=require(_0x5b0a[2]);var FaxMessage=require(_0x5b0a[4])[_0x5b0a[3]];var Trunk=require(_0x5b0a[4])[_0x5b0a[5]];exports[_0x5b0a[6]]= function(_0x8410x5){FaxMessage[_0x5b0a[9]](function(_0x8410x6){console[_0x5b0a[8]](_0x5b0a[7])})};function onSave(_0x8410x5,_0x8410x6,_0x8410x8){if(_0x8410x6[_0x5b0a[10]]=== _0x5b0a[11]&&  !_0x8410x6[_0x5b0a[12]]){var _0x8410x9=JSON[_0x5b0a[14]](_0x8410x6[_0x5b0a[13]]);console[_0x5b0a[8]](_0x5b0a[15],_0x8410x9);Trunk[_0x5b0a[44]](_0x8410x9[_0x5b0a[43]][_0x5b0a[42]])[_0x5b0a[41]](function(_0x8410xb){var _0x8410xc={Action:_0x5b0a[18],CallerID:_0x8410x9[_0x5b0a[19]],Channel:util[_0x5b0a[24]](_0x5b0a[20],_0x8410x9[_0x5b0a[21]],_0x8410x9[_0x5b0a[22]],_0x8410xb[_0x5b0a[23]]),Context:_0x5b0a[25],Exten:_0x5b0a[26],Priority:1,Async:_0x5b0a[27],Variable:{MAXRATE:_0x8410x9[_0x5b0a[28]],MINRATE:_0x8410x9[_0x5b0a[29]],ECM:_0x8410x9[_0x5b0a[30]]?_0x5b0a[31]:_0x5b0a[32],LOCALID:_0x8410x9[_0x5b0a[33]],FAXFILE:_0x8410x9[_0x5b0a[34]],FAXHEADER:_0x8410x9[_0x5b0a[35]],FAXUUID:_0x8410x9[_0x5b0a[36]]}};_0x8410x5[_0x5b0a[40]](_0x8410xc,function(_0x8410xa,_0x8410xd){if(_0x8410xa){_0x8410x6[_0x5b0a[38]]({status:_0x5b0a[37]})}else {if(_0x8410xd[_0x5b0a[39]]&& _0x8410xd[_0x5b0a[12]]){_0x8410x6[_0x5b0a[38]]({actionid:_0x8410xd[_0x5b0a[12]]})}}})})[_0x5b0a[17]](function(_0x8410xa){console[_0x5b0a[16]](_0x8410xa)})}}
\ No newline at end of file