public function exportPulsReportPdfForApiRoute(ClientSurvey $client_survey, GetPulsReport $request): Response 	{ 		$locale = $request->language ?? DomainLanguages::getDefaultLanguage(); 		$is_preview = !$request->boolean('download');  		$this->loadClientSurvey($client_survey); 		$this->preparePulsGeneralDataObject($client_survey, $request, $locale);  		$view = $this->getPulsReport($client_survey, $this->pulsGeneralDataObject, $locale, $is_preview);  		$data = $this->chromePdfService->generatePdf($view->render()); 		$name = $client_survey->generateDownloadFileNameForPulsReport($locale); 		$showType = $is_preview ? 'inline' : 'attachment';  		$userActivityService = new UserActivityService($request); 		$userActivityService->createCustomEntry($client_survey, UserActivityType::Read);  		return response()->make($data, 200, [ 			'Content-Type' => 'application/pdf', 			'Content-Disposition' => "$showType; filename=$name", 		]); 	}