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

33 lines
526 B
JavaScript
Raw Normal View History

2018-06-03 17:10:01 -05:00
'use strict'
const products = require('./products')
2018-06-03 17:10:01 -05:00
2019-10-20 00:19:52 +02:00
const transformReqBody = (ctx, body) => {
body.client = {
2019-02-15 14:57:05 +01:00
type: 'IPH',
id: 'CMTA',
2019-02-15 14:57:05 +01:00
v: '2',
name: 'CapMetro'
}
2018-06-03 17:10:01 -05:00
body.ver = '1.13'
2019-02-15 14:57:05 +01:00
body.auth = {type: 'AID', aid: 'ioslaskdcndrjcmlsd'}
2018-06-03 17:10:01 -05:00
return body
}
const cmtaProfile = {
locale: 'en-US',
timezone: 'America/Chicago',
2018-08-24 19:26:30 +02:00
endpoint: 'https://capmetro.hafas.cloud/bin/mgate.exe',
2018-06-03 17:10:01 -05:00
transformReqBody,
products,
trip: true,
radar: true,
2018-08-26 18:35:27 +02:00
refreshJourney: true,
reachableFrom: true
2018-06-03 17:10:01 -05:00
}
module.exports = cmtaProfile