crisp-api
Version:
Crisp API wrapper for Node - official, maintained by Crisp
41 lines (40 loc) • 1.38 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 MediaAnimation Resource
*/
class MediaAnimation extends BaseResource_1.default {
/**
* List Animation Medias
*/
listAnimationMedias(pageNumber, listID, searchQuery) {
return this.crisp.get(this.crisp.prepareRestUrl([
"media", "animation", "list", String(pageNumber)
]), {
list_id: listID,
search_query: searchQuery
});
}
;
}
/**************************************************************************
* EXPORTS
***************************************************************************/
exports.default = MediaAnimation;