Built motion from commit ecb45b58.|2.6.31
[motion2.git] / server / services / ami / fax / util / util.js
index 97bc0e6..b763cab 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x88f3=['headerinfo','minrate','maxrate','modem','gateway','faxdetect','t38timeout','localstationid','variablesAction','uniqueid','channel','xcally-motion-fax','from-sip','format','lodash','moment','../../../../config/logger','fax','message','info','inspect','addVariables','ecm'];(function(_0x132421,_0x4b8978){var _0x232c83=function(_0x5e47ab){while(--_0x5e47ab){_0x132421['push'](_0x132421['shift']());}};_0x232c83(++_0x4b8978);}(_0x88f3,0x1f1));var _0x388f=function(_0x506b4d,_0x15745b){_0x506b4d=_0x506b4d-0x0;var _0x4191fc=_0x88f3[_0x506b4d];return _0x4191fc;};'use strict';var util=require('util');var _=require(_0x388f('0x0'));var moment=require(_0x388f('0x1'));var logger=require(_0x388f('0x2'))(_0x388f('0x3'));exports[_0x388f('0x4')]=function(_0x2dd1e3){return{'message':_0x2dd1e3};};exports['logger']=function(_0x13a6ee,_0x79b608){logger[_0x388f('0x5')](_0x13a6ee,util[_0x388f('0x6')](_0x79b608,{'showHidden':![],'depth':null}));};exports[_0x388f('0x7')]=function(_0x469122,_0x214217){var _0x328784={'XMF-ECM':_0x214217[_0x388f('0x8')],'XMF-HEADERINFO':_0x214217[_0x388f('0x9')],'XMF-MINRATE':_0x214217[_0x388f('0xa')],'XMF-MAXRATE':_0x214217[_0x388f('0xb')],'XMF-MODEM':util['format']('\x22%s\x22',_0x214217[_0x388f('0xc')]),'XMF-GATEWAY':_0x214217[_0x388f('0xd')],'XMF-FAXDETECT':_0x214217[_0x388f('0xe')],'XMF-T38TIMEOUT':_0x214217[_0x388f('0xf')],'XMF-LOCALSTATIONID':_0x214217[_0x388f('0x10')],'XMF-PATH':_0x469122['path']};return _0x328784;};exports[_0x388f('0x11')]=function(_0x57e4d7,_0x3dc4b6){return{'actionid':_0x57e4d7[_0x388f('0x12')],'action':'originate','channel':_0x57e4d7[_0x388f('0x13')],'Exten':_0x388f('0x14'),'Context':_0x388f('0x15'),'Priority':'1','callerid':util[_0x388f('0x16')]('\x22%s\x22\x20<%s>',_0x57e4d7[_0x388f('0x9')]?_0x57e4d7[_0x388f('0x9')]:'',_0x57e4d7['localstationid']),'variable':_0x3dc4b6,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x57e4d7[_0x388f('0x12')]};};
\ No newline at end of file
+var _0x86ea=['logger','info','inspect','addVariables','ecm','headerinfo','minrate','maxrate','\x22%s\x22','gateway','localstationid','path','variablesAction','uniqueid','originate','channel','xcally-motion-fax','from-sip','\x22%s\x22\x20<%s>','util','lodash','moment','../../../../config/logger','fax','message'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0x86ea,0xdb));var _0xa86e=function(_0x3389c4,_0x2bf055){_0x3389c4=_0x3389c4-0x0;var _0x50fb7c=_0x86ea[_0x3389c4];return _0x50fb7c;};'use strict';var util=require(_0xa86e('0x0'));var _=require(_0xa86e('0x1'));var moment=require(_0xa86e('0x2'));var logger=require(_0xa86e('0x3'))(_0xa86e('0x4'));exports[_0xa86e('0x5')]=function(_0x4ed3cc){return{'message':_0x4ed3cc};};exports[_0xa86e('0x6')]=function(_0x4116da,_0x2b7ea3){logger[_0xa86e('0x7')](_0x4116da,util[_0xa86e('0x8')](_0x2b7ea3,{'showHidden':![],'depth':null}));};exports[_0xa86e('0x9')]=function(_0x414fae,_0x43421d){var _0x597f61={'XMF-ECM':_0x43421d[_0xa86e('0xa')],'XMF-HEADERINFO':_0x43421d[_0xa86e('0xb')],'XMF-MINRATE':_0x43421d[_0xa86e('0xc')],'XMF-MAXRATE':_0x43421d[_0xa86e('0xd')],'XMF-MODEM':util['format'](_0xa86e('0xe'),_0x43421d['modem']),'XMF-GATEWAY':_0x43421d[_0xa86e('0xf')],'XMF-FAXDETECT':_0x43421d['faxdetect'],'XMF-T38TIMEOUT':_0x43421d['t38timeout'],'XMF-LOCALSTATIONID':_0x43421d[_0xa86e('0x10')],'XMF-PATH':_0x414fae[_0xa86e('0x11')]};return _0x597f61;};exports[_0xa86e('0x12')]=function(_0x2a717b,_0x4fa8fa){return{'actionid':_0x2a717b[_0xa86e('0x13')],'action':_0xa86e('0x14'),'channel':_0x2a717b[_0xa86e('0x15')],'Exten':_0xa86e('0x16'),'Context':_0xa86e('0x17'),'Priority':'1','callerid':util['format'](_0xa86e('0x18'),_0x2a717b[_0xa86e('0xb')]?_0x2a717b[_0xa86e('0xb')]:'',_0x2a717b['localstationid']),'variable':_0x4fa8fa,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x2a717b[_0xa86e('0x13')]};};
\ No newline at end of file