// Copyright 2014 Apple Inc.  All Rights Reserved.
new ReverseTemplateList([new ReverseTemplate("appletravel-confirmation-en",function(e){return!(void 0!==e.accountHandles&&intersectArrays(e.accountHandles.map(function(e){return e.toLowerCase()}),parseEmailListFromMessageHeader(e.headers,"cc")).length>0)&&(/Trip Schedule Change/.test(e.subject)||/ITINERARY/.test(e.subject))},function(e){if(void 0!==e.accountHandles&&intersectArrays(e.accountHandles.map(function(e){return e.toLowerCase()}),parseEmailListFromMessageHeader(e.headers,"cc")).length>0)return STOP;if(/Trip Schedule Change/.test(e.subject)||/ITINERARY/.test(e.subject)){var a=Scanner.fromMessage(e);a.setLocale("en_US");var r=(a.getSpan(),{});r.underName=e.plain.split("\n")[2];var t=loadHelper("appletravel-flight-parser.js"),n=loadHelper("appletravel-rentalcar-parser.js"),s=loadHelper("appletravel-hotel-parser.js"),c=t(e,r),l=n(e,r),o=s(e,r),p=[];if(c&&(p=p.concat(c)),l&&(p=p.concat(l)),o&&(p=p.concat(o)),p)return p}},"0/1/2/3/4/5/939/944/946","SGa5e3e1d5")]);