/*
 * Tine 2.0
 *
 * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
 * @author      Cornelius Weiß <c.weiss@metaways.de>
 * @copyright   Copyright (c) 2019 Metaways Infosystems GmbH (http://www.metaways.de)
 */

/*
 * Tine 2.0
 *
 * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
 * @author      Cornelius Weiß <c.weiss@metaways.de>
 * @copyright   Copyright (c) 2019-2023 Metaways Infosystems GmbH (http://www.metaways.de)
 */

/**
   * Get translated application title of the GDPR App
   *
   * @return {String}
   */

/**
   * validate recipient token in gdpr plugin
   *
   * - skip all validation when it is not in mass mailing mode
   *
   * validation in mass mailing mode:
   * 
   * valid cases when no DataIntendedPurpose selected:
   * - when token type is mailingList/group/list -> but they will resolve to it's members automatically
   * - when token has no contact record -> because it might be an external or a new created contact
   * - when token has no dataIntended purpose records
   * 
   * invalid cases when no DataIntendedPurpose selected:
   * - when contact enables "do not contact this contact at all" in contactEditDialog/GDPR tab
   * - when contact has not consented to this purpose
   * 
   * invalid cases when DataIntendedPurpose is selected:
   * - when contact has not consented to the selected DataIntendedPurpose
   * - when contact consent date is expired
   * - when contact consent date is set but not reached yet
   *
   * @param token
   */

/***/

//      is it \Tinebase_ModelConfiguration_Const::IS_METADATA_MODEL_FOR in fact?

// @TODO this should really autoregister

// NOTE server announces 'records' as refIdField, but we need intendedPurpose to search in the right records

// NOTE: panel is usually rendered after record was load

// add expired btn

// append showExpired value

// i18n._('GDPR Intended Purpose')

// in mass mailing mode, list should be valid to be displayed in searchContactCombo

// intercept save contact

// need this for duplicate check. Doesn´t show GDPR Windows after duplicate check.

//reset the search combo
