{
	"info": {
		"_postman_id": "04e30605-3ad2-4f6d-a70c-db5ee5cdb522",
		"name": "Aura Mocks Server - Genesys",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "chat",
			"item": [
				{
					"name": "Request Chat - /genesys/2/chat/{serviceName}",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						},
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Save variables\", () => {",
									"    var jsonData = pm.response.json();",
									"    pm.collectionVariables.set(\"chatId\", jsonData.chatId);",
									"    pm.collectionVariables.set(\"secureKey\", jsonData.secureKey);",
									"    pm.collectionVariables.set(\"userId\", jsonData.userId);",
									"});",
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "nickname",
									"value": "JohnDoe",
									"type": "text"
								},
								{
									"key": "firstName",
									"value": "John",
									"type": "text"
								},
								{
									"key": "lastName",
									"value": "Doe",
									"type": "text"
								},
								{
									"key": "subject",
									"value": "Help with account",
									"type": "text"
								},
								{
									"key": "emailAddress",
									"value": "jdoe@gmail.com",
									"type": "text"
								},
								{
									"key": "userData[auraConversationId]",
									"value": "4Asjdj134912341243",
									"type": "text"
								},
								{
									"key": "profile",
									"value": "test",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/chat/test",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"chat",
								"test"
							]
						}
					},
					"response": []
				},
				{
					"name": "Send Message - /genesys/2/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "message",
									"value": "I need help with account",
									"type": "text"
								},
								{
									"key": "userId",
									"value": "{{userId}}",
									"type": "text"
								},
								{
									"key": "secureKey",
									"value": "{{secureKey}}",
									"type": "text"
								},
								{
									"key": "alias",
									"value": "99",
									"type": "text"
								},
								{
									"key": "messageType",
									"value": "text",
									"type": "text"
								},
								{
									"key": "transcriptPosition",
									"value": "0",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "Disconnect - /genesys/2/chat/{serviceName}/{chatId}/disconnect",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "userId",
									"value": "{{userId}}",
									"type": "text"
								},
								{
									"key": "secureKey",
									"value": "{{secureKey}}",
									"type": "text"
								},
								{
									"key": "alias",
									"value": "99",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/chat/test/{{chatId}}/disconnect",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"chat",
								"test",
								"{{chatId}}",
								"disconnect"
							]
						}
					},
					"response": []
				},
				{
					"name": "PushUrl - /genesys/2/chat/{serviceName}/{chatId}/pushUrl",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "userId",
									"value": "{{userId}}",
									"type": "text"
								},
								{
									"key": "secureKey",
									"value": "{{secureKey}}",
									"type": "text"
								},
								{
									"key": "alias",
									"value": "99",
									"type": "text"
								},
								{
									"key": "pushUrl",
									"value": "http://localhost:3000/genesys/v2/webhook",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/chat/test/{{chatId}}/pushUrl",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"chat",
								"test",
								"{{chatId}}",
								"pushUrl"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "mock-chat",
			"item": [
				{
					"name": "ParticipantJoined (system) - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"nickname\": \"system\",\n        \"type\": \"External\"\n    }, \n    \"type\": \"ParticipantJoined\",\n    \"timeout\": 1\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "ParticipantJoined (agent) - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"nickname\": \"agent1\",\n        \"type\": \"Agent\"\n    }, \n    \"type\": \"ParticipantJoined\",\n    \"timeout\": 1\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "ParticipantLeft - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"Agent\"\n    }, \n    \"type\": \"ParticipantLeft\",\n    \"text\": \"I pass you with a partner\",\n    \"timeout\": 1\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "Message - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"Client\"\n    }, \n    \"type\": \"Message\",\n    \"text\": \"Can you help me?\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "TypingStarted - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"Client\"\n    }, \n    \"type\": \"TypingStarted\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "TypingStopped - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"Client\"\n    }, \n    \"type\": \"TypingStopped\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "NicknameUpdated - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"Client\"\n    }, \n    \"type\": \"NicknameUpdated\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "PushUrl - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"Client\"\n    }, \n    \"type\": \"PushUrl\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "FileUploaded - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"Client\"\n    }, \n    \"type\": \"FileUploaded\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "FileDeleted - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"Client\"\n    }, \n    \"type\": \"FileDeleted\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "CustomNotice - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"External\"\n    }, \n    \"type\": \"CustomNotice\",\n    \"text\": \"Custom notice\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "Notice - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"External\"\n    }, \n    \"type\": \"Notice\",\n    \"text\": \"notice\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "IdleAlert - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"External\"\n    }, \n    \"type\": \"IdleAlert\",\n    \"text\": \"idle alert\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "IdleClose - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"from\": { \n        \"type\": \"External\"\n    }, \n    \"type\": \"IdleClose\",\n    \"text\": \"idle close\",\n    \"timeout\": 1\n}\n\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				},
				{
					"name": "Example auto messages - /genesys/2/mock/chat/{serviceName}/{chatId}/send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "[\n    {\n        \"from\": {\n            \"nickname\": \"system\",\n            \"type\": \"External\"\n        },\n        \"type\": \"ParticipantJoined\",\n        \"timeout\": 1\n    },\n    {\n        \"from\": {\n            \"type\": \"External\"\n        },\n        \"type\": \"Message\",\n        \"text\": \"You have approximately 15 minutes to be attended\",\n        \"timeout\": 1\n    },\n    {\n        \"from\": {\n            \"type\": \"External\"\n        },\n        \"type\": \"Message\",\n        \"text\": \"Soon one of our agents will attend you personally\",\n        \"timeout\": 1\n    }\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{genesys_url}}/genesys/2/mock/chat/test/{{chatId}}/send",
							"host": [
								"{{genesys_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"chat",
								"test",
								"{{chatId}}",
								"send"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "mock-session",
			"item": [
				{
					"name": "Get sessions - /genesys/2/mock/sessions/",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{mock_url}}/genesys/2/mock/sessions",
							"host": [
								"{{mock_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"sessions"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get session by id - /genesys/2/mock/sessions/{{id}}",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{mock_url}}/genesys/2/mock/sessions/CHATE04A1B58A6FF",
							"host": [
								"{{mock_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"sessions",
								"CHATE04A1B58A6FF"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get session stats - /genesys/2/mock/sessions/stats",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{mock_url}}/genesys/2/mock/sessions/stats",
							"host": [
								"{{mock_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"sessions",
								"stats"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get key sessions - /genesys/2/mock/sessions/keys?filter={{filter}}",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{mock_url}}/genesys/2/mock/sessions/keys",
							"host": [
								"{{mock_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"sessions",
								"keys"
							]
						}
					},
					"response": []
				},
				{
					"name": "Remove all sessions - /genesys/2/mock/sessions",
					"request": {
						"method": "DELETE",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{mock_url}}/genesys/2/mock/sessions",
							"host": [
								"{{mock_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"sessions"
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "mock-profiles",
			"item": [
				{
					"name": "Get settings - /genesys/2/mock/profiles/",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{mock_url}}/genesys/2/mock/profiles",
							"host": [
								"{{mock_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"profiles"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get profile settings - /genesys/2/mock/profiles/:profile",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{mock_url}}/genesys/2/mock/profiles/default",
							"host": [
								"{{mock_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"profiles",
								"default"
							]
						}
					},
					"response": []
				},
				{
					"name": "Set profile TEST - /genesys/2/mock/profiles/:profile (test)",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"chat\": {\n        \"pushUrl\": \"http://localhost:3000/genesys/2/webhook\",\n        \"autoMessages\": [\n        ]\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{mock_url}}/genesys/2/mock/profiles/default",
							"host": [
								"{{mock_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"profiles",
								"default"
							]
						}
					},
					"response": []
				},
				{
					"name": "Reset settings - /genesys/2/mock/profiles/reset",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{mock_url}}/genesys/2/mock/profiles/reset",
							"host": [
								"{{mock_url}}"
							],
							"path": [
								"genesys",
								"2",
								"mock",
								"profiles",
								"reset"
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "mock_url",
			"value": "http://localhost:3000"
		},
		{
			"key": "genesys_url",
			"value": "http://localhost:3000"
		},
		{
			"key": "chatId",
			"value": ""
		},
		{
			"key": "secureKey",
			"value": ""
		},
		{
			"key": "userId",
			"value": ""
		}
	]
}