<?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" 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>4aca2697-34dc-48c6-b707-83566fb39c85</Id>

  <!--Version. Updates from the store only get triggered if there is a version change. -->
  <Version>1.4.0.0</Version>
  <ProviderName>CRM Together</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="AC Creatio" />
  <Description DefaultValue="Surface Creatio Data into Microsoft Outlook">
    <Override Locale="es-es" Value="Mostrar datos de Creatio en Microsoft Outlook" />
    <Override Locale="de-de" Value="Übertragen Sie Creatio-Daten in Microsoft Outlook" />
    <Override Locale="fr-fr" Value="Faire apparaître les données Creatio dans Microsoft Outlook" />
  </Description>

  <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
  <IconUrl DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/64-purple-creatio.png" />
  <HighResolutionIconUrl DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/128-purple-creatio.png" />
  <!--If you plan to submit this add-in to the Office Store, uncomment the SupportUrl element below-->
  <SupportUrl DefaultValue="https://crmtogether.com" />
  <AppDomains>
    <AppDomain>https://appaccreatio.crmtogether.com</AppDomain>
  </AppDomains>
  <!--End Basic Settings. -->

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.8" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://appaccreatio.crmtogether.com/#/mytaskpane/outlook365/explorer" />
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
      <TabletSettings>
        <SourceLocation DefaultValue="https://appaccreatio.crmtogether.com/#/mytaskpane/outlook365/explorer" />
        <RequestedHeight>450</RequestedHeight>
      </TabletSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteMailbox</Permissions>


  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit" />
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.8">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">

        <DesktopFormFactor>
          <!-- Message Read -->
          <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="msgReadOpenPaneButton">
                  <Label resid="GroupLabel" />
                  <Supertip>
                    <Title resid="GroupLabel" />
                    <Description resid="TaskpaneButton.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="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url" />
                  </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 -->
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/16-purple-creatio.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/32-purple-creatio.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/80-purple-creatio.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://appaccreatio.crmtogether.com/#/mytaskpane/outlook365/explorer" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="Accelerator for Creatio" />
        <bt:String id="TaskpaneButton.Label" DefaultValue="Open" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="AC Creatio">
          <bt:Override Locale="de-de" Value="Beschleuniger Creatio Bereich" />
          <bt:Override Locale="fr-fr" Value="Volet Accélérateur Creatio" />
          <bt:Override Locale="es-es" Value="Panel Acelerador Creatio" />
        </bt:String>
      </bt:LongStrings>
    </Resources>
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.8">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <SupportsSharedFolders>true</SupportsSharedFolders>
            <FunctionFile resid="functionFile" />
            <!-- Message Read -->
            <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="CRMTogether.Label" />
                  <!-- Launch the add-in : task pane button -->
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <Label resid="GroupLabel" />
                    <Supertip>
                      <Title resid="GroupLabel" />
                      <Description resid="TaskpaneButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Accelerator.16x16" />
                      <bt:Image size="32" resid="Accelerator.32x32" />
                      <bt:Image size="80" resid="Accelerator.80x80" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="Taskpane.Url" />
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                  <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
                </Group>
              </OfficeTab>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <!-- Up to 6 Groups added per Tab -->
                <Group id="msgComposeGroup">
                  <Label resid="CRMTogether.Label" />
 <!-- Launch the add-in : task pane button -->
                  <Control xsi:type="Button" id="msgComposeButton">
                    <Label resid="TaskpaneButton.Label" />
                    <Supertip>
                      <Title resid="TaskpaneButton.Label" />
                      <Description resid="TaskpaneButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Accelerator.16x16" />
                      <bt:Image size="32" resid="Accelerator.32x32" />
                      <bt:Image size="80" resid="Accelerator.80x80" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="Taskpanecompose.Url" />
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>                                    
                  <Control xsi:type="Button" id="msgComposeEmailTemplateBtn">
                    <Label resid="ComposeEmailTemplateButton.Label" />
                    <Supertip>
                      <Title resid="ComposeEmailTemplateButton.Label" />
                      <Description resid="TaskpaneButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="EmailTemplate.16x16" />
                      <bt:Image size="32" resid="EmailTemplate.32x32" />
                      <bt:Image size="80" resid="EmailTemplate.80x80" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>exeEmailTemplate</FunctionName>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="msgComposeSharedDocBtn">
                    <Label resid="ComposeSharedDocBtn.Label" />
                    <Supertip>
                      <Title resid="ComposeSharedDocBtn.Label" />
                      <Description resid="TaskpaneButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="SharedDoc.16x16" />
                      <bt:Image size="32" resid="SharedDoc.32x32" />
                      <bt:Image size="80" resid="SharedDoc.80x80" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>sharedDocument</FunctionName>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="msgComposeAddressBookBtn">
                    <Label resid="ComposeAddressBookBtn.Label" />
                    <Supertip>
                      <Title resid="ComposeAddressBookBtn.Label" />
                      <Description resid="TaskpaneButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="AddressBook.16x16" />
                      <bt:Image size="32" resid="AddressBook.32x32" />
                      <bt:Image size="80" resid="AddressBook.80x80" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>addressBook</FunctionName>
                    </Action>
                  </Control>                  
                  <Control xsi:type="Button" id="msgComposeSaveAndSendBtn">
                    <Label resid="ComposeSendSaveBtn.Label" />
                    <Supertip>
                      <Title resid="ComposeSendSaveBtn.Label" />
                      <Description resid="TaskpaneButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="SaveAndSend.16x16" />
                      <bt:Image size="32" resid="SaveAndSend.32x32" />
                      <bt:Image size="80" resid="SaveAndSend.80x80" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>sendAndSave</FunctionName>
                    </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 -->
          </DesktopFormFactor>
        </Host>
      </Hosts>

      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/16-purple-creatio.png" />
          <bt:Image id="Icon.32x32" DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/32-purple-creatio.png" />
          <bt:Image id="Icon.80x80" DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/80-purple-creatio.png" />

          <bt:Image id="EmailTemplate.16x16" DefaultValue="https://appaccreatio.crmtogether.com/assets/email-check-16.png" />
          <bt:Image id="EmailTemplate.32x32" DefaultValue="https://appaccreatio.crmtogether.com/assets/email-check-32.png" />
          <bt:Image id="EmailTemplate.80x80" DefaultValue="https://appaccreatio.crmtogether.com/assets/email-check-80.png" />
          <bt:Image id="SharedDoc.16x16" DefaultValue="https://appaccreatio.crmtogether.com/assets/attachment-16.png" />
          <bt:Image id="SharedDoc.32x32" DefaultValue="https://appaccreatio.crmtogether.com/assets/attachment-32.png" />
          <bt:Image id="SharedDoc.80x80" DefaultValue="https://appaccreatio.crmtogether.com/assets/attachment-80.png" />
          <bt:Image id="AddressBook.16x16" DefaultValue="https://appaccreatio.crmtogether.com/assets/layers-search-16.png" />
          <bt:Image id="AddressBook.32x32" DefaultValue="https://appaccreatio.crmtogether.com/assets/layers-search-32.png" />
          <bt:Image id="AddressBook.80x80" DefaultValue="https://appaccreatio.crmtogether.com/assets/layers-search-80.png" />
          <bt:Image id="SaveAndSend.16x16" DefaultValue="https://appaccreatio.crmtogether.com/assets/email-plus-16.png" />
          <bt:Image id="SaveAndSend.32x32" DefaultValue="https://appaccreatio.crmtogether.com/assets/email-plus-32.png" />
          <bt:Image id="SaveAndSend.80x80" DefaultValue="https://appaccreatio.crmtogether.com/assets/email-plus-80.png" />
          <bt:Image id="Accelerator.16x16" DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/16-purple-creatio.png" />
          <bt:Image id="Accelerator.32x32" DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/32-purple-creatio.png" />
          <bt:Image id="Accelerator.80x80" DefaultValue="https://appaccreatio.crmtogether.com/assets/App-icons/Creatio/80-purple-creatio.png" />
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Taskpane.Url" DefaultValue="https://appaccreatio.crmtogether.com/#/mytaskpane/outlook365/explorer" />
          <bt:Url id="Taskpanecompose.Url" DefaultValue="https://appaccreatio.crmtogether.com/#/mytaskpane/outlook365/compose" />
          <bt:Url id="functionFile" DefaultValue="https://appaccreatio.crmtogether.com/FunctionFile/Functions.html" />
          <!-- <bt:Url id="functionFile" DefaultValue="https://appaccreatio.crmtogether.com/index.html" /> -->
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="Open" />
          <bt:String id="CRMTogether.Label" DefaultValue="AC Creatio" />
          <bt:String id="TaskpaneButton.Label" DefaultValue="Open" />
          <bt:String id="ComposeEmailTemplateButton.Label" DefaultValue="Email Template">
            <bt:Override Locale="de-de" Value="E-Mail-Vorlage" />
            <bt:Override Locale="fr-fr" Value="Modèle d'e-mail" />
            <bt:Override Locale="es-es" Value="Plantilla de correo electrónico" />
          </bt:String>
          <bt:String id="ComposeSharedDocBtn.Label" DefaultValue="Shared Documents">
            <bt:Override Locale="de-de" Value="Veröffentlichte Dokumente" />
            <bt:Override Locale="fr-fr" Value="Documents partagés" />
            <bt:Override Locale="es-es" Value="Documentos compartidos" />
          </bt:String>
          <bt:String id="ComposeAddressBookBtn.Label" DefaultValue="Address Book">
            <bt:Override Locale="de-de" Value="Adressbuch" />
            <bt:Override Locale="fr-fr" Value="Carnet d'adresses" />
            <bt:Override Locale="es-es" Value="Directorio" />
          </bt:String>
          <bt:String id="ComposePromptSendBtn.Label" DefaultValue="Save" />

          <bt:String id="ComposeSendSaveBtn.Label" DefaultValue="Save">
            <bt:Override Locale="de-de" Value="Speichern" />
            <bt:Override Locale="fr-fr" Value="Sauvegarder" />
            <bt:Override Locale="es-es" Value="Ahorrar" />
          </bt:String>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Accelerator Pro Pane">
            <bt:Override Locale="de-de" Value="Beschleuniger Pro Bereich" />
            <bt:Override Locale="fr-fr" Value="Volet Accélérateur Pro" />
            <bt:Override Locale="es-es" Value="Panel Acelerador Pro" />
          </bt:String>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
