<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>21bb1e67-9f5f-4ffe-8ccb-211463481947</Id>
	<!--Version. Updates from the store only get triggered if there is a version change. -->
	<!-- IMPORTANT - Don't forget to update the manifest version number in the query parameter in the "Taskpane.Url" element further down -->
	<Version>3.5.0</Version>
	<ProviderName>KnowBe4</ProviderName>
	<DefaultLocale>en-GB</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="KnowBe4 Email Security"/>
	<Description DefaultValue="KnowBe4 Email Security for Microsoft Outlook (EU)"/>
	<!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
	<IconUrl DefaultValue="https://eu.kes.knowbe4.com//office-assets/icon-32.png"/>
	<HighResolutionIconUrl DefaultValue="https://eu.kes.knowbe4.com//office-assets/icon-80.png"/>
	<!--If you plan to submit this add-in to the Office Store, uncomment the SupportUrl element below-->
	<SupportUrl DefaultValue="https://support.knowbe4.com/"/>
	<!-- 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://eu.kes.knowbe4.com</AppDomain>
	</AppDomains>
	<!--End Basic Settings. -->
	<Hosts>
		<Host Name="Mailbox"/>
	</Hosts>
	<Requirements>
		<Sets>
			<Set MinVersion="1.8" Name="Mailbox"/>
		</Sets>
	</Requirements>
	<FormSettings>
		<!-- <Form xsi:type="ItemRead"><DesktopSettings><SourceLocation DefaultValue="https://eu.kes.knowbe4.com/"/><RequestedHeight>250</RequestedHeight></DesktopSettings></Form>-->
		<Form xsi:type="ItemEdit">
			<DesktopSettings>
				<SourceLocation DefaultValue="https://eu.kes.knowbe4.com"/>
			</DesktopSettings>
		</Form>
	</FormSettings>
	<Permissions>ReadWriteMailbox</Permissions>
	<Rule Mode="Or" xsi:type="RuleCollection">
		<!-- <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />-->
		<Rule FormType="Edit" ItemType="Message" xsi:type="ItemIs"/>
	</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.8">
					<bt:Set Name="Mailbox"/>
				</bt:Sets>
			</Requirements>
			<Hosts>
				<Host xsi:type="MailHost">
					<!-- Event-based activation happens in a lightweight runtime.-->
					<Runtimes>
						<!-- HTML file including reference to or inline JavaScript event handlers.
	                 This is used by Outlook on the web. -->
						<Runtime resid="Functions.Url">
							<!-- JavaScript file containing event handlers. This is used by Outlook Desktop. -->
							<Override resid="JSRuntime.Url" type="javascript"/>
						</Runtime>
					</Runtimes>
					<DesktopFormFactor>
						<SupportsSharedFolders>true</SupportsSharedFolders>
						<FunctionFile resid="Functions.Url"/>
						<!-- Message Read -->
						<!-- <ExtensionPoint xsi:type="MessageReadCommandSurface"><OfficeTab id="TabDefault"><Group id="msgReadGroup"><Label resid="GroupLabel" /><Control xsi:type="Button" id="msgReadOpenPaneButton"><Label resid="TaskpaneButton.Label" /><Supertip><Title resid="TaskpaneButton.Label" /><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></Group></OfficeTab></ExtensionPoint>-->
						<!-- Message Compose -->
						<ExtensionPoint xsi:type="MessageComposeCommandSurface">
							<OfficeTab id="TabDefault">
								<Group id="msgComposeGroup">
									<Label resid="GroupLabel"/>
									<Control id="msgComposeOpenPaneButton" xsi:type="Button">
										<Label resid="TaskpaneButton.Label"/>
										<Supertip>
											<Title resid="TaskpaneButton.Label"/>
											<Description resid="TaskpaneButton.Tooltip"/>
										</Supertip>
										<Icon>
											<bt:Image resid="Icon.16x16" size="16"/>
											<bt:Image resid="Icon.32x32" size="32"/>
											<bt:Image resid="Icon.80x80" size="80"/>
										</Icon>
										<Action xsi:type="ShowTaskpane">
											<SourceLocation resid="Taskpane.Url"/>
											<SupportsPinning>true</SupportsPinning>
										</Action>
									</Control>
								</Group>
							</OfficeTab>
						</ExtensionPoint>
						<ExtensionPoint xsi:type="Events">
							<Event FunctionExecution="synchronous" FunctionName="functions.default.processSendEvent" Type="ItemSend"/>
						</ExtensionPoint>
						<!-- Enable launching the add-in on the included events. -->
						<ExtensionPoint xsi:type="LaunchEvent">
							<LaunchEvents>
								<LaunchEvent FunctionName="processMessageComposeEvent" Type="OnNewMessageCompose"/>
								<LaunchEvent FunctionName="processMessageRecipientsChangedEvent" Type="OnMessageRecipientsChanged"/>
								<LaunchEvent FunctionName="processMessageAttachmentsChangedEvent" Type="OnMessageAttachmentsChanged"/>
							</LaunchEvents>
							<!-- Identifies the runtime to be used (also referenced by the Runtime element). -->
							<SourceLocation resid="Functions.Url"/>
						</ExtensionPoint>
					</DesktopFormFactor>
				</Host>
			</Hosts>
			<Resources>
				<bt:Images>
					<bt:Image DefaultValue="https://eu.kes.knowbe4.com/office-assets/icon-16.png" id="Icon.16x16"/>
					<bt:Image DefaultValue="https://eu.kes.knowbe4.com/office-assets/icon-32.png" id="Icon.32x32"/>
					<bt:Image DefaultValue="https://eu.kes.knowbe4.com/office-assets/icon-80.png" id="Icon.80x80"/>
				</bt:Images>
				<bt:Urls>
					<!-- IMPORTANT - Don't forget to update the manifest version number in the query param below -->
					<bt:Url DefaultValue="https://eu.kes.knowbe4.com/taskpane/#/?manifestVersion=v3.5.0" id="Taskpane.Url"/>
					<!-- Entry needed for Outlook Desktop. -->
					<bt:Url DefaultValue="https://eu.kes.knowbe4.com/functions/launchEvents.js" id="JSRuntime.Url"/>
					<bt:Url DefaultValue="https://eu.kes.knowbe4.com/functions" id="Functions.Url"/>
				</bt:Urls>
				<bt:ShortStrings>
					<bt:String DefaultValue="KnowBe4" id="GroupLabel"/>
					<bt:String DefaultValue="Email Security" id="TaskpaneButton.Label"/>
				</bt:ShortStrings>
				<bt:LongStrings>
					<bt:String DefaultValue="Opens the taskpane to show security actions applicable to this message" id="TaskpaneButton.Tooltip"/>
				</bt:LongStrings>
			</Resources>
			<WebApplicationInfo>
				<Id>536eea25-ab04-4511-807d-df7db4557381</Id>
				<Resource>api://eu.kes.knowbe4.com/536eea25-ab04-4511-807d-df7db4557381</Resource>
				<Scopes>
					<Scope>email</Scope>
					<Scope>mail.readwrite</Scope>
					<Scope>mail.readwrite.shared</Scope>
					<Scope>openid</Scope>
					<Scope>profile</Scope>
					<Scope>user.read</Scope>
					<Scope>offline_access</Scope>
				</Scopes>
			</WebApplicationInfo>
			<EquivalentAddins>
				<EquivalentAddin>
					<ProgId>EgressEmailProtection</ProgId>
					<Type>COM</Type>
				</EquivalentAddin>
				<EquivalentAddin>
					<ProgId>KnowBe4EmailSecurity</ProgId>
					<Type>COM</Type>
				</EquivalentAddin>
			</EquivalentAddins>
		</VersionOverrides>
	</VersionOverrides>
</OfficeApp>