"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 GetTab extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['id'],
            o: ['tab'],
        }, {}, system, _ids_1.ID_GET_TAB);
    }
    f({ id }, done) {
        const { api: {}, } = this.__system;
        (0, extension_1.callExtensionMethod)('tabs', 'get', id, (tab, err) => {
            if (err) {
                done(undefined, err);
                return;
            }
            done({ tab });
        });
    }
}
exports.default = GetTab;
//# sourceMappingURL=index.js.map