Built motion from commit (unavailable).|2.2.6
[motion2.git] / server / services / ami / fax / util / util.js
index 4e4bbd6..ff570a4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x513f=['lodash','moment','fax','message','logger','inspect','ecm','headerinfo','maxrate','format','\x22%s\x22','modem','gateway','faxdetect','localstationid','uniqueid','originate','channel','xcally-motion-fax','from-sip','\x22%s\x22\x20<%s>','util'];(function(_0x5e3b04,_0xbb6795){var _0x1fc44d=function(_0x3472a1){while(--_0x3472a1){_0x5e3b04['push'](_0x5e3b04['shift']());}};_0x1fc44d(++_0xbb6795);}(_0x513f,0x1b7));var _0xf513=function(_0x160dbd,_0x292ea5){_0x160dbd=_0x160dbd-0x0;var _0x38d46a=_0x513f[_0x160dbd];return _0x38d46a;};'use strict';var util=require(_0xf513('0x0'));var _=require(_0xf513('0x1'));var moment=require(_0xf513('0x2'));var logger=require('../../../../config/logger')(_0xf513('0x3'));exports[_0xf513('0x4')]=function(_0x4bfc55){return{'message':_0x4bfc55};};exports[_0xf513('0x5')]=function(_0x3a4f04,_0x4acae3){logger['info'](_0x3a4f04,util[_0xf513('0x6')](_0x4acae3,{'showHidden':![],'depth':null}));};exports['addVariables']=function(_0x5c72ef,_0x34f5aa){var _0x224187={'XMF-ECM':_0x34f5aa[_0xf513('0x7')],'XMF-HEADERINFO':_0x34f5aa[_0xf513('0x8')],'XMF-MINRATE':_0x34f5aa['minrate'],'XMF-MAXRATE':_0x34f5aa[_0xf513('0x9')],'XMF-MODEM':util[_0xf513('0xa')](_0xf513('0xb'),_0x34f5aa[_0xf513('0xc')]),'XMF-GATEWAY':_0x34f5aa[_0xf513('0xd')],'XMF-FAXDETECT':_0x34f5aa[_0xf513('0xe')],'XMF-T38TIMEOUT':_0x34f5aa['t38timeout'],'XMF-LOCALSTATIONID':_0x34f5aa[_0xf513('0xf')],'XMF-PATH':_0x5c72ef['path']};return _0x224187;};exports['variablesAction']=function(_0x1b6146,_0x10e932){return{'actionid':_0x1b6146[_0xf513('0x10')],'action':_0xf513('0x11'),'channel':_0x1b6146[_0xf513('0x12')],'Exten':_0xf513('0x13'),'Context':_0xf513('0x14'),'Priority':'1','callerid':util[_0xf513('0xa')](_0xf513('0x15'),_0x1b6146[_0xf513('0x8')]?_0x1b6146['headerinfo']:'',_0x1b6146[_0xf513('0xf')]),'variable':_0x10e932,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x1b6146[_0xf513('0x10')]};};
\ No newline at end of file
+var _0x558e=['\x22%s\x22','faxdetect','t38timeout','localstationid','variablesAction','uniqueid','originate','channel','from-sip','lodash','moment','../../../../config/logger','logger','info','inspect','addVariables','ecm','format'];(function(_0x12d84c,_0x2941b7){var _0x5b0c8b=function(_0x22aa38){while(--_0x22aa38){_0x12d84c['push'](_0x12d84c['shift']());}};_0x5b0c8b(++_0x2941b7);}(_0x558e,0x13b));var _0xe558=function(_0x56740a,_0x568894){_0x56740a=_0x56740a-0x0;var _0x257144=_0x558e[_0x56740a];return _0x257144;};'use strict';var util=require('util');var _=require(_0xe558('0x0'));var moment=require(_0xe558('0x1'));var logger=require(_0xe558('0x2'))('fax');exports['message']=function(_0x453656){return{'message':_0x453656};};exports[_0xe558('0x3')]=function(_0x4edd61,_0x537472){logger[_0xe558('0x4')](_0x4edd61,util[_0xe558('0x5')](_0x537472,{'showHidden':![],'depth':null}));};exports[_0xe558('0x6')]=function(_0x42313e,_0x5d3e6c){var _0x5ccef4={'XMF-ECM':_0x5d3e6c[_0xe558('0x7')],'XMF-HEADERINFO':_0x5d3e6c['headerinfo'],'XMF-MINRATE':_0x5d3e6c['minrate'],'XMF-MAXRATE':_0x5d3e6c['maxrate'],'XMF-MODEM':util[_0xe558('0x8')](_0xe558('0x9'),_0x5d3e6c['modem']),'XMF-GATEWAY':_0x5d3e6c['gateway'],'XMF-FAXDETECT':_0x5d3e6c[_0xe558('0xa')],'XMF-T38TIMEOUT':_0x5d3e6c[_0xe558('0xb')],'XMF-LOCALSTATIONID':_0x5d3e6c[_0xe558('0xc')],'XMF-PATH':_0x42313e['path']};return _0x5ccef4;};exports[_0xe558('0xd')]=function(_0x2fc294,_0x8425f6){return{'actionid':_0x2fc294[_0xe558('0xe')],'action':_0xe558('0xf'),'channel':_0x2fc294[_0xe558('0x10')],'Exten':'xcally-motion-fax','Context':_0xe558('0x11'),'Priority':'1','callerid':util[_0xe558('0x8')]('\x22%s\x22\x20<%s>',_0x2fc294['headerinfo']?_0x2fc294['headerinfo']:'',_0x2fc294[_0xe558('0xc')]),'variable':_0x8425f6,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x2fc294[_0xe558('0xe')]};};
\ No newline at end of file