<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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>714d3484-e042-4987-b0be-ec38e16ccbd5</Id>

  <Version>1.0.1.0</Version>

  <ProviderName>Tyto</ProviderName>

  <DefaultLocale>en-US</DefaultLocale>

  <DisplayName DefaultValue="Tyto PhishShield"/>

  <Description DefaultValue="Report suspicious emails to Tyto PhishShield."/>

  <IconUrl DefaultValue="https://capstone-five-guys.dns.net.za/addin/assets/icon-64.png"/>

  <HighResolutionIconUrl DefaultValue="https://capstone-five-guys.dns.net.za/addin/assets/icon-128.png"/>

  <SupportUrl DefaultValue="https://www.tyto-phishshield.com/help"/>

  <!-- Added localhost to AppDomain for now. We can remove it and update the other link once the website is deployed -->
  <AppDomains>
    <AppDomain>https://capstone-five-guys.dns.net.za/addin</AppDomain>
  </AppDomains>

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

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

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://capstone-five-guys.dns.net.za/addin/taskpane.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>

  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
  </Rule>

  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides"
                    xsi:type="VersionOverridesV1_0">

    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>

    <Hosts>
      <Host xsi:type="MailHost">

        <DesktopFormFactor>

          <FunctionFile resid="Commands.Url"/>

          <ExtensionPoint xsi:type="MessageReadCommandSurface">

            <OfficeTab id="TabDefault">

              <Group id="msgReadGroup">

                <Label resid="GroupLabel"/>

                <!-- Report Phish Button -->
                <Control xsi:type="Button" id="ActionButton">

                  <Label resid="ActionButton.Label"/>

                  <Supertip>
                    <Title resid="ActionButton.Label"/>
                    <Description resid="ActionButton.Tooltip"/>
                  </Supertip>

                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16"/>
                    <bt:Image size="32" resid="Icon.32x32"/>
                    <bt:Image size="80" resid="Icon.80x80"/>
                  </Icon>

                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>

                </Control>

              </Group>

            </OfficeTab>

          </ExtensionPoint>

        </DesktopFormFactor>

      </Host>
    </Hosts>

    <Resources>

      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://capstone-five-guys.dns.net.za/addin/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://capstone-five-guys.dns.net.za/addin/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://capstone-five-guys.dns.net.za/addin/assets/icon-80.png"/>
      </bt:Images>

      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://capstone-five-guys.dns.net.za/addin/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://capstone-five-guys.dns.net.za/addin/taskpane.html"/>
      </bt:Urls>

      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="Tyto PhishShield"/>
        <bt:String id="ActionButton.Label" DefaultValue="Report Phishing"/>
      </bt:ShortStrings>

      <bt:LongStrings>
        <bt:String id="ActionButton.Tooltip"
                   DefaultValue="Open Tyto PhishShield to report the selected email"/>
      </bt:LongStrings>

    </Resources>

  </VersionOverrides>

</OfficeApp>