Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / services / ami / fax / util / util.js
index ac1f0b4..269c3c2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9035=['\x22%s\x22','gateway','faxdetect','t38timeout','localstationid','path','variablesAction','originate','channel','from-sip','\x22%s\x22\x20<%s>','headerinfo','uniqueid','util','lodash','moment','../../../../config/logger','message','logger','info','inspect','addVariables','ecm','minrate','maxrate','format'];(function(_0x1b12a1,_0x2644c1){var _0x29767a=function(_0x50a598){while(--_0x50a598){_0x1b12a1['push'](_0x1b12a1['shift']());}};_0x29767a(++_0x2644c1);}(_0x9035,0x75));var _0x5903=function(_0x1e5b5f,_0x4f0568){_0x1e5b5f=_0x1e5b5f-0x0;var _0x4d8adc=_0x9035[_0x1e5b5f];return _0x4d8adc;};'use strict';var util=require(_0x5903('0x0'));var _=require(_0x5903('0x1'));var moment=require(_0x5903('0x2'));var logger=require(_0x5903('0x3'))('fax');exports[_0x5903('0x4')]=function(_0x340b2c){return{'message':_0x340b2c};};exports[_0x5903('0x5')]=function(_0x514ccc,_0x388148){logger[_0x5903('0x6')](_0x514ccc,util[_0x5903('0x7')](_0x388148,{'showHidden':![],'depth':null}));};exports[_0x5903('0x8')]=function(_0x14c960,_0x366f99){var _0x28334b={'XMF-ECM':_0x366f99[_0x5903('0x9')],'XMF-HEADERINFO':_0x366f99['headerinfo'],'XMF-MINRATE':_0x366f99[_0x5903('0xa')],'XMF-MAXRATE':_0x366f99[_0x5903('0xb')],'XMF-MODEM':util[_0x5903('0xc')](_0x5903('0xd'),_0x366f99['modem']),'XMF-GATEWAY':_0x366f99[_0x5903('0xe')],'XMF-FAXDETECT':_0x366f99[_0x5903('0xf')],'XMF-T38TIMEOUT':_0x366f99[_0x5903('0x10')],'XMF-LOCALSTATIONID':_0x366f99[_0x5903('0x11')],'XMF-PATH':_0x14c960[_0x5903('0x12')]};return _0x28334b;};exports[_0x5903('0x13')]=function(_0x902312,_0x4bc31b){return{'actionid':_0x902312['uniqueid'],'action':_0x5903('0x14'),'channel':_0x902312[_0x5903('0x15')],'Exten':'xcally-motion-fax','Context':_0x5903('0x16'),'Priority':'1','callerid':util[_0x5903('0xc')](_0x5903('0x17'),_0x902312[_0x5903('0x18')]?_0x902312['headerinfo']:'',_0x902312[_0x5903('0x11')]),'variable':_0x4bc31b,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x902312[_0x5903('0x19')]};};
\ No newline at end of file
+var _0xf335=['maxrate','format','\x22%s\x22','faxdetect','t38timeout','localstationid','path','variablesAction','originate','channel','from-sip','\x22%s\x22\x20<%s>','headerinfo','uniqueid','util','moment','../../../../config/logger','fax','message','info','addVariables','ecm','minrate'];(function(_0x5f15c4,_0x3db215){var _0x28d1d2=function(_0x488f19){while(--_0x488f19){_0x5f15c4['push'](_0x5f15c4['shift']());}};_0x28d1d2(++_0x3db215);}(_0xf335,0x195));var _0x5f33=function(_0xc6a818,_0x2e0c14){_0xc6a818=_0xc6a818-0x0;var _0x57feef=_0xf335[_0xc6a818];return _0x57feef;};'use strict';var util=require(_0x5f33('0x0'));var _=require('lodash');var moment=require(_0x5f33('0x1'));var logger=require(_0x5f33('0x2'))(_0x5f33('0x3'));exports[_0x5f33('0x4')]=function(_0x6ba549){return{'message':_0x6ba549};};exports['logger']=function(_0x3e7cb7,_0x39b9de){logger[_0x5f33('0x5')](_0x3e7cb7,util['inspect'](_0x39b9de,{'showHidden':![],'depth':null}));};exports[_0x5f33('0x6')]=function(_0x487f43,_0xdccb27){var _0x7d0201={'XMF-ECM':_0xdccb27[_0x5f33('0x7')],'XMF-HEADERINFO':_0xdccb27['headerinfo'],'XMF-MINRATE':_0xdccb27[_0x5f33('0x8')],'XMF-MAXRATE':_0xdccb27[_0x5f33('0x9')],'XMF-MODEM':util[_0x5f33('0xa')](_0x5f33('0xb'),_0xdccb27['modem']),'XMF-GATEWAY':_0xdccb27['gateway'],'XMF-FAXDETECT':_0xdccb27[_0x5f33('0xc')],'XMF-T38TIMEOUT':_0xdccb27[_0x5f33('0xd')],'XMF-LOCALSTATIONID':_0xdccb27[_0x5f33('0xe')],'XMF-PATH':_0x487f43[_0x5f33('0xf')]};return _0x7d0201;};exports[_0x5f33('0x10')]=function(_0x36b202,_0x22029f){return{'actionid':_0x36b202['uniqueid'],'action':_0x5f33('0x11'),'channel':_0x36b202[_0x5f33('0x12')],'Exten':'xcally-motion-fax','Context':_0x5f33('0x13'),'Priority':'1','callerid':util[_0x5f33('0xa')](_0x5f33('0x14'),_0x36b202[_0x5f33('0x15')]?_0x36b202[_0x5f33('0x15')]:'',_0x36b202['localstationid']),'variable':_0x22029f,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x36b202[_0x5f33('0x16')]};};
\ No newline at end of file