db-vendo-client/p/insa/index.js
2020-03-07 00:39:11 +01:00

34 lines
594 B
JavaScript

'use strict'
const products = require('./products')
const transformReqBody = (ctx, body) => {
body.client = {
type: 'IPH',
id: 'NASA',
v: '4000200',
name: 'nasaPROD',
os: 'iPhone OS 11.2.5'
}
body.ver = '1.21'
body.auth = {type: 'AID', aid: "nasa-apps"}
body.lang = 'en' // todo: `de`?
return body
}
const insaProfile = {
locale: 'de-DE',
timezone: 'Europe/Berlin',
endpoint: 'https://reiseauskunft.insa.de/bin/mgate.exe',
transformReqBody,
products: products,
trip: true,
radar: true,
refreshJourney: false,
reachableFrom: true,
}
module.exports = insaProfile;