<?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:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
  xsi:type="MailApp">

  <Id>12345678-1234-1234-1234-123456789012</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Lawyer CRM</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Firmly CRM" />
  <Description DefaultValue="Create tasks, extract client information, and manage interactions directly from Outlook." />
  <IconUrl DefaultValue="https://firmly.webiton.pt/outlook-addon/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://firmly.webiton.pt/outlook-addon/assets/icon-64.png" />
  <AppDomains>
    <AppDomain>https://firmly.webiton.pt</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://firmly.webiton.pt/outlook-addon/index.html" />
  </DefaultSettings>
  <Permissions>ReadItem</Permissions>
  <WebApplicationInfo>
    <Id>f7007bc3-3066-4281-b5e6-75b1129fee4f</Id>
    <Resource>api://f7007bc3-3066-4281-b5e6-75b1129fee4f</Resource>
    <Scopes>
      <Scope>access_as_user</Scope>
    </Scopes>
  </WebApplicationInfo>
  <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="functionFile" />
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <Label resid="paneReadButtonLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipText" />
                  </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>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://localhost:3000/assets/icon-16.png" />
        <bt:Image id="icon32" DefaultValue="https://localhost:3000/assets/icon-32.png" />
        <bt:Image id="icon80" DefaultValue="https://localhost:3000/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="https://firmly.webiton.pt/outlook-addon/function.html" />
        <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://firmly.webiton.pt/outlook-addon/index.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Lawyer CRM" />
        <bt:String id="paneReadButtonLabel" DefaultValue="Open CRM" />
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Lawyer CRM" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipText" DefaultValue="Extract client information from this email and manage interactions." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp> 