public function store(Domain $domain, StoreClientSurveyPulsAPI $request, ClientSurveyService $client_survey_service): JsonResource 	{ 		$client = $request->user()->user;  		$client_survey_service->checkPulsQuestions($request);  		$survey = $client_survey_service->createPulsClientSurvey($request, $client);  		$client_survey_service->handleExtraAndDemographicQuestions($request, $survey);  		$client_survey_service->handlePulsQuestionsApi($request, $survey);  		$survey->generateApplicants($request->emails, $request->offline_applicants_count, $request->email_languages);  		$client_survey_service->handleQuestionScrambling($survey);  		// Schedule webhooks | Won't schedule if testing 		$client_survey_notification_service = new ClientSurveyNotificationService; 		$client_survey_service->handleLocationsAndDepartmentCreation($request, $survey); 		$client_survey_notification_service->handleWebhooks($survey);  		if (!$survey->draft) { 			$client_survey_service->changeSurveyToPending($survey); 		}  		$survey->load(['locations', 'departments', 'pulsQuestions', 'extraQuestions', 'demographicQuestions', 'applicants' => function ($query) { 			$query->fillingOnlineSurvey()->mailable(); 		}]);  		return new ClientSurveyPulsResourceSingle($survey); 	}