"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SocialNetworkWhatsappsModelSwagger = exports.SocialNetworkWhatsappsModel = void 0;
const social_network_whatsapp_schema_1 = require("../../schemas/social-network/social-network-whatsapp.schema");
const delete_schema_1 = require("../../schemas/delete.schema");
const mongoose_1 = __importDefault(require("mongoose"));
const abstract_model_1 = require("../abstract.model");
const collection = "social-network-whatsapps";
const schemaModelsMongoose = social_network_whatsapp_schema_1.schema.mongoose(social_network_whatsapp_schema_1.schema.schemas.parentSchema);
const AbstractSchemaOptions = {
    timestamps: true,
    versionKey: false,
};
const Schema = new mongoose_1.default.Schema(schemaModelsMongoose, AbstractSchemaOptions);
(0, abstract_model_1.customsSchema)(Schema);
const connectItem = social_network_whatsapp_schema_1.schema.swagger({
    _id: "String",
    ...social_network_whatsapp_schema_1.schema.schemas.connectSchema,
}).definitions;
const sendMessageItem = social_network_whatsapp_schema_1.schema.swagger({
    _id: "String",
    ...social_network_whatsapp_schema_1.schema.schemas.sendMessageSchema,
}).definitions;
const getItem = social_network_whatsapp_schema_1.schema.swagger({
    _id: "String",
    ...social_network_whatsapp_schema_1.schema.schemas.parentSchema,
}).definitions;
const deleteItem = delete_schema_1.schema.swagger(delete_schema_1.schema.schemas.parentSchema).definitions;
exports.SocialNetworkWhatsappsModel = mongoose_1.default.model(collection, Schema);
exports.SocialNetworkWhatsappsModelSwagger = {
    SocialNetworkWhatsappsConnectItem: {
        type: "object",
        properties: connectItem,
    },
    SocialNetworkWhatsappsSendMessageItem: {
        type: "object",
        properties: sendMessageItem,
    },
    SocialNetworkWhatsappsGetItem: {
        type: "object",
        properties: getItem,
    },
    SocialNetworkWhatsappsGetItems: {
        type: "object",
        properties: getItem,
    },
    SocialNetworkWhatsappsCreateItem: {
        type: "object",
        properties: getItem,
    },
    SocialNetworkWhatsappsUpdateItem: {
        type: "object",
        properties: getItem,
    },
    SocialNetworkWhatsappsDeleteItem: {
        type: "object",
        properties: deleteItem,
    },
};
