crisp-api
Version:
Crisp API wrapper for Node - official, maintained by Crisp
36 lines (35 loc) • 1.22 kB
JavaScript
"use strict";
/*
* This file is part of node-crisp-api
*
* Copyright (c) 2025 Crisp IM SAS
* All rights belong to Crisp IM SAS
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/**************************************************************************
* IMPORTS
***************************************************************************/
// PROJECT: RESOURCES
const BaseResource_1 = __importDefault(require("./BaseResource"));
/**************************************************************************
* CLASSES
***************************************************************************/
/**
* Crisp BucketURL Resource
*/
class BucketURL extends BaseResource_1.default {
/**
* Generate Bucket URL
*/
generateBucketURL(data) {
return this.crisp.post(this.crisp.prepareRestUrl(["bucket", "url", "generate"]), null, data);
}
;
}
/**************************************************************************
* EXPORTS
***************************************************************************/
exports.default = BucketURL;