<?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">

  <!-- Begin Basic Settings: Add-in metadata, used for all versions of Office unless override provided. -->

  <!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you change this id to a new GUID. -->
  <Id>f4cd65a3-513e-455c-aad6-c29dafc2e1a9</Id>

  <!--Version. Updates from the store only get triggered if there is a version change. -->
  <Version>1.2.203.433</Version>
  <ProviderName>Assembly Software</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. -->
  <DisplayName DefaultValue="Neos for Outlook" />
  <Description DefaultValue="Tag emails directly to Neos case notes and view case info from within Outlook"/>

  <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
  <IconUrl DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/neos-logo-small.png" />
  <HighResolutionIconUrl DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/neos-logo-high-res.png"/>

  <!--If you plan to submit this add-in to the Office Store, uncomment the SupportUrl element below-->
  <SupportUrl DefaultValue="https://assemblysoftware.com/customer-support" />

  <!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. -->
  <AppDomains>
    <AppDomain>https://www.assemblysoftware.com</AppDomain>
  </AppDomains>
  <!--End Basic Settings. -->

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.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 for the v1.1 schema -->
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). -->
          <FunctionFile resid="functionFile" />


          <!-- MAIL READ SURFACE -->
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
            <OfficeTab id="TabDefault">
              <!-- Up to 6 Groups added per Tab -->
              <Group id="msgReadGroup">
                <Label resid="groupLabel" />
                <!-- Launch the add-in : task pane button -->
                <Control xsi:type="Button" id="readTagEmail">
                  <Label resid="tagEmailLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="tagMailIcon16" />
                    <bt:Image size="32" resid="tagMailIcon32" />
                    <bt:Image size="80" resid="tagMailIcon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="readTagMailPaneUrl" />
                    <SupportsPinning>true</SupportsPinning>
                    <SupportsMultiSelect>true</SupportsMultiSelect>
                  </Action>
                </Control>

                <Control xsi:type="Button" id="readCaseInfo">
                  <Label resid="caseInfoLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="caseInfoIcon16" />
                    <bt:Image size="32" resid="caseInfoIcon32" />
                    <bt:Image size="80" resid="caseInfoIcon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="readCaseInfoPaneUrl" />
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>
                <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee -->


          <!-- MAIL COMPOSE SURFACE -->
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <!-- Up to 6 Groups added per Tab -->
              <Group id="mailComposeGroup">
                <Label resid="groupLabel" />
                <!-- Launch the add-in : task pane button -->
                <Control xsi:type="Button" id="composeTagEmail">
                  <Label resid="tagEmailLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="tagMailIcon16" />
                    <bt:Image size="32" resid="tagMailIcon32" />
                    <bt:Image size="80" resid="tagMailIcon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="composeTagMailPaneUrl" />
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>

                <Control xsi:type="Button" id="composeCaseInfo">
                  <Label resid="caseInfoLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="caseInfoIcon16" />
                    <bt:Image size="32" resid="caseInfoIcon32" />
                    <bt:Image size="80" resid="caseInfoIcon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="composeCaseInfoPaneUrl" />
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>
                <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
              </Group>
            </OfficeTab>
          </ExtensionPoint>


          <!-- APPOINTMENT ORGANIZER SURFACE -->
          <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
            <OfficeTab id="TabDefault">
              <!-- Up to 6 Groups added per Tab -->
              <Group id="aptReadGroup">
                <Label resid="groupLabel" />
                <!-- Launch the add-in : task pane button -->
                <Control xsi:type="Button" id="appointmentTag">
                  <Label resid="tagCalendarEventLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="tagMailIcon16" />
                    <bt:Image size="32" resid="tagMailIcon32" />
                    <bt:Image size="80" resid="tagMailIcon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="appointmentTagMailPaneUrl" />
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>

              </Group>
            </OfficeTab>
          </ExtensionPoint>

          <ExtensionPoint xsi:type="AppointmentAttendeeCommandSurface">
            <OfficeTab id="TabDefault">
              <!-- Up to 6 Groups added per Tab -->
              <Group id="aptAttendeeReadGroup">
                <Label resid="groupLabel" />
                <!-- Launch the add-in : task pane button -->
                <Control xsi:type="Button" id="appointmentTagFromAttendee">
                  <Label resid="tagCalendarEventLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="tagMailIcon16" />
                    <bt:Image size="32" resid="tagMailIcon32" />
                    <bt:Image size="80" resid="tagMailIcon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="appointmentTagMailPaneUrl" />
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>

              </Group>
            </OfficeTab>
          </ExtensionPoint>

        </DesktopFormFactor>


        <MobileFormFactor>
          <ExtensionPoint xsi:type="MobileMessageReadCommandSurface">
              <Group id="mobileMsgReadGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="MobileButton" id="mobileReadTagEmail">
                  <Label resid="tagEmailLabel" />
                   <Icon xsi:type="bt:MobileIconList">
                    <bt:Image size="25" scale="1" resid="tagMailIcon32" />
                    <bt:Image size="25" scale="2" resid="tagMailIcon32" />
                    <bt:Image size="25" scale="3" resid="tagMailIcon32" />
                    <bt:Image size="32" scale="1" resid="tagMailIcon32" />
                    <bt:Image size="32" scale="2" resid="tagMailIcon32" />
                    <bt:Image size="32" scale="3" resid="tagMailIcon32" />
                    <bt:Image size="48" scale="1" resid="tagMailIcon32" />
                    <bt:Image size="48" scale="2" resid="tagMailIcon32" />
                    <bt:Image size="48" scale="3" resid="tagMailIcon32" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="mobileReadTagMailPaneUrl" />
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>

                <Control xsi:type="MobileButton" id="mobileReadCaseInfo">
                  <Label resid="caseInfoLabel" />
                   <Icon xsi:type="bt:MobileIconList">
                      <bt:Image size="25" scale="1" resid="caseInfoIcon32" />
                      <bt:Image size="25" scale="2" resid="caseInfoIcon32" />
                      <bt:Image size="25" scale="3" resid="caseInfoIcon32" />
                      <bt:Image size="32" scale="1" resid="caseInfoIcon32" />
                      <bt:Image size="32" scale="2" resid="caseInfoIcon32" />
                      <bt:Image size="32" scale="3" resid="caseInfoIcon32" />
                      <bt:Image size="48" scale="1" resid="caseInfoIcon32" />
                      <bt:Image size="48" scale="2" resid="caseInfoIcon32" />
                      <bt:Image size="48" scale="3" resid="caseInfoIcon32" />
                    </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="mobileReadCaseInfoPaneUrl" />
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>
              </Group>
          </ExtensionPoint>
        </MobileFormFactor>

      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/neos-logo.png"/>
        <bt:Image id="icon32" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/neos-logo.png"/>
        <bt:Image id="icon80" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/neos-logo.png"/>

        <bt:Image id="tagMailIcon16" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/NeedlesAssets/TagEmail_Needles_16.png"/>
        <bt:Image id="tagMailIcon32" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/NeedlesAssets/TagEmail_Needles_40.png"/>
        <bt:Image id="tagMailIcon80" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/NeedlesAssets/TagEmail_Needles_80.png"/>

        <bt:Image id="caseInfoIcon16" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/NeedlesAssets/CaseInfo_Needles_16.png"/>
        <bt:Image id="caseInfoIcon32" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/NeedlesAssets/CaseInfo_Needles_40.png"/>
        <bt:Image id="caseInfoIcon80" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/assets/NeedlesAssets/CaseInfo_Needles_80.png"/>

      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/function-file/function-file.html"/>
        <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html"/>
        <!-- URLs for read mail view  -->
        <bt:Url id="readTagMailPaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#readTagMail"/>
        <!-- <bt:Url id="readAttachFilePaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#readAttachFile"/> -->
        <bt:Url id="readCaseInfoPaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#readCaseInfo"/>
        <!-- URLs for compose mail view  -->
        <bt:Url id="composeTagMailPaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#composeTagMail"/>
        <!-- <bt:Url id="composeAttachFilePaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#composeAttachFile"/> -->
        <bt:Url id="composeCaseInfoPaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#composeCaseInfo"/>

        <!-- URLs for compose appointments view  -->
        <bt:Url id="appointmentTagMailPaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#appointmentTagMail"/>
        <!-- <bt:Url id="appointmentCaseInfoPaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#appointmentCaseInfo"/> -->

        <!-- URLs for mobile read mail view  -->
        <bt:Url id="mobileReadTagMailPaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#mobileReadTagMail"/>
        <!-- <bt:Url id="mobileReadAttachFilePaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#mobileReadAttachFile"/> -->
        <bt:Url id="mobileReadCaseInfoPaneUrl" DefaultValue="https://saasuicdn.blob.core.windows.net/neosoutlookplugin/index.html#mobileReadCaseInfo"/>

      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Group Actions"/>
        <bt:String id="customTabLabel"  DefaultValue="My Add-in Tab"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="Display all properties"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Get all properties"/>
        <bt:String id="tagEmailLabel" DefaultValue="Tag Email"/>
        <bt:String id="tagCalendarEventLabel" DefaultValue="Tag Event to Neos"/>
        <bt:String id="caseInfoLabel" DefaultValue="Case Info"/>
        <bt:String id="mobileLabel" DefaultValue="My Add-in Mobile"/>

      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane displaying all available properties. This is an example of a button that opens a task pane."/>
      </bt:LongStrings>
    </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
