{
    "code_name": "_publisher_email",
    "unique_prefix": "SMTP",
    "plugin_type": "publisher",
    "enabled": true,
    "data_source": "script",
    "show_ui": true,
    "localized": [
      "display_name",
      "description",
      "icon"
    ],
    "display_name": [
      {
        "language_code": "en_us",
        "string": "Email publisher (SMTP)"
      },
      {
        "language_code": "es_es",
        "string": "Habilitar email (SMTP)"
      }
    ],
    "icon": [
      {
        "language_code": "en_us",
        "string": "<i class=\"fa-solid fa-at\"></i>"
      }
    ],
    "description": [
      {
        "language_code": "en_us",
        "string": "A plugin to publish a notification via Email (SMTP) gateway."
      }
    ],
    "params": [],
    "database_column_definitions": [
      {
        "column": "Index",
        "css_classes": "col-sm-2",
        "show": false,
        "type": "label",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "N/A"
          },
          {
            "language_code": "es_es",
            "string": "N/A"
          }
        ]
      },
      {
        "column": "Plugin",
        "css_classes": "col-sm-2",
        "show": false,
        "type": "label",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "N/A"
          },
          {
            "language_code": "es_es",
            "string": "N/A"
          }
        ]
      },
      {
        "column": "Object_PrimaryID",
        "css_classes": "col-sm-2",
        "show": false,
        "type": "url",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "N/A"
          }
        ]
      },
      {
        "column": "Object_SecondaryID",
        "css_classes": "col-sm-2",
        "show": false,
        "type": "label",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "N/A"
          },
          {
            "language_code": "es_es",
            "string": "N/A"
          }
        ]
      },
      {
        "column": "DateTimeCreated",
        "css_classes": "col-sm-2",
        "show": true,
        "type": "label",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Sent when"
          }
        ]
      },
      {
        "column": "DateTimeChanged",
        "css_classes": "col-sm-2",
        "show": false,
        "type": "label",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Changed"
          },
          {
            "language_code": "es_es",
            "string": "Cambiado"
          }
        ]
      },
      {
        "column": "Watched_Value1",
        "css_classes": "col-sm-2",
        "show": true,
        "type": "eval",            
        "default_value":"",
        "options": [
            {
                "type": "eval",
                "param": "`<a href='/report.php?guid=${value}'>${value}</a>`"
            }          
        ],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Notification GUID"
          }
        ]
      },
      {
        "column": "Watched_Value2",
        "css_classes": "col-sm-8",
        "show": true,
        "type": "textarea_readonly",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Result"
          }
        ]
      },
      {
        "column": "Watched_Value3",
        "css_classes": "col-sm-2",
        "show": false,
        "type": "label",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "N/A"
          },
          {
            "language_code": "es_es",
            "string": "N/A"
          }
        ]
      },
      {
        "column": "Watched_Value4",
        "css_classes": "col-sm-2",
        "show": false,
        "type": "label",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "N/A"
          },
          {
            "language_code": "es_es",
            "string": "N/A"
          }
        ]
      },
      {
        "column": "UserData",
        "css_classes": "col-sm-2",
        "show": false,
        "type": "textbox_save",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Comments"
          },
          {
            "language_code": "es_es",
            "string": "Comentarios"
          }
        ]
      },
      {
        "column": "Status",
        "css_classes": "col-sm-1",
        "show": false,
        "type": "replace",
        "default_value": "",
        "options": [
          {
            "equals": "watched-not-changed",
            "replacement": "<div style='text-align:center'><i class='fa-solid fa-square-check'></i><div></div>"
          },
          {
            "equals": "watched-changed",
            "replacement": "<div style='text-align:center'><i class='fa-solid fa-triangle-exclamation'></i></div>"
          },
          {
            "equals": "new",
            "replacement": "<div style='text-align:center'><i class='fa-solid fa-circle-plus'></i></div>"
          },
          {
            "equals": "missing-in-last-scan",
            "replacement": "<div style='text-align:center'><i class='fa-solid fa-question'></i></div>"
          }
        ],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Status"
          },
          {
            "language_code": "es_es",
            "string": "Estado"
          }
        ]
      },
      {
        "column": "Extra",
        "css_classes": "col-sm-3",
        "show": false,
        "type": "label",
        "default_value": "",
        "options": [],
        "localized": [
          "name"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Extra"
          },
          {
            "language_code": "es_es",
            "string": "Extra"
          }
        ]
      }
    ],
    "settings": [
      {
        "function": "RUN",
        "events": [
          "test"
        ],
        "type": "text.select",
        "default_value": "disabled",
        "options": [
          "disabled",
          "on_notification"
        ],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "When to run"
          },
          {
            "language_code": "es_es",
            "string": "Cuando ejecuta"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "Enable sending notifications via the Email (SMTP) gateway."
          },
          {
            "language_code": "es_es",
            "string": "Si está habilitado, se envía un correo electrónico con una lista de cambios a los que se ha suscrito. Complete también todas las configuraciones restantes relacionadas con la configuración de SMTP a continuación"
          }
        ]
      },
      {
        "function": "CMD",
        "type": "readonly",
        "default_value": "python3 /app/front/plugins/_publisher_email/email_smtp.py",
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Command"
          },
          {
            "language_code": "es_es",
            "string": "Comando"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "Command to run"
          },
          {
            "language_code": "es_es",
            "string": "Comando a ejecutar"
          }
        ]
      },
      {
        "function": "RUN_TIMEOUT",
        "type": "integer",
        "default_value": 20,
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Run timeout"
          },
          {
            "language_code": "es_es",
            "string": "Tiempo de espera de ejecución"
          },
          {
            "language_code": "de_de",
            "string": "Wartezeit"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
          },
          {
            "language_code": "es_es",
            "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
          }
        ]
      },
      {
        "function": "SERVER",
        "type": "text",
        "default_value": "",
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "SMTP server URL"
          },
          {
            "language_code": "es_es",
            "string": "URL del servidor SMTP"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "The SMTP server host URL. For example <code>smtp-relay.sendinblue.com</code>. To use Gmail as an SMTP server <a target=\"_blank\" href=\"https://github.com/jokob-sk/NetAlertX/blob/main/docs/SMTP.md\">follow this guide</a>"
          },
          {
            "language_code": "es_es",
            "string": "La URL del host del servidor SMTP. Por ejemplo, <code>smtp-relay.sendinblue.com</code>. Para utilizar Gmail como servidor SMTP <a target=\"_blank\" href=\"https://github.com/jokob-sk/NetAlertX/blob/main/docs/SMTP.md\">siga esta guía</a >"
          }
        ]
      },
      {
        "function": "PORT",
        "type": "integer",
        "default_value": 587,
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "SMTP server PORT"
          },
          {
            "language_code": "es_es",
            "string": "Puerto del servidor SMTP"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "Port number used for the SMTP connection. Set to <code>0</code> if you do not want to use a port when connecting to the SMTP server."
          },
          {
            "language_code": "es_es",
            "string": "Número de puerto utilizado para la conexión SMTP. Establézcalo en <code>0</code> si no desea utilizar un puerto al conectarse al servidor SMTP."
          }
        ]
      },
      {
        "function": "SKIP_LOGIN",
        "type": "boolean",
        "default_value": false,
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Skip authentication"
          },
          {
            "language_code": "es_es",
            "string": "Omitir autenticación"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "Do not use authentication when connecting to the SMTP server."
          },
          {
            "language_code": "es_es",
            "string": "No utilice la autenticación cuando se conecte al servidor SMTP."
          }
        ]
      },
      {
        "function": "USER",
        "type": "text",
        "default_value": "",
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "SMTP user"
          },
          {
            "language_code": "es_es",
            "string": "Nombre de usuario SMTP"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "The user name used to login into the SMTP server (sometimes a full email address)."
          },
          {
            "language_code": "es_es",
            "string": "El nombre de usuario utilizado para iniciar sesión en el servidor SMTP (a veces, una dirección de correo electrónico completa)."
          }
        ]
      },
      {
        "function": "PASS",
        "type": "password",
        "default_value": "",
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "SMTP password"
          },
          {
            "language_code": "es_es",
            "string": "Contraseña de SMTP"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "The SMTP server password."
          },
          {
            "language_code": "es_es",
            "string": "La contraseña del servidor SMTP."
          }
        ]
      },
      {
        "function": "SKIP_TLS",
        "type": "boolean",
        "default_value": false,
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Do not use TLS"
          },
          {
            "language_code": "es_es",
            "string": "No usar TLS"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "Disable TLS when connecting to your SMTP server."
          },
          {
            "language_code": "es_es",
            "string": "Deshabilite TLS cuando se conecte a su servidor SMTP."
          }
        ]
      },
      {
        "function": "FORCE_SSL",
        "type": "boolean",
        "default_value": false,
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Force SSL"
          },
          {
            "language_code": "es_es",
            "string": "Forzar SSL"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "Force SSL when connecting to your SMTP server."
          },
          {
            "language_code": "es_es",
            "string": "Forzar SSL al conectarse a su servidor SMTP"
          }
        ]
      },
      {
        "function": "REPORT_TO",
        "type": "text",
        "default_value": "user@gmail.com",
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Send email to"
          },
          {
            "language_code": "es_es",
            "string": "Enviar el email a"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "Email address to which the notification will be send to."
          },
          {
            "language_code": "es_es",
            "string": "Dirección de correo electrónico a la que se enviará la notificación."
          }
        ]
      },
      {
        "function": "REPORT_FROM",
        "type": "text",
        "default_value": "NetAlertX <user@gmail.com>",
        "options": [],
        "localized": [
          "name",
          "description"
        ],
        "name": [
          {
            "language_code": "en_us",
            "string": "Email subject"
          },
          {
            "language_code": "es_es",
            "string": "Asunto del email"
          }
        ],
        "description": [
          {
            "language_code": "en_us",
            "string": "Notification email subject line. Some SMTP servers need this to be an email."
          },
          {
            "language_code": "es_es",
            "string": "Asunto del correo electrónico de notificación."
          }
        ]
      }
    ]
  }