2018-06-03 17:10:01 -05:00
|
|
|
'use strict'
|
|
|
|
|
2018-08-24 19:25:30 +02:00
|
|
|
const products = require('./products')
|
2018-06-03 17:10:01 -05:00
|
|
|
|
|
|
|
const transformReqBody = (body) => {
|
|
|
|
body.client = {type: 'WEB', id: 'CMTA', name: 'webapp', l: ''}
|
|
|
|
body.ext = 'SBB.TZT.1'
|
|
|
|
body.ver = '1.13'
|
|
|
|
body.auth = {type: 'AID', aid: 'weblwemrcrlwemlcri'}
|
|
|
|
|
|
|
|
return body
|
|
|
|
}
|
|
|
|
|
|
|
|
const cmtaProfile = {
|
|
|
|
endpoint: 'https://capmetro.hafas.de/bin/mgate.exe',
|
|
|
|
locale: 'en-US',
|
|
|
|
timezone: 'America/Chicago',
|
|
|
|
transformReqBody,
|
2018-08-24 19:25:30 +02:00
|
|
|
|
|
|
|
products,
|
|
|
|
|
2018-06-04 08:30:24 -05:00
|
|
|
journeyLeg: true,
|
2018-06-03 17:30:14 -05:00
|
|
|
radar: true
|
2018-06-03 17:10:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = cmtaProfile
|