Built motion from commit f651e4b0a7312c0adceb5e57d6684a801a3aaf0d. Version 3.0.0...
[motion-next.git] / server / services / ami / fax / util / util.js
index 56c12b9..743cde9 100644 (file)
@@ -1 +1 @@
-const a1064_0x4666=['headerinfo','message','../../../../config/logger','maxrate','modem','logger','fax','addVariables','info','localstationid','path','util','t38timeout','\x22%s\x22\x20<%s>','channel','format','minrate','gateway','originate','ecm','uniqueid','inspect'];(function(_0x3dbd80,_0x466622){const _0x1fe825=function(_0x4c08b6){while(--_0x4c08b6){_0x3dbd80['push'](_0x3dbd80['shift']());}};_0x1fe825(++_0x466622);}(a1064_0x4666,0x15c));const a1064_0x1fe8=function(_0x3dbd80,_0x466622){_0x3dbd80=_0x3dbd80-0x0;let _0x1fe825=a1064_0x4666[_0x3dbd80];return _0x1fe825;};const _0x12b04e=a1064_0x1fe8;'use strict';const util=require(_0x12b04e('0xf')),logger=require(_0x12b04e('0x6'))(_0x12b04e('0xa'));exports[_0x12b04e('0x5')]=function(_0x4c08b6){return{'message':_0x4c08b6};},exports[_0x12b04e('0x9')]=function(_0x1367f3,_0x24f48a){const _0x1cabd2=_0x12b04e;logger[_0x1cabd2('0xc')](_0x1367f3,util[_0x1cabd2('0x3')](_0x24f48a,{'showHidden':![],'depth':null}));},exports[_0x12b04e('0xb')]=function(_0x236205,_0x5947c9){const _0x4d2b05=_0x12b04e,_0xa19340={'XMF-ECM':_0x5947c9[_0x4d2b05('0x1')],'XMF-HEADERINFO':_0x5947c9[_0x4d2b05('0x4')],'XMF-MINRATE':_0x5947c9[_0x4d2b05('0x14')],'XMF-MAXRATE':_0x5947c9[_0x4d2b05('0x7')],'XMF-MODEM':util[_0x4d2b05('0x13')]('\x22%s\x22',_0x5947c9[_0x4d2b05('0x8')]),'XMF-GATEWAY':_0x5947c9[_0x4d2b05('0x15')],'XMF-FAXDETECT':_0x5947c9['faxdetect'],'XMF-T38TIMEOUT':_0x5947c9[_0x4d2b05('0x10')],'XMF-LOCALSTATIONID':_0x5947c9[_0x4d2b05('0xd')],'XMF-PATH':_0x236205[_0x4d2b05('0xe')]};return _0xa19340;},exports['variablesAction']=function(_0x417173,_0x155f5b){const _0x302383=_0x12b04e;return{'actionid':_0x417173[_0x302383('0x2')],'action':_0x302383('0x0'),'channel':_0x417173[_0x302383('0x12')],'Exten':'xcally-motion-fax','Context':'from-sip','Priority':'1','callerid':util[_0x302383('0x13')](_0x302383('0x11'),_0x417173[_0x302383('0x4')]?_0x417173[_0x302383('0x4')]:'',_0x417173[_0x302383('0xd')]),'variable':_0x155f5b,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x417173[_0x302383('0x2')]};};
\ No newline at end of file
+const a1064_0x4536=['maxrate','message','channel','localstationid','info','gateway','uniqueid','../../../../config/logger','fax','headerinfo','ecm','variablesAction','inspect','originate','format','\x22%s\x22','\x22%s\x22\x20<%s>','minrate','path','from-sip','modem'];(function(_0x4a31c4,_0x4536b1){const _0x4af0ce=function(_0x77cd29){while(--_0x77cd29){_0x4a31c4['push'](_0x4a31c4['shift']());}};_0x4af0ce(++_0x4536b1);}(a1064_0x4536,0x132));const a1064_0x4af0=function(_0x4a31c4,_0x4536b1){_0x4a31c4=_0x4a31c4-0x0;let _0x4af0ce=a1064_0x4536[_0x4a31c4];return _0x4af0ce;};const _0x431bd5=a1064_0x4af0;'use strict';const util=require('util'),logger=require(_0x431bd5('0x10'))(_0x431bd5('0x11'));exports[_0x431bd5('0xa')]=function(_0x77cd29){return{'message':_0x77cd29};},exports['logger']=function(_0x351fab,_0x3a9ea1){const _0x482fa5=_0x431bd5;logger[_0x482fa5('0xd')](_0x351fab,util[_0x482fa5('0x0')](_0x3a9ea1,{'showHidden':![],'depth':null}));},exports['addVariables']=function(_0x13f820,_0x1a674d){const _0x9f72a5=_0x431bd5,_0x24face={'XMF-ECM':_0x1a674d[_0x9f72a5('0x13')],'XMF-HEADERINFO':_0x1a674d[_0x9f72a5('0x12')],'XMF-MINRATE':_0x1a674d[_0x9f72a5('0x5')],'XMF-MAXRATE':_0x1a674d[_0x9f72a5('0x9')],'XMF-MODEM':util[_0x9f72a5('0x2')](_0x9f72a5('0x3'),_0x1a674d[_0x9f72a5('0x8')]),'XMF-GATEWAY':_0x1a674d[_0x9f72a5('0xe')],'XMF-FAXDETECT':_0x1a674d['faxdetect'],'XMF-T38TIMEOUT':_0x1a674d['t38timeout'],'XMF-LOCALSTATIONID':_0x1a674d[_0x9f72a5('0xc')],'XMF-PATH':_0x13f820[_0x9f72a5('0x6')]};return _0x24face;},exports[_0x431bd5('0x14')]=function(_0x391c82,_0x4dd04a){const _0x4f57a7=_0x431bd5;return{'actionid':_0x391c82[_0x4f57a7('0xf')],'action':_0x4f57a7('0x1'),'channel':_0x391c82[_0x4f57a7('0xb')],'Exten':'xcally-motion-fax','Context':_0x4f57a7('0x7'),'Priority':'1','callerid':util[_0x4f57a7('0x2')](_0x4f57a7('0x4'),_0x391c82[_0x4f57a7('0x12')]?_0x391c82[_0x4f57a7('0x12')]:'',_0x391c82[_0x4f57a7('0xc')]),'variable':_0x4dd04a,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x391c82[_0x4f57a7('0xf')]};};
\ No newline at end of file