"use strict";

var Note = function Note(title, text, path, metadata, previews) {
  var needsRefresh = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
  var media = arguments.length > 6 ? arguments[6] : undefined;
  var fromCache = arguments.length > 7 ? arguments[7] : undefined;
  this.title = title;
  this.text = text;
  this.path = path;
  this.previews = previews;
  this.media = media;
  this.fromCache = fromCache;
  this.needsRefresh = needsRefresh;
  if (metadata == undefined) {
    this.metadata = new NoteMetadata();
    this.metadata.creation_date = Date.now();
    this.metadata.last_modification_date = this.metadata.creation_date;
  } else this.metadata = metadata;
};
var NoteMetadata = function NoteMetadata() {
  this.creation_date = "";
  this.last_modification_date = "";
  this.keywords = [];
  this.rating = -1;
  this.color = "none";
};
if (typeof exports !== 'undefined') exports.Note = Note;