{
  "supportAdministrators":true,
  "supportVerification":true,
  "administratorsOptional":true,
  "integration":"WickrIO-Broadcast-Bot",
  "tokens" : [ 
  {
    "token": "WEB_INTERFACE",
    "pattern": "^(yes|no)$",
    "type": "string",
    "description": "Do you want to setup the web interface (REST API or WEB Application) [yes/no]",
    "message": "Please enter either yes or no",
    "required": true,
    "default": "no",
    "list": [
      {
        "token": "WEB_APPLICATION",
        "pattern": "^(yes|no)$",
        "type": "string",
        "description": "Do you want to use the web application [yes/no]",
        "message": "Please enter either yes or no",
        "required": true,
        "default": "no",
        "list": [
          {
            "token": "WEBAPP_HOST",
            "pattern": "",
            "type": "hostaddress",
            "description": "Please enter the host name or ip address to reach the web application",
            "message": "Cannot leave empty! Please enter a value",
            "required": true,
            "default": false
          },
          {
            "token": "WEBAPP_PORT",
            "pattern": "^((6553[0-5])|(655[0-2][0-9])|(65[0-4][0-9]{2})|(6[0-4][0-9]{3})|([1-5][0-9]{4})|([0-5]{0,5})|([0-9]{1,4}))$",
            "type": "port",
            "description": "Please enter the host port to use to reach the web application",
            "message": "Cannot leave empty! Please enter a value",
            "required": true,
            "default": false
          }
        ]
      },
      {
        "token": "REST_APPLICATION",
        "pattern": "^(yes|no)$",
        "type": "string",
        "description": "Do you want to use the REST application [yes/no]",
        "message": "Please enter either yes or no",
        "required": true,
        "default": "no"
      },
      {
        "token": "BOT_PORT",
        "pattern": "^((6553[0-5])|(655[0-2][0-9])|(65[0-4][0-9]{2})|(6[0-4][0-9]{3})|([1-5][0-9]{4})|([0-5]{0,5})|([0-9]{1,4}))$",
        "type": "port",
        "description": "Please enter your client bot's port",
        "message": "Cannot leave empty! Please enter a value",
        "required": false,
        "default": false
      },
      {
        "token": "BOT_KEY",
        "pattern": "",
        "type": "string",
        "description": "Please enter your client bot's API-Key",
        "message": "Cannot leave empty! Please enter a value",
        "required": true,
        "default": false
      },
      {
        "token": "BOT_AUTH_TOKEN",
        "pattern": "",
        "type": "string",
        "description": "Please create an Web API Basic Authorization Token, we recommend an alphanumeric string with at least 24 characters",
        "message": "Cannot leave empty! Please enter a value",
        "required": true,
        "default": false
      },
      {
        "token": "HTTPS_CHOICE",
        "pattern": "^(yes|no)$",
        "type": "string",
        "description": "Do you want to set up an HTTPS connection with the Web API Interface, highly recommended [yes/no]",
        "message": "Please enter either yes or no",
        "required": true,
        "default": "no",
        "list": [
          {
            "token": "SSL_KEY_LOCATION",
            "pattern": "",
            "type": "file",
            "description": "Please enter the name and location of your SSL .key file",
            "message": "Cannot find file!",
            "required": true,
            "default": false
          },
          {
            "token": "SSL_CRT_LOCATION",
            "pattern": "",
            "type": "file",
            "description": "Please enter the name and location of your SSL .crt file",
            "message": "Cannot find file!",
            "required": true,
            "default": false
          }
        ]
      }
    ]
  },
  {
    "token": "BOT_MAPS",
    "pattern": "^(yes|no)$",
    "type": "string",
    "description": "Do you want to map users locations when you send broadcasts [yes/no]",
    "message": "Please enter either yes or no",
    "required": true,
    "default": "no",
    "list": [
      {
        "token": "BOT_GOOGLE_MAPS",
        "pattern": "",
        "type": "string",
        "description": "Please enter your google maps api key",
        "message": "Cannot leave empty! Please enter a value",
        "required": true,
        "default": false
      }
    ]
  },
  {
    "token": "BROADCAST_ENABLED",
    "pattern": "^(yes|no)$",
    "type": "string",
    "description": "Do you want to allow broadcasts to be sent to the whole network and security groups?",
    "message": "Please enter either yes or no",
    "required": true,
    "default": "yes"
  },
  {
    "token": "RESPONSES_ENABLED",
    "pattern": "^(yes|no)$",
    "type": "string",
    "description": "Do you want the bot to respond to non-administrative users?",
    "message": "Please enter either yes or no",
    "required": true,
    "default": "yes"
  },
  {
    "token": "LIMIT_FILE_ENTRIES",
    "pattern": "^(yes|no)$",
    "type": "string",
    "description": "Would you like to limit the number of users that can be saved for sending in a file [yes/no]",
    "message": "Please enter either yes or no",
    "required": true,
    "default": "no",
    "list": [
      {
        "token": "FILE_ENTRY_SIZE",
        "pattern": "^[0-9]+",
        "type": "number",
        "description": "Please enter the number of entries you want to allow",
        "message": "Please enter a number",
        "required": true,
        "default": 1000
      }
    ]
  }
  ]
}
