const _get = require('lodash/get');
const APIClient = require('../lib2/APIClient');
const getBasicRequestHeaders = require('../lib2/getBasicRequestHeaders');

module.exports = function fouras(req) {
    return new APIClient(req, _get(req, 'config.api.fouras'), {
        ...getBasicRequestHeaders(req),
        'X-Ya-Service-Ticket': _get(req, 'tvm.tickets.fouras.ticket'),
    });
};
