"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../../Class/Functional");
const extension_1 = require("../../../../../client/extension");
const _ids_1 = require("../../../../_ids");
class GetVisits extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['url'],
            o: ['visits'],
        }, {}, system, _ids_1.ID_GET_VISITS);
    }
    f({ url }, done) {
        (0, extension_1.callMethod)('history', 'getVisits', { url }, (visits, err) => {
            done({ visits }, err);
        });
    }
}
exports.default = GetVisits;
//# sourceMappingURL=index.js.map