Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / ami / fax / util / util.js
index 269c3c2..bc6e2f2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0x4e48=['addVariables','ecm','headerinfo','minrate','format','modem','gateway','t38timeout','localstationid','variablesAction','uniqueid','originate','channel','xcally-motion-fax','from-sip','\x22%s\x22\x20<%s>','util','lodash','moment','message','logger','info','inspect'];(function(_0x40ac5e,_0x2de228){var _0x2839d6=function(_0x123d47){while(--_0x123d47){_0x40ac5e['push'](_0x40ac5e['shift']());}};_0x2839d6(++_0x2de228);}(_0x4e48,0x83));var _0x84e4=function(_0x41df5b,_0x2251e0){_0x41df5b=_0x41df5b-0x0;var _0x3b503c=_0x4e48[_0x41df5b];return _0x3b503c;};'use strict';var util=require(_0x84e4('0x0'));var _=require(_0x84e4('0x1'));var moment=require(_0x84e4('0x2'));var logger=require('../../../../config/logger')('fax');exports[_0x84e4('0x3')]=function(_0x20a8a8){return{'message':_0x20a8a8};};exports[_0x84e4('0x4')]=function(_0x4c428a,_0x3b305e){logger[_0x84e4('0x5')](_0x4c428a,util[_0x84e4('0x6')](_0x3b305e,{'showHidden':![],'depth':null}));};exports[_0x84e4('0x7')]=function(_0x26670c,_0x4e4ddc){var _0x405fa2={'XMF-ECM':_0x4e4ddc[_0x84e4('0x8')],'XMF-HEADERINFO':_0x4e4ddc[_0x84e4('0x9')],'XMF-MINRATE':_0x4e4ddc[_0x84e4('0xa')],'XMF-MAXRATE':_0x4e4ddc['maxrate'],'XMF-MODEM':util[_0x84e4('0xb')]('\x22%s\x22',_0x4e4ddc[_0x84e4('0xc')]),'XMF-GATEWAY':_0x4e4ddc[_0x84e4('0xd')],'XMF-FAXDETECT':_0x4e4ddc['faxdetect'],'XMF-T38TIMEOUT':_0x4e4ddc[_0x84e4('0xe')],'XMF-LOCALSTATIONID':_0x4e4ddc[_0x84e4('0xf')],'XMF-PATH':_0x26670c['path']};return _0x405fa2;};exports[_0x84e4('0x10')]=function(_0x201656,_0x1686f1){return{'actionid':_0x201656[_0x84e4('0x11')],'action':_0x84e4('0x12'),'channel':_0x201656[_0x84e4('0x13')],'Exten':_0x84e4('0x14'),'Context':_0x84e4('0x15'),'Priority':'1','callerid':util[_0x84e4('0xb')](_0x84e4('0x16'),_0x201656[_0x84e4('0x9')]?_0x201656[_0x84e4('0x9')]:'',_0x201656[_0x84e4('0xf')]),'variable':_0x1686f1,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x201656[_0x84e4('0x11')]};};
\ No newline at end of file