@fusebit-int/gong-provider
Version:
Gong provider
20 lines • 731 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const framework_1 = require("@fusebit-int/framework");
const GongClient_1 = require("./GongClient");
class GongProvider extends framework_1.Internal.Provider.Activator {
/*
* This function will create an authorized wrapper of the Gong SDK client.
*/
async instantiate(ctx, lookupKey) {
const credentials = await this.requestConnectorToken({ ctx, lookupKey });
const client = new GongClient_1.GongClient(ctx, {
credentials,
lookupKey,
connectorId: this.config.entityId,
});
return client;
}
}
exports.default = GongProvider;
//# sourceMappingURL=GongProvider.js.map