Flight attendants on long-haul flights are provided with spaces to rest. Here's a photo of the crew rest area on a Boeing 787. Crew rest areas exist on all airplanes, but what these rest areas look like depends on the airline, aircraft and the length of the flight.