// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){if(!e||!t||!n)return CONTINUE;var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,s,i,p,m,c,l,h,u,d;return i=e.subject.match(n.under)[1],r=a.getSpan().next(n.data).next(n.number).innerCapture(n.number,1),o=a.getSpan().next(n.name).innerCapture(n.name,1),p=a.getSpan().next(n.data).nextLink(),m=a.getSpan().next(n.phone).innerCapture(n.phone,1),l=a.getSpan().next(n.data).nextAddress(),s=a.getSpan().next(n.data).nextDate(),/annullamento della prenotazione - MyTable/.test(e.subject)?d="ReservationCancelled":(d="ReservationConfirmed",h=a.getSpan().nextText(n.cancel).nextLink()),ASSERT(r,o,s,i)?[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:r,reservationId:c,reservationStatus:"http://schema.org/"+d,reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:o,url:p,telephone:m,address:l},startTime:s,bookingAgent:{"@type":"http://schema.org/Organization",name:"MyTable",url:"https://www.mytable.com"},underName:{"@type":"http://schema.org/Person",name:i},cancelReservationUrl:h,modifyReservationUrl:u}]:CONTINUE}}).call();