javascript:(async()=>{var g="https://uber5.lightning.force.com/lightning/r/Report/00OUV00000BC0h32AD/view";var b="border-collapse:collapse;border:1px solid black;font-family:sans-serif;",i="border:1px solid black;padding:6px 12px;";async function h(){let e=document.querySelector("iframe")?.contentDocument?.querySelector("table[aria-rowcount]");if(e?.scrollIntoView(),!e)throw alert("uh oh - either you pressed the button too quickly or something is very broken");let a=new Map,o=1e4;for(;o--;){if(!o)throw alert("script got stuck :( - not sure how");let n=e.querySelector("tr:not(.data-grid-header-row):not(.row-counted)");if(!n)break;n.classList.add("row-counted"),await new Promise(c=>setTimeout(c));let t=n.querySelector(`[data-column-index='${"1"}']`)?.textContent;if(!t||a.has(t))continue;n.scrollIntoView();let s=n.querySelector(`[data-column-index='${"8"}']`)?.textContent,d=n.querySelector(`[data-column-index='${"4"}']`)?.textContent;!s||s==="Bolton Document Inbounds"||s==="Insurance Provision"||s==="Document Related (exceptions/renewals/validations)"||s==="Recurring Data Sends"||s==="Triage"||a.set(t,{_type:s,_status:d})}return e.querySelectorAll(".row-counted").forEach(n=>{n.classList.remove("row-counted")}),Array.from(a.values())}function x(e,a){let o=new Map;e.forEach((t,s)=>{for(let d of t.types)o.set(d,s)});let n=e.map(t=>({title:t.title,list:t.path,count:0,statuses:{}}));for(let t of a){let s=o.get(t._type);s!==void 0&&(n[s].count++,n[s].statuses[t._status]=(n[s].statuses[t._status]||0)+1)}return n}function w(e,a){return e.reduce((o,n,t)=>o+n+(a[t]??""),"").replace(/>\s+<").replace(/\s+/g," ").trim()}var r=(e,...a)=>w(e,a),R=(e,...a)=>w(e,a);var v="lmk-regops@uber.com",C=["dan.beck@uber.com","jay.mckeown@uber.com","jennifer.nelligan@uber.com","pat.hartnett@uber.com","pstefanova@uber.com","ptoomey@uber.com"],T={morning:{label:"Morning",subject:"Reg Ops Overnight <> Morning Handover {date}",greeting:"Hi team,
Please find the handover details below.",signoff:"Have a great day!
"},evening:{label:"Evening",subject:"Reg Ops Evening <> Overnight Handover {date}",greeting:"Hi team,
Please find the handover details below.
",signoff:"Have a great night!
"}};function D(e=new Date){return e.getHours()<8?"morning":"evening"}(async function(){if(!location.href.startsWith(g)){location.href=g;return}let e=await h(),a=new Date().toISOString().slice(0,10),o=D(),n=()=>T[o].subject.replace(/\{date\}/g,a),t=document.createElement("dialog");t.style.cssText=R` padding: 24px; border-radius: 12px; border: none; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3); max-width: min(720px, 90vw); width: fit-content; `,t.innerHTML=r`
${l.greeting}
${q(o)} ${S}${l.signoff}
`,m.forEach(p=>{p.classList.toggle("active",p.dataset.mode===o)}),f()};m.forEach(l=>{l.addEventListener("click",()=>{o=l.dataset.mode,y()})}),y(),c.addEventListener("click",async()=>{if(u==="copy"){let l=new Blob([s.innerHTML],{type:"text/html"}),p=new Blob([s.innerText],{type:"text/plain"});await navigator.clipboard.write([new ClipboardItem({"text/html":l,"text/plain":p})]),c.textContent="Send handover",u="send"}else{let l=`mailto:${encodeURIComponent(v)}?cc=${encodeURIComponent(C.join(","))}&subject=${encodeURIComponent(n())}`;window.open(l,"_blank"),f()}}),document.body.appendChild(t),t.showModal()})();var $=[{title:"Suspensions",path:"X1h_Suspensions_and_Triaging",types:["Suspension","Midnight Suspension Notice","Project Neon (TfL-only)"]},{title:"Unsuspensions",path:"X24h_Unsuspensions",types:["Unsuspension Notice"]},{title:"Standard Request",path:"X24h_Standard_Requests",types:["RoUK Recurring Send Follow-Up","General Data Requests / Status Enquiry","Event or CRM Request","FYI"]},{title:"Complex Requests",path:"RoUK_Complaint_Follow_Ups",types:["Ad-Hoc Request","TfL Recurring Send Follow-Up"]},{title:"CCP's",path:"CCP_PDRIP_Cases_with_status",types:["CCP / PDRIP"]},{title:"Rider Complaint Reviews",path:"X48h_Complaint_Reviews",types:["Rider Complaint Handling Request"]},{title:"Complaint Histories",path:"X72h_Complaints_History_Review",types:["Driver Complaints History Request"]},{title:"DPA",path:"X72h_DPAs",types:["DPA Request"]},{title:"Witness Statements",path:"X96h_Witness_Statements",types:["Witness Statement Request"]},{title:"Booking Records",path:"X24h_Booking_Requests",types:["Booking Records Request"]}],H={morning:[{type:"Assurance Checks",statusLabel:"",details:""},{type:"ROUK Complaints",statusLabel:"12am run:",details:""},{type:"ROUK Complaints",statusLabel:"5am run:",details:""},{type:"Anything to Flag",statusLabel:"",details:""}],evening:[{type:"Assurance Checks",statusLabel:"",details:""},{type:"ROUK Complaints",statusLabel:"1pm run:",details:""},{type:"ROUK Complaints",statusLabel:"7pm run:",details:""},{type:"Anything to Flag",statusLabel:"",details:""}]};function q(e){let a=H[e];return r`| Handover Details | ||
|---|---|---|
| Type | Status/Time/Contact Type | Details |
| ${o.type} | ${o.statusLabel} | ${o.details} |
| Queue | Total |
|---|---|
| ${o.title} | ${o.count} |
| TOTAL | ${e.length} |