Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / services / ami / fax / util / util.js
index 870c6c7..b59caa5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe1bc=['variablesAction','channel','from-sip','uniqueid','lodash','moment','../../../../config/logger','fax','message','logger','info','inspect','addVariables','ecm','headerinfo','minrate','format','\x22%s\x22','modem','gateway','faxdetect','t38timeout','localstationid','path'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xe1bc,0xf4));var _0xce1b=function(_0x1a15a0,_0x559e1b){_0x1a15a0=_0x1a15a0-0x0;var _0x5deed7=_0xe1bc[_0x1a15a0];return _0x5deed7;};'use strict';var util=require('util');var _=require(_0xce1b('0x0'));var moment=require(_0xce1b('0x1'));var logger=require(_0xce1b('0x2'))(_0xce1b('0x3'));exports[_0xce1b('0x4')]=function(_0xe35efe){return{'message':_0xe35efe};};exports[_0xce1b('0x5')]=function(_0x1bc15d,_0x208d53){logger[_0xce1b('0x6')](_0x1bc15d,util[_0xce1b('0x7')](_0x208d53,{'showHidden':![],'depth':null}));};exports[_0xce1b('0x8')]=function(_0x286300,_0x5dd7aa){var _0x4c6f5d={'XMF-ECM':_0x5dd7aa[_0xce1b('0x9')],'XMF-HEADERINFO':_0x5dd7aa[_0xce1b('0xa')],'XMF-MINRATE':_0x5dd7aa[_0xce1b('0xb')],'XMF-MAXRATE':_0x5dd7aa['maxrate'],'XMF-MODEM':util[_0xce1b('0xc')](_0xce1b('0xd'),_0x5dd7aa[_0xce1b('0xe')]),'XMF-GATEWAY':_0x5dd7aa[_0xce1b('0xf')],'XMF-FAXDETECT':_0x5dd7aa[_0xce1b('0x10')],'XMF-T38TIMEOUT':_0x5dd7aa[_0xce1b('0x11')],'XMF-LOCALSTATIONID':_0x5dd7aa[_0xce1b('0x12')],'XMF-PATH':_0x286300[_0xce1b('0x13')]};return _0x4c6f5d;};exports[_0xce1b('0x14')]=function(_0x363fd8,_0x52d544){return{'actionid':_0x363fd8['uniqueid'],'action':'originate','channel':_0x363fd8[_0xce1b('0x15')],'Exten':'xcally-motion-fax','Context':_0xce1b('0x16'),'Priority':'1','callerid':util[_0xce1b('0xc')]('\x22%s\x22\x20<%s>',_0x363fd8[_0xce1b('0xa')]?_0x363fd8[_0xce1b('0xa')]:'',_0x363fd8[_0xce1b('0x12')]),'variable':_0x52d544,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x363fd8[_0xce1b('0x17')]};};
\ No newline at end of file
+var _0x64f2=['headerinfo','localstationid','moment','../../../../config/logger','fax','message','inspect','addVariables','ecm','minrate','maxrate','gateway','faxdetect','t38timeout','variablesAction','uniqueid','channel','xcally-motion-fax','from-sip'];(function(_0x3d2d2d,_0xcbc2fa){var _0x5325e4=function(_0xcb1b4f){while(--_0xcb1b4f){_0x3d2d2d['push'](_0x3d2d2d['shift']());}};_0x5325e4(++_0xcbc2fa);}(_0x64f2,0xad));var _0x264f=function(_0x19f7c5,_0x382820){_0x19f7c5=_0x19f7c5-0x0;var _0x169121=_0x64f2[_0x19f7c5];return _0x169121;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0x264f('0x0'));var logger=require(_0x264f('0x1'))(_0x264f('0x2'));exports[_0x264f('0x3')]=function(_0x3f569c){return{'message':_0x3f569c};};exports['logger']=function(_0x444807,_0x44f6db){logger['info'](_0x444807,util[_0x264f('0x4')](_0x44f6db,{'showHidden':![],'depth':null}));};exports[_0x264f('0x5')]=function(_0x385962,_0x154930){var _0x411d0={'XMF-ECM':_0x154930[_0x264f('0x6')],'XMF-HEADERINFO':_0x154930['headerinfo'],'XMF-MINRATE':_0x154930[_0x264f('0x7')],'XMF-MAXRATE':_0x154930[_0x264f('0x8')],'XMF-MODEM':util['format']('\x22%s\x22',_0x154930['modem']),'XMF-GATEWAY':_0x154930[_0x264f('0x9')],'XMF-FAXDETECT':_0x154930[_0x264f('0xa')],'XMF-T38TIMEOUT':_0x154930[_0x264f('0xb')],'XMF-LOCALSTATIONID':_0x154930['localstationid'],'XMF-PATH':_0x385962['path']};return _0x411d0;};exports[_0x264f('0xc')]=function(_0x255150,_0x1a6bc9){return{'actionid':_0x255150[_0x264f('0xd')],'action':'originate','channel':_0x255150[_0x264f('0xe')],'Exten':_0x264f('0xf'),'Context':_0x264f('0x10'),'Priority':'1','callerid':util['format']('\x22%s\x22\x20<%s>',_0x255150[_0x264f('0x11')]?_0x255150[_0x264f('0x11')]:'',_0x255150[_0x264f('0x12')]),'variable':_0x1a6bc9,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x255150[_0x264f('0xd')]};};
\ No newline at end of file