db-vendo-client/p/irish-rail/index.js

29 lines
555 B
JavaScript
Raw Normal View History

2018-04-12 21:49:55 +02:00
'use strict'
const baseProfile = require('./base.json')
2018-04-12 21:49:55 +02:00
const products = require('./products')
const transformReqBody = (ctx, body) => {
body.lang = 'ga'
return body
}
const irishRailProfile = {
...baseProfile,
2018-04-12 21:49:55 +02:00
locale: 'en-IE',
timezone: 'Europe/Dublin',
transformReqBody,
salt: Buffer.from('i5s7m3q9z6b4k1c2', 'utf8'),
addMicMac: true,
products: products,
departuresGetPasslist: false,
departuresStbFltrEquiv: false,
refreshJourney: false, // fails with `CGI_READ_FAILED`
2018-04-12 21:49:55 +02:00
trip: true,
radar: true,
}
module.exports = irishRailProfile;