<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
           xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
           xsi:type="MailApp">

  <Id>C41FD75D-E813-407E-BDF4-2E6405446166</Id>
  <Version>1.0.3.0</Version>
  <ProviderName>Velscor</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Velscor"/>
  <Description DefaultValue="AI-powered spam and phishing detector for Outlook"/>
  <IconUrl DefaultValue="https://velscor.com/assets/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://velscor.com/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://velscor.com/support"/>

  <AppDomains>
    <AppDomain>https://velscor.com</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>

  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>

  <!-- Required for validation / older clients, but ignored wherever VersionOverrides below is supported. -->
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://velscor.com/taskpane.html"/>
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadItem</Permissions>

  <!-- Required for validation / older clients, but ignored wherever VersionOverrides below is supported. -->
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
  </Rule>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.8">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <SupportsSharedFolders>true</SupportsSharedFolders>
            <!-- Activates the add-in's button on the Message Read ribbon. -->
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="groupLabel"/>
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <Label resid="taskPaneButtonLabel"/>
                    <Supertip>
                      <Title resid="taskPaneButtonLabel"/>
                      <Description resid="taskPaneButtonDescription"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="icon16"/>
                      <bt:Image size="32" resid="icon32"/>
                      <bt:Image size="80" resid="icon80"/>
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="messageReadTaskPaneUrl"/>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>

          <MobileFormFactor>
            <ExtensionPoint xsi:type="MobileMessageReadCommandSurface">
              <Group id="mobileGroup1">
                <Label resid="groupLabel"/>
                <Control xsi:type="MobileButton" id="mobileTaskPaneButton">
                  <Label resid="taskPaneButtonLabel"/>
                  <Icon xsi:type="bt:MobileIconList">
                    <bt:Image size="25" scale="1" resid="icon_25_1"/>
                    <bt:Image size="25" scale="2" resid="icon_25_2"/>
                    <bt:Image size="25" scale="3" resid="icon_25_3"/>
                    <bt:Image size="32" scale="1" resid="icon_32_1"/>
                    <bt:Image size="32" scale="2" resid="icon_32_2"/>
                    <bt:Image size="32" scale="3" resid="icon_32_3"/>
                    <bt:Image size="48" scale="1" resid="icon_48_1"/>
                    <bt:Image size="48" scale="2" resid="icon_48_2"/>
                    <bt:Image size="48" scale="3" resid="icon_48_3"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="messageReadTaskPaneUrl"/>
                  </Action>
                </Control>
              </Group>
            </ExtensionPoint>
          </MobileFormFactor>

        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="icon16" DefaultValue="https://velscor.com/assets/icon-64.png"/>
          <bt:Image id="icon32" DefaultValue="https://velscor.com/assets/icon-64.png"/>
          <bt:Image id="icon80" DefaultValue="https://velscor.com/assets/icon-128.png"/>
          <bt:Image id="icon_25_1" DefaultValue="https://velscor.com/assets/icon-64.png"/>
          <bt:Image id="icon_25_2" DefaultValue="https://velscor.com/assets/icon-64.png"/>
          <bt:Image id="icon_25_3" DefaultValue="https://velscor.com/assets/icon-128.png"/>
          <bt:Image id="icon_32_1" DefaultValue="https://velscor.com/assets/icon-64.png"/>
          <bt:Image id="icon_32_2" DefaultValue="https://velscor.com/assets/icon-64.png"/>
          <bt:Image id="icon_32_3" DefaultValue="https://velscor.com/assets/icon-128.png"/>
          <bt:Image id="icon_48_1" DefaultValue="https://velscor.com/assets/icon-64.png"/>
          <bt:Image id="icon_48_2" DefaultValue="https://velscor.com/assets/icon-128.png"/>
          <bt:Image id="icon_48_3" DefaultValue="https://velscor.com/assets/icon-128.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://velscor.com/taskpane.html"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="groupLabel" DefaultValue="Velscor"/>
          <bt:String id="taskPaneButtonLabel" DefaultValue="Velscor"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="taskPaneButtonDescription" DefaultValue="Check this email for spam and phishing."/>
        </bt:LongStrings>
      </Resources>
      <!-- Office SSO: lets the add-in get a Microsoft-signed token for the user (see lib/office-sso.ts). -->
      <WebApplicationInfo>
        <Id>7dd6634c-cb33-4141-9be7-e96e130e4d6c</Id>
        <Resource>api://velscor.com/7dd6634c-cb33-4141-9be7-e96e130e4d6c</Resource>
        <Scopes>
          <Scope>openid</Scope>
          <Scope>profile</Scope>
        </Scopes>
      </WebApplicationInfo>
    </VersionOverrides>
  </VersionOverrides>

</OfficeApp>
