db-vendo-client/p/cfl/index.js
2019-05-20 20:06:24 +02:00

33 lines
547 B
JavaScript

'use strict'
const products = require('./products')
const transformReqBody = (body) => {
body.client = {
type: 'IPH',
id: 'HAFAS',
v: '4000000',
name: 'cflPROD-STORE',
os: 'iPhone OS 9.3.5'
}
body.ver = '1.16'
body.auth = {aid: 'ALT2vl7LAFDFu2dz'}
body.lang = 'de'
return body
}
const cflProfile = {
locale: 'de-LU',
timezone: 'Europe/Luxembourg',
endpoint: 'https://horaires.cfl.lu/bin/mgate.exe',
transformReqBody,
products: products,
trip: true,
radar: true
// todo: reachableFrom?
}
module.exports = cflProfile;