This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { conform, useForm } from '@conform-to/react' | |
| import { getFieldsetConstraint, parse } from '@conform-to/zod' | |
| import type { Prisma } from '@prisma/client' | |
| import { json, redirect, type DataFunctionArgs } from '@remix-run/node' | |
| import { Form, useActionData, useLoaderData } from '@remix-run/react' | |
| import { useId } from 'react' | |
| import { z } from 'zod' | |
| import ServicesForm from '~/components/onboarding/services-form' | |
| import { checkUserID } from '~/utils/auth.server' | |
| import { prisma } from '~/utils/db.server' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| NotificationBell, | |
| NovuProvider, | |
| PopoverNotificationCenter, | |
| } from "@novu/notification-center"; | |
| import { novuSubscriberId } from "@/utils/novuSubscriberId"; | |
| const appIdentified = | |
| process.env.NODE_ENV === "development" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Conviva_WorkflowUtils = Class.create(); | |
| Conviva_WorkflowUtils.prototype = Object.extendsObject(AbstractAjaxProcessor, { | |
| description: function (item) { | |
| switch (item) { | |
| // Conviva Payer Portal | |
| case "45546e4887a674105a6cc9d6cebb35f4": | |
| return "Review request and validate the requestors role is appropriate for access."; | |
| // Conviva Collaboration | |
| case "f602368c87e674105a6cc9d6cebb35e6": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var queryString = "task=" + current.sys_id; | |
| var grTaskService = new GlideRecord("task_cmdb_ci_service"); | |
| grTaskService.addEncodedQuery(queryString); | |
| var isValidQuery = grTaskService.isEncodedQueryValid(queryString); | |
| var CIstoRetire = []; | |
| if (isValidQuery) { | |
| grTaskService.query(); | |
| while (grTaskService.next()) { | |
| CIstoRetire.push(grTaskService.cmdb_ci_service.toString()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // services categories for the applications that live in the cmdb_ci_services table | |
| var categories = [ | |
| { | |
| id: 0, | |
| name: "Access Request", | |
| }, | |
| { | |
| id: 1, | |
| name: "New Database Request", | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { scheduleSteps } from '@/utils/scheduleSteps' | |
| import { useReducer } from 'react' | |
| const createSchedule = () => scheduleSteps | |
| const reducer = (state, action) => { | |
| const { type, data } = action | |
| switch (type) { | |
| case 1: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useMemo, useState } from "react"; | |
| import { chatFetchers } from "../../utils/chatFetchers"; | |
| import { selectedConversation } from "../../components/shared/selectedConversation"; | |
| import { useAddSMSParticipant } from "./useAddSMSParticipant"; | |
| import { useCreateAccessToken } from "./useCreateAccessToken"; | |
| import { useCreateConversation } from "./useCreateConversation"; | |
| import { useDeliveryReceipt } from "./useDeliveryReceipt"; | |
| import { useInitializeConversationClient } from "./useInitializeConversationClient"; | |
| import { useJoinAndLeaveConversations } from "./useJoinAndLeaveConversations"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useEffect, useState } from "react"; | |
| export const useSendAndReceiveMessages = (selectedConversation) => { | |
| const [conversationMessage, setConversationMessage] = useState({ | |
| newMessage: ``, | |
| messages: [], | |
| conversationProxy: null, | |
| loadingState: `initializing`, | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| useEffect(() => { | |
| if (userInfo.requestConversation) { | |
| if (userInfo.sid) { | |
| setCreateOrGetConversation((oldData) => { | |
| return { | |
| ...oldData, | |
| selectedConversationSid: userInfo.sid, | |
| }; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { getAuth, sendPasswordResetEmail } from "firebase/auth"; | |
| import { useEffect, useState } from "react"; | |
| import { app } from "../../utils/firebaseConfig"; | |
| import { navigate } from "gatsby"; | |
| import { validEmailRegex } from "./validateEmailHelper"; | |
| const auth = getAuth(app); | |
| auth.languageCode = `es`; |
NewerOlder