// Copyright 2014 Apple Inc.  All Rights Reserved.
new ReverseTemplateList([new ReverseTemplate("cs.bestwestern.com-de",function(e){return/Reservierungsbest\xe4tigung|Reservierungsinformationen/.test(e.subject)},function(e){var t="en_US",n={};n.emailTitelConfirmation=/Reservierungsbest\xe4tigung|Reservierungsinformationen/,n.reservationId=/Reservierungs\-Best\xe4tigungsnummer\: (.+)/,n.guestName=/Zusammenfassung der Reservierung - (.+)/,n.checkInDate="Anreise:",n.checkOutDate="Abreise:",n.price="Gesamtaufenthalt:",n.emailTitelCancelConfirmation=/Stornierung/;var r=loadHelper("cs.bestwestern.com-skeleton.js");return r(e,t,n)},"0/1/2/3/4/5/651/688/692","SGff2b5b6e"),new ReverseTemplate("cs.bestwestern.com-en",function(e){return/^Best Western - (?:Canceled )?Reservation (?:Notification|Confirmation)$/.test(e.subject)},function(e){if(int(e.epoch)<1388534400)return CONTINUE;if(/^Best Western - (?:Canceled )?Reservation (?:Notification|Confirmation)$/.test(e.subject)){var t=Scanner.fromMessage(e);t.setLocale("en_US");var n,r,a,s,i,o,c,u,m,l,d,v;/^Best Western - Canceled/.test(e.subject)&&(v="Cancelled"),i=t.getSpan().innerCapture(/(?:Confirmation|Cancellation) [Nn]umber:\s+(\d+)/,1),r=t.getSpan().nextText("Total Stay:").nextAnyTag("td").innerCapture(/($<price>[\d,.]+)\s+($<currency>[A-Z]{3})/),a=r?r.$price:null,s=r?r.$currency:null,n=t.getSpan().innerCapture(/Reservation Summary - (.+)\n/,1),o=t.getSpan().nextText("Check-in:").nextDate(),c=t.getSpan().nextText("Check-out:").nextDate();var g=t.getSpan().nextText("BEST WESTERN").parentAnyTag("td").tagContents().innerCapture(/($<name>BEST WESTERN .+)\n($<address>[^]+)\nPhone: ($<phone>.*)/);if(g&&(m=g.$name,d=g.$address,l=g.$phone),ASSERT(o,c,d))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:n},totalPrice:a,priceCurrency:s,checkinTime:o,checkoutTime:c,reservationStatus:"http://schema.org/Reservation"+(v||"Confirmed"),reservationId:i,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:m,url:u,telephone:l,address:d}}]}},"0/1/2/3/4/5/651/688/693","SG62878a98"),new ReverseTemplate("cs.bestwestern.com-fr",function(e){return/Best Western \- Confirmation de la r\xe9servation/.test(e.subject)||/Best Western \- Avis d'annulation de la r\xe9servation/.test(e.subject)},function(e){var t="en_US",n={};n.emailTitelConfirmation=/Best Western \- Confirmation de la r\xe9servation/,n.reservationId=/(?:Num\xe9ro de confirmation de la r\xe9servation\:|Num\xe9ro d'annulation \:) (.+)/,n.guestName=/Synth\xe8se de la r\xe9servation \- (.+)/,n.checkInDate="Arriv\xe9e :",n.checkOutDate="D\xe9part :",n.price="Total s\xe9jour :",n.emailTitelCancelConfirmation=/Best Western \- Avis d'annulation de la r\xe9servation/;var r=loadHelper("cs.bestwestern.com-skeleton.js");return r(e,t,n)},"0/1/2/3/4/5/651/688/694","SG86cdeb30")]);