Office 365: Bind and manipulate data in a SharePoint Access app

This project shows how to create an app for Office that binds to an Access table in a SharePoint Access app.

C# (3.9 MB)
 
 
 
 
 
5 Star
(1)
1,026 times
Add to favorites
7/18/2014
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
/* Outlook specific API library */
/* Version: 15.0.4582.1000 */
/*
	Copyright (c) Microsoft Corporation.  All rights reserved.
*/

/*
	Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
*/

/*!
	Copyright (c) Microsoft Corporation.  All rights reserved.
*/
/*!
	Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
*/
Type.registerNamespace("Microsoft.Office.WebExtension.MailboxEnums");Microsoft.Office.WebExtension.MailboxEnums.EntityType={MeetingSuggestion:"meetingSuggestion",TaskSuggestion:"taskSuggestion",Address:"address",EmailAddress:"emailAddress",Url:"url",PhoneNumber:"phoneNumber",Contact:"contact"};Microsoft.Office.WebExtension.MailboxEnums.ItemType={Message:"message",Appointment:"appointment"};Microsoft.Office.WebExtension.MailboxEnums.ResponseType={None:"none",Organizer:"organizer",Tentative:"tentative",Accepted:"accepted",Declined:"declined"};Microsoft.Office.WebExtension.MailboxEnums.RecipientType={Other:"other",DistributionList:"distributionList",User:"user",ExternalUser:"externalUser"};Microsoft.Office.WebExtension.MailboxEnums.AttachmentType={File:"file",Item:"item"};Microsoft.Office.WebExtension.MailboxEnums.BodyType={Text:"text",Html:"html"};Microsoft.Office.WebExtension.CoercionType={Text:"text",Html:"html"};Type.registerNamespace("OSF.DDA");OSF.DDA.OutlookAppOm=function(n,t,i){this.$$d_$2O_0=Function.createDelegate(this,this.$2O_0);this.$$d_$2g_0=Function.createDelegate(this,this.$2g_0);this.$$d_windowOpenOverrideHandler=Function.createDelegate(this,this.windowOpenOverrideHandler);this.$$d_$32_0=Function.createDelegate(this,this.$32_0);this.$$d_$30_0=Function.createDelegate(this,this.$30_0);this.$$d_$3S_0=Function.createDelegate(this,this.$3S_0);this.$$d_$3A_0=Function.createDelegate(this,this.$3A_0);this.$$d_$37_0=Function.createDelegate(this,this.$37_0);OSF.DDA.OutlookAppOm.$2=this;this.$X_0=n;this.$1X_0=i;var r=this;var u=function(){i&&r.$B_0(1,"GetInitialData",null,r.$$d_$37_0)};this.$1Y_0()?u():this.$3Z_0(u)};OSF.DDA.OutlookAppOm.$J=function(n){if(!n)throw Error.create(_u.ExtensibilityStrings.l_ElevatedPermissionNeeded_Text);};OSF.DDA.OutlookAppOm.$A=function(n,t,i,r){if(n<t||n>i)throw Error.argumentOutOfRange(r);};OSF.DDA.OutlookAppOm.$M=function(n,t,i){if(Object.getType(n)!==t)throw Error.argumentType(i);};OSF.DDA.OutlookAppOm.$1W=function(n,t,i,r){if(!$h.ScriptHelpers.isNullOrUndefined(n)){OSF.DDA.OutlookAppOm.$M(n,String,r);var u=n;OSF.DDA.OutlookAppOm.$A(u.length,t,i,r)}};OSF.DDA.OutlookAppOm.$2T=function(n,t){var i=null;switch(n){case 1:case 2:case 12:case 3:case 14:case 18:case 26:break;case 4:var r=JSON.stringify(t.customProperties);i=[r];break;case 5:i=[t.body];break;case 8:case 9:i=[t.itemId];break;case 7:i=[OSF.DDA.OutlookAppOm.$o(t.requiredAttendees),OSF.DDA.OutlookAppOm.$o(t.optionalAttendees),t.start,t.end,t.location,OSF.DDA.OutlookAppOm.$o(t.resources),t.subject,t.body];break;case 11:case 10:i=[t.htmlBody];break;case 23:case 13:i=[t.data,t.coercionType||null];break;case 17:i=[t.subject];break;case 15:i=[t.recipientField];break;case 22:case 21:i=[t.recipientField,OSF.DDA.OutlookAppOm.$2R(t.recipientArray)];break;case 19:i=[t.itemId,t.name];break;case 16:i=[t.uri,t.name];break;case 20:i=[t.attachmentIndex];break;case 25:i=[t.TimeProperty,t.time];break;case 24:i=[t.TimeProperty];break;case 27:i=[t.location];break;default:break}return i};OSF.DDA.OutlookAppOm.$o=function(n){return n?n.join(";"):null};OSF.DDA.OutlookAppOm.$2R=function(n){if(!n)return null;for(var i=new Array(n.length),t=0;t<n.length;t++)i[t]=[n[t].address,n[t].name];return i};OSF.DDA.OutlookAppOm.$2K=function(n,t){if($h.ScriptHelpers.isNullOrUndefined(n))return null;OSF.DDA.OutlookAppOm.$M(n,Array,t);var r=n;var u=null;var f=!1;OSF.DDA.OutlookAppOm.$A(r.length,0,OSF.DDA.OutlookAppOm.$29,String.format("{0}.length",t));for(var e=0;e<r.length;e++)if($h.EmailAddressDetails.isInstanceOfType(r[e])){f=!0;break}f&&(u=[]);for(var i=0;i<r.length;i++)if(f){u[i]=$h.EmailAddressDetails.isInstanceOfType(r[i])?r[i].emailAddress:r[i];OSF.DDA.OutlookAppOm.$M(u[i],String,String.format("{0}[{1}]",t,i))}else OSF.DDA.OutlookAppOm.$M(r[i],String,String.format("{0}[{1}]",t,i));return u};OSF.DDA.OutlookAppOm.prototype={$5_0:null,$H_0:null,$2J_0:null,$1k_0:null,$X_0:null,$1X_0:null,$S_0:null,get_clientEndPoint:function(){this.$S_0||(this.$S_0=OSF._OfficeAppFactory.getClientEndPoint());return this.$S_0},set_clientEndPoint:function(n){this.$S_0=n;return n},get_initialData:function(){return this.$5_0},get_$c_0:function(){return this.$X_0.get_appName()},initialize:function(n){var t="itemType";this.$5_0=new $h.InitialData(n);1===n[t]?this.$H_0=new $h.Message(this.$5_0):3===n[t]?this.$H_0=new $h.MeetingRequest(this.$5_0):2===n[t]?this.$H_0=new $h.Appointment(this.$5_0):4===n[t]?this.$H_0=new $h.MessageCompose(this.$5_0):5===n[t]&&(this.$H_0=new $h.AppointmentCompose(this.$5_0));this.$2J_0=new $h.UserProfile(this.$5_0);this.$1k_0=new $h.Diagnostics(this.$5_0,this.$X_0.get_appName());this.$3V_0();$h.InitialData.$1(this,"item",this.$$d_$3A_0);$h.InitialData.$1(this,"userProfile",this.$$d_$3S_0);$h.InitialData.$1(this,"diagnostics",this.$$d_$30_0);$h.InitialData.$1(this,"ewsUrl",this.$$d_$32_0);OSF.DDA.OutlookAppOm.$2.get_$c_0()===64&&this.$5_0.get_$3b_0()&&(window.open=this.$$d_windowOpenOverrideHandler)},windowOpenOverrideHandler:function(n,t,i,r){this.$B_0(0,"LaunchPalUrl",{launchUrl:n},null)},makeEwsRequestAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");if(n.length>OSF.DDA.OutlookAppOm.$27)throw Error.argument("data",_u.ExtensibilityStrings.l_EwsRequestOversized_Text);this.$4_0(3,"makeEwsRequestAsync");var u=$h.CommonParameters.parse(r,!0,!0);var i=new $h.EwsRequest(u.$3_0);var f=this;i.onreadystatechange=function(){4===i.get_$2C_1()&&u.get_callback()(i.$R_0)};i.send(n)},recordDataPoint:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$B_0(0,"RecordDataPoint",n,null)},recordTrace:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$B_0(0,"RecordTrace",n,null)},trackCtq:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$B_0(0,"TrackCtq",n,null)},convertToLocalClientTime:function(n){var t=new Date(n.getTime());var i=t.getTimezoneOffset()*-1;if(this.$5_0&&this.$5_0.get_$1Q_0()){t.setUTCMinutes(t.getUTCMinutes()-i);i=this.$1q_0(t);t.setUTCMinutes(t.getUTCMinutes()+i)}var r=this.$r_0(t);r.timezoneOffset=i;return r},convertToUtcClientTime:function(n){var t=this.$2f_0(n);if(this.$5_0&&this.$5_0.get_$1Q_0()){var i=this.$1q_0(t);t.setUTCMinutes(t.getUTCMinutes()-i);i=n.timezoneOffset?n.timezoneOffset:t.getTimezoneOffset()*-1;t.setUTCMinutes(t.getUTCMinutes()+i)}return t},getUserIdentityTokenAsync:function(){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.$4_0(1,"getUserIdentityTokenAsync");var i=$h.CommonParameters.parse(t,!0,!0);this.$23_0(2,"GetUserIdentityToken",i.get_callback(),i.$3_0)},getCallbackTokenAsync:function(){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.$4_0(1,"getCallbackTokenAsync");var i=$h.CommonParameters.parse(t,!0,!0);this.$23_0(12,"GetCallbackToken",i.get_callback(),i.$3_0)},displayMessageForm:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("itemId");this.$B_0(8,"DisplayExistingMessageForm",{itemId:n},null)},displayAppointmentForm:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("itemId");this.$B_0(9,"DisplayExistingAppointmentForm",{itemId:n},null)},createAsyncResult:function(n,t,i,r){var f={};var u=null;f[OSF.DDA.AsyncResultEnum.Properties.Value]=n;f[OSF.DDA.AsyncResultEnum.Properties.Context]=r;if(0!==t){u={};u[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=t;u[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=i}return new OSF.DDA.AsyncResult(f,u)},standardCreateAsyncResult:function(n,t,i,r){var f={};var u=null;f[OSF.DDA.AsyncResultEnum.Properties.Value]=n;f[OSF.DDA.AsyncResultEnum.Properties.Context]=r;if(0!==t){u={};var e=$h.OutlookErrorManager.getErrorArgs(i);u[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=e.name;u[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=e.message;u[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=i}return new OSF.DDA.AsyncResult(f,u)},$4_0:function(n,t){if(this.$5_0.$D_0<n)throw Error.create(String.format(_u.ExtensibilityStrings.l_ElevatedPermissionNeededForMethod_Text,t));},$1n_0:function(n){$h.ScriptHelpers.isNullOrUndefined(n)||OSF.DDA.OutlookAppOm.$A(n.length,0,OSF.DDA.OutlookAppOm.$W,"htmlBody");this.$B_0(10,"DisplayReplyForm",{htmlBody:n},null)},$1m_0:function(n){$h.ScriptHelpers.isNullOrUndefined(n)||OSF.DDA.OutlookAppOm.$A(n.length,0,OSF.DDA.OutlookAppOm.$W,"htmlBody");this.$B_0(11,"DisplayReplyAllForm",{htmlBody:n},null)},$9_0:function(n,t,i,r,u,f){var e=this;this.$B_0(n,t,i,function(n,t){if(f){var o=null;if(Object.isInstanceOfType(t)){var i=t;if("error"in i||"data"in i||"errorCode"in i)if(i.error){var s=i.errorCode;o=e.standardCreateAsyncResult(null,1,s,u)}else{var h=r?r(i.data):i.data;o=e.standardCreateAsyncResult(h,0,0,u)}}!o&&n&&(o=e.standardCreateAsyncResult(null,1,9002,u));f(o)}})},$B_0:function(n,t,i,r){if(64===this.$X_0.get_appName())this.get_clientEndPoint().invoke(t,r,i);else if(n){var u=OSF.DDA.OutlookAppOm.$2T(n,i);var f=this;window.external.Execute(n,u,function(n,t){if(r){var i=n.toArray();var u=JSON.parse(i[0]);if(Object.isInstanceOfType(u)){var f=u;if(i.length>1&&i[1]){f.error=!0;f.errorCode=i[1]}else f.error=!1;r(t,f)}else if(Number.isInstanceOfType(u)){var e={};e.error=!0;e.errorCode=u;r(t,e)}else throw Error.notImplemented("Return data type from host must be Dictionary or int");}})}else r&&r(-2,null)},$2f_0:function(n){var t=new Date(n.year,n.month,n.date,n.hours,n.minutes,n.seconds,n.milliseconds?n.milliseconds:0);if(isNaN(t.getTime()))throw Error.format(_u.ExtensibilityStrings.l_InvalidDate_Text);return t},$r_0:function(n){var t={};t.month=n.getMonth();t.date=n.getDate();t.year=n.getFullYear();t.hours=n.getHours();t.minutes=n.getMinutes();t.seconds=n.getSeconds();t.milliseconds=n.getMilliseconds();return t},$2g_0:function(n){var i=OSF.DDA.OutlookAppOm.$2K(n.requiredAttendees,"requiredAttendees");var r=OSF.DDA.OutlookAppOm.$2K(n.optionalAttendees,"optionalAttendees");OSF.DDA.OutlookAppOm.$1W(n.location,0,OSF.DDA.OutlookAppOm.$28,"location");OSF.DDA.OutlookAppOm.$1W(n.body,0,OSF.DDA.OutlookAppOm.$W,"body");OSF.DDA.OutlookAppOm.$1W(n.subject,0,OSF.DDA.OutlookAppOm.$2A,"subject");if(!$h.ScriptHelpers.isNullOrUndefined(n.start)){OSF.DDA.OutlookAppOm.$M(n.start,Date,"start");var f=n.start;n.start=f.getTime();if(!$h.ScriptHelpers.isNullOrUndefined(n.end)){OSF.DDA.OutlookAppOm.$M(n.end,Date,"end");var u=n.end;if(u<f)throw Error.argumentOutOfRange("end",u,_u.ExtensibilityStrings.l_InvalidEventDates_Text);n.end=u.getTime()}}var t=null;if(i||r){t={};var e=n;for(var o in e){var s={key:o,value:e[o]};t[s.key]=s.value}i&&(t.requiredAttendees=i);r&&(t.optionalAttendees=r)}this.$B_0(7,"DisplayNewAppointmentForm",t||n,null)},$3V_0:function(){var n=this;$h.Item.isInstanceOfType(this.$H_0)&&(n.displayNewAppointmentForm=this.$$d_$2g_0)},$37_0:function(n,t){if(!n){this.initialize(t);this.displayName="mailbox";window.setTimeout(this.$$d_$2O_0,0)}},$2O_0:function(){this.$1X_0()},$23_0:function(n,t,i,r){if($h.ScriptHelpers.isNullOrUndefined(i))throw Error.argumentNull("callback");var u=this;this.$B_0(n,t,null,function(n,t){var f;if(n)f=u.createAsyncResult(null,1,String.format(_u.ExtensibilityStrings.l_InternalProtocolError_Text,n),r);else{var e=t;f=e.wasSuccessful?u.createAsyncResult(e.token,0,null,r):u.createAsyncResult(null,1,e.errorMessage,r)}i(f)})},$3A_0:function(){return this.$H_0},$3S_0:function(){OSF.DDA.OutlookAppOm.$J(this.$5_0.$D_0);return this.$2J_0},$30_0:function(){return this.$1k_0},$32_0:function(){OSF.DDA.OutlookAppOm.$J(this.$5_0.$D_0);return this.$5_0.get_$2i_0()},$1q_0:function(n){for(var r=this.$5_0.get_$1Q_0(),t=0;t<r.length;t++){var i=r[t];var u=parseInt(i.start);var f=parseInt(i.end);if(n.getTime()-u>=0&&n.getTime()-f<0)return parseInt(i.offset)}throw Error.format(_u.ExtensibilityStrings.l_InvalidDate_Text);},$1Y_0:function(){var n=!1;try{n=!$h.ScriptHelpers.isNullOrUndefined(_u.ExtensibilityStrings.l_EwsRequestOversized_Text)}catch(t){}return n},$3Z_0:function(n){for(var o=null,h="",c=document.getElementsByTagName("script"),s=c.length-1;s>=0;s--){var i=null;var l=c[s].attributes;if(l){var a=l.getNamedItem("src");a&&(i=a.value);if(i){var v=!1;i=i.toLowerCase();var u=i.indexOf("office_strings.js");if(u<0){u=i.indexOf("office_strings.debug.js");v=!0}if(u>0&&u<i.length){o=i.replace(v?"office_strings.debug.js":"office_strings.js","outlook_strings.js");var r=i.substring(0,u);var f=r.lastIndexOf("/",r.length-2);f===-1&&(f=r.lastIndexOf("\\",r.length-2));f!==-1&&r.length>f+1&&(h=r.substring(0,f+1));break}}}}if(o){var y=document.getElementsByTagName("head")[0];var t=null;var b=this;var e=function(){if(n&&(!t.readyState||t.readyState&&(t.readyState==="loaded"||t.readyState==="complete"))){t.onload=null;t.onreadystatechange=null;n()}};var p=this;var w=function(){if(!p.$1Y_0()){var n=h+"en-us/"+"outlook_strings.js";t.onload=null;t.onreadystatechange=null;t=p.$1h_0(n);t.onload=e;t.onreadystatechange=e;y.appendChild(t)}};t=this.$1h_0(o);t.onload=e;t.onreadystatechange=e;window.setTimeout(w,2e3);y.appendChild(t)}},$1h_0:function(n){var t=document.createElement("script");t.type="text/javascript";t.src=n;return t}};OSF.DDA.Settings=function(n){this.$1D_0=n};OSF.DDA.Settings.$2S=function(n){if(!n)return{};if(OSF.DDA.OutlookAppOm.$2.get_$c_0()===8){var t=n.SettingsKey;if(t)return OSF.DDA.SettingsManager.deserializeSettings(t)}return n};OSF.DDA.Settings.prototype={$1D_0:null,$1K_0:null,get_$N_0:function(){if(!this.$1K_0){this.$1K_0=OSF.DDA.Settings.$2S(this.$1D_0);this.$1D_0=null}return this.$1K_0},get:function(n){return this.get_$N_0()[n]},set:function(n,t){this.get_$N_0()[n]=t},remove:function(n){delete this.get_$N_0()[n]},saveAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=$h.CommonParameters.parse(i,!1);OSF.DDA.OutlookAppOm.$2.get_$c_0()===64?this.$3i_0(t.get_callback(),t.$3_0):this.$3h_0(t.get_callback(),t.$3_0)},$3h_0:function(n,t){var i=null;try{var u=OSF.DDA.SettingsManager.serializeSettings(this.get_$N_0());var f=JSON.stringify(u);var e={SettingsKey:f};OSF.DDA.RichClientSettingsManager.write(e)}catch(o){i=o}if(n){var r;r=i?OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,i.message,t):OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,0,null,t);n(r)}},$3i_0:function(n,t){var i=OSF.DDA.SettingsManager.serializeSettings(this.get_$N_0());var r=this;OSF._OfficeAppFactory.getClientEndPoint().invoke("saveSettingsAsync",function(i,r){if(n){var u;if(i)u=OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,String.format(_u.ExtensibilityStrings.l_InternalProtocolError_Text,i),t);else{var f=r;u=f.error?OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,f.errorMessage,t):OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,0,null,t)}n(u)}},[i])}};Type.registerNamespace("$h");Type.registerNamespace("Office.cast");$h.Appointment=function(n){this.$$d_$3F_2=Function.createDelegate(this,this.$3F_2);this.$$d_$1x_2=Function.createDelegate(this,this.$1x_2);this.$$d_$V_2=Function.createDelegate(this,this.$V_2);this.$$d_$3L_2=Function.createDelegate(this,this.$3L_2);this.$$d_$15_2=Function.createDelegate(this,this.$15_2);this.$$d_$12_2=Function.createDelegate(this,this.$12_2);this.$$d_$U_2=Function.createDelegate(this,this.$U_2);this.$$d_$10_2=Function.createDelegate(this,this.$10_2);this.$$d_$16_2=Function.createDelegate(this,this.$16_2);$h.Appointment.initializeBase(this,[n]);$h.InitialData.$1(this,"start",this.$$d_$16_2);$h.InitialData.$1(this,"end",this.$$d_$10_2);$h.InitialData.$1(this,"location",this.$$d_$U_2);$h.InitialData.$1(this,"optionalAttendees",this.$$d_$12_2);$h.InitialData.$1(this,"requiredAttendees",this.$$d_$15_2);$h.InitialData.$1(this,"resources",this.$$d_$3L_2);$h.InitialData.$1(this,"subject",this.$$d_$V_2);$h.InitialData.$1(this,"normalizedSubject",this.$$d_$1x_2);$h.InitialData.$1(this,"organizer",this.$$d_$3F_2)};$h.Appointment.prototype={getEntities:function(){return this.$0_0.$T_0()},getEntitiesByType:function(n){return this.$0_0.$1v_0(n)},getRegExMatches:function(){OSF.DDA.OutlookAppOm.$2.$4_0(1,"getRegExMatches");return this.$0_0.$14_0()},getFilteredEntitiesByName:function(n){return this.$0_0.$11_0(n)},getRegExMatchesByName:function(n){OSF.DDA.OutlookAppOm.$2.$4_0(1,"getRegExMatchesByName");return this.$0_0.$20_0(n)},displayReplyForm:function(n){OSF.DDA.OutlookAppOm.$2.$1n_0(n)},displayReplyAllForm:function(n){OSF.DDA.OutlookAppOm.$2.$1m_0(n)},getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},$16_2:function(){return this.$0_0.get_$2D_0()},$10_2:function(){return this.$0_0.get_$1o_0()},$U_2:function(){return this.$0_0.get_$26_0()},$12_2:function(){return this.$0_0.get_$k_0()},$15_2:function(){return this.$0_0.get_$1S_0()},$3L_2:function(){return this.$0_0.get_$3g_0()},$V_2:function(){return this.$0_0.get_$2G_0()},$1x_2:function(){return this.$0_0.get_$2B_0()},$3F_2:function(){return this.$0_0.get_$3a_0()}};$h.AppointmentCompose=function(n){this.$$d_$U_2=Function.createDelegate(this,this.$U_2);this.$$d_$10_2=Function.createDelegate(this,this.$10_2);this.$$d_$16_2=Function.createDelegate(this,this.$16_2);this.$$d_$12_2=Function.createDelegate(this,this.$12_2);this.$$d_$15_2=Function.createDelegate(this,this.$15_2);$h.AppointmentCompose.initializeBase(this,[n]);$h.InitialData.$1(this,"requiredAttendees",this.$$d_$15_2);$h.InitialData.$1(this,"optionalAttendees",this.$$d_$12_2);$h.InitialData.$1(this,"start",this.$$d_$16_2);$h.InitialData.$1(this,"end",this.$$d_$10_2);$h.InitialData.$1(this,"location",this.$$d_$U_2)};$h.AppointmentCompose.prototype={$1F_2:null,$1C_2:null,$1L_2:null,$u_2:null,$19_2:null,getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},$15_2:function(){this.$0_0.$6_0();this.$1F_2||(this.$1F_2=new $h.ComposeRecipient(0,"requiredAttendees"));return this.$1F_2},$12_2:function(){this.$0_0.$6_0();this.$1C_2||(this.$1C_2=new $h.ComposeRecipient(1,"optionalAttendees"));return this.$1C_2},$16_2:function(){this.$0_0.$6_0();this.$1L_2||(this.$1L_2=new $h.ComposeTime(1));return this.$1L_2},$10_2:function(){this.$0_0.$6_0();this.$u_2||(this.$u_2=new $h.ComposeTime(2));return this.$u_2},$U_2:function(){this.$0_0.$6_0();this.$19_2||(this.$19_2=new $h.ComposeLocation);return this.$19_2}};$h.AttachmentDetails=function(n){this.$$d_$39_0=Function.createDelegate(this,this.$39_0);this.$$d_$2q_0=Function.createDelegate(this,this.$2q_0);this.$$d_$3N_0=Function.createDelegate(this,this.$3N_0);this.$$d_$2x_0=Function.createDelegate(this,this.$2x_0);this.$$d_$3E_0=Function.createDelegate(this,this.$3E_0);this.$$d_$36_0=Function.createDelegate(this,this.$36_0);this.$0_0=n;$h.InitialData.$1(this,"id",this.$$d_$36_0);$h.InitialData.$1(this,"name",this.$$d_$3E_0);$h.InitialData.$1(this,"contentType",this.$$d_$2x_0);$h.InitialData.$1(this,"size",this.$$d_$3N_0);$h.InitialData.$1(this,"attachmentType",this.$$d_$2q_0);$h.InitialData.$1(this,"isInline",this.$$d_$39_0)};$h.AttachmentDetails.prototype={$0_0:null,$36_0:function(){return this.$0_0.id},$3E_0:function(){return this.$0_0.name},$2x_0:function(){return this.$0_0.contentType},$3N_0:function(){return this.$0_0.size},$2q_0:function(){var n=this.$0_0.attachmentType;return n<$h.AttachmentDetails.$f.length?$h.AttachmentDetails.$f[n]:Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File},$39_0:function(){return this.$0_0.isInline}};$h.ComposeBody=function(){};$h.ComposeBody.$1e=function(n,t){var i={data:n};if(t.$P_0&&t.$P_0.coercionType){var r;var u,f;if(!(f=$h.ComposeBody.$3m(t.$P_0.coercionType,u={val:r}),r=u.val,f)){t.get_callback()&&t.get_callback()(OSF.DDA.OutlookAppOm.$2.standardCreateAsyncResult(null,1,1e3,t.$3_0));return null}i.coercionType=r}else i.coercionType=0;return i};$h.ComposeBody.$3m=function(n,t){t.val=undefined;if(n===Microsoft.Office.WebExtension.CoercionType.Html)t.val=3;else if(n===Microsoft.Office.WebExtension.CoercionType.Text)t.val=0;else return!1;return!0};$h.ComposeBody.prototype={getTypeAsync:function(){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$4_0(1,"body.getTypeAsync");var i=$h.CommonParameters.parse(t,!0);OSF.DDA.OutlookAppOm.$2.$9_0(14,"GetBodyTypeAsync",null,null,i.$3_0,i.get_callback())},setSelectedDataAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$4_0(2,"body.setSelectedDataAsync");var i=$h.CommonParameters.parse(r,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);OSF.DDA.OutlookAppOm.$A(n.length,0,1e6,"data");var u=$h.ComposeBody.$1e(n,i);u&&OSF.DDA.OutlookAppOm.$2.$9_0(13,"BodySetSelectedDataAsync",u,null,i.$3_0,i.get_callback())},prependAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$4_0(2,"body.prependAsync");var i=$h.CommonParameters.parse(r,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);OSF.DDA.OutlookAppOm.$A(n.length,0,1e6,"data");var u=$h.ComposeBody.$1e(n,i);u&&OSF.DDA.OutlookAppOm.$2.$9_0(23,"BodyPrependAsync",u,null,i.$3_0,i.get_callback())}};$h.ComposeItem=function(n){this.$$d_$2t_1=Function.createDelegate(this,this.$2t_1);this.$$d_$V_1=Function.createDelegate(this,this.$V_1);$h.ComposeItem.initializeBase(this,[n]);$h.InitialData.$1(this,"subject",this.$$d_$V_1);$h.InitialData.$1(this,"body",this.$$d_$2t_1)};$h.ComposeItem.prototype={$1M_1:null,$i_1:null,addFileAttachmentAsync:function(n,t){for(var r=[],i=2;i<arguments.length;++i)r[i-2]=arguments[i];OSF.DDA.OutlookAppOm.$2.$4_0(2,"addFileAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("uri");if(!$h.ScriptHelpers.isNonEmptyString(t))throw Error.argument("attachmentName");OSF.DDA.OutlookAppOm.$A(n.length,0,2048,"uri");OSF.DDA.OutlookAppOm.$A(t.length,0,255,"attachmentName");var u=$h.CommonParameters.parse(r,!1);var f={uri:n,name:t,__timeout__:6e5};OSF.DDA.OutlookAppOm.$2.$9_0(16,"AddFileAttachmentAsync",f,null,u.$3_0,u.get_callback())},addItemAttachmentAsync:function(n,t){for(var r=[],i=2;i<arguments.length;++i)r[i-2]=arguments[i];OSF.DDA.OutlookAppOm.$2.$4_0(2,"addItemAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("itemId");if(!$h.ScriptHelpers.isNonEmptyString(t))throw Error.argument("attachmentName");OSF.DDA.OutlookAppOm.$A(n.length,0,200,"itemId");OSF.DDA.OutlookAppOm.$A(t.length,0,255,"attachmentName");var u=$h.CommonParameters.parse(r,!1);var f={itemId:n,name:t,__timeout__:6e5};OSF.DDA.OutlookAppOm.$2.$9_0(19,"AddItemAttachmentAsync",f,null,u.$3_0,u.get_callback())},removeAttachmentAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$4_0(2,"removeAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("attachmentId");OSF.DDA.OutlookAppOm.$A(n.length,0,200,"attachmentId");var r=$h.CommonParameters.parse(i,!1);OSF.DDA.OutlookAppOm.$2.$9_0(20,"RemoveAttachmentAsync",{attachmentIndex:n},null,r.$3_0,r.get_callback())},$2t_1:function(){this.$0_0.$6_0();this.$i_1||(this.$i_1=new $h.ComposeBody);return this.$i_1},$V_1:function(){this.$0_0.$6_0();this.$1M_1||(this.$1M_1=new $h.ComposeSubject);return this.$1M_1}};$h.ComposeRecipient=function(n,t){this.$1U_0=n;this.$Y_0=t};$h.ComposeRecipient.$1P=function(n,t){if(!n&&!t)throw Error.argument("recipients");if(n&&n.length>255)throw Error.argumentOutOfRange("recipients",n.length,_u.ExtensibilityStrings.l_DisplayNameTooLong_Text);if(t&&t.length>571)throw Error.argumentOutOfRange("recipients",t.length,_u.ExtensibilityStrings.l_EmailAddressTooLong_Text);};$h.ComposeRecipient.$2o=function(n){for(var i=n,r=[],t=0;t<i.length;t++){var u=new $h.EmailAddressDetails(i[t]);r[t]=u}return r};$h.ComposeRecipient.$q=function(n,t){return{address:n,name:t}};$h.ComposeRecipient.prototype={$Y_0:null,$1U_0:0,getAsync:function(){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];var i=$h.CommonParameters.parse(t,!0);OSF.DDA.OutlookAppOm.$2.$4_0(1,this.$Y_0+".getAsync");OSF.DDA.OutlookAppOm.$2.$9_0(15,"GetRecipientsAsync",{recipientField:this.$1U_0},$h.ComposeRecipient.$2o,i.$3_0,i.get_callback())},setAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$4_0(2,this.$Y_0+".setAsync");this.setAddHelper(n,i,!0)},addAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$4_0(2,this.$Y_0+".addAsync");this.setAddHelper(n,i,!1)},setAddHelper:function(n,t,i){OSF.DDA.OutlookAppOm.$A(n.length,0,100,"recipients");var e=$h.CommonParameters.parse(t,!1);var u=[];if(Array.isInstanceOfType(n))for(var r=0;r<n.length;r++)if(String.isInstanceOfType(n[r])){$h.ComposeRecipient.$1P(n[r],n[r]);u[r]=$h.ComposeRecipient.$q(n[r],n[r])}else if($h.EmailAddressDetails.isInstanceOfType(n[r])){var f=n[r];$h.ComposeRecipient.$1P(f.displayName,f.emailAddress);u[r]=$h.ComposeRecipient.$q(f.emailAddress,f.displayName)}else if(Object.isInstanceOfType(n[r])){var o=n[r];var s=o.emailAddress;var h=o.displayName;$h.ComposeRecipient.$1P(h,s);u[r]=$h.ComposeRecipient.$q(s,h)}else throw Error.argument("recipients");else throw Error.argument("recipients");var c=this;OSF.DDA.OutlookAppOm.$2.$9_0(i?21:22,i?"SetRecipientsAsync":"AddRecipientsAsync",{recipientField:this.$1U_0,recipientArray:u},function(n){return n},e.$3_0,e.get_callback())}};$h.ComposeRecipient.RecipientField=function(){};$h.ComposeRecipient.RecipientField.prototype={to:0,cc:1,bcc:2,requiredAttendees:0,optionalAttendees:1};$h.ComposeRecipient.RecipientField.registerEnum("$h.ComposeRecipient.RecipientField",!1);$h.ComposeLocation=function(){};$h.ComposeLocation.prototype={getAsync:function(){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$4_0(1,"location.getAsync");var i=$h.CommonParameters.parse(t,!0);OSF.DDA.OutlookAppOm.$2.$9_0(26,"GetLocationAsync",null,null,i.$3_0,i.get_callback())},setAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$4_0(2,"location.setAsync");var r=$h.CommonParameters.parse(i,!1);OSF.DDA.OutlookAppOm.$A(n.length,0,255,"location");OSF.DDA.OutlookAppOm.$2.$9_0(27,"SetLocationAsync",{location:n},null,r.$3_0,r.get_callback())}};$h.ComposeSubject=function(){};$h.ComposeSubject.prototype={getAsync:function(){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];var i=$h.CommonParameters.parse(t,!0);OSF.DDA.OutlookAppOm.$2.$4_0(1,"subject.getAsync");OSF.DDA.OutlookAppOm.$2.$9_0(18,"GetSubjectAsync",null,null,i.$3_0,i.get_callback())},setAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];var r=$h.CommonParameters.parse(i,!1);OSF.DDA.OutlookAppOm.$2.$4_0(2,"subject.setAsync");if(!String.isInstanceOfType(n))throw Error.argument("data");OSF.DDA.OutlookAppOm.$A(n.length,0,255,"data");OSF.DDA.OutlookAppOm.$2.$9_0(17,"SetSubjectAsync",{subject:n},null,r.$3_0,r.get_callback())}};$h.ComposeTime=function(n){this.$$d_$3l_0=Function.createDelegate(this,this.$3l_0);this.$Z_0=n};$h.ComposeTime.prototype={$Z_0:0,getAsync:function(){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$4_0(1,this.$1y_0()+".getAsync");var i=$h.CommonParameters.parse(t,!0);OSF.DDA.OutlookAppOm.$2.$9_0(24,"GetTimeAsync",{TimeProperty:this.$Z_0},this.$$d_$3l_0,i.$3_0,i.get_callback())},setAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$4_0(2,this.$1y_0()+".setAsync");if(!Date.isInstanceOfType(n))throw Error.argumentType("dateTime",Object.getType(n),Date);var r=$h.CommonParameters.parse(i,!1);OSF.DDA.OutlookAppOm.$2.$9_0(25,"SetTimeAsync",{TimeProperty:this.$Z_0,time:n.getTime()},null,r.$3_0,r.get_callback())},$3l_0:function(n){var t=n;return new Date(t)},$1y_0:function(){return this.$Z_0===1?"start":"end"}};$h.ComposeTime.TimeType=function(){};$h.ComposeTime.TimeType.prototype={start:1,end:2};$h.ComposeTime.TimeType.registerEnum("$h.ComposeTime.TimeType",!1);$h.Contact=function(n){this.$$d_$2w_0=Function.createDelegate(this,this.$2w_0);this.$$d_$w_0=Function.createDelegate(this,this.$w_0);this.$$d_$17_0=Function.createDelegate(this,this.$17_0);this.$$d_$z_0=Function.createDelegate(this,this.$z_0);this.$$d_$13_0=Function.createDelegate(this,this.$13_0);this.$$d_$2u_0=Function.createDelegate(this,this.$2u_0);this.$$d_$3I_0=Function.createDelegate(this,this.$3I_0);this.$0_0=n;$h.InitialData.$1(this,"personName",this.$$d_$3I_0);$h.InitialData.$1(this,"businessName",this.$$d_$2u_0);$h.InitialData.$1(this,"phoneNumbers",this.$$d_$13_0);$h.InitialData.$1(this,"emailAddresses",this.$$d_$z_0);$h.InitialData.$1(this,"urls",this.$$d_$17_0);$h.InitialData.$1(this,"addresses",this.$$d_$w_0);$h.InitialData.$1(this,"contactString",this.$$d_$2w_0)};$h.Contact.prototype={$0_0:null,$L_0:null,$3I_0:function(){return this.$0_0.PersonName},$2u_0:function(){return this.$0_0.BusinessName},$w_0:function(){return $h.Entities.$F(this.$0_0,"Addresses")},$z_0:function(){return $h.Entities.$F(this.$0_0,"EmailAddresses")},$17_0:function(){return $h.Entities.$F(this.$0_0,"Urls")},$13_0:function(){if(!this.$L_0){var n=this;this.$L_0=$h.Entities.$3r($h.PhoneNumber,this.$0_0,"PhoneNumbers",function(n){return new $h.PhoneNumber(n)})}return this.$L_0},$2w_0:function(){return this.$0_0.ContactString}};$h.CustomProperties=function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");if(Array.isInstanceOfType(n)){var t=n;if(t.length>0)this.$0_0=t[0];else throw Error.argument("data");}else this.$0_0=n};$h.CustomProperties.prototype={$0_0:null,get:function(n){var i=this.$0_0[n];if(typeof i=="string"){var t=i;if(t.length>6&&t.startsWith("Date(")&&t.endsWith(")")){var f=t.substring(5,t.length-1);var r=parseInt(f);if(!isNaN(r)){var u=new Date(r);u&&(i=u)}}}return i},set:function(n,t){OSF.OUtil.isDate(t)&&(t="Date("+t.getTime()+")");this.$0_0[n]=t},remove:function(n){delete this.$0_0[n]},saveAsync:function(){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];var r=2500;if(JSON.stringify(this.$0_0).length>r)throw Error.argument();var i=$h.CommonParameters.parse(t,!1,!0);var u=new $h.SaveDictionaryRequest(i.get_callback(),i.$3_0);u.$1J_0(4,"SaveCustomProperties",{customProperties:this.$0_0})}};$h.Diagnostics=function(n,t){this.$$d_$3H_0=Function.createDelegate(this,this.$3H_0);this.$$d_$35_0=Function.createDelegate(this,this.$35_0);this.$$d_$34_0=Function.createDelegate(this,this.$34_0);this.$0_0=n;this.$Q_0=t;$h.InitialData.$1(this,"hostName",this.$$d_$34_0);$h.InitialData.$1(this,"hostVersion",this.$$d_$35_0);64===this.$Q_0&&$h.InitialData.$1(this,"OWAView",this.$$d_$3H_0)};$h.Diagnostics.prototype={$0_0:null,$Q_0:0,$34_0:function(){if(8===this.$Q_0)return"Outlook";else if(64===this.$Q_0)return"OutlookWebApp";return null},$35_0:function(){return this.$0_0.get_$3T_0()},$3H_0:function(){return this.$0_0.get_$3c_0()}};$h.EmailAddressDetails=function(n){this.$$d_$1z_0=Function.createDelegate(this,this.$1z_0);this.$$d_$1r_0=Function.createDelegate(this,this.$1r_0);this.$$d_$x_0=Function.createDelegate(this,this.$x_0);this.$$d_$y_0=Function.createDelegate(this,this.$y_0);this.$0_0=n;$h.InitialData.$1(this,"emailAddress",this.$$d_$y_0);$h.InitialData.$1(this,"displayName",this.$$d_$x_0);$h.ScriptHelpers.dictionaryContainsKey(n,"appointmentResponse")&&$h.InitialData.$1(this,"appointmentResponse",this.$$d_$1r_0);$h.ScriptHelpers.dictionaryContainsKey(n,"recipientType")&&$h.InitialData.$1(this,"recipientType",this.$$d_$1z_0)};$h.EmailAddressDetails.$1d=function(n){var t={};var i=n.Name;var r=n.UserId;t.name=i||$h.EmailAddressDetails.$t;t.address=r||$h.EmailAddressDetails.$t;return new $h.EmailAddressDetails(t)};$h.EmailAddressDetails.prototype={$0_0:null,toJSON:function(){var n={};n.emailAddress=this.$y_0();n.displayName=this.$x_0();$h.ScriptHelpers.dictionaryContainsKey(this.$0_0,"appointmentResponse")&&(n.appointmentResponse=this.$1r_0());$h.ScriptHelpers.dictionaryContainsKey(this.$0_0,"recipientType")&&(n.recipientType=this.$1z_0());return n},$y_0:function(){return this.$0_0.address},$x_0:function(){return this.$0_0.name},$1r_0:function(){var n=this.$0_0.appointmentResponse;return n<$h.EmailAddressDetails.$1I.length?$h.EmailAddressDetails.$1I[n]:Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None},$1z_0:function(){var n=this.$0_0.recipientType;return n<$h.EmailAddressDetails.$1E.length?$h.EmailAddressDetails.$1E[n]:Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other}};$h.Entities=function(n,t,i,r){this.$$d_$2W_0=Function.createDelegate(this,this.$2W_0);this.$$d_$1t_0=Function.createDelegate(this,this.$1t_0);this.$$d_$13_0=Function.createDelegate(this,this.$13_0);this.$$d_$17_0=Function.createDelegate(this,this.$17_0);this.$$d_$z_0=Function.createDelegate(this,this.$z_0);this.$$d_$1w_0=Function.createDelegate(this,this.$1w_0);this.$$d_$21_0=Function.createDelegate(this,this.$21_0);this.$$d_$w_0=Function.createDelegate(this,this.$w_0);this.$0_0=n||{};this.$1p_0=t||{};this.$O_0=i;$h.InitialData.$1(this,"addresses",this.$$d_$w_0);$h.InitialData.$1(this,"taskSuggestions",this.$$d_$21_0);$h.InitialData.$1(this,"meetingSuggestions",this.$$d_$1w_0);$h.InitialData.$1(this,"emailAddresses",this.$$d_$z_0);$h.InitialData.$1(this,"urls",this.$$d_$17_0);$h.InitialData.$1(this,"phoneNumbers",this.$$d_$13_0);$h.InitialData.$1(this,"contacts",this.$$d_$1t_0);this.$D_0=r};$h.Entities.$3r=function(n,t,i,r,u,f){var o=null;var e=t[i];if(!e)return new Array(0);u&&(e=$h.Entities.$3s(Object,e,$h.Entities.$2h,f));o=new Array(e.length);for(var c=0,h=e,l=h.length,s=0;s<l;++s){var a=h[s];o[c++]=r(a)}return o};$h.Entities.$F=function(n,t,i){var r=n[t];if(!r)return new Array(0);i&&(r=$h.Entities.$3s(String,r,$h.Entities.$3k,null));return r};$h.Entities.$1b=function(n){return new $h.Contact(n)};$h.Entities.$1i=function(n){return new $h.TaskSuggestion(n)};$h.Entities.$1f=function(n){return new $h.PhoneNumber(n)};$h.Entities.$2h=function(n,t,i){return n===t?!0:!n||!t?!1:n[i]===t[i]?!0:!1};$h.Entities.$3k=function(n,t,i){return n===t};$h.Entities.$3s=function(n,t,i,r){for(var u=t.length-1;u>=0;u--){for(var e=!1,f=u-1;f>=0;f--)if(i(t[u],t[f],r)){e=!0;break}e&&Array.removeAt(t,u)}return t};$h.Entities.prototype={$O_0:null,$0_0:null,$1p_0:null,$E_0:null,$D_0:0,$1N_0:null,$1A_0:null,$L_0:null,$n_0:null,$a_0:null,$s_0:null,$1V_0:null,$2v_0:function(n){if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.MeetingSuggestion)return this.$1w_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.TaskSuggestion)return this.$21_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Address)return this.$w_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.PhoneNumber)return this.$13_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.EmailAddress)return this.$z_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Url)return this.$17_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Contact)return this.$1t_0();return null},$11_0:function(n){this.$E_0||(this.$E_0={});if(!$h.ScriptHelpers.dictionaryContainsKey(this.$E_0,n)){for(var r=!1,i=0;i<$h.Entities.$b.length;i++){var u=$h.Entities.$b[i];var t=this.$1p_0[u];if(t&&$h.ScriptHelpers.dictionaryContainsKey(t,n)){switch(u){case"EmailAddresses":case"Urls":this.$E_0[n]=$h.Entities.$F(t,n);break;case"Addresses":this.$E_0[n]=$h.Entities.$F(t,n,!0);break;case"PhoneNumbers":this.$E_0[n]=$h.Entities.$3r($h.PhoneNumber,t,n,$h.Entities.$1f,!1,null);break;case"TaskSuggestions":this.$E_0[n]=$h.Entities.$3r($h.TaskSuggestion,t,n,$h.Entities.$1i,!0,"TaskString");break;case"MeetingSuggestions":this.$E_0[n]=$h.Entities.$3r($h.MeetingSuggestion,t,n,this.$$d_$2W_0,!0,"MeetingString");break;case"Contacts":this.$E_0[n]=$h.Entities.$3r($h.Contact,t,n,$h.Entities.$1b,!0,"ContactString");break}r=!0;break}}r||(this.$E_0[n]=null)}return this.$E_0[n]},$2W_0:function(n){return new $h.MeetingSuggestion(n,this.$O_0)},$w_0:function(){this.$a_0||(this.$a_0=$h.Entities.$F(this.$0_0,"Addresses",!0));return this.$a_0},$z_0:function(){OSF.DDA.OutlookAppOm.$J(this.$D_0);this.$s_0||(this.$s_0=$h.Entities.$F(this.$0_0,"EmailAddresses",!1));return this.$s_0},$17_0:function(){this.$1V_0||(this.$1V_0=$h.Entities.$F(this.$0_0,"Urls",!1));return this.$1V_0},$13_0:function(){this.$L_0||(this.$L_0=$h.Entities.$3r($h.PhoneNumber,this.$0_0,"PhoneNumbers",$h.Entities.$1f));return this.$L_0},$21_0:function(){OSF.DDA.OutlookAppOm.$J(this.$D_0);this.$1N_0||(this.$1N_0=$h.Entities.$3r($h.TaskSuggestion,this.$0_0,"TaskSuggestions",$h.Entities.$1i,!0,"TaskString"));return this.$1N_0},$1w_0:function(){OSF.DDA.OutlookAppOm.$J(this.$D_0);this.$1A_0||(this.$1A_0=$h.Entities.$3r($h.MeetingSuggestion,this.$0_0,"MeetingSuggestions",this.$$d_$2W_0,!0,"MeetingString"));return this.$1A_0},$1t_0:function(){OSF.DDA.OutlookAppOm.$J(this.$D_0);this.$n_0||(this.$n_0=$h.Entities.$3r($h.Contact,this.$0_0,"Contacts",$h.Entities.$1b,!0,"ContactString"));return this.$n_0}};Office.cast.item=function(){};Office.cast.item.toItemRead=function(n){if($h.Item.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toItemCompose=function(n){if($h.ComposeItem.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMessage=function(n){return Office.cast.item.toMessageRead(n)};Office.cast.item.toMessageRead=function(n){if($h.Message.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMessageCompose=function(n){if($h.MessageCompose.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMeetingRequest=function(n){if($h.MeetingRequest.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toAppointment=function(n){return Office.cast.item.toAppointmentRead(n)};Office.cast.item.toAppointmentRead=function(n){if($h.Appointment.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toAppointmentCompose=function(n){if($h.AppointmentCompose.isInstanceOfType(n))return n;throw Error.argumentType();};$h.Item=function(n){this.$$d_$2p_1=Function.createDelegate(this,this.$2p_1);this.$$d_$3B_1=Function.createDelegate(this,this.$3B_1);this.$$d_$3C_1=Function.createDelegate(this,this.$3C_1);this.$$d_$2z_1=Function.createDelegate(this,this.$2z_1);this.$$d_$2y_1=Function.createDelegate(this,this.$2y_1);$h.Item.initializeBase(this,[n]);$h.InitialData.$1(this,"dateTimeCreated",this.$$d_$2y_1);$h.InitialData.$1(this,"dateTimeModified",this.$$d_$2z_1);$h.InitialData.$1(this,"itemId",this.$$d_$3C_1);$h.InitialData.$1(this,"itemClass",this.$$d_$3B_1);$h.InitialData.$1(this,"attachments",this.$$d_$2p_1)};$h.Item.prototype={$3C_1:function(){return this.$0_0.get_$3Y_0()},$3B_1:function(){return this.$0_0.get_$3X_0()},$2y_1:function(){return this.$0_0.get_$2Y_0()},$2z_1:function(){return this.$0_0.get_$2Z_0()},$2p_1:function(){return this.$0_0.get_$2M_0()}};$h.ItemBase=function(n){this.$$d_$2V_0=Function.createDelegate(this,this.$2V_0);this.$$d_getItemType=Function.createDelegate(this,this.getItemType);this.$0_0=n;$h.InitialData.$1(this,"itemType",this.$$d_getItemType)};$h.ItemBase.prototype={$0_0:null,get_data:function(){return this.$0_0},loadCustomPropertiesAsync:function(){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];var i=$h.CommonParameters.parse(t,!0,!0);var r=new $h.LoadDictionaryRequest(this.$$d_$2V_0,"customProperties",i.get_callback(),i.$3_0);r.$1J_0(3,"LoadCustomProperties",{})},$2V_0:function(n){return new $h.CustomProperties(n)}};$h.MeetingRequest=function(n){this.$$d_$15_3=Function.createDelegate(this,this.$15_3);this.$$d_$12_3=Function.createDelegate(this,this.$12_3);this.$$d_$U_3=Function.createDelegate(this,this.$U_3);this.$$d_$10_3=Function.createDelegate(this,this.$10_3);this.$$d_$16_3=Function.createDelegate(this,this.$16_3);$h.MeetingRequest.initializeBase(this,[n]);$h.InitialData.$1(this,"start",this.$$d_$16_3);$h.InitialData.$1(this,"end",this.$$d_$10_3);$h.InitialData.$1(this,"location",this.$$d_$U_3);$h.InitialData.$1(this,"optionalAttendees",this.$$d_$12_3);$h.InitialData.$1(this,"requiredAttendees",this.$$d_$15_3)};$h.MeetingRequest.prototype={$16_3:function(){return this.$0_0.get_$2D_0()},$10_3:function(){return this.$0_0.get_$1o_0()},$U_3:function(){return this.$0_0.get_$26_0()},$12_3:function(){return this.$0_0.get_$k_0()},$15_3:function(){return this.$0_0.get_$1S_0()}};$h.MeetingSuggestion=function(n,t){this.$$d_$31_0=Function.createDelegate(this,this.$31_0);this.$$d_$3O_0=Function.createDelegate(this,this.$3O_0);this.$$d_$V_0=Function.createDelegate(this,this.$V_0);this.$$d_$U_0=Function.createDelegate(this,this.$U_0);this.$$d_$2r_0=Function.createDelegate(this,this.$2r_0);this.$$d_$3D_0=Function.createDelegate(this,this.$3D_0);this.$0_0=n;this.$O_0=t;$h.InitialData.$1(this,"meetingString",this.$$d_$3D_0);$h.InitialData.$1(this,"attendees",this.$$d_$2r_0);$h.InitialData.$1(this,"location",this.$$d_$U_0);$h.InitialData.$1(this,"subject",this.$$d_$V_0);$h.InitialData.$1(this,"start",this.$$d_$3O_0);$h.InitialData.$1(this,"end",this.$$d_$31_0)};$h.MeetingSuggestion.prototype={$O_0:null,$0_0:null,$g_0:null,$3D_0:function(){return this.$0_0.MeetingString},$U_0:function(){return this.$0_0.Location},$V_0:function(){return this.$0_0.Subject},$3O_0:function(){var n=this.$1c_0("StartTime");var t=$h.MeetingSuggestionTimeDecoder.resolve(n,this.$O_0);return t.getTime()!==n.getTime()?OSF.DDA.OutlookAppOm.$2.convertToUtcClientTime(OSF.DDA.OutlookAppOm.$2.$r_0(t)):n},$31_0:function(){var n=this.$1c_0("EndTime");var t=$h.MeetingSuggestionTimeDecoder.resolve(n,this.$O_0);return t.getTime()!==n.getTime()?OSF.DDA.OutlookAppOm.$2.convertToUtcClientTime(OSF.DDA.OutlookAppOm.$2.$r_0(t)):n},$1c_0:function(n){var t=this.$0_0[n];return t?new Date(t):null},$2r_0:function(){if(!this.$g_0){var n=this;this.$g_0=$h.Entities.$3r($h.EmailAddressDetails,this.$0_0,"Attendees",function(n){return $h.EmailAddressDetails.$1d(n)})}return this.$g_0}};$h.MeetingSuggestionTimeDecoder=function(){};$h.MeetingSuggestionTimeDecoder.resolve=function(n,t){if(!t)return n;try{var u;var r;var i;var f=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0);var e,o,s;if(s=$h.MeetingSuggestionTimeDecoder.$2c(n,e={val:i},o={val:u}),i=e.val,u=o.val,s){r=$h.PreciseDate.isInstanceOfType(i)?$h.MeetingSuggestionTimeDecoder.$3e(f,i):$h.RelativeDate.isInstanceOfType(i)?$h.MeetingSuggestionTimeDecoder.$3f(f,i):f;if(isNaN(r.getTime()))return t;r.setMilliseconds(r.getMilliseconds()+u);return r}else return n}catch(h){return t}};$h.MeetingSuggestionTimeDecoder.$24=function(n){return null===n||n===undefined};$h.MeetingSuggestionTimeDecoder.$3e=function(n,t){var r=t.$2L_1;var u=t.$1B_1?t.$1B_1-1:n.getMonth();var f=t.$1j_1;if(!f)return n;var i;if($h.MeetingSuggestionTimeDecoder.$24(r)){i=new Date(n.getFullYear(),u,f);i.getTime()<n.getTime()&&(i=new Date(n.getFullYear()+1,u,f))}else i=new Date(r<50?2e3+r:1900+r,u,f);return i.getMonth()!==u?n:i};$h.MeetingSuggestionTimeDecoder.$3f=function(n,t){var i;switch(t.$2H_1){case 0:i=new Date(n.getFullYear(),n.getMonth(),n.getDate());i.setDate(i.getDate()+t.$C_1);return i;case 5:return $h.MeetingSuggestionTimeDecoder.$2j(n,t.$C_1,t.$I_1);case 2:var r=1;switch(t.$K_1){case 1:break;case 2:r=16;break;default:t.$C_1||(r=n.getDate());break}i=new Date(n.getFullYear(),n.getMonth(),r);i.setMonth(i.getMonth()+t.$C_1);i.getTime()<n.getTime()&&i.setDate(i.getDate()+n.getDate()-1);return i;case 1:i=new Date(n.getFullYear(),n.getMonth(),n.getDate());i.setDate(n.getDate()+7*t.$C_1);if(t.$K_1!==1&&t.$K_1){if(t.$K_1===2){i.setDate(i.getDate()+5-i.getDay());return i}}else{i.setDate(i.getDate()+1-i.getDay());return i.getTime()<n.getTime()?n:i}break;case 4:return $h.MeetingSuggestionTimeDecoder.$2k(n,t);case 3:if(t.$C_1>0)return new Date(n.getFullYear()+t.$C_1,0,1);break;default:break}return n};$h.MeetingSuggestionTimeDecoder.$2j=function(n,t,i){if(t>-5&&t<5){var u;var f;u=(i+6)%7+1;f=7*t+(u-n.getDay());n.setDate(n.getDate()+f);return n}else{var r=(i-n.getDay())%7;r<0&&(r+=7);n.setDate(n.getDate()+r);return n}};$h.MeetingSuggestionTimeDecoder.$2k=function(n,t){var u;var i;var r;u=n;if(t.$I_1<=0||t.$I_1>12||t.$C_1<=0||t.$C_1>5)return n;var e=(12+t.$I_1-u.getMonth()-1)%12;i=new Date(u.getFullYear(),u.getMonth()+e,1);if(t.$K_1===1)if(t.$C_1===1&&i.getDay()!==6&&i.getDay()!==0)return i;else{r=new Date(i.getFullYear(),i.getMonth(),i.getDate());r.setDate(r.getDate()+(8-i.getDay())%7);i.getDay()!==6&&i.getDay()!==0&&i.getDay()!==1&&r.setDate(r.getDate()-7);r.setDate(r.getDate()+7*(t.$C_1-1));return r.getMonth()+1!==t.$I_1?n:r}else{r=new Date(i.getFullYear(),i.getMonth(),$h.MeetingSuggestionTimeDecoder.$2b(i.getMonth(),i.getFullYear()));var f=1-r.getDay();f>0&&(f=f-7);r.setDate(r.getDate()+f);r.setDate(r.getDate()+7*(1-t.$C_1));return r.getMonth()+1!==t.$I_1?i.getDay()!==6&&i.getDay()!==0?i:n:r}};$h.MeetingSuggestionTimeDecoder.$2c=function(n,t,i){var u=32767;t.val=null;i.val=0;if(!n)return!1;i.val=$h.MeetingSuggestionTimeDecoder.$3Q(n);var f=n.getTime()-i.val;var r=(f-$h.MeetingSuggestionTimeDecoder.$1Z.getTime())/864e5;if(r<0)return!1;else if(r>=262144)return!1;else{var e=r>>15;r=r&u;switch(e){case 0:return $h.MeetingSuggestionTimeDecoder.$2d(r,t);case 1:return $h.MeetingSuggestionTimeDecoder.$2e(r,t);default:return!1}}};$h.MeetingSuggestionTimeDecoder.$2d=function(n,t){var o=7;var u=15;var s=31;var h=127;var f=null;var r=0;var e=0;t.val=null;var i=n>>12&o;if((i&4)==4){f=n>>5&h;if((i&2)==2){if((i&1)==1)return!1;r=n>>1&u}}else{(i&2)==2&&(r=n>>8&u);(i&1)==1&&(e=n>>3&s)}t.val=new $h.PreciseDate(e,r,f);return!0};$h.MeetingSuggestionTimeDecoder.$2e=function(n,t){var i=15;var r=63;var u=7;var f=3;var e=n&i;n>>=4;var o=$h.MeetingSuggestionTimeDecoder.$2m(n&r,6);n>>=6;var s=n&u;n>>=3;var h=n&f;try{t.val=new $h.RelativeDate(h,o,s,e);return!0}catch(c){t.val=null;return!1}};$h.MeetingSuggestionTimeDecoder.$2m=function(n,t){var i=1<<t-1;var r=(1<<t)-1;return(n&i)===i?-((n^r)+1):n};$h.MeetingSuggestionTimeDecoder.$2b=function(n,t){return 32-new Date(t,n,32).getDate()};$h.MeetingSuggestionTimeDecoder.$3Q=function(n){var t=0;t+=n.getUTCHours()*3600;t+=n.getUTCMinutes()*60;t+=n.getUTCSeconds();t*=1e3;t+=n.getUTCMilliseconds();return t};$h.ExtractedDate=function(){};$h.PreciseDate=function(n,t,i){$h.PreciseDate.initializeBase(this);this.$1j_1=n;this.$1B_1=t;$h.MeetingSuggestionTimeDecoder.$24(i)||(this.$2L_1=i%100)};$h.PreciseDate.prototype={$1j_1:0,$1B_1:0,$2L_1:null};$h.RelativeDate=function(n,t,i,r){$h.RelativeDate.initializeBase(this);this.$K_1=n;this.$C_1=t;this.$2H_1=i;this.$I_1=r};$h.RelativeDate.prototype={$K_1:0,$C_1:0,$2H_1:0,$I_1:0};$h.Message=function(n){this.$$d_$1u_2=Function.createDelegate(this,this.$1u_2);this.$$d_$38_2=Function.createDelegate(this,this.$38_2);this.$$d_$1s_2=Function.createDelegate(this,this.$1s_2);this.$$d_$22_2=Function.createDelegate(this,this.$22_2);this.$$d_$33_2=Function.createDelegate(this,this.$33_2);this.$$d_$3M_2=Function.createDelegate(this,this.$3M_2);this.$$d_$1x_2=Function.createDelegate(this,this.$1x_2);this.$$d_$V_2=Function.createDelegate(this,this.$V_2);$h.Message.initializeBase(this,[n]);$h.InitialData.$1(this,"subject",this.$$d_$V_2);$h.InitialData.$1(this,"normalizedSubject",this.$$d_$1x_2);$h.InitialData.$1(this,"sender",this.$$d_$3M_2);$h.InitialData.$1(this,"from",this.$$d_$33_2);$h.InitialData.$1(this,"to",this.$$d_$22_2);$h.InitialData.$1(this,"cc",this.$$d_$1s_2);$h.InitialData.$1(this,"internetMessageId",this.$$d_$38_2);$h.InitialData.$1(this,"conversationId",this.$$d_$1u_2)};$h.Message.prototype={getEntities:function(){return this.$0_0.$T_0()},getEntitiesByType:function(n){return this.$0_0.$1v_0(n)},getFilteredEntitiesByName:function(n){return this.$0_0.$11_0(n)},getRegExMatches:function(){OSF.DDA.OutlookAppOm.$2.$4_0(1,"getRegExMatches");return this.$0_0.$14_0()},getRegExMatchesByName:function(n){OSF.DDA.OutlookAppOm.$2.$4_0(1,"getRegExMatchesByName");return this.$0_0.$20_0(n)},displayReplyForm:function(n){OSF.DDA.OutlookAppOm.$2.$1n_0(n)},displayReplyAllForm:function(n){OSF.DDA.OutlookAppOm.$2.$1m_0(n)},getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},$V_2:function(){return this.$0_0.get_$2G_0()},$1x_2:function(){return this.$0_0.get_$2B_0()},$3M_2:function(){return this.$0_0.get_$3j_0()},$33_2:function(){return this.$0_0.get_$2l_0()},$22_2:function(){return this.$0_0.get_$1S_0()},$1s_2:function(){return this.$0_0.get_$k_0()},$38_2:function(){return this.$0_0.get_$3W_0()},$1u_2:function(){return this.$0_0.get_$1a_0()}};$h.MessageCompose=function(n){this.$$d_$1u_2=Function.createDelegate(this,this.$1u_2);this.$$d_$2s_2=Function.createDelegate(this,this.$2s_2);this.$$d_$1s_2=Function.createDelegate(this,this.$1s_2);this.$$d_$22_2=Function.createDelegate(this,this.$22_2);$h.MessageCompose.initializeBase(this,[n]);$h.InitialData.$1(this,"to",this.$$d_$22_2);$h.InitialData.$1(this,"cc",this.$$d_$1s_2);$h.InitialData.$1(this,"bcc",this.$$d_$2s_2);$h.InitialData.$1(this,"conversationId",this.$$d_$1u_2)};$h.MessageCompose.prototype={$1R_2:null,$j_2:null,$h_2:null,getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},$22_2:function(){this.$0_0.$6_0();this.$1R_2||(this.$1R_2=new $h.ComposeRecipient(0,"to"));return this.$1R_2},$1s_2:function(){this.$0_0.$6_0();this.$j_2||(this.$j_2=new $h.ComposeRecipient(1,"cc"));return this.$j_2},$2s_2:function(){this.$0_0.$6_0();this.$h_2||(this.$h_2=new $h.ComposeRecipient(2,"bcc"));return this.$h_2},$1u_2:function(){return this.$0_0.get_$1a_0()}};$h.OutlookErrorManager=function(){};$h.OutlookErrorManager.getErrorArgs=function(n){$h.OutlookErrorManager.$18||$h.OutlookErrorManager.$3U();return OSF.DDA.ErrorCodeManager.getErrorArgs(n)};$h.OutlookErrorManager.$3U=function(){$h.OutlookErrorManager.$8(9e3,"AttachmentSizeExceeded",_u.ExtensibilityStrings.l_AttachmentExceededSize_Text);$h.OutlookErrorManager.$8(9001,"NumberOfAttachmentsExceeded",_u.ExtensibilityStrings.l_ExceededMaxNumberOfAttachments_Text);$h.OutlookErrorManager.$8(9002,"InternalFormatError",_u.ExtensibilityStrings.l_InternalFormatError_Text);$h.OutlookErrorManager.$8(9003,"InvalidAttachmentId",_u.ExtensibilityStrings.l_InvalidAttachmentId_Text);$h.OutlookErrorManager.$8(9004,"InvalidAttachmentPath",_u.ExtensibilityStrings.l_InvalidAttachmentPath_Text);$h.OutlookErrorManager.$8(9005,"CannotAddAttachmentBeforeUpgrade",_u.ExtensibilityStrings.l_CannotAddAttachmentBeforeUpgrade_Text);$h.OutlookErrorManager.$8(9006,"AttachmentDeletedBeforeUploadCompletes",_u.ExtensibilityStrings.l_AttachmentDeletedBeforeUploadCompletes_Text);$h.OutlookErrorManager.$8(9007,"AttachmentUploadGeneralFailure",_u.ExtensibilityStrings.l_AttachmentUploadGeneralFailure_Text);$h.OutlookErrorManager.$8(9008,"AttachmentToDeleteDoesNotExist",_u.ExtensibilityStrings.l_DeleteAttachmentDoesNotExist_Text);$h.OutlookErrorManager.$8(9009,"AttachmentDeleteGeneralFailure",_u.ExtensibilityStrings.l_AttachmentDeleteGeneralFailure_Text);$h.OutlookErrorManager.$8(9010,"InvalidEndTime",_u.ExtensibilityStrings.l_InvalidEndTime_Text);$h.OutlookErrorManager.$8(9011,"HtmlSanitizationFailure",_u.ExtensibilityStrings.l_HtmlSanitizationFailure_Text);$h.OutlookErrorManager.$8(9012,"NumberOfRecipientsExceeded",String.format(_u.ExtensibilityStrings.l_NumberOfRecipientsExceeded_Text,100));$h.OutlookErrorManager.$8(9013,"NoValidRecipientsProvided",_u.ExtensibilityStrings.l_NoValidRecipientsProvided_Text);$h.OutlookErrorManager.$8(9014,"CursorPositionChanged",_u.ExtensibilityStrings.l_CursorPositionChanged_Text);$h.OutlookErrorManager.$18=!0};$h.OutlookErrorManager.$8=function(n,t,i){OSF.DDA.ErrorCodeManager.addErrorMessage(n,{name:t,message:i})};$h.OutlookErrorManager.OutlookErrorCodes=function(){};$h.OutlookErrorManager.OsfDdaErrorCodes=function(){};$h.PhoneNumber=function(n){this.$$d_$3K_0=Function.createDelegate(this,this.$3K_0);this.$$d_$3G_0=Function.createDelegate(this,this.$3G_0);this.$$d_$3J_0=Function.createDelegate(this,this.$3J_0);this.$0_0=n;$h.InitialData.$1(this,"phoneString",this.$$d_$3J_0);$h.InitialData.$1(this,"originalPhoneString",this.$$d_$3G_0);$h.InitialData.$1(this,"type",this.$$d_$3K_0)};$h.PhoneNumber.prototype={$0_0:null,$3J_0:function(){return this.$0_0.PhoneString},$3G_0:function(){return this.$0_0.OriginalPhoneString},$3K_0:function(){return this.$0_0.Type}};$h.TaskSuggestion=function(n){this.$$d_$2n_0=Function.createDelegate(this,this.$2n_0);this.$$d_$3P_0=Function.createDelegate(this,this.$3P_0);this.$0_0=n;$h.InitialData.$1(this,"taskString",this.$$d_$3P_0);$h.InitialData.$1(this,"assignees",this.$$d_$2n_0)};$h.TaskSuggestion.prototype={$0_0:null,$d_0:null,$3P_0:function(){return this.$0_0.TaskString},$2n_0:function(){if(!this.$d_0){var n=this;this.$d_0=$h.Entities.$3r($h.EmailAddressDetails,this.$0_0,"Assignees",function(n){return $h.EmailAddressDetails.$1d(n)})}return this.$d_0}};$h.UserProfile=function(n){this.$$d_$3R_0=Function.createDelegate(this,this.$3R_0);this.$$d_$y_0=Function.createDelegate(this,this.$y_0);this.$$d_$x_0=Function.createDelegate(this,this.$x_0);this.$0_0=n;$h.InitialData.$1(this,"displayName",this.$$d_$x_0);$h.InitialData.$1(this,"emailAddress",this.$$d_$y_0);$h.InitialData.$1(this,"timeZone",this.$$d_$3R_0)};$h.UserProfile.prototype={$0_0:null,$x_0:function(){return this.$0_0.get_$3o_0()},$y_0:function(){return this.$0_0.get_$3p_0()},$3R_0:function(){return this.$0_0.get_$3q_0()}};$h.RequestState=function(){};$h.RequestState.prototype={unsent:0,opened:1,headersReceived:2,loading:3,done:4};$h.RequestState.registerEnum("$h.RequestState",!1);$h.CommonParameters=function(n,t,i){this.$P_0=n;this.$G_0=t;this.$3_0=i};$h.CommonParameters.parse=function(n,t,i){var f;var o,s;if(i&&(s=$h.CommonParameters.$3n(n,o={val:f}),f=o.val,s))return f;var e=n.length;var r=null;var u=null;var h=null;if(e===1)if(Function.isInstanceOfType(n[0]))u=n[0];else if(Object.isInstanceOfType(n[0]))r=n[0];else throw Error.argumentType();else if(e===2){if(!Object.isInstanceOfType(n[0]))throw Error.argument("options");if(!Function.isInstanceOfType(n[1]))throw Error.argument("callback");r=n[0];u=n[1]}else if(e)throw Error.parameterCount(_u.ExtensibilityStrings.l_ParametersNotAsExpected_Text);if(t&&!u)throw Error.argumentNull("callback");r&&!$h.ScriptHelpers.isNullOrUndefined(r.asyncContext)&&(h=r.asyncContext);return new $h.CommonParameters(r,u,h)};$h.CommonParameters.$3n=function(n,t){t.val=null;var i=n.length;var r=null;var u=null;if(!i||i>2||!Function.isInstanceOfType(n[0]))return!1;r=n[0];i>1&&(u=n[1]);t.val=new $h.CommonParameters(null,r,u);return!0};$h.CommonParameters.prototype={$P_0:null,$G_0:null,$3_0:null,get_options:function(){return this.$P_0},get_callback:function(){return this.$G_0},get_asyncContext:function(){return this.$3_0}};$h.EwsRequest=function(n){this.readyState=1;$h.EwsRequest.initializeBase(this,[n])};$h.EwsRequest.prototype={status:0,statusText:null,onreadystatechange:null,responseText:null,get_$2E_1:function(){return this.status},set_$2E_1:function(n){this.status=n;return n},get_$2F_1:function(){return this.statusText},set_$2F_1:function(n){this.statusText=n;return n},get_$2C_1:function(){return this.readyState},set_$2C_1:function(n){this.readyState=n;return n},get_$1H_1:function(){return this.responseText},set_$1H_1:function(n){this.responseText=n;return n},send:function(n){this.$2Q_1();$h.ScriptHelpers.isNullOrUndefined(n)&&this.$1O_1();this.$1J_0(5,"EwsRequest",{body:n})},$2P_1:function(){$h.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)||this.onreadystatechange()},$3d_1:function(n){}};$h.InitialData=function(n){this.$0_0=n;this.$D_0=this.$2N_0()};$h.InitialData.$1=function(n,t,i){var r={get:i,configurable:!1};Object.defineProperty(n,t,r)};$h.InitialData.prototype={$1T_0:null,$l_0:null,$e_0:null,$1G_0:null,$v_0:null,$0_0:null,$D_0:0,get_$3Y_0:function(){return this.$0_0.id},get_$3X_0:function(){return this.$0_0.itemClass},get_$2Y_0:function(){return new Date(this.$0_0.dateTimeCreated)},get_$2Z_0:function(){return new Date(this.$0_0.dateTimeModified)},get_$2a_0:function(){return new Date(this.$0_0.dateTimeSent)},get_$2G_0:function(){this.$6_0();return this.$0_0.subject},get_$2B_0:function(){this.$6_0();return this.$0_0.normalizedSubject},get_$3W_0:function(){return this.$0_0.internetMessageId},get_$1a_0:function(){return this.$0_0.conversationId},get_$3j_0:function(){this.$6_0();var n=this.$0_0.sender;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$2l_0:function(){this.$6_0();var n=this.$0_0.from;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$1S_0:function(){this.$6_0();null===this.$1T_0&&(this.$1T_0=this.$p_0("to"));return this.$1T_0},get_$k_0:function(){this.$6_0();null===this.$l_0&&(this.$l_0=this.$p_0("cc"));return this.$l_0},get_$2M_0:function(){this.$6_0();null===this.$e_0&&(this.$e_0=this.$2U_0());return this.$e_0},get_$2i_0:function(){return this.$0_0.ewsUrl},get_$2D_0:function(){return new Date(this.$0_0.start)},get_$1o_0:function(){return new Date(this.$0_0.end)},get_$26_0:function(){return this.$0_0.location},get_$3g_0:function(){this.$6_0();null===this.$1G_0&&(this.$1G_0=this.$p_0("resources"));return this.$1G_0},get_$3a_0:function(){this.$6_0();var n=this.$0_0.organizer;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$3o_0:function(){return this.$0_0.userDisplayName},get_$3p_0:function(){return this.$0_0.userEmailAddress},get_$3q_0:function(){return this.$0_0.userTimeZone},get_$1Q_0:function(){return this.$0_0.timeZoneOffsets},get_$3T_0:function(){return this.$0_0.hostVersion},get_$3c_0:function(){return this.$0_0.owaView},get_$3b_0:function(){return this.$0_0.overrideWindowOpen},$T_0:function(){this.$v_0||(this.$v_0=new $h.Entities(this.$0_0.entities,this.$0_0.filteredEntities,this.get_$2a_0(),this.$D_0));return this.$v_0},$1v_0:function(n){var t=this.$T_0();return t.$2v_0(n)},$11_0:function(n){var t=this.$T_0();return t.$11_0(n)},$14_0:function(){return this.$0_0.regExMatches?this.$0_0.regExMatches:null},$20_0:function(n){var t=this.$14_0();return!t||!t[n]?null:t[n]},$6_0:function(){OSF.DDA.OutlookAppOm.$J(this.$D_0)},$p_0:function(n){var i=this.$0_0[n];if($h.ScriptHelpers.isNullOrUndefined(i))return[];for(var r=[],t=0;t<i.length;t++)$h.ScriptHelpers.isNullOrUndefined(i[t])||(r[t]=new $h.EmailAddressDetails(i[t]));return r},$2U_0:function(){var t=this.$0_0.attachments;if($h.ScriptHelpers.isNullOrUndefined(t))return[];for(var i=[],n=0;n<t.length;n++)$h.ScriptHelpers.isNullOrUndefined(t[n])||(i[n]=new $h.AttachmentDetails(t[n]));return i},$2N_0:function(){var n=1;var t=2;var i=3;var r=this.$0_0.permissionLevel;if($h.ScriptHelpers.isUndefined(this.$D_0))return 0;switch(r){case n:return 1;case i:return 2;case t:return 3;default:return 0}}};$h.LoadDictionaryRequest=function(n,t,i,r){$h.LoadDictionaryRequest.initializeBase(this,[r]);this.$1g_1=n;this.$1l_1=t;this.$G_1=i};$h.LoadDictionaryRequest.prototype={$1l_1:null,$1g_1:null,$G_1:null,handleResponse:function(n){if(n.wasSuccessful){var t=n[this.$1l_1];var i=JSON.parse(t);this.createAsyncResult(this.$1g_1(i),0,null)}else this.createAsyncResult(null,1,n.errorMessage);this.$G_1(this.$R_0)}};$h.ProxyRequestBase=function(n){$h.ProxyRequestBase.initializeBase(this,[n])};$h.ProxyRequestBase.prototype={handleResponse:function(n){if(n.wasProxySuccessful){this.set_$2E_1(n.statusCode);this.set_$2F_1(n.statusDescription);this.set_$1H_1(n.body);this.createAsyncResult(this.get_$1H_1(),0,null)}else{this.set_$2E_1(500);this.set_$2F_1("Error");var t=n.errorMessage;this.set_$1H_1(t);this.createAsyncResult(null,1,t)}this.$3d_1(n);this.$2X_1()},$1O_1:function(){throw Error.create("DOMException",{code:11,message:"INVALID_STATE_ERR"});},$2X_1:function(){var n=this;this.$m_1(2,function(){n.$m_1(3,function(){n.$m_1(4,null)})})},$m_1:function(n,t){this.set_$2C_1(n);var i=this;window.setTimeout(function(){try{i.$2P_1()}finally{$h.ScriptHelpers.isNullOrUndefined(t)||t()}},0)},$2Q_1:function(){this.get_$2C_1()!==1&&this.$1O_1();this.$25_0&&this.$1O_1()}};$h.RequestBase=function(n){this.$2I_0=n};$h.RequestBase.prototype={$25_0:!1,$R_0:null,$2I_0:null,$1J_0:function(n,t,i){this.$25_0=!0;var r=this;OSF.DDA.OutlookAppOm.$2.$B_0(n,t,i,function(n,t){n?r.createAsyncResult(null,1,String.format(_u.ExtensibilityStrings.l_InternalProtocolError_Text,n)):r.handleResponse(t)})},createAsyncResult:function(n,t,i){this.$R_0=OSF.DDA.OutlookAppOm.$2.createAsyncResult(n,t,i,this.$2I_0)}};$h.SaveDictionaryRequest=function(n,t){$h.SaveDictionaryRequest.initializeBase(this,[t]);$h.ScriptHelpers.isNullOrUndefined(n)||(this.$G_1=n)};$h.SaveDictionaryRequest.prototype={$G_1:null,handleResponse:function(n){n.wasSuccessful?this.createAsyncResult(null,0,null):this.createAsyncResult(null,1,n.errorMessage);$h.ScriptHelpers.isNullOrUndefined(this.$G_1)||this.$G_1(this.$R_0)}};$h.ScriptHelpers=function(){};$h.ScriptHelpers.isNull=function(n){return null===n};$h.ScriptHelpers.isNullOrUndefined=function(n){return $h.ScriptHelpers.isNull(n)||$h.ScriptHelpers.isUndefined(n)};$h.ScriptHelpers.isUndefined=function(n){return n===undefined};$h.ScriptHelpers.dictionaryContainsKey=function(n,t){return Object.isInstanceOfType(n)?t in n:!1};$h.ScriptHelpers.isNonEmptyString=function(n){return n?String.isInstanceOfType(n):!1};OSF.DDA.OutlookAppOm.registerClass("OSF.DDA.OutlookAppOm");OSF.DDA.Settings.registerClass("OSF.DDA.Settings");$h.ItemBase.registerClass("$h.ItemBase");$h.Item.registerClass("$h.Item",$h.ItemBase);$h.Appointment.registerClass("$h.Appointment",$h.Item);$h.ComposeItem.registerClass("$h.ComposeItem",$h.ItemBase);$h.AppointmentCompose.registerClass("$h.AppointmentCompose",$h.ComposeItem);$h.AttachmentDetails.registerClass("$h.AttachmentDetails");$h.ComposeBody.registerClass("$h.ComposeBody");$h.ComposeRecipient.registerClass("$h.ComposeRecipient");$h.ComposeLocation.registerClass("$h.ComposeLocation");$h.ComposeSubject.registerClass("$h.ComposeSubject");$h.ComposeTime.registerClass("$h.ComposeTime");$h.Contact.registerClass("$h.Contact");$h.CustomProperties.registerClass("$h.CustomProperties");$h.Diagnostics.registerClass("$h.Diagnostics");$h.EmailAddressDetails.registerClass("$h.EmailAddressDetails");$h.Entities.registerClass("$h.Entities");Office.cast.item.registerClass("Office.cast.item");$h.Message.registerClass("$h.Message",$h.Item);$h.MeetingRequest.registerClass("$h.MeetingRequest",$h.Message);$h.MeetingSuggestion.registerClass("$h.MeetingSuggestion");$h.MeetingSuggestionTimeDecoder.registerClass("$h.MeetingSuggestionTimeDecoder");$h.ExtractedDate.registerClass("$h.ExtractedDate");$h.PreciseDate.registerClass("$h.PreciseDate",$h.ExtractedDate);$h.RelativeDate.registerClass("$h.RelativeDate",$h.ExtractedDate);$h.MessageCompose.registerClass("$h.MessageCompose",$h.ComposeItem);$h.OutlookErrorManager.registerClass("$h.OutlookErrorManager");$h.OutlookErrorManager.OutlookErrorCodes.registerClass("$h.OutlookErrorManager.OutlookErrorCodes");$h.OutlookErrorManager.OsfDdaErrorCodes.registerClass("$h.OutlookErrorManager.OsfDdaErrorCodes");$h.PhoneNumber.registerClass("$h.PhoneNumber");$h.TaskSuggestion.registerClass("$h.TaskSuggestion");$h.UserProfile.registerClass("$h.UserProfile");$h.CommonParameters.registerClass("$h.CommonParameters");$h.RequestBase.registerClass("$h.RequestBase");$h.ProxyRequestBase.registerClass("$h.ProxyRequestBase",$h.RequestBase);$h.EwsRequest.registerClass("$h.EwsRequest",$h.ProxyRequestBase);$h.InitialData.registerClass("$h.InitialData");$h.LoadDictionaryRequest.registerClass("$h.LoadDictionaryRequest",$h.RequestBase);$h.SaveDictionaryRequest.registerClass("$h.SaveDictionaryRequest",$h.RequestBase);$h.ScriptHelpers.registerClass("$h.ScriptHelpers");OSF.DDA.OutlookAppOm.asyncMethodTimeoutKeyName="__timeout__";OSF.DDA.OutlookAppOm.$29=100;OSF.DDA.OutlookAppOm.$2A=255;OSF.DDA.OutlookAppOm.$W=32768;OSF.DDA.OutlookAppOm.$28=255;OSF.DDA.OutlookAppOm.$27=1e6;OSF.DDA.OutlookAppOm.$2=null;$h.AttachmentDetails.$f=[Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File,Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.Item];$h.ComposeBody.coercionTypeParameterName="coercionType";$h.ComposeItem.maxAttachmentNameLength=255;$h.ComposeItem.maxUriLength=2048;$h.ComposeItem.maxItemIdLength=200;$h.ComposeItem.maxRemoveIdLength=200;$h.ComposeRecipient.displayNameLengthLimit=255;$h.ComposeRecipient.maxSmtpLength=571;$h.ComposeRecipient.recipientsLimit=100;$h.ComposeRecipient.addressParameterName="address";$h.ComposeRecipient.nameParameterName="name";$h.ComposeLocation.locationKey="location";$h.ComposeLocation.maximumLocationLength=255;$h.ComposeSubject.maximumSubjectLength=255;$h.ComposeTime.timeTypeName="TimeProperty";$h.ComposeTime.timeDataName="time";$h.Diagnostics.outlookAppName="Outlook";$h.Diagnostics.outlookWebAppName="OutlookWebApp";$h.EmailAddressDetails.$t="";$h.EmailAddressDetails.$1I=[Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Organizer,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Tentative,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Accepted,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Declined];$h.EmailAddressDetails.$1E=[Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other,Microsoft.Office.WebExtension.MailboxEnums.RecipientType.DistributionList,Microsoft.Office.WebExtension.MailboxEnums.RecipientType.User,Microsoft.Office.WebExtension.MailboxEnums.RecipientType.ExternalUser];$h.Entities.$b=["Addresses","EmailAddresses","Urls","PhoneNumbers","TaskSuggestions","MeetingSuggestions","Contacts"];$h.MeetingSuggestionTimeDecoder.$1Z=new Date("0001-01-01T00:00:00Z");$h.OutlookErrorManager.errorNameKey="name";$h.OutlookErrorManager.errorMessageKey="message";$h.OutlookErrorManager.$18=!1;$h.OutlookErrorManager.OutlookErrorCodes.attachmentSizeExceeded=9e3;$h.OutlookErrorManager.OutlookErrorCodes.numberOfAttachmentsExceeded=9001;$h.OutlookErrorManager.OutlookErrorCodes.internalFormatError=9002;$h.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentId=9003;$h.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentPath=9004;$h.OutlookErrorManager.OutlookErrorCodes.cannotAddAttachmentBeforeUpgrade=9005;$h.OutlookErrorManager.OutlookErrorCodes.attachmentDeletedBeforeUploadCompletes=9006;$h.OutlookErrorManager.OutlookErrorCodes.attachmentUploadGeneralFailure=9007;$h.OutlookErrorManager.OutlookErrorCodes.attachmentToDeleteDoesNotExist=9008;$h.OutlookErrorManager.OutlookErrorCodes.attachmentDeleteGeneralFailure=9009;$h.OutlookErrorManager.OutlookErrorCodes.invalidEndTime=9010;$h.OutlookErrorManager.OutlookErrorCodes.htmlSanitizationFailure=9011;$h.OutlookErrorManager.OutlookErrorCodes.numberOfRecipientsExceeded=9012;$h.OutlookErrorManager.OutlookErrorCodes.noValidRecipientsProvided=9013;$h.OutlookErrorManager.OutlookErrorCodes.cursorPositionChanged=9014;$h.OutlookErrorManager.OsfDdaErrorCodes.ooeCoercionTypeNotSupported=1e3;$h.CommonParameters.asyncContextKeyName="asyncContext";$h.ScriptHelpers.emptyString="";OSF.ClientMode={ReadWrite:0,ReadOnly:1};OSF.DDA.RichInitializationReason={1:Microsoft.Office.WebExtension.InitializationReason.Inserted,2:Microsoft.Office.WebExtension.InitializationReason.DocumentOpened};Microsoft.Office.WebExtension.FileType={Text:"text",Compressed:"compressed"};OSF.DDA.RichClientSettingsManager={read:function(n,t){var r=[],u=[];n&&n();window.external.GetContext().GetSettings().Read(r,u);t&&t();for(var f={},i=0;i<r.length;i++)f[r[i]]=u[i];return f},write:function(n,t,i,r){var u=[],f=[];for(var e in n){u.push(e);f.push(n[e])}i&&i();window.external.GetContext().GetSettings().Write(u,f);r&&r()}};OSF.DDA.DispIdHost.getRichClientDelegateMethods=function(n){var t={};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.SafeArray.Delegate.executeAsync;t[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync]=OSF.DDA.SafeArray.Delegate.registerEventAsync;t[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync]=OSF.DDA.SafeArray.Delegate.unregisterEventAsync;function i(n){return function(t){var i,r;try{r=n(t.hostCallArgs,t.onCalling,t.onReceiving);i=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}catch(u){i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;r={name:Strings.OfficeOM.L_InternalError,message:u}}t.onComplete&&t.onComplete(i,r)}}function r(n,t,i){return OSF.DDA.RichClientSettingsManager.read(t,i)}function u(n,t,i){return OSF.DDA.RichClientSettingsManager.write(n[OSF.DDA.SettingsManager.SerializedSettings],n[Microsoft.Office.WebExtension.Parameters.OverwriteIfStale],t,i)}switch(n){case OSF.DDA.AsyncMethodNames.RefreshAsync.id:t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=i(r);break;case OSF.DDA.AsyncMethodNames.SaveAsync.id:t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=i(u)}return t};OSF.DDA.File=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{size:{value:t},sliceCount:{value:Math.ceil(t/i)}});var r={};r[OSF.DDA.FileProperties.Handle]=n;r[OSF.DDA.FileProperties.SliceSize]=i;var u=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[u.GetDocumentCopyChunkAsync,u.ReleaseDocumentCopyAsync],r)};OSF.DDA.FileSliceOffset="fileSliceoffset";OSF.DDA.CustomXmlParts=function(){this._eventDispatches=[];var n=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[n.AddDataPartAsync,n.GetDataPartByIdAsync,n.GetDataPartsByNameSpaceAsync])};OSF.DDA.CustomXmlPart=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{builtIn:{value:i},id:{value:t},namespaceManager:{value:new OSF.DDA.CustomXmlPrefixMappings(t)}});var u=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[u.DeleteDataPartAsync,u.GetPartNodesAsync,u.GetPartXmlAsync]);var e=n._eventDispatches,r=e[t];if(!r){var f=Microsoft.Office.WebExtension.EventType;r=new OSF.EventDispatch([f.DataNodeDeleted,f.DataNodeInserted,f.DataNodeReplaced]);e[t]=r}OSF.DDA.DispIdHost.addEventSupport(this,r)};OSF.DDA.CustomXmlPrefixMappings=function(n){var t=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[t.AddDataPartNamespaceAsync,t.GetDataPartNamespaceAsync,t.GetDataPartPrefixAsync],n)};OSF.DDA.CustomXmlNode=function(n,t,i,r){OSF.OUtil.defineEnumerableProperties(this,{baseName:{value:r},namespaceUri:{value:i},nodeType:{value:t}});var u=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[u.GetRelativeNodesAsync,u.GetNodeValueAsync,u.GetNodeXmlAsync,u.SetNodeValueAsync,u.SetNodeXmlAsync],n)};OSF.DDA.NodeInsertedEventArgs=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DataNodeInserted},newNode:{value:n},inUndoRedo:{value:t}})};OSF.DDA.NodeReplacedEventArgs=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DataNodeReplaced},oldNode:{value:n},newNode:{value:t},inUndoRedo:{value:i}})};OSF.DDA.NodeDeletedEventArgs=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DataNodeDeleted},oldNode:{value:n},oldNextSibling:{value:t},inUndoRedo:{value:i}})}