const fs = require('fs');
const path = require('path');
const log = require('loglevel');

class ReasonsServ {
    constructor () {
        this.axios = global.axiosInstances.axiosAfcInstance;
    }

    reasonConfiguration = async () => {
        try {
            const res = await this.axios.get('reasons/reasonConfiguration');
            if (typeof res === 'undefined' || res.status >= 400) { return null; }
            return res;
        } catch (err) {
            log.error(err);
        }
    }

}

module.exports = ReasonsServ;
