<?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"
           xsi:type="MailApp">
  <Id>80a8cda4-23ce-4dd8-a93c-bd1cf06f9f55</Id>
  <Version>1.3.0.1</Version>
  <ProviderName>Signally</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Signally"/>
  <Description DefaultValue="Centralized signature management."/>
  <IconUrl DefaultValue="https://plugins.signally.io/m365/1.3.0.1/assets/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://plugins.signally.io/m365/1.3.0.1/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://www.signally.io/#FAQ"/>
  <AppDomains>
    <AppDomain>https://app.signally.io</AppDomain>
    <AppDomain>https://api.signally.io</AppDomain>
    <AppDomain>https://plugins.signally.io</AppDomain>
    <AppDomain>https://login.windows.net</AppDomain>
    <AppDomain>https://login.microsoftonline.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://plugins.signally.io/m365/1.3.0.1/commands.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">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1"
                      xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.5">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <Runtimes>
            <Runtime resid="Autorun">
              <Override type="javascript" resid="runtimeJs"/>
            </Runtime>
          </Runtimes>
          <DesktopFormFactor>
            <FunctionFile resid="Commands.Url"/>
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="GroupLabel"/>
                  <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="ExecuteFunction">
                      <FunctionName>userAction</FunctionName>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="autorunAction"/>
              </LaunchEvents>
              <SourceLocation resid="Autorun"/>
            </ExtensionPoint>
          </DesktopFormFactor>
          <MobileFormFactor>
            <FunctionFile resid="Commands.Url"/>
            <ExtensionPoint xsi:type="MobileMessageComposeCommandSurface">
              <Group id="mobileMsgRead">
                <Label resid="GroupLabel"/>
                <Control xsi:type="MobileButton" id="mblReadFunctionButton">
                  <Label resid="ActionButton.Label"/>
                  <Icon xsi:type="bt:MobileIconList">
                    <bt:Image size="25" scale="1" resid="Icon.25x25"/>
                    <bt:Image size="25" scale="2" resid="Icon.25x25"/>
                    <bt:Image size="25" scale="3" resid="Icon.25x25"/>
                    <bt:Image size="32" scale="1" resid="Icon.32x32"/>
                    <bt:Image size="32" scale="2" resid="Icon.32x32"/>
                    <bt:Image size="32" scale="3" resid="Icon.32x32"/>
                    <bt:Image size="48" scale="1" resid="Icon.64x64"/>
                    <bt:Image size="48" scale="2" resid="Icon.64x64"/>
                    <bt:Image size="48" scale="3" resid="Icon.64x64"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>userAction</FunctionName>
                  </Action>
                </Control>
              </Group>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="autorunAction"/>
              </LaunchEvents>
              <SourceLocation resid="Autorun"/>
            </ExtensionPoint>
          </MobileFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://plugins.signally.io/m365/1.3.0.1/assets/icon-16.png"/>
          <bt:Image id="Icon.25x25" DefaultValue="https://plugins.signally.io/m365/1.3.0.1/assets/icon-25.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://plugins.signally.io/m365/1.3.0.1/assets/icon-32.png"/>
          <bt:Image id="Icon.64x64" DefaultValue="https://plugins.signally.io/m365/1.3.0.1/assets/icon-64.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://plugins.signally.io/m365/1.3.0.1/assets/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://plugins.signally.io/m365/1.3.0.1/commands.html"/>
          <bt:Url id="Autorun" DefaultValue="https://plugins.signally.io/m365/1.3.0.1/commands.html"/>
          <bt:Url id="runtimeJs" DefaultValue="https://plugins.signally.io/m365/1.3.0.1/commands.js"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="Signally"/>
          <bt:String id="ActionButton.Label" DefaultValue="Signature"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="ActionButton.Tooltip" DefaultValue="Insert your Signally signature (1.3.0.1)">
            <bt:Override Locale="fr-FR" Value="Insérer votre signature (1.3.0.1)"/>
            <bt:Override Locale="fr-CA" Value="Insérer votre signature (1.3.0.1)"/>
          </bt:String>
        </bt:LongStrings>
      </Resources>
      <WebApplicationInfo>
        <Id>1397c450-2566-4dfc-a9ad-d1a1993cc7ca</Id>
        <Resource>api://plugins.signally.io/1397c450-2566-4dfc-a9ad-d1a1993cc7ca</Resource>
        <Scopes>
          <Scope>email</Scope>
          <Scope>offline_access</Scope>
          <Scope>openid</Scope>
          <Scope>profile</Scope>
          <Scope>User.Read</Scope>
          <Scope>User.Read.All</Scope>
          <Scope>Group.Read.All</Scope>
        </Scopes>
      </WebApplicationInfo>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>