new ReverseTemplateList([new ReverseTemplate("onetravel-travel-cancallation-en",function(e){return/REFUND CONFIRMATION/i.test(e.subject)||/Booking # \d+ has been cancell?ed/.test(e.subject)||/Cancel?led Hotel Reservation/.test(e.subject)||/OneTravel\.com\s+has been cancel?led/.test(e.subject)},function(e){var t={},r=Scanner.fromMessage(e);r.setLocale("en_US");var n=r.getSpan();t.dear=/Dear/,t.booking=/booking number/i;var a=n.innerCapture(regExpFormatted(/\1([^\n]+),?/,t.dear))[1],o=n.next(regExpFormatted(/,?\s\1\s(\d+)\.?/,t.booking)).innerCapture(regExpFormatted(/,?\s\1\s(\d+)\.?/,t.booking),1);if(o.isNullSpan_&&(o=n.next(regExpFormatted(/,?\s\1\s(\d+)\.?/,/Booking #/)).innerCapture(regExpFormatted(/,?\s\1\s(\d+)\.?/,/Booking #/),1),o.isNullSpan_&&(o=n.next(regExpFormatted(/,?\s\1\s(\d+)\.?/,/Booking Number/)).innerCapture(regExpFormatted(/,?\s\1\s(\d+)\.?/,/Booking Number/),1)),o.isNullSpan_&&(o=n.innerCapture(regExpFormatted(/.*[\n]+.*\1(\d+)\.?/,/Booking #/),1)),o.isNullSpan_&&(o=n.innerCapture(regExpFormatted(/(?:.*[\n]+)+.*\1([\d]+)\.?/,/booking #/),1)),o.isNullSpan_&&(o=n.innerCapture(regExpFormatted(/(?:.*[\n]+)+.*\1([\d]+)\.?/,/booking# /),1)),o.isNullSpan_&&(o=n.innerCapture(regExpFormatted(/(?:.*[\n]+)+.*\1([\d]+)\.?/,/booking # /),1))),ASSERT(o,a))return[{"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight"},reservationId:o,underName:{"@type":"http://schema.org/Person",name:a},reservationStatus:"http://schema.org/ReservationCancelled"}]},"0/1/2/3/4/5/6/223/239/1234","SGb20be1b6"),new ReverseTemplate("onetravel-travel-cancellation-en",function(e){return/REFUND CONFIRMATION/i.test(e.subject)||/Booking # \d+ has been cancell?ed/.test(e.subject)||/Cancel?led Hotel Reservation/.test(e.subject)||/OneTravel\.com\s+has been cancel?led/.test(e.subject)},function(e){var t={},r="Flight",n=Scanner.fromMessage(e);n.setLocale("en_US");var a=n.getSpan();t.dear=/Dear/,t.booking=/booking number/i,/hotel reservation/i.test(e.plain)?r="Lodging":/car reservation/i.test(e.plain)&&(r="RentalCar");var o=a.innerCapture(regExpFormatted(/\1([^\n]+),?/,t.dear))[1],i=a.next(regExpFormatted(/,?\s\1\s(\d+)\.?/,t.booking)).innerCapture(regExpFormatted(/,?\s\1\s(\d+)\.?/,t.booking),1);if(i.isNullSpan_&&(i=a.next(regExpFormatted(/,?\s\1\s(\d+)\.?/,/Booking #/)).innerCapture(regExpFormatted(/,?\s\1\s(\d+)\.?/,/Booking #/),1),i.isNullSpan_&&(i=a.next(regExpFormatted(/,?\s\1\s(\d+)\.?/,/Booking Number/)).innerCapture(regExpFormatted(/,?\s\1\s(\d+)\.?/,/Booking Number/),1)),i.isNullSpan_&&(i=a.innerCapture(regExpFormatted(/.*[\n]+.*\1(\d+)\.?/,/Booking #/),1)),i.isNullSpan_&&(i=a.innerCapture(regExpFormatted(/(?:.*[\n]+)+.*\1([\d]+)\.?/,/booking #/),1)),i.isNullSpan_&&(i=a.innerCapture(regExpFormatted(/(?:.*[\n]+)+.*\1([\d]+)\.?/,/booking# /),1)),i.isNullSpan_&&(i=a.innerCapture(regExpFormatted(/(?:.*[\n]+)+.*\1([\d]+)\.?/,/booking # /),1))),ASSERT(i,o))return[{"@context":"http://schema.org","@type":"http://schema.org/"+r+"Reservation",reservationFor:{"@type":"http://schema.org/Person",name:o.trim()},provider:{"@type":"http://schema.org/Organization",name:"OneTravel"},reservationId:i,reservationStatus:"http://schema.org/ReservationCancelled"}]},"0/1/2/3/4/5/6/223/239/1235","SG4dee0ead"),new ReverseTemplate("onetravel-travel-confirmation-en",function(e){return/OneTravel\.com\s-\s\w{2,15}\s\/\s\w{2,15}\s-\sBooking\sreceipt\s-\sBooking/.test(e.subject)},function(e){var t="en_US",r={},n=!1,a=!1,o=!1,i=[],s=[];if(/schema\.org/.test(e.html))return CONTINUE;if(/Flight Details/.test(e.plain)&&(o=!0),/Car Details/.test(e.plain)&&(a=!0),/Hotel Details/.test(e.plain)&&(n=!0),o){r.which=/Flight Details/,r.departure=/Departing Flight/,r.flight=/Flight/,r.return=/Return Flight/,r.traveler=/Traveler Information/,r.time=/Travel Time:/,r.flightCheck=!0,r.bookingId=/OneTravel Booking:/;var l=loadHelper("onetravel-general-confirmation.js");try{i.push(l(e,t,r)),r.flightCheck=!1}catch(e){return CONTINUE}}if(a){r.which=/Car Details/,r.driver=/Driver/,r.phone=/Phone/,r.carCheck=!0;var l=loadHelper("onetravel-general-confirmation.js");try{i.push(l(e,t,r)),r.carCheck=!1}catch(e){return CONTINUE}}if(n){r.econ=/Economy/,r.which=/Hotel Details/,r.hotelCheck=!0;var l=loadHelper("onetravel-general-confirmation.js");try{i.push(l(e,t,r)),r.hotelCheck=!1}catch(e){return CONTINUE}}i=i.filter(function(e){return void 0!==e});for(var p=0;p<i.length;p++)for(var g=0;g<i[p].length;g++)s.push(i[p][g]);return s},"0/1/2/3/4/5/6/223/239/1236","SG1a63f9ac")]);