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

33 lines
534 B
JavaScript
Raw Normal View History

2018-02-26 22:14:11 +01:00
'use strict'
const products = require('./products')
const transformReqBody = (body) => {
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',
endpoint: 'http://reiseauskunft.insa.de/bin/mgate.exe',
transformReqBody,
products: products,
2018-02-26 22:14:11 +01:00
2018-03-13 21:12:46 +01:00
journeyLeg: true,
2018-03-13 21:06:27 +01:00
radar: true
2018-02-26 22:14:11 +01:00
}
module.exports = insaProfile;