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

35 lines
635 B
JavaScript
Raw Normal View History

2018-02-26 22:14:11 +01:00
'use strict'
const products = require('./products')
2019-10-20 00:19:52 +02:00
const transformReqBody = (ctx, body) => {
2018-02-26 22:14:11 +01:00
body.client = {
type: 'IPH',
id: 'NASA',
v: '4000200',
name: 'nasaPROD',
os: 'iPhone OS 11.2.5'
}
body.ver = '1.11'
body.auth = {aid: "nasa-apps"}
body.lang = 'en' // todo: `de`?
return body
}
const insaProfile = {
locale: 'de-DE',
timezone: 'Europe/Berlin',
2018-05-28 21:48:58 +02:00
endpoint: 'https://reiseauskunft.insa.de/bin/mgate.exe',
2018-02-26 22:14:11 +01:00
transformReqBody,
products: products,
2018-02-26 22:14:11 +01:00
trip: true,
radar: true,
refreshJourney: false
2018-08-26 18:35:27 +02:00
// todo: upgrade to version `1.13` in order to enable `reachableFrom: true`
2018-02-26 22:14:11 +01:00
}
module.exports = insaProfile;