<?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>f4d5d7c9-baf8-4fdf-857e-2baf00b9081b</Id>
  <Version>1.0.0.4</Version>
  <ProviderName>TMotions Global Limited</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="SignaFlow Signature Manager"/>
  <Description DefaultValue="SignaFlow Outlook Add-in to manage and insert email signatures in compose mode."/>
  <IconUrl DefaultValue="https://companysignature.tmotions.com/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://companysignature.tmotions.com/assets/icon-80.png"/>
  <SupportUrl DefaultValue="https://www.tmotions.com"/>

  <AppDomains>
	<AppDomain>https://www.tmotions.com</AppDomain>
	<AppDomain>https://companysignature.tmotions.com</AppDomain>
  </AppDomains>

  <Hosts>
	<Host Name="Mailbox"/>
  </Hosts>

  <Requirements>
	<Sets>
	  <Set Name="Mailbox" MinVersion="1.5"/>
	</Sets>
  </Requirements>

  <FormSettings>
	<Form xsi:type="ItemEdit">
	  <DesktopSettings>
		<SourceLocation DefaultValue="https://companysignature.tmotions.com/taskpane.html"/>
	  </DesktopSettings>
	</Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>

  <Rule xsi:type="RuleCollection" Mode="Or">
	<Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
  </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="WebViewRuntime.Url">
			  <Override type="javascript" resid="JSRuntime.Url"/>
			</Runtime>
		  </Runtimes>
		  <DesktopFormFactor>
			<FunctionFile resid="Commands.Url"/>
			<ExtensionPoint xsi:type="MessageComposeCommandSurface">
			  <OfficeTab id="TabDefault">
				<Group id="ComposeGroup">
				  <Label resid="ComposeGroup.Label"/>
				  <Control xsi:type="Button" id="OpenTaskpaneButton">
					<Label resid="OpenTaskpaneButton.Label"/>
					<Supertip>
					  <Title resid="OpenTaskpaneButton.Label"/>
					  <Description resid="OpenTaskpaneButton.Tooltip"/>
					</Supertip>
					<Icon>
					  <bt:Image size="16" resid="Icon.16"/>
					  <bt:Image size="32" resid="Icon.32"/>
					  <bt:Image size="80" resid="Icon.80"/>
					</Icon>
					<Action xsi:type="ShowTaskpane">
					  <SourceLocation resid="Taskpane.Url"/>
					</Action>
				  </Control>
				</Group>
			  </OfficeTab>
			</ExtensionPoint>
			<ExtensionPoint xsi:type="LaunchEvent">
			  <LaunchEvents>
				<LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageComposeHandler"/>
			  </LaunchEvents>
			  <SourceLocation resid="WebViewRuntime.Url"/>
			</ExtensionPoint>
		  </DesktopFormFactor>

		  <!-- ========================= -->
		  <!-- Outlook Android / iOS     -->
		  <!-- ========================= -->
		  <MobileFormFactor>

			<!--
			  Automatically activate SignaFlow when
			  a new message/reply/forward is composed.
			  Note: Success depends on Outlook app version
			  and platform-specific event support.
			-->
			<ExtensionPoint xsi:type="LaunchEvent">

			  <LaunchEvents>

				<LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageComposeHandler"/>

			  </LaunchEvents>

			  <!--
				Must reference the same runtime used in DesktopFormFactor.
			  -->
			  <SourceLocation resid="WebViewRuntime.Url"/>

			</ExtensionPoint>

		  </MobileFormFactor>
		</Host>
	  </Hosts>
	  <Resources>
		<bt:Images>
		  <bt:Image id="Icon.16" DefaultValue="https://companysignature.tmotions.com/assets/icon-16.png"/>
		  <bt:Image id="Icon.32" DefaultValue="https://companysignature.tmotions.com/assets/icon-32.png"/>
		  <bt:Image id="Icon.80" DefaultValue="https://companysignature.tmotions.com/assets/icon-80.png"/>
		</bt:Images>
		<bt:Urls>
		  <bt:Url id="Commands.Url" DefaultValue="https://companysignature.tmotions.com/commands.html"/>
		  <bt:Url id="Taskpane.Url" DefaultValue="https://companysignature.tmotions.com/taskpane.html"/>
		  <bt:Url id="WebViewRuntime.Url" DefaultValue="https://companysignature.tmotions.com/commands.html"/>
		  <bt:Url id="JSRuntime.Url" DefaultValue="https://companysignature.tmotions.com/commands.js"/>
		</bt:Urls>
		<bt:ShortStrings>
		  <bt:String id="ComposeGroup.Label" DefaultValue="SignaFlow"/>
		  <bt:String id="OpenTaskpaneButton.Label" DefaultValue="SignaFlow"/>
		</bt:ShortStrings>
		<bt:LongStrings>
		  <bt:String id="OpenTaskpaneButton.Tooltip" DefaultValue="Open SignaFlow Signature Manager."/>
		</bt:LongStrings>
	  </Resources>
	  <WebApplicationInfo>
		<Id>12b0d7af-b8f3-4d37-b7c9-cd0101ee758b</Id>
		<Resource>api://companysignature.tmotions.com/12b0d7af-b8f3-4d37-b7c9-cd0101ee758b</Resource>
		<Scopes>
		  <Scope>profile</Scope>
		  <Scope>openid</Scope>
		  <Scope>User.Read</Scope>
		</Scopes>
	  </WebApplicationInfo>
	</VersionOverrides>
  </VersionOverrides>
</OfficeApp>
