<?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>b6e3f0a2-7c14-4d3b-9a55-0d9b2f1a8c01</Id>
  <Version>0.1.0</Version>
  <ProviderName>Hector's Whips</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Odyssey Customer" />
  <Description DefaultValue="See the matched customer and their rentals beside any email, and record the email to their Odyssey record." />
  <IconUrl DefaultValue="https://addin.hectorswhips.com/assets/icon-64.png" />
  <HighResolutionIconUrl DefaultValue="https://addin.hectorswhips.com/assets/icon-128.png" />
  <SupportUrl DefaultValue="https://addin.hectorswhips.com" />

  <AppDomains>
    <AppDomain>https://addin.hectorswhips.com</AppDomain>
  </AppDomains>

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

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

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://addin.hectorswhips.com/src/taskpane/taskpane.html" />
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadItem</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.5">
        <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="odysseyGroup">
                <Label resid="Group.Label" />
                <Control xsi:type="Button" id="openCustomerPanel">
                  <Label resid="OpenPanel.Label" />
                  <Supertip>
                    <Title resid="OpenPanel.Title" />
                    <Description resid="OpenPanel.Tip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16" />
                    <bt:Image size="32" resid="Icon.32" />
                    <bt:Image size="80" resid="Icon.80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://addin.hectorswhips.com/assets/icon-16.png" />
        <bt:Image id="Icon.32" DefaultValue="https://addin.hectorswhips.com/assets/icon-32.png" />
        <bt:Image id="Icon.80" DefaultValue="https://addin.hectorswhips.com/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://addin.hectorswhips.com/src/commands/commands.html" />
        <bt:Url id="Taskpane.Url" DefaultValue="https://addin.hectorswhips.com/src/taskpane/taskpane.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Group.Label" DefaultValue="Odyssey" />
        <bt:String id="OpenPanel.Label" DefaultValue="Customer" />
        <bt:String id="OpenPanel.Title" DefaultValue="Open customer panel" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="OpenPanel.Tip" DefaultValue="Show the matched customer, their rentals, and record this email to their Odyssey record." />
      </bt:LongStrings>
    </Resources>

    <!-- SSO: replace the GUID with the add-in's Azure app (client) id, and the
         Resource with its Application ID URI. Must match the Odyssey server's
         OUTLOOK_ADDIN_CLIENT_ID / OUTLOOK_ADDIN_APP_ID_URI. -->
    <WebApplicationInfo>
      <Id>815a2e7c-7267-46bb-9c56-f8a6c1791bba</Id>
      <Resource>api://addin.hectorswhips.com/815a2e7c-7267-46bb-9c56-f8a6c1791bba</Resource>
      <Scopes>
        <Scope>openid</Scope>
        <Scope>profile</Scope>
        <Scope>email</Scope>
      </Scopes>
    </WebApplicationInfo>
  </VersionOverrides>
</OfficeApp>
