<?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.1"
  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>f1c91473-65da-d3a7-99e8-9a824c284cfa</Id>

  <!--Version. Updates from the store only get triggered if there is a version change. -->
  <Version>1.0.0.47</Version>
  <ProviderName>Appfluence Inc</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="&quot;Priority Matrix Government&quot;" />
  <Description DefaultValue="Turn emails into tasks. See your agenda. Discover similar items. All inside Outlook."/>

  <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
  <IconUrl DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-64.png" />
  <HighResolutionIconUrl DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-128.png"/>

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

  <!-- 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://gov.prioritymatrix.com</AppDomain>
  </AppDomains>
  <!--End Basic Settings. -->

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.13" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://gov.prioritymatrix.com/office365/index?formFactor=desktop"/>
        <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">

    <Requirements>
      <bt:Sets DefaultMinVersion="1.13">
        <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="paneReadButtonLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </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>
                <!-- 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="icon16" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-16.png"/>
        <bt:Image id="icon25" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-25.png"/>
        <bt:Image id="icon32" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-32.png"/>
        <bt:Image id="icon48" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-48.png"/>
        <bt:Image id="icon80" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-80.png"/>
        <bt:Image id="icon96" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-96.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://gov.prioritymatrix.com/office365/index?formFactor=desktop"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="&quot;Priority Matrix Government&quot;"/>
        <bt:String id="customTabLabel"  DefaultValue="&quot;Priority Matrix Government&quot;"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="Send to project"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Create Item in &quot;Priority Matrix Government&quot;"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Create an item in &quot;Priority Matrix Government&quot;, in your inbox or in a shared project"/>
      </bt:LongStrings>
    </Resources>

<!-- 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.13">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>

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

        <!-- Maybe repeat DesktopFormFactor? -->
        <DesktopFormFactor>
          <SupportsSharedFolders>false</SupportsSharedFolders>
          <!-- Set the URL of the file that contains the JavaScript function that controls the extension -->
          <FunctionFile resid="pmModuleUrl" />
          <!-- DetectedEntity -->
          <ExtensionPoint xsi:type="DetectedEntity">
            <Label resid="contextLabel" />
            <SourceLocation resid="detectedEntityTask" />
            <Rule xsi:type="RuleCollection" Mode="And">
              <Rule xsi:type="ItemIs" ItemType="Message" />
              <Rule xsi:type="RuleCollection" Mode="Or">
                <Rule xsi:type="ItemHasKnownEntity" EntityType="TaskSuggestion" Highlight="all" />
                <Rule xsi:type="ItemHasKnownEntity" EntityType="MeetingSuggestion" Highlight="all"/>
              </Rule>
            </Rule>
          </ExtensionPoint>
          <!-- 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="paneReadButtonLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </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" />
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>
                <Control xsi:type="Button" id="createItemPaneButton">
                  <Label resid="createItemButtonLabel" />
                  <Supertip>
                    <Title resid="createItemSuperTipTitle" />
                    <Description resid="createItemSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="iconAdd16" />
                    <bt:Image size="32" resid="iconAdd32" />
                    <bt:Image size="80" resid="iconAdd80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="createItemUrl" />
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>
                <Control xsi:type="Button" id="quickCreateItemPaneButton">
                  <Label resid="quickCreateItemButtonLabel" />
                  <Supertip>
                    <Title resid="quickCreateItemSuperTipTitle" />
                    <Description resid="quickCreateItemSuperTipDesc" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="iconInbox16" />
                    <bt:Image size="32" resid="iconInbox32" />
                    <bt:Image size="80" resid="iconInbox80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="quickCreateItemUrl" />
                    <SupportsPinning>false</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">
              <Group id="msgComposeGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="msgComposeOpenPaneButton">
                  <Label resid="paneComposeButtonLabel" />
                  <Supertip>
                    <Title resid="paneComposeSuperTipTitle" />
                    <Description resid="paneComposeSuperTipDescription" />
                  </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="messageComposeTaskPaneUrl" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

          <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
            <OfficeTab id="TabPMEvent">
              <Group id="eventOrganizerGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="eventOrganizerGroupOpenPaneButton">
                  <Label resid="paneEventOrganizerButtonLabel" />
                  <Supertip>
                    <Title resid="paneEventOrganizerSuperTipTitle" />
                    <Description resid="paneEventOrganizerTipDescription" />
                  </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="eventOrganizerTaskPaneUrl" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

          <ExtensionPoint xsi:type="AppointmentAttendeeCommandSurface">
            <OfficeTab id="TabPMEditEvent">
              <Group id="eventAttendeeGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="eventAttendeeGroupOpenPaneButton">
                  <Label resid="paneEventOrganizerButtonLabel" />
                  <Supertip>
                    <Title resid="paneEventOrganizerSuperTipTitle" />
                    <Description resid="paneEventOrganizerTipDescription" />
                  </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="eventAttendeeTaskPaneUrl" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

            <!--New Extension Point - Module for a ModuleApp -->
            <ExtensionPoint xsi:type="Module">
                <SourceLocation resid="pmModuleUrl" />
                <Label resid="groupLabel" />
                <CommandSurface>
                    <CustomTab id="pmTab">
                        <Group id="pmGroup">
                            <Label resid="groupLabel" />
                            <Control xsi:type="Button" id="group.webapp">
                              <Label resid="webappLabel" />
                              <Supertip>
                                <Title resid="webappLabel" />
                                <Description resid="pmModuleDesc" />
                              </Supertip>
                              <Icon>
                                <bt:Image size="16" resid="iconWebapp16" />
                                <bt:Image size="32" resid="iconWebapp32" />
                                <bt:Image size="80" resid="iconWebapp80" />
                              </Icon>
                              <Action xsi:type="ExecuteFunction">
                                <FunctionName>openWebapp</FunctionName>
                              </Action>
                            </Control>
                            <Control xsi:type="Button" id="group.oneonone">
                                <Label resid="oneOnOneLabel" />
                                <Supertip>
                                    <Title resid="oneOnOneLabel" />
                                    <Description resid="pmModuleDesc" />
                                </Supertip>
                                <Icon>
                                    <bt:Image size="16" resid="iconOneOnOne16" />
                                    <bt:Image size="32" resid="iconOneOnOne32" />
                                    <bt:Image size="80" resid="iconOneOnOne80" />
                                </Icon>
                                <Action xsi:type="ExecuteFunction">
                                    <FunctionName>openOneOnOne</FunctionName>
                                </Action>
                            </Control>
                            <Control xsi:type="Button" id="group.search">
                                <Label resid="searchLabel" />
                                <Supertip>
                                    <Title resid="searchLabel" />
                                    <Description resid="pmModuleDesc" />
                                </Supertip>
                                <Icon>
                                    <bt:Image size="16" resid="iconSearch16" />
                                    <bt:Image size="32" resid="iconSearch32" />
                                    <bt:Image size="80" resid="iconSearch80" />
                                </Icon>
                                <Action xsi:type="ExecuteFunction">
                                    <FunctionName>openSearch</FunctionName>
                                </Action>
                            </Control>
                        </Group>
                        <Label resid="groupLabel" />
                    </CustomTab>
                </CommandSurface>
            </ExtensionPoint>
          <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee -->
        </DesktopFormFactor>

        <!-- Adding iOS support -->
          <MobileFormFactor>
            <ExtensionPoint xsi:type="MobileMessageReadCommandSurface">
              <Group id="mobileMsgRead">
                <Label resid="groupLabel" />
                <Control xsi:type="MobileButton" id="msgReadOpenPaneButton">
                  <Label resid="paneReadButtonLabel" />
                  <Icon xsi:type="bt:MobileIconList">
                    <bt:Image size="25" scale="1" resid="icon25" />
                    <bt:Image size="25" scale="2" resid="icon25" />
                    <bt:Image size="25" scale="3" resid="icon25" />

                    <bt:Image size="32" scale="1" resid="icon32" />
                    <bt:Image size="32" scale="2" resid="icon32" />
                    <bt:Image size="32" scale="3" resid="icon32" />

                    <bt:Image size="48" scale="1" resid="icon48" />
                    <bt:Image size="48" scale="2" resid="icon48" />
                    <bt:Image size="48" scale="3" resid="icon48" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="mobileApp" />
                  </Action>
                </Control>
              </Group>
            </ExtensionPoint>
          </MobileFormFactor>
        </Host>
      </Hosts>

      <!-- Maybe repeat Resources>? -->
      <Resources>
        <bt:Images>
          <bt:Image id="icon16" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-16.png"/>
          <bt:Image id="icon25" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-25.png"/>
          <bt:Image id="icon32" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-32.png"/>
          <bt:Image id="icon48" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-48.png"/>
          <bt:Image id="icon80" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-80.png"/>
          <bt:Image id="icon96" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-96.png"/>
          <bt:Image id="iconSearch16" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/search-green-16.png"/>
          <bt:Image id="iconSearch32" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/search-green-32.png"/>
          <bt:Image id="iconSearch80" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/search-green-80.png"/>
          <bt:Image id="iconOneOnOne16" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/oneonone-green-16.png"/>
          <bt:Image id="iconOneOnOne32" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/oneonone-green-32.png"/>
          <bt:Image id="iconOneOnOne80" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/oneonone-green-80.png"/>
          <bt:Image id="iconAdd16" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/add-16.png"/>
          <bt:Image id="iconAdd32" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/add-32.png"/>
          <bt:Image id="iconAdd80" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/add-80.png"/>
          <bt:Image id="iconInbox16" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/inbox-16.png"/>
          <bt:Image id="iconInbox32" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/inbox-32.png"/>
          <bt:Image id="iconInbox80" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/inbox-80.png"/>
          <bt:Image id="iconWebapp16" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-16.png"/>
          <bt:Image id="iconWebapp32" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-32.png"/>
          <bt:Image id="iconWebapp80" DefaultValue="https://gov.prioritymatrix.com/static/office365/outlook/images/pm-outline-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://gov.prioritymatrix.com/office365/index?formFactor=desktop"/>
          <bt:Url id="createItemUrl" DefaultValue="https://gov.prioritymatrix.com/office365/index?formFactor=creation"/>
          <bt:Url id="quickCreateItemUrl" DefaultValue="https://gov.prioritymatrix.com/office365/index?formFactor=quick"/>
          <bt:Url id="messageComposeTaskPaneUrl" DefaultValue="https://gov.prioritymatrix.com/office365/index?formFactor=compose"/>
          <bt:Url id="eventOrganizerTaskPaneUrl" DefaultValue="https://gov.prioritymatrix.com/office365/index?formFactor=eventOrganizer"/>
          <bt:Url id="eventAttendeeTaskPaneUrl" DefaultValue="https://gov.prioritymatrix.com/office365/index?formFactor=eventAttendee"/>
          <bt:Url id="mobileApp" DefaultValue="https://gov.prioritymatrix.com/office365/outlook_mobile/index/"/>
          <bt:Url id="detectedEntityTask" DefaultValue="https://gov.prioritymatrix.com/office365/index?formFactor=contextual"/>
          <bt:Url id="pmModuleUrl" DefaultValue="https://gov.prioritymatrix.com/office365/outlook/module/?outlook=1" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="groupLabel" DefaultValue="&quot;Priority Matrix Government&quot;"/>
          <bt:String id="customTabLabel"  DefaultValue="&quot;Priority Matrix Government&quot;"/>
          <bt:String id="paneReadButtonLabel" DefaultValue="Open &quot;Priority Matrix Government&quot;"/>
          <bt:String id="createItemButtonLabel" DefaultValue="Send to project"/>
          <bt:String id="quickCreateItemButtonLabel" DefaultValue="Send to PM inbox"/>
          <bt:String id="paneComposeButtonLabel" DefaultValue="Insert Item card from PM"/>
          <bt:String id="paneEventOrganizerButtonLabel" DefaultValue="Insert Meeting Notes"/>
          <bt:String id="paneReadSuperTipTitle" DefaultValue="Manage your inbox with &quot;Priority Matrix Government&quot;"/>
          <bt:String id="createItemSuperTipTitle" DefaultValue="Create Item in &quot;Priority Matrix Government&quot;"/>
          <bt:String id="quickCreateItemSuperTipTitle" DefaultValue="Send to PM inbox"/>
          <bt:String id="paneComposeSuperTipTitle" DefaultValue="Insert item card"/>
          <bt:String id="paneEventOrganizerSuperTipTitle" DefaultValue="Insert meeting notes"/>
          <bt:String id="contextLabel" DefaultValue="&quot;Priority Matrix Government&quot;"/>
          <bt:String id="oneOnOneLabel" DefaultValue="One On One" />
          <bt:String id="searchLabel" DefaultValue="Search Items" />
          <bt:String id="webappLabel" DefaultValue="App" />
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="paneReadSuperTipDescription" DefaultValue="Open your &quot;Priority Matrix Government&quot;, and review your agenda"/>
          <bt:String id="createItemSuperTipDescription" DefaultValue="Send to a &quot;Priority Matrix Government&quot; project, in a given quadrant"/>
          <bt:String id="quickCreateItemSuperTipDesc" DefaultValue="Send selected email to your &quot;Priority Matrix Government&quot; inbox in just one click"/>
          <bt:String id="paneComposeSuperTipDescription" DefaultValue="Insert an item card or link from &quot;Priority Matrix Government&quot;"/>
          <bt:String id="paneEventOrganizerTipDescription" DefaultValue="Insert notes for this event from &quot;Priority Matrix Government&quot;"/>
          <bt:String id="pmModuleDesc" DefaultValue="Sync your Outlook with &quot;Priority Matrix Government&quot;" />
        </bt:LongStrings>
      </Resources>

    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
