db-vendo-client/p/cmta/index.js

35 lines
606 B
JavaScript
Raw Normal View History

2018-06-03 17:10:01 -05:00
'use strict'
const products = require('./products')
2018-06-03 17:10:01 -05:00
const transformReqBody = (body) => {
body.client = {
type: 'WEB',
id: 'CMTA',
name: 'webapp',
l: '' // todo: what is this?
}
2018-06-03 17:10:01 -05:00
body.ext = 'SBB.TZT.1'
body.ver = '1.13'
body.auth = {type: 'AID', aid: 'weblwemrcrlwemlcri'}
// todo: `body.id = 'ztgcgxywk88bgm88'`
2018-06-03 17:10:01 -05:00
return body
}
const cmtaProfile = {
locale: 'en-US',
timezone: 'America/Chicago',
2018-08-24 19:26:30 +02:00
endpoint: 'https://capmetro.hafas.cloud/bin/mgate.exe',
2018-06-03 17:10:01 -05:00
transformReqBody,
products,
trip: true,
radar: true,
2018-08-26 18:35:27 +02:00
refreshJourney: true,
reachableFrom: true
2018-06-03 17:10:01 -05:00
}
module.exports = cmtaProfile