mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
37 lines
769 B
JavaScript
37 lines
769 B
JavaScript
'use strict'
|
|
|
|
const products = require('./products')
|
|
|
|
const transformReqBody = (body) => {
|
|
body.client = {
|
|
type: 'AND',
|
|
id: 'ZPS-SAAR',
|
|
v: 1000070,
|
|
name: 'Saarfahrplan',
|
|
os: 'Android 9'
|
|
}
|
|
body.ver = '1.21'
|
|
body.auth = {type: 'AID', aid: '51XfsVqgbdA6oXzHrx75jhlocRg6Xe'}
|
|
body.lang = 'de'
|
|
|
|
return body
|
|
}
|
|
|
|
const saarfahrplanProfile = {
|
|
locale: 'de-DE',
|
|
timezone: 'Europe/Berlin',
|
|
endpoint: 'https://saarfahrplan.de/bin/mgate.exe',
|
|
transformReqBody,
|
|
|
|
// decrypted form of https://gist.github.com/derhuerst/f5a8c07f9b3226ecad6c8f64d83df6a2#file-haf_config_base-properties-L70
|
|
salt: Buffer.from('HJtlubisvxiJxss', 'utf8'),
|
|
addMicMac: true,
|
|
|
|
products: products,
|
|
|
|
trip: true,
|
|
radar: true,
|
|
reachableFrom: true
|
|
}
|
|
|
|
module.exports = saarfahrplanProfile
|