text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  var mongoose = require("mongoose");
  var Schema = mongoose.Schema;
  var messageSchema = new Schema({
      description: String,
      createdAt: {
          type: Date,
          default: Date.now
      },
      likes: {
          type: Number,
          default: 0
      },
      thread: {
          type: Schema.Types.ObjectId,
          ref: 'Thread'
      },
      createdBy: {
          type: Schema.Types.ObjectId,
          ref: 'User'
      },
      lastUpdateAt: {
          type: Date,
          default: Date.now
      },
      lastUpdatedBy: {
          type: Schema.Types.ObjectId,
          ref: 'User'
      },
      cloudinaryProps: {
          type: Schema.Types.Mixed
      },
      // Related to Vision API
      labels: [{
              type: Schema.Types.Mixed,
              default: []
          }],
      safeSearchProps: {
          type: Schema.Types.Mixed
      },
      // Related to Video Intelligence API
      explicitVideoAnnotation: [{
              type: Schema.Types.Mixed,
              default: []
          }],
      segmentLabelAnnotations: [{
              type: Schema.Types.Mixed,
              default: []
          }],
      // Related to Cloud Speech API
      transcriptions: [{
              type: Schema.Types.Mixed,
              default: []
          }],
      // Related to Natural Language API
      nlpCategories: [{
              type: Schema.Types.Mixed,
              default: []
          }],
      nlpDocumentSentiment: {
          type: Schema.Types.Mixed
      },
      nlpEntities: [{
              type: Schema.Types.Mixed,
              default: []
          }],
      nlpSentences: [{
              type: Schema.Types.Mixed,
              default: []
          }],
      nlpTokens: [{
              type: Schema.Types.Mixed,
              default: []
          }],
      nlpLanguage: String
  });
  var Message = mongoose.model('Message', messageSchema);
  exports.default = Message;
  //# sourceMappingURL=message.js.map