import React, { useState } from "react"; import { FwTabs, FwTab, FwTabPanel, FwInput,…
- User
import React, { useState } from "react"; import { FwTabs, FwTab, FwTabPanel, FwInput, FwPagination } from "@freshworks/crayons/react"; import AutomationCard from "./AutomationCard";
const ticketCreateRules = [ { "name": "Send payments to Billing - Sample Dispatcher rule", "position": 1, "active": true, "outdated": false, "last_updated_by": null, "id": 156002148981, "summary": { "conditions": { "condition_set_1": [ "If Subject contains payment" ] }, "actions": [ " Assign to Group Billing" ] }, "created_at": "2025-03-04T04:12:28Z", "updated_at": "2025-03-04T04:12:28Z", "affected_tickets_count": 0, "conditions": [ { "name": "condition_set_1", "match_type": "any", "properties": [ { "field_name": "subject", "resource_type": "ticket", "operator": "contains", "value": [ "payment" ] } ] } ], "actions": [ { "field_name": "group_id", "value": 156000905740 } ], "description": "This is a sample rule to help you understand how Dispatch'r works. Feel free to edit or delete this rule.In this example we will create a rule that will look at all incoming emails that have the text -'payment' and assigns them to 'Billing' group." }, { "name": "Send payments to Billing - Sample Dispatcher rule", "position": 1, "active": true, "outdated": false, "last_updated_by": null, "id": 156002148981, "summary": { "conditions": { "condition_set_1": [ "If Subject contains payment" ] }, "actions": [ " Assign to Group Billing" ] }, "created_at": "2025-03-04T04:12:28Z", "updated_at": "2025-03-04T04:12:28Z", "affected_tickets_count": 0, "conditions": [ { "name": "condition_set_1", "match_type": "any", "properties": [ { "field_name": "subject", "resource_type": "ticket", "operator": "contains", "value": [ "payment" ] } ] } ], "actions": [ { "field_name": "group_id", "value": 156000905740 } ], "description": "This is a sample rule to help you understand how Dispatch'r works. Feel free to edit or delete this rule.In this example we will create a rule that will look at all incoming emails that have the text -'payment' and assigns them to 'Billing' group." }, { "name": "Send payments to Billing - Sample Dispatcher rule", "position": 1, "active": true, "outdated": false, "last_updated_by": null, "id": 156002148981, "summary": { "conditions": { "condition_set_1": [ "If Subject contains payment" ] }, "actions": [ " Assign to Group Billing" ] }, "created_at": "2025-03-04T04:12:28Z", "updated_at": "2025-03-04T04:12:28Z", "affected_tickets_count": 0, "conditions": [ { "name": "condition_set_1", "match_type": "any", "properties": [ { "field_name": "subject", "resource_type": "ticket", "operator": "contains", "value": [ "payment" ] } ] } ], "actions": [ { "field_name": "group_id", "value": 156000905740 } ], "description": "This is a sample rule to help you understand how Dispatch'r works. Feel free to edit or delete this rule.In this example we will create a rule that will look at all incoming emails that have the text -'payment' and assigns them to 'Billing' group." } ];
const ticketUpdateRules = [ { "name": "Automatically close resolved tickets after 48 hours", "position": 1, "active": true, "outdated": false, "last_updated_by": null, "id": 156002144027, "summary": { "conditions": { "condition_set_1": [ "If Status is Resolved", "AND", "If Hour Since Resolved greater than 48" ] }, "actions": [ " Set Status as Closed" ] }, "created_at": "2025-03-03T21:40:55Z", "updated_at": "2025-03-03T21:40:55Z", "affected_tickets_count": 0, "conditions": [ { "name": "condition_set_1", "match_type": "all", "properties": [ { "field_name": "status", "operator": "in", "value": [ 4 ] }, { "field_name": "resolved_at", "operator": "greater_than", "value": 48 } ] } ], "actions": [ { "field_name": "status", "value": 5 } ], "description": "This rule will close all the resolved tickets after 48 hours." }, { "name": "When a ticket has been overdue for a long time, assign it to the Escalations team", "position": 2, "active": true, "outdated": false, "last_updated_by": null, "id": 156002148989, "summary": { "conditions": { "condition_set_1": [ "If Status is Open", "AND", "If Hours since ticket overdue greater than 2" ] }, "actions": [ " Assign to Group Escalations" ] }, "created_at": "2025-03-04T04:12:29Z", "updated_at": "2025-03-04T04:12:29Z", "affected_tickets_count": 0, "conditions": [ { "name": "condition_set_1", "match_type": "all", "properties": [ { "field_name": "status", "operator": "in", "value": [ 2 ] }, { "field_name": "due_by", "operator": "greater_than", "value": 2 } ] } ], "actions": [ { "field_name": "group_id", "value": 156000905741 } ], "description": "This rule will close all the resolved tickets after 48 hours." }, { "name": "Copy of Automatically close resolved tickets after 48 hours", "position": 3, "active": true, "outdated": false, "last_updated_by": 156006681943, "id": 156002206498, "summary": { "conditions": { "condition_set_1": [ "If Status is Resolved", "AND", "If Hour Since Resolved greater than 48" ] }, "actions": [ " Set Status as Closed" ] }, "created_at": "2025-03-08T04:44:33Z", "updated_at": "2025-03-08T04:44:33Z", "affected_tickets_count": 0, "conditions": [ { "name": "condition_set_1", "match_type": "all", "properties": [ { "field_name": "status", "operator": "in", "value": [ 4 ] }, { "field_name": "resolved_at", "operator": "greater_than", "value": 48 } ] } ], "actions": [ { "field_name": "status", "value": 5 } ], "description": "This rule will close all the resolved tickets after 48 hours." }, { "name": "Copy of Automatically close resolved tickets after 48 hours", "position": 3, "active": true, "outdated": false, "last_updated_by": 156006681943, "id": 156002206498, "summary": { "conditions": { "condition_set_1": [ "If Status is Resolved", "AND", "If Hour Since Resolved greater than 48" ] }, "actions": [ " Set Status as Closed" ] }, "created_at": "2025-03-08T04:44:33Z", "updated_at": "2025-03-08T04:44:33Z", "affected_tickets_count": 0, "conditions": [ { "name": "condition_set_1", "match_type": "all", "properties": [ { "field_name": "status", "operator": "in", "value": [ 4 ] }, { "field_name": "resolved_at", "operator": "greater_than", "value": 48 } ] } ], "actions": [ { "field_name": "status", "value": 5 } ], "description": "This rule will close all the resolved tickets after 48 hours." }
- Assistant
- User
- Assistant