"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDummySession = exports.getDummyQuote = exports.RaterFactory = void 0;
/**
 * Generates raters on demand
 */
var RaterFactory = /** @class */ (function () {
    /**
     * Create a new RaterFactory
     *
     * @param rater - path to rater
     */
    function RaterFactory(rater) {
        this.rater = rater;
    }
    /**
     * Create raters
     *
     * @return raters
     */
    RaterFactory.prototype.createRater = function () {
        return require(this.rater);
    };
    return RaterFactory;
}());
exports.RaterFactory = RaterFactory;
/**
 * Get a dummy quote
 */
exports.getDummyQuote = function (bucket) {
    return {
        getId: function () {
            return 1;
        },
        getAgentId: function () {
            return 1;
        },
        getAgentName: function () {
            return 'foo';
        },
        getBucket: function () {
            return bucket;
        },
    };
};
/**
 * Get a dummy session
 */
exports.getDummySession = function () {
    return {
        agentId: function () {
            return 1;
        },
        isInternal: function () {
            return true;
        },
    };
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmF0ZXJGYWN0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiUmF0ZXJGYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBOztHQUVHO0FBQ0g7SUFDRTs7OztPQUlHO0lBQ0gsc0JBQTZCLEtBQWE7UUFBYixVQUFLLEdBQUwsS0FBSyxDQUFRO0lBQUcsQ0FBQztJQUU5Qzs7OztPQUlHO0lBQ0ksa0NBQVcsR0FBbEI7UUFDRSxPQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDN0IsQ0FBQztJQUNILG1CQUFDO0FBQUQsQ0FBQyxBQWhCRCxJQWdCQztBQWhCWSxvQ0FBWTtBQXlFekI7O0dBRUc7QUFDVSxRQUFBLGFBQWEsR0FBRyxVQUFDLE1BQXFCO0lBQ2pELE9BQU87UUFDTCxLQUFLO1lBQ0gsT0FBTyxDQUFDLENBQUM7UUFDWCxDQUFDO1FBRUQsVUFBVTtZQUNSLE9BQU8sQ0FBQyxDQUFDO1FBQ1gsQ0FBQztRQUVELFlBQVk7WUFDVixPQUFPLEtBQUssQ0FBQztRQUNmLENBQUM7UUFFRCxTQUFTO1lBQ1AsT0FBTyxNQUFNLENBQUM7UUFDaEIsQ0FBQztLQUNGLENBQUM7QUFDSixDQUFDLENBQUM7QUFFRjs7R0FFRztBQUNVLFFBQUEsZUFBZSxHQUFHO0lBQzdCLE9BQU87UUFDTCxPQUFPO1lBQ0wsT0FBTyxDQUFDLENBQUM7UUFDWCxDQUFDO1FBRUQsVUFBVTtZQUNSLE9BQU8sSUFBSSxDQUFDO1FBQ2QsQ0FBQztLQUNGLENBQUM7QUFDSixDQUFDLENBQUMifQ==