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

33 lines
528 B
JavaScript
Raw Normal View History

2018-04-12 21:25:40 +02:00
'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,
journeyLeg: true,
radar: true
}
module.exports = cflProfile;