Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / services / ami / fax / util / util.js
index 375fcf5..b70f01b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe5b5=['maxrate','format','\x22%s\x22','modem','faxdetect','localstationid','path','variablesAction','channel','xcally-motion-fax','from-sip','\x22%s\x22\x20<%s>','uniqueid','util','lodash','moment','../../../../config/logger','fax','message','logger','info','inspect','addVariables','ecm','headerinfo','minrate'];(function(_0x27aac,_0x2829ec){var _0x3c7247=function(_0x465cb4){while(--_0x465cb4){_0x27aac['push'](_0x27aac['shift']());}};_0x3c7247(++_0x2829ec);}(_0xe5b5,0x12b));var _0x5e5b=function(_0x7b484,_0x195ad4){_0x7b484=_0x7b484-0x0;var _0x2ae1cf=_0xe5b5[_0x7b484];return _0x2ae1cf;};'use strict';var util=require(_0x5e5b('0x0'));var _=require(_0x5e5b('0x1'));var moment=require(_0x5e5b('0x2'));var logger=require(_0x5e5b('0x3'))(_0x5e5b('0x4'));exports[_0x5e5b('0x5')]=function(_0x33e813){return{'message':_0x33e813};};exports[_0x5e5b('0x6')]=function(_0xf20c6a,_0x20a50c){logger[_0x5e5b('0x7')](_0xf20c6a,util[_0x5e5b('0x8')](_0x20a50c,{'showHidden':![],'depth':null}));};exports[_0x5e5b('0x9')]=function(_0x11e0e0,_0x545eb3){var _0x29db2c={'XMF-ECM':_0x545eb3[_0x5e5b('0xa')],'XMF-HEADERINFO':_0x545eb3[_0x5e5b('0xb')],'XMF-MINRATE':_0x545eb3[_0x5e5b('0xc')],'XMF-MAXRATE':_0x545eb3[_0x5e5b('0xd')],'XMF-MODEM':util[_0x5e5b('0xe')](_0x5e5b('0xf'),_0x545eb3[_0x5e5b('0x10')]),'XMF-GATEWAY':_0x545eb3['gateway'],'XMF-FAXDETECT':_0x545eb3[_0x5e5b('0x11')],'XMF-T38TIMEOUT':_0x545eb3['t38timeout'],'XMF-LOCALSTATIONID':_0x545eb3[_0x5e5b('0x12')],'XMF-PATH':_0x11e0e0[_0x5e5b('0x13')]};return _0x29db2c;};exports[_0x5e5b('0x14')]=function(_0x3f64b6,_0x55c974){return{'actionid':_0x3f64b6['uniqueid'],'action':'originate','channel':_0x3f64b6[_0x5e5b('0x15')],'Exten':_0x5e5b('0x16'),'Context':_0x5e5b('0x17'),'Priority':'1','callerid':util[_0x5e5b('0xe')](_0x5e5b('0x18'),_0x3f64b6[_0x5e5b('0xb')]?_0x3f64b6[_0x5e5b('0xb')]:'',_0x3f64b6['localstationid']),'variable':_0x55c974,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x3f64b6[_0x5e5b('0x19')]};};
\ No newline at end of file
+var _0x74ae=['gateway','faxdetect','localstationid','variablesAction','uniqueid','originate','xcally-motion-fax','format','util','lodash','moment','../../../../config/logger','info','inspect','addVariables','ecm','headerinfo','maxrate','\x22%s\x22'];(function(_0x176dc3,_0x3581bf){var _0xbbf1b9=function(_0x1d545f){while(--_0x1d545f){_0x176dc3['push'](_0x176dc3['shift']());}};_0xbbf1b9(++_0x3581bf);}(_0x74ae,0xec));var _0xe74a=function(_0x27841e,_0x45435f){_0x27841e=_0x27841e-0x0;var _0x30d008=_0x74ae[_0x27841e];return _0x30d008;};'use strict';var util=require(_0xe74a('0x0'));var _=require(_0xe74a('0x1'));var moment=require(_0xe74a('0x2'));var logger=require(_0xe74a('0x3'))('fax');exports['message']=function(_0x4abb9b){return{'message':_0x4abb9b};};exports['logger']=function(_0x4d6172,_0x1edba0){logger[_0xe74a('0x4')](_0x4d6172,util[_0xe74a('0x5')](_0x1edba0,{'showHidden':![],'depth':null}));};exports[_0xe74a('0x6')]=function(_0x3da3e0,_0x1a7736){var _0x4529e6={'XMF-ECM':_0x1a7736[_0xe74a('0x7')],'XMF-HEADERINFO':_0x1a7736[_0xe74a('0x8')],'XMF-MINRATE':_0x1a7736['minrate'],'XMF-MAXRATE':_0x1a7736[_0xe74a('0x9')],'XMF-MODEM':util['format'](_0xe74a('0xa'),_0x1a7736['modem']),'XMF-GATEWAY':_0x1a7736[_0xe74a('0xb')],'XMF-FAXDETECT':_0x1a7736[_0xe74a('0xc')],'XMF-T38TIMEOUT':_0x1a7736['t38timeout'],'XMF-LOCALSTATIONID':_0x1a7736[_0xe74a('0xd')],'XMF-PATH':_0x3da3e0['path']};return _0x4529e6;};exports[_0xe74a('0xe')]=function(_0x306dc5,_0x28f5c9){return{'actionid':_0x306dc5[_0xe74a('0xf')],'action':_0xe74a('0x10'),'channel':_0x306dc5['channel'],'Exten':_0xe74a('0x11'),'Context':'from-sip','Priority':'1','callerid':util[_0xe74a('0x12')]('\x22%s\x22\x20<%s>',_0x306dc5[_0xe74a('0x8')]?_0x306dc5[_0xe74a('0x8')]:'',_0x306dc5[_0xe74a('0xd')]),'variable':_0x28f5c9,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x306dc5[_0xe74a('0xf')]};};
\ No newline at end of file