UNPKG

@everafter/ea-sdk

Version:
35 lines 1.28 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.embed = exports.Embed = void 0; var axios_1 = __importDefault(require("axios")); var Embed = /** @class */ (function () { function Embed() { this.getUrl = function (workspaceId, accountId, personaName, email, name, embedLocation, embedLocationUrl, baseUrl) { var apiUrl = baseUrl || "https://production-server.everafter.ai"; return axios_1.default .post(apiUrl + "/embed/" + workspaceId, { name: name, email: email, accountId: accountId, personaName: personaName, embedLocation: embedLocation, embedLocationUrl: embedLocationUrl, }, { headers: { "Content-Type": "application/json", }, }) .then(function (urlResponse) { return urlResponse.data; }); }; } return Embed; }()); exports.Embed = Embed; var embed = new Embed(); exports.embed = embed; //# sourceMappingURL=Embed.js.map