<?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>da60c3a5-4107-4777-b3f4-d9fc453ce338</Id>
  <Version>1.0.2.0</Version>
  <ProviderName>Nuvem.online</ProviderName>
  <DefaultLocale>pt-BR</DefaultLocale>
  <DisplayName DefaultValue="Assinatura Nuvem.online" />
  <Description DefaultValue="Insere automaticamente a assinatura corporativa em novos emails do tenant nuvem.online." />
  <IconUrl DefaultValue="https://signatures.nuvem.online/assets/logo.png" />
  <HighResolutionIconUrl DefaultValue="https://signatures.nuvem.online/assets/logo.png" />
  <SupportUrl DefaultValue="https://www.nuvem.online" />

  <AppDomains>
    <AppDomain>https://signatures.nuvem.online</AppDomain>
  </AppDomains>

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

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

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://signatures.nuvem.online/commands.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteMailbox</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">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">

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

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

          <Runtimes>
            <Runtime resid="WebViewRuntime.Url">
              <Override type="javascript" resid="JSRuntime.Url" />
            </Runtime>
          </Runtimes>

          <DesktopFormFactor>
            <FunctionFile resid="Commands.Url"/>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="onMessageComposeHandler" />
              </LaunchEvents>
              <SourceLocation resid="WebViewRuntime.Url"/>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>

      <Resources>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://signatures.nuvem.online/eventHandler.js" />
          <bt:Url id="WebViewRuntime.Url" DefaultValue="https://signatures.nuvem.online/commands.html" />
          <bt:Url id="JSRuntime.Url" DefaultValue="https://signatures.nuvem.online/eventHandler.js" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="Display.Name" DefaultValue="Assinatura Nuvem.online" />
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="Display.Desc" DefaultValue="Insere automaticamente a assinatura corporativa." />
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
