{"info":{"_postman_id":"f78753f2-1937-4cbd-9603-38b159501596","name":"DB APIs V3.x","description":"<html><head></head><body><p>Get all chat messages and conversation events happened in a conversation. The API supports pagination using <strong>offset</strong> and <strong>limit</strong> parameters.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8262326","collectionId":"f78753f2-1937-4cbd-9603-38b159501596","publishedId":"TzCMcngo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-31T06:02:48.000Z"},"item":[{"name":"Get Messages","id":"0bb3a9fe-078f-4f89-b793-242a385de64a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/database-connector/getMessages?conversationId=hS74NmR-hdBBlaoOAM_ry&limit=2&offset=0","description":"<p><b>getMessages</b> API takes <b>conversationId</b> as a mandatory parameter along with <b>limit</b> and <b>offset</b> as optional parameters. If limit and offset are not set, API will return all the messages in the conversation, otherwise, it returns latest messages as per described <b>limit</b> starting from <b>offset</b>.</p>\n","urlObject":{"path":["database-connector","getMessages"],"host":["{{url}}"],"query":[{"description":{"content":"<p>It represents individual chat session</p>\n","type":"text/plain"},"key":"conversationId","value":"hS74NmR-hdBBlaoOAM_ry"},{"description":{"content":"<p><strong>optional</strong> - </p>\n","type":"text/plain"},"key":"limit","value":"2"},{"description":{"content":"<p><strong>optional</strong> - </p>\n","type":"text/plain"},"key":"offset","value":"0"}],"variable":[]}},"response":[{"id":"50bead10-5078-40d5-8b31-078870117f02","name":"Get Messages","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://192.168.2.83/database-connector/getMessages?conversationId=hS74NmR-hdBBlaoOAM_ry&limit=0&offset=0","protocol":"https","host":["192","168","2","83"],"path":["database-connector","getMessages"],"query":[{"key":"conversationId","value":"hS74NmR-hdBBlaoOAM_ry"},{"key":"limit","value":"0"},{"key":"offset","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0"},{"key":"Date","value":"Wed, 24 Mar 2021 11:13:44 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"281b-japsO0y4+47PO88aCDlNAv9nEEI\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"605860762c4e0d0007b7dcb9\",\n        \"to\": [],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"WSPwabiIclTjHtUTY_XAa\",\n        \"messageType\": \"ActivityMessage\",\n        \"from\": {\n            \"id\": \"K1OywrAxN3EYG9Nc9N-f5\",\n            \"name\": \"Rizwan\",\n            \"firstName\": \"Rizwan\",\n            \"lastName\": \"\",\n            \"alias\": \"undefined\",\n            \"type\": \"Customer\"\n        },\n        \"timestamp\": \"2021-03-22T09:16:38.481Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": false,\n        \"language\": \"\",\n        \"channel\": \"web\",\n        \"activityType\": \"participantLeft\",\n        \"info\": {\n            \"participant\": {\n                \"id\": \"K1OywrAxN3EYG9Nc9N-f5\",\n                \"name\": \"Rizwan\",\n                \"type\": \"Customer\"\n            }\n        },\n        \"createdAt\": \"2021-03-22T09:16:38.487Z\",\n        \"updatedAt\": \"2021-03-22T09:16:38.487Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"605860512c4e0d0007b7dcb8\",\n        \"to\": [],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"9q1yPsv0wSIEXM8UT0GnJ\",\n        \"messageType\": \"ActivityMessage\",\n        \"from\": {\n            \"id\": \"awais\",\n            \"name\": \"Awais%20Aslam\",\n            \"firstName\": \"Awais\",\n            \"lastName\": \"Aslam\",\n            \"alias\": \"Awais\",\n            \"type\": \"Agent\"\n        },\n        \"timestamp\": \"2021-03-22T09:16:01.668Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": false,\n        \"language\": \"\",\n        \"channel\": \"web\",\n        \"activityType\": \"participantJoined\",\n        \"createdAt\": \"2021-03-22T09:16:01.682Z\",\n        \"updatedAt\": \"2021-03-22T09:16:01.682Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6058604e2c4e0d0007b7dcb6\",\n        \"to\": [],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"3pyByHqzKND3LUBljBWyv\",\n        \"messageType\": \"ActivityMessage\",\n        \"from\": {\n            \"id\": \"chat_server_1\",\n            \"name\": \"Chat%20Server\",\n            \"firstName\": \"Chat%20Server\",\n            \"lastName\": \"\",\n            \"alias\": \"Chat%20Server\",\n            \"type\": \"Bot\"\n        },\n        \"timestamp\": \"2021-03-22T09:15:58.551Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": false,\n        \"language\": \"\",\n        \"channel\": \"web\",\n        \"activityType\": \"handOff\",\n        \"createdAt\": \"2021-03-22T09:15:58.563Z\",\n        \"updatedAt\": \"2021-03-22T09:15:58.563Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6058604e2c4e0d0007b7dcb5\",\n        \"to\": [],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"29b3964e-3570-4958-9147-30df2dd1c858\",\n        \"messageType\": \"ActivityMessage\",\n        \"from\": {\n            \"id\": \"bot\",\n            \"name\": \"EF%20Bot\",\n            \"firstName\": \"EF%20Bot\",\n            \"lastName\": \"\",\n            \"alias\": \"EF%20Bot\",\n            \"type\": \"Bot\"\n        },\n        \"timestamp\": \"2021-03-22T09:15:58.527Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": false,\n        \"language\": \"\",\n        \"channel\": \"web\",\n        \"activityType\": \"handOff\",\n        \"createdAt\": \"2021-03-22T09:15:58.537Z\",\n        \"updatedAt\": \"2021-03-22T09:15:58.537Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6058604e2c4e0d0007b7dcb4\",\n        \"to\": [],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"29b3964e-3570-4958-9147-30df2dd1c858\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"K1OywrAxN3EYG9Nc9N-f5\",\n            \"name\": \"Rizwan\",\n            \"firstName\": \"Rizwan\",\n            \"lastName\": \"\",\n            \"alias\": \"undefined\",\n            \"type\": \"Customer\"\n        },\n        \"timestamp\": \"2021-03-22T09:15:58.451Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": false,\n        \"language\": \"en\",\n        \"channel\": \"web\",\n        \"text\": \"%2Fhuman\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-03-22T09:15:58.460Z\",\n        \"updatedAt\": \"2021-03-22T09:15:58.460Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"605860492c4e0d0007b7dcb3\",\n        \"to\": [\n            {\n                \"id\": \"K1OywrAxN3EYG9Nc9N-f5\",\n                \"name\": \"Rizwan\",\n                \"type\": \"Customer\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"TyBywQ8nSqJ0NUOUcMI3n\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"bot\",\n            \"name\": \"EF%20Bot\",\n            \"firstName\": \"EF%20Bot\",\n            \"lastName\": \"\",\n            \"alias\": \"EF%20Bot\",\n            \"type\": \"Bot\"\n        },\n        \"timestamp\": \"2021-03-22T09:15:53.280Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": true,\n        \"language\": \"\",\n        \"channel\": \"web\",\n        \"text\": \"https%3A%2F%2Fapps.apple.com%2Feg%2Fapp%2Fptcl-smart-tv-official%2Fid955431173\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-03-22T09:15:53.289Z\",\n        \"updatedAt\": \"2021-03-22T09:15:53.289Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"605860492c4e0d0007b7dcb2\",\n        \"to\": [],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"0ef5563b-9a62-491d-b62a-556e9af2aa6b\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"K1OywrAxN3EYG9Nc9N-f5\",\n            \"name\": \"Rizwan\",\n            \"firstName\": \"Rizwan\",\n            \"lastName\": \"\",\n            \"alias\": \"undefined\",\n            \"type\": \"Customer\"\n        },\n        \"timestamp\": \"2021-03-22T09:15:53.241Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": false,\n        \"language\": \"en\",\n        \"channel\": \"web\",\n        \"text\": \"%2Fapplicaitons_smarttv_ios\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-03-22T09:15:53.250Z\",\n        \"updatedAt\": \"2021-03-22T09:15:53.250Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"605860482c4e0d0007b7dcb1\",\n        \"to\": [\n            {\n                \"id\": \"K1OywrAxN3EYG9Nc9N-f5\",\n                \"name\": \"Rizwan\",\n                \"type\": \"Customer\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"nFTMmAmzHf1cBdjGY982u\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"bot\",\n            \"name\": \"EF%20Bot\",\n            \"firstName\": \"EF%20Bot\",\n            \"lastName\": \"\",\n            \"alias\": \"EF%20Bot\",\n            \"type\": \"Bot\"\n        },\n        \"timestamp\": \"2021-03-22T09:15:52.350Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": true,\n        \"language\": \"\",\n        \"channel\": \"web\",\n        \"text\": \"Please%20reply%20with%20your%20desired%20option%0A\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"structuredData\": {\n            \"elements\": null,\n            \"quick_replies\": null,\n            \"buttons\": [\n                {\n                    \"index\": 1,\n                    \"payload\": \"/applicaitons_andriod\",\n                    \"title\": \"PTCL Touch APP (Andriod)\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 2,\n                    \"payload\": \"/applicaitons_ios\",\n                    \"title\": \"PTCL Touch APP (IOS)\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 3,\n                    \"payload\": \"/applicaitons_smarttv_andriod\",\n                    \"title\": \"PTCL Smart TV APP (Andriod)\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 4,\n                    \"payload\": \"/applicaitons_smarttv_ios\",\n                    \"title\": \"PTCL Smart TV APP (IOS)\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 5,\n                    \"payload\": \"/applicaitons_netflix\",\n                    \"title\": \"Netflix\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 0,\n                    \"payload\": \"/greet\",\n                    \"title\": \"_Main Menu_\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": -1,\n                    \"payload\": \"/applicaitons\",\n                    \"title\": \"Default\",\n                    \"type\": \"postback\"\n                }\n            ],\n            \"attachment\": null,\n            \"image\": null,\n            \"custom\": null\n        },\n        \"botResponseType\": \"structured\",\n        \"createdAt\": \"2021-03-22T09:15:52.367Z\",\n        \"updatedAt\": \"2021-03-22T09:15:52.367Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"605860482c4e0d0007b7dcb0\",\n        \"to\": [],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"c0772a72-4f7c-4bda-b85a-ad9156239ff2\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"K1OywrAxN3EYG9Nc9N-f5\",\n            \"name\": \"Rizwan\",\n            \"firstName\": \"Rizwan\",\n            \"lastName\": \"\",\n            \"alias\": \"undefined\",\n            \"type\": \"Customer\"\n        },\n        \"timestamp\": \"2021-03-22T09:15:52.303Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": false,\n        \"language\": \"en\",\n        \"channel\": \"web\",\n        \"text\": \"%2Fapplications%7B%22menu%22%3A%22applications%22%2C%22cellnumber%22%3A%22None%22%2C%22email%22%3A%22None%22%2C%22landlinenumber%22%3A%22None%22%2C%22name%22%3A%22None%22%2C%22city%22%3A%22None%22%2C%22area%22%3A%22None%22%2C%22HouseNo%22%3A%22None%22%2C%22cnic%22%3A%22None%22%2C%22new_service%22%3A%22None%22%7D\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-03-22T09:15:52.314Z\",\n        \"updatedAt\": \"2021-03-22T09:15:52.314Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"605860432c4e0d0007b7dcaf\",\n        \"to\": [\n            {\n                \"id\": \"K1OywrAxN3EYG9Nc9N-f5\",\n                \"name\": \"Rizwan\",\n                \"type\": \"Customer\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"zRt7CfaoLzShwiSPbDLqK\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"bot\",\n            \"name\": \"EF%20Bot\",\n            \"firstName\": \"EF%20Bot\",\n            \"lastName\": \"\",\n            \"alias\": \"EF%20Bot\",\n            \"type\": \"Bot\"\n        },\n        \"timestamp\": \"2021-03-22T09:15:47.806Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": true,\n        \"language\": \"\",\n        \"channel\": \"web\",\n        \"text\": \"*Dear%20Customer%2C%20Welcome%20to%20PTCL%20WhatsApp%20Self%20Service%20Channel*\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"structuredData\": {\n            \"elements\": null,\n            \"quick_replies\": null,\n            \"buttons\": [\n                {\n                    \"index\": 1,\n                    \"payload\": \"/complaint_registration{\\\"menu\\\":\\\"complaint_registration\\\",\\\"cellnumber\\\":\\\"None\\\",\\\"email\\\":\\\"None\\\",\\\"landlinenumber\\\":\\\"None\\\",\\\"name\\\":\\\"None\\\",\\\"city\\\":\\\"None\\\",\\\"area\\\":\\\"None\\\",\\\"HouseNo\\\":\\\"None\\\",\\\"cnic\\\":\\\"None\\\",\\\"new_service\\\":\\\"None\\\"}\",\n                    \"title\": \"Register a complaint\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 2,\n                    \"payload\": \"/complaint_registration{\\\"menu\\\":\\\"complaint_status\\\",\\\"cellnumber\\\":\\\"None\\\",\\\"email\\\":\\\"None\\\",\\\"landlinenumber\\\":\\\"None\\\",\\\"name\\\":\\\"None\\\",\\\"city\\\":\\\"None\\\",\\\"area\\\":\\\"None\\\",\\\"HouseNo\\\":\\\"None\\\",\\\"cnic\\\":\\\"None\\\",\\\"new_service\\\":\\\"None\\\"}\",\n                    \"title\": \"Check complaint status\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 3,\n                    \"payload\": \"/service_new{\\\"menu\\\":\\\"service_new\\\",\\\"cellnumber\\\":\\\"None\\\",\\\"email\\\":\\\"None\\\",\\\"landlinenumber\\\":\\\"None\\\",\\\"name\\\":\\\"None\\\",\\\"city\\\":\\\"None\\\",\\\"area\\\":\\\"None\\\",\\\"HouseNo\\\":\\\"None\\\",\\\"cnic\\\":\\\"None\\\",\\\"new_service\\\":\\\"None\\\"}\",\n                    \"title\": \"Apply for new Products/ Services\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 4,\n                    \"payload\": \"/service_information{\\\"menu\\\":\\\"service_information\\\",\\\"cellnumber\\\":\\\"None\\\",\\\"email\\\":\\\"None\\\",\\\"landlinenumber\\\":\\\"None\\\",\\\"name\\\":\\\"None\\\",\\\"city\\\":\\\"None\\\",\\\"area\\\":\\\"None\\\",\\\"HouseNo\\\":\\\"None\\\",\\\"cnic\\\":\\\"None\\\",\\\"new_service\\\":\\\"None\\\"}\",\n                    \"title\": \"Know more about our Products & Services\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 5,\n                    \"payload\": \"/bill_info_payments{\\\"menu\\\":\\\"bill_info_payments\\\",\\\"cellnumber\\\":\\\"None\\\",\\\"email\\\":\\\"None\\\",\\\"landlinenumber\\\":\\\"None\\\",\\\"name\\\":\\\"None\\\",\\\"city\\\":\\\"None\\\",\\\"area\\\":\\\"None\\\",\\\"HouseNo\\\":\\\"None\\\",\\\"cnic\\\":\\\"None\\\",\\\"new_service\\\":\\\"None\\\"}\",\n                    \"title\": \"Get Billing Information & Payment Options\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 6,\n                    \"payload\": \"/applications{\\\"menu\\\":\\\"applications\\\",\\\"cellnumber\\\":\\\"None\\\",\\\"email\\\":\\\"None\\\",\\\"landlinenumber\\\":\\\"None\\\",\\\"name\\\":\\\"None\\\",\\\"city\\\":\\\"None\\\",\\\"area\\\":\\\"None\\\",\\\"HouseNo\\\":\\\"None\\\",\\\"cnic\\\":\\\"None\\\",\\\"new_service\\\":\\\"None\\\"}\",\n                    \"title\": \"Download Digital Apps\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": 7,\n                    \"payload\": \"/video_tutorials{\\\"menu\\\":\\\"video_tutorials\\\",\\\"cellnumber\\\":\\\"None\\\",\\\"email\\\":\\\"None\\\",\\\"landlinenumber\\\":\\\"None\\\",\\\"name\\\":\\\"None\\\",\\\"city\\\":\\\"None\\\",\\\"area\\\":\\\"None\\\",\\\"HouseNo\\\":\\\"None\\\",\\\"cnic\\\":\\\"None\\\",\\\"new_service\\\":\\\"None\\\"}\",\n                    \"title\": \"Video Tutorials\",\n                    \"type\": \"postback\"\n                },\n                {\n                    \"index\": -1,\n                    \"payload\": \"/greet\",\n                    \"title\": \"Default\",\n                    \"type\": \"postback\"\n                }\n            ],\n            \"attachment\": null,\n            \"image\": null,\n            \"custom\": null\n        },\n        \"botResponseType\": \"structured\",\n        \"createdAt\": \"2021-03-22T09:15:47.814Z\",\n        \"updatedAt\": \"2021-03-22T09:15:47.814Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"605860432c4e0d0007b7dcae\",\n        \"to\": [],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"hS74NmR-hdBBlaoOAM_ry\",\n        \"messageId\": \"f3aacc85-28fe-4564-9f42-038e661c97bf\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"K1OywrAxN3EYG9Nc9N-f5\",\n            \"name\": \"Rizwan\",\n            \"firstName\": \"Rizwan\",\n            \"lastName\": \"\",\n            \"alias\": \"undefined\",\n            \"type\": \"Customer\"\n        },\n        \"timestamp\": \"2021-03-22T09:15:47.680Z\",\n        \"tag\": \"\",\n        \"refId\": \"09000\",\n        \"processByBot\": false,\n        \"language\": \"en\",\n        \"channel\": \"web\",\n        \"text\": \"Hi\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-03-22T09:15:47.687Z\",\n        \"updatedAt\": \"2021-03-22T09:15:47.687Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"0bb3a9fe-078f-4f89-b793-242a385de64a"},{"name":"Get Conversations","id":"dda0e562-d494-4e1b-96ad-4ff6de4b05bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/getconversations","description":"<p>This API is used to fetch non-closed conversations</p>\n","urlObject":{"protocol":"https","path":["database-connector","getconversations"],"host":["hcdev","expertflow","com"],"query":[],"variable":[]}},"response":[{"id":"a0516d5c-c82a-448c-87c5-4c3afa30f449","name":"Get Conversations","originalRequest":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/getconversations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.16.1"},{"key":"Date","value":"Wed, 31 Mar 2021 03:33:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"897-pTkRyLsfqm0qQoIjmmBtD2BqaFc\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"6062fcbd19ea0e0007ec732b\",\n        \"participant\": [\n            {\n                \"id\": \"G9ry4Upm9Ot-9rjcIe1vn\",\n                \"firstName\": \"Awais%20Aslam\",\n                \"lastName\": \"\",\n                \"name\": \"Awais%20Aslam\",\n                \"type\": \"Customer\",\n                \"info\": {\n                    \"accountId\": \"G9ry4Upm9Ot-9rjcIe1vn\",\n                    \"name\": \"Awais Aslam\",\n                    \"email\": \"\",\n                    \"phone\": \"6217103214981719\",\n                    \"url\": \"\",\n                    \"language\": \"en\",\n                    \"channel\": \"facebook\",\n                    \"skillgroup\": \"\"\n                }\n            },\n            {\n                \"id\": \"bot\",\n                \"firstName\": \"EF%20Bot\",\n                \"lastName\": \"\",\n                \"name\": \"EF%20Bot\",\n                \"type\": \"Bot\"\n            }\n        ],\n        \"roles\": [\n            {\n                \"participantId\": \"G9ry4Upm9Ot-9rjcIe1vn\",\n                \"role\": \"Customer\"\n            },\n            {\n                \"participantId\": \"bot\",\n                \"role\": \"Bot\"\n            }\n        ],\n        \"handRaise\": [\n            {\n                \"handRaise\": false,\n                \"supervisorId\": \"G9ry4Upm9Ot-9rjcIe1vn\"\n            },\n            {\n                \"handRaise\": false,\n                \"supervisorId\": \"bot\"\n            }\n        ],\n        \"id\": \"ri517L8c8TDH3RnzGyrgW\",\n        \"instanceId\": \"chat_server_1\",\n        \"startTime\": \"2021-03-30T10:26:05.647Z\",\n        \"channel\": \"facebook\",\n        \"state\": \"INITIATED\",\n        \"type\": \"Hybrid\",\n        \"taskId\": \"\",\n        \"refId\": \"6217103214981719\",\n        \"sessionType\": \"1\",\n        \"skillgroup\": \"\",\n        \"lastOwnerAgent\": \"\",\n        \"lastOutboundAgent\": \"\",\n        \"createdAt\": \"2021-03-30T10:26:05.664Z\",\n        \"updatedAt\": \"2021-03-30T10:26:07.696Z\",\n        \"__v\": 0,\n        \"participantJoinTime\": {\n            \"G9ry4Upm9Ot-9rjcIe1vn\": \"2021-03-30T10:26:05.672Z\",\n            \"bot\": \"2021-03-30T10:26:07.685Z\"\n        }\n    },\n    {\n        \"_id\": \"6063113919ea0e0007ec732f\",\n        \"participant\": [\n            {\n                \"id\": \"lSU2HMT_nXcqSIbcKDuKG\",\n                \"firstName\": \"Awais\",\n                \"lastName\": \"\",\n                \"name\": \"Awais\",\n                \"type\": \"Customer\",\n                \"info\": {\n                    \"accountId\": \"lSU2HMT_nXcqSIbcKDuKG\",\n                    \"name\": \"Awais\",\n                    \"email\": \"\",\n                    \"phone\": \"U1VjVWFJand6RXUxT1pDTUdOWmp5Zz09\",\n                    \"url\": \"\",\n                    \"language\": \"en\",\n                    \"channel\": \"viber\",\n                    \"skillgroup\": \"\"\n                }\n            },\n            {\n                \"id\": \"bot\",\n                \"firstName\": \"EF%20Bot\",\n                \"lastName\": \"\",\n                \"name\": \"EF%20Bot\",\n                \"type\": \"Bot\"\n            }\n        ],\n        \"roles\": [\n            {\n                \"participantId\": \"lSU2HMT_nXcqSIbcKDuKG\",\n                \"role\": \"Customer\"\n            },\n            {\n                \"participantId\": \"bot\",\n                \"role\": \"Bot\"\n            }\n        ],\n        \"handRaise\": [\n            {\n                \"handRaise\": false,\n                \"supervisorId\": \"lSU2HMT_nXcqSIbcKDuKG\"\n            },\n            {\n                \"handRaise\": false,\n                \"supervisorId\": \"bot\"\n            }\n        ],\n        \"id\": \"9AikWRoqS7Uo_nHSaSBdU\",\n        \"instanceId\": \"chat_server_1\",\n        \"startTime\": \"2021-03-30T11:53:29.737Z\",\n        \"channel\": \"viber\",\n        \"state\": \"INITIATED\",\n        \"type\": \"Hybrid\",\n        \"taskId\": \"\",\n        \"refId\": \"U1VjVWFJand6RXUxT1pDTUdOWmp5Zz09\",\n        \"sessionType\": \"1\",\n        \"skillgroup\": \"\",\n        \"lastOwnerAgent\": \"\",\n        \"lastOutboundAgent\": \"\",\n        \"createdAt\": \"2021-03-30T11:53:29.746Z\",\n        \"updatedAt\": \"2021-03-30T11:53:31.789Z\",\n        \"__v\": 0,\n        \"participantJoinTime\": {\n            \"lSU2HMT_nXcqSIbcKDuKG\": \"2021-03-30T11:53:29.755Z\",\n            \"bot\": \"2021-03-30T11:53:31.775Z\"\n        }\n    }\n]"}],"_postman_id":"dda0e562-d494-4e1b-96ad-4ff6de4b05bf"},{"name":"Save Conversation","id":"805d2840-ffc0-4b18-90c5-8b4b7959fa36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"<conversationId>\",\r\n    \"instanceId\": \"Chat_Server_1\",\r\n    \"startTime\": \"<conversation start time>\",\r\n    \"channel\": \"sms|web|facebook|viber\",\r\n    \"state\": \"<conversation state>\",\r\n    \"type\": \"Bot|Hybrid|Agent\",\r\n    \"taskId\": \"\",\r\n    \"refId\": \"09000\",\r\n    \"sessionType\": \"1\",\r\n    \"participant\": [],\r\n    \"roles\": [],\r\n    \"handRaise\": [],\r\n    \"skillgroup\": \"VIP\",\r\n    \"lastOwnerAgent\": \"\",\r\n    \"lastOutboundAgent\": \"\",\r\n    \"participantJoinTime\": \"\",\r\n    \"endTime\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://192.168.2.83/database-connector/conversations/saveConversation","description":"<p>This API saves the conversation in the database. It takes JSON object as data and saves it to conversations schema in the mongodb.</p>\n","urlObject":{"protocol":"https","path":["database-connector","conversations","saveConversation"],"host":["192","168","2","83"],"query":[],"variable":[]}},"response":[],"_postman_id":"805d2840-ffc0-4b18-90c5-8b4b7959fa36"},{"name":"Get Queues","id":"ff521b77-ebb3-4c22-ae74-1157b7bec401","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/getQueues","description":"<p>This API is used to fetch queues from the database-connector and tasks attached with each queue</p>\n","urlObject":{"protocol":"https","path":["database-connector","getQueues"],"host":["hcdev","expertflow","com"],"query":[],"variable":[]}},"response":[{"id":"f0008a16-410d-430d-8742-09912b2d39c3","name":"Get Queues","originalRequest":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/getQueues"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.16.1"},{"key":"Date","value":"Tue, 20 Apr 2021 05:16:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"84-ZipZP6ngnDaFl8ZWb7ydA9zYNN8\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"EnqueuedTasks\": [\n            \"4f1846f1-e86e-40c4-8e76-bf4162b33824\"\n        ],\n        \"_id\": \"60759c837d1e70000785ac98\",\n        \"Name\": \"DefaultPrecisionQueue\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"ff521b77-ebb3-4c22-ae74-1157b7bec401"},{"name":"Get Tasks","id":"7ee2a81e-c528-4022-813c-6c19e0283678","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/getTasks","description":"<p>This API is used to fetch active tasks from the database. It returns array of JSON objects containing tasks information.</p>\n","urlObject":{"protocol":"https","path":["database-connector","getTasks"],"host":["hcdev","expertflow","com"],"query":[],"variable":[]}},"response":[{"id":"8354ecab-b76a-4511-bee5-40be470c1893","name":"Get Tasks","originalRequest":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/getTasks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.16.1"},{"key":"Date","value":"Tue, 20 Apr 2021 05:18:36 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"276-ZlibpzFkqyf2IuhG8nlAmOlRgBM\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"607d37de7d1e70000785ad0d\",\n        \"AgentMrdState\": \"\",\n        \"TaskId\": \"4f1846f1-e86e-40c4-8e76-bf4162b33824\",\n        \"LastTaskStateChangeTime\": \"Mon Apr 19 13:19:36 PKT 2021\",\n        \"Priority\": 0,\n        \"ParticipantAgents\": [],\n        \"MrdId\": \"chat\",\n        \"Attributes\": {\n            \"agent\": \"\",\n            \"chatId\": \"pLecfJbai_H1XiKX8iBKO\",\n            \"phone\": \"MTIzND83ODg/\",\n            \"customerId\": \"6ubh4x7sKOMCiV3FVi3ob\",\n            \"name\": \"Hamza\",\n            \"channel\": \"viber\",\n            \"refId\": \"MTIzND83ODg/\",\n            \"email\": \"\",\n            \"url\": \"\",\n            \"skillgroup\": \"\",\n            \"labels\": \"\"\n        },\n        \"ClientId\": \"pLecfJbai_H1XiKX8iBKO\",\n        \"AgentId\": \"\",\n        \"TaskState\": \"NEW\",\n        \"createdAt\": \"2021-04-19T07:57:18.088Z\",\n        \"updatedAt\": \"2021-04-19T08:19:37.018Z\",\n        \"__v\": 0,\n        \"EnqueueTime\": [\n            1618819038100,\n            1618820376963\n        ]\n    }\n]"}],"_postman_id":"7ee2a81e-c528-4022-813c-6c19e0283678"},{"name":"Get Agents","id":"fadd8519-d023-46dc-b89d-64f2b2192356","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/getAgents","description":"<p>This API is used to fetch all the agents from the database. It returns an array of agent objects. This API is used by the comm-server to restore the system in case of fail-over.</p>\n","urlObject":{"protocol":"https","path":["database-connector","getAgents"],"host":["hcdev","expertflow","com"],"query":[],"variable":[]}},"response":[{"id":"81cdb955-115c-4a7f-80b6-a64d70fa6201","name":"Get Agents","originalRequest":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/getAgents"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.16.1"},{"key":"Date","value":"Tue, 20 Apr 2021 05:22:13 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"1255-CCuIt6cUVmAF5fLOWrxkt8pIAm4\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"6077e2807d1e70000785ac9e\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"rizwan\",\n        \"ClientQueue\": \"rizwan_7048\",\n        \"LastStateChangeTime\": \"Thu Apr 15 12:26:03 PKT 2021\",\n        \"createdAt\": \"2021-04-15T06:51:44.082Z\",\n        \"updatedAt\": \"2021-04-15T07:26:03.319Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"6079282c7d1e70000785acac\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"jz4\",\n        \"ClientQueue\": \"jz4_9527\",\n        \"LastStateChangeTime\": \"Fri Apr 16 11:07:00 PKT 2021\",\n        \"createdAt\": \"2021-04-16T06:01:16.585Z\",\n        \"updatedAt\": \"2021-04-16T06:07:00.682Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"6079298f7d1e70000785acb7\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"jz1\",\n        \"ClientQueue\": \"jz1_3060\",\n        \"LastStateChangeTime\": \"Mon Apr 19 13:19:36 PKT 2021\",\n        \"createdAt\": \"2021-04-16T06:07:11.482Z\",\n        \"updatedAt\": \"2021-04-19T08:19:37.037Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"607d31b57d1e70000785acfa\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"2001\",\n        \"ClientQueue\": \"2001_6446\",\n        \"LastStateChangeTime\": \"Mon Apr 19 12:45:00 PKT 2021\",\n        \"createdAt\": \"2021-04-19T07:31:01.191Z\",\n        \"updatedAt\": \"2021-04-19T07:45:00.531Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"607d31b67d1e70000785acfb\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"2002\",\n        \"ClientQueue\": \"2002_9983\",\n        \"LastStateChangeTime\": \"Mon Apr 19 12:45:00 PKT 2021\",\n        \"createdAt\": \"2021-04-19T07:31:02.236Z\",\n        \"updatedAt\": \"2021-04-19T07:45:00.353Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"607d31b77d1e70000785acfc\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"2003\",\n        \"ClientQueue\": \"2003_3203\",\n        \"LastStateChangeTime\": \"Mon Apr 19 12:45:00 PKT 2021\",\n        \"createdAt\": \"2021-04-19T07:31:03.213Z\",\n        \"updatedAt\": \"2021-04-19T07:45:00.594Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"607d31b87d1e70000785acfd\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"2004\",\n        \"ClientQueue\": \"2004_6252\",\n        \"LastStateChangeTime\": \"Mon Apr 19 12:45:00 PKT 2021\",\n        \"createdAt\": \"2021-04-19T07:31:04.094Z\",\n        \"updatedAt\": \"2021-04-19T07:45:00.387Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"607d31b97d1e70000785acfe\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"2005\",\n        \"ClientQueue\": \"2005_4403\",\n        \"LastStateChangeTime\": \"Mon Apr 19 12:45:00 PKT 2021\",\n        \"createdAt\": \"2021-04-19T07:31:05.214Z\",\n        \"updatedAt\": \"2021-04-19T07:45:00.553Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"607d31ba7d1e70000785acff\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"2006\",\n        \"ClientQueue\": \"2006_6196\",\n        \"LastStateChangeTime\": \"Mon Apr 19 12:45:00 PKT 2021\",\n        \"createdAt\": \"2021-04-19T07:31:06.341Z\",\n        \"updatedAt\": \"2021-04-19T07:45:00.573Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"607d31bb7d1e70000785ad00\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"2007\",\n        \"ClientQueue\": \"2007_2209\",\n        \"LastStateChangeTime\": \"Mon Apr 19 12:45:00 PKT 2021\",\n        \"createdAt\": \"2021-04-19T07:31:07.207Z\",\n        \"updatedAt\": \"2021-04-19T07:45:00.512Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"607d31bc7d1e70000785ad01\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"2008\",\n        \"ClientQueue\": \"2008_5094\",\n        \"LastStateChangeTime\": \"Mon Apr 19 12:45:00 PKT 2021\",\n        \"createdAt\": \"2021-04-19T07:31:08.102Z\",\n        \"updatedAt\": \"2021-04-19T07:45:00.470Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    },\n    {\n        \"AnnouncementsReadTime\": \"2021-04-13T13:26:58.968Z\",\n        \"_id\": \"607d31bd7d1e70000785ad02\",\n        \"Extension\": \"\",\n        \"Agent\": \"Bl\\u007fS7ZIS\\u007fNYR\",\n        \"AgentMRDState\": \"LOGOUT\",\n        \"AgentId\": \"2009\",\n        \"ClientQueue\": \"2009_3100\",\n        \"LastStateChangeTime\": \"Mon Apr 19 12:45:00 PKT 2021\",\n        \"createdAt\": \"2021-04-19T07:31:09.111Z\",\n        \"updatedAt\": \"2021-04-19T07:45:00.432Z\",\n        \"__v\": 0,\n        \"NextState\": \"\",\n        \"PreviousState\": \"NOT_READY\",\n        \"Routable\": false\n    }\n]"}],"_postman_id":"fadd8519-d023-46dc-b89d-64f2b2192356"},{"name":"Get Conversation By Id","id":"a8224bd3-fa6e-4311-ae22-60fef1fc9d0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/conversations/getConversationById/pLecfJbai_H1XiKX8iBKO","description":"<p>This API is used to fetch the information of a specific conversation, it takes conversationId as parameter and returns the conversation details</p>\n","urlObject":{"protocol":"https","path":["database-connector","conversations","getConversationById","pLecfJbai_H1XiKX8iBKO"],"host":["hcdev","expertflow","com"],"query":[],"variable":[]}},"response":[{"id":"aeb1240e-7409-42c6-81bd-220cc7679d4f","name":"Get Conversation By Id","originalRequest":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/conversations/getConversationById/pLecfJbai_H1XiKX8iBKO"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.16.1"},{"key":"Date","value":"Tue, 20 Apr 2021 05:29:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"469-j7IwVe+RKdppe4swQKNFZGaPnQE\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"participant\": [\n        {\n            \"id\": \"6ubh4x7sKOMCiV3FVi3ob\",\n            \"firstName\": \"Hamza\",\n            \"lastName\": \"\",\n            \"name\": \"Hamza\",\n            \"type\": \"Customer\",\n            \"info\": {\n                \"accountId\": \"6ubh4x7sKOMCiV3FVi3ob\",\n                \"name\": \"Hamza\",\n                \"email\": \"\",\n                \"phone\": \"MTIzND83ODg/\",\n                \"url\": \"\",\n                \"language\": \"en\",\n                \"channel\": \"viber\",\n                \"skillgroup\": \"\"\n            }\n        },\n        {\n            \"id\": \"bot\",\n            \"firstName\": \"EF%20Bot\",\n            \"lastName\": \"\",\n            \"name\": \"EF%20Bot\",\n            \"type\": \"Bot\"\n        }\n    ],\n    \"roles\": [\n        {\n            \"participantId\": \"6ubh4x7sKOMCiV3FVi3ob\",\n            \"role\": \"Customer\"\n        },\n        {\n            \"participantId\": \"bot\",\n            \"role\": \"Bot\"\n        }\n    ],\n    \"handRaise\": [\n        {\n            \"handRaise\": false,\n            \"supervisorId\": \"6ubh4x7sKOMCiV3FVi3ob\"\n        },\n        {\n            \"handRaise\": false,\n            \"supervisorId\": \"bot\"\n        }\n    ],\n    \"_id\": \"607d37db7d1e70000785ad09\",\n    \"id\": \"pLecfJbai_H1XiKX8iBKO\",\n    \"instanceId\": \"chat_server_1\",\n    \"startTime\": \"2021-04-19T07:57:15.892Z\",\n    \"channel\": \"viber\",\n    \"state\": \"ACTIVE\",\n    \"type\": \"Hybrid\",\n    \"taskId\": \"4f1846f1-e86e-40c4-8e76-bf4162b33824\",\n    \"refId\": \"MTIzND83ODg/\",\n    \"sessionType\": \"1\",\n    \"skillgroup\": \"\",\n    \"lastOwnerAgent\": \"jz1\",\n    \"lastOutboundAgent\": \"\",\n    \"createdAt\": \"2021-04-19T07:57:15.911Z\",\n    \"updatedAt\": \"2021-04-19T08:19:36.911Z\",\n    \"__v\": 0,\n    \"participantJoinTime\": {\n        \"6ubh4x7sKOMCiV3FVi3ob\": \"2021-04-19T07:57:15.920Z\",\n        \"bot\": \"2021-04-19T07:57:17.932Z\",\n        \"jz1\": \"2021-04-19T07:57:22.067Z\"\n    }\n}"}],"_postman_id":"a8224bd3-fa6e-4311-ae22-60fef1fc9d0b"},{"name":"Get Messsages By refId","id":"0bd0431a-8dc6-407e-88b2-3df4e123741d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/messages/getMessagesByRefId/whatsapp:33336","description":"<p>This API takes refId as parameter and returns all the messages against the same refId.</p>\n","urlObject":{"protocol":"https","path":["database-connector","messages","getMessagesByRefId","whatsapp:33336"],"host":["hcdev","expertflow","com"],"query":[],"variable":[]}},"response":[{"id":"764e08c3-e63c-4767-87fb-813d6a9bd89e","name":"Get Messaes By refId","originalRequest":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/messages/getMessagesByRefId/whatsapp:33336"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.16.1"},{"key":"Date","value":"Tue, 20 Apr 2021 06:19:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"19e2-OdCi8i6ER327u2vpNrsivUxLvY8\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"607d612c7d1e700007864e32\",\n        \"to\": [\n            {\n                \"id\": \"6rmIgGx0iehwIZf5PVWv6\",\n                \"name\": \"33336\",\n                \"type\": \"Customer\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"02e8d-kP3qXdPot2hRaWd\",\n        \"messageId\": \"fNRBvGHGw0wvTkiTnkXJt\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"bot\",\n            \"name\": \"EF%20Bot\",\n            \"firstName\": \"EF%20Bot\",\n            \"lastName\": \"\",\n            \"alias\": \"EF%20Bot\",\n            \"type\": \"Bot\"\n        },\n        \"timestamp\": \"2021-04-19T10:53:32.268Z\",\n        \"tag\": \"BOT_ONLY\",\n        \"refId\": \"whatsapp:33336\",\n        \"processByBot\": true,\n        \"language\": \"\",\n        \"channel\": \"whatsapp\",\n        \"text\": \"hello%20from%20bot\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-04-19T10:53:32.585Z\",\n        \"updatedAt\": \"2021-04-19T10:53:32.585Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"607d612c7d1e700007864e2b\",\n        \"to\": [\n            {\n                \"id\": \"bot\",\n                \"name\": \"EF Bot\",\n                \"type\": \"Bot\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"02e8d-kP3qXdPot2hRaWd\",\n        \"messageId\": \"49bfbce1-6b99-4a4e-a2aa-b30454a8df5d\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"6rmIgGx0iehwIZf5PVWv6\",\n            \"name\": \"33336\",\n            \"firstName\": \"33336\",\n            \"lastName\": \"\",\n            \"alias\": \"undefined\",\n            \"type\": \"Customer\"\n        },\n        \"timestamp\": \"2021-04-19T10:53:32.220Z\",\n        \"tag\": \"BOT_ONLY\",\n        \"refId\": \"whatsapp:33336\",\n        \"processByBot\": false,\n        \"language\": \"en\",\n        \"channel\": \"whatsapp\",\n        \"text\": \"1\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-04-19T10:53:32.519Z\",\n        \"updatedAt\": \"2021-04-19T10:53:32.519Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"607d60217d1e7000078636e5\",\n        \"to\": [\n            {\n                \"id\": \"6rmIgGx0iehwIZf5PVWv6\",\n                \"name\": \"33336\",\n                \"type\": \"Customer\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"02e8d-kP3qXdPot2hRaWd\",\n        \"messageId\": \"gCxw8nCufwIy52Zt1pWqe\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"bot\",\n            \"name\": \"EF%20Bot\",\n            \"firstName\": \"EF%20Bot\",\n            \"lastName\": \"\",\n            \"alias\": \"EF%20Bot\",\n            \"type\": \"Bot\"\n        },\n        \"timestamp\": \"2021-04-19T10:49:00.900Z\",\n        \"tag\": \"BOT_ONLY\",\n        \"refId\": \"whatsapp:33336\",\n        \"processByBot\": true,\n        \"language\": \"\",\n        \"channel\": \"whatsapp\",\n        \"text\": \"hello%20from%20bot\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-04-19T10:49:05.487Z\",\n        \"updatedAt\": \"2021-04-19T10:49:05.487Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"607d60207d1e70000786366b\",\n        \"to\": [\n            {\n                \"id\": \"bot\",\n                \"name\": \"EF Bot\",\n                \"type\": \"Bot\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"02e8d-kP3qXdPot2hRaWd\",\n        \"messageId\": \"f17e2af4-30bc-40cb-9a23-242494ed8806\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"6rmIgGx0iehwIZf5PVWv6\",\n            \"name\": \"33336\",\n            \"firstName\": \"33336\",\n            \"lastName\": \"\",\n            \"alias\": \"undefined\",\n            \"type\": \"Customer\"\n        },\n        \"timestamp\": \"2021-04-19T10:49:00.395Z\",\n        \"tag\": \"BOT_ONLY\",\n        \"refId\": \"whatsapp:33336\",\n        \"processByBot\": false,\n        \"language\": \"en\",\n        \"channel\": \"whatsapp\",\n        \"text\": \"1\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-04-19T10:49:04.640Z\",\n        \"updatedAt\": \"2021-04-19T10:49:04.640Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"607d5eda7d1e70000786224f\",\n        \"to\": [\n            {\n                \"id\": \"6rmIgGx0iehwIZf5PVWv6\",\n                \"name\": \"33336\",\n                \"type\": \"Customer\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"02e8d-kP3qXdPot2hRaWd\",\n        \"messageId\": \"WLcqx7bVPEw6Jh0Clof4W\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"bot\",\n            \"name\": \"EF%20Bot\",\n            \"firstName\": \"EF%20Bot\",\n            \"lastName\": \"\",\n            \"alias\": \"EF%20Bot\",\n            \"type\": \"Bot\"\n        },\n        \"timestamp\": \"2021-04-19T10:43:38.427Z\",\n        \"tag\": \"BOT_ONLY\",\n        \"refId\": \"whatsapp:33336\",\n        \"processByBot\": true,\n        \"language\": \"\",\n        \"channel\": \"whatsapp\",\n        \"text\": \"hello%20from%20bot\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-04-19T10:43:38.487Z\",\n        \"updatedAt\": \"2021-04-19T10:43:38.487Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"607d5eda7d1e70000786224c\",\n        \"to\": [\n            {\n                \"id\": \"bot\",\n                \"name\": \"EF Bot\",\n                \"type\": \"Bot\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"02e8d-kP3qXdPot2hRaWd\",\n        \"messageId\": \"49e24c0b-2ff5-4138-9d89-4a068daeda78\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"6rmIgGx0iehwIZf5PVWv6\",\n            \"name\": \"33336\",\n            \"firstName\": \"33336\",\n            \"lastName\": \"\",\n            \"alias\": \"undefined\",\n            \"type\": \"Customer\"\n        },\n        \"timestamp\": \"2021-04-19T10:43:38.378Z\",\n        \"tag\": \"BOT_ONLY\",\n        \"refId\": \"whatsapp:33336\",\n        \"processByBot\": false,\n        \"language\": \"en\",\n        \"channel\": \"whatsapp\",\n        \"text\": \"1\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-04-19T10:43:38.404Z\",\n        \"updatedAt\": \"2021-04-19T10:43:38.404Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"607d5dd47d1e700007862080\",\n        \"to\": [\n            {\n                \"id\": \"6rmIgGx0iehwIZf5PVWv6\",\n                \"name\": \"33336\",\n                \"type\": \"Customer\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"02e8d-kP3qXdPot2hRaWd\",\n        \"messageId\": \"0l0Al6YUwrXnPo8pEd1AG\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"bot\",\n            \"name\": \"EF%20Bot\",\n            \"firstName\": \"EF%20Bot\",\n            \"lastName\": \"\",\n            \"alias\": \"EF%20Bot\",\n            \"type\": \"Bot\"\n        },\n        \"timestamp\": \"2021-04-19T10:39:16.619Z\",\n        \"tag\": \"BOT_ONLY\",\n        \"refId\": \"whatsapp:33336\",\n        \"processByBot\": true,\n        \"language\": \"\",\n        \"channel\": \"whatsapp\",\n        \"text\": \"hello%20from%20bot\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-04-19T10:39:16.629Z\",\n        \"updatedAt\": \"2021-04-19T10:39:16.629Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"607d5dd47d1e70000786207d\",\n        \"to\": [\n            {\n                \"id\": \"bot\",\n                \"name\": \"EF Bot\",\n                \"type\": \"Bot\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"02e8d-kP3qXdPot2hRaWd\",\n        \"messageId\": \"b49dea1f-0647-425d-841a-11ec9340b030\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"6rmIgGx0iehwIZf5PVWv6\",\n            \"name\": \"33336\",\n            \"firstName\": \"33336\",\n            \"lastName\": \"\",\n            \"alias\": \"undefined\",\n            \"type\": \"Customer\"\n        },\n        \"timestamp\": \"2021-04-19T10:39:16.561Z\",\n        \"tag\": \"BOT_ONLY\",\n        \"refId\": \"whatsapp:33336\",\n        \"processByBot\": false,\n        \"language\": \"en\",\n        \"channel\": \"whatsapp\",\n        \"text\": \"1\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-04-19T10:39:16.595Z\",\n        \"updatedAt\": \"2021-04-19T10:39:16.595Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"607d5b5e7d1e700007861bb8\",\n        \"to\": [\n            {\n                \"id\": \"6rmIgGx0iehwIZf5PVWv6\",\n                \"name\": \"33336\",\n                \"type\": \"Customer\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"02e8d-kP3qXdPot2hRaWd\",\n        \"messageId\": \"GYz4mMeFpxLNSAh96OLCj\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"bot\",\n            \"name\": \"EF%20Bot\",\n            \"firstName\": \"EF%20Bot\",\n            \"lastName\": \"\",\n            \"alias\": \"EF%20Bot\",\n            \"type\": \"Bot\"\n        },\n        \"timestamp\": \"2021-04-19T10:28:46.221Z\",\n        \"tag\": \"BOT_ONLY\",\n        \"refId\": \"whatsapp:33336\",\n        \"processByBot\": true,\n        \"language\": \"\",\n        \"channel\": \"whatsapp\",\n        \"text\": \"hello%20from%20bot\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-04-19T10:28:46.338Z\",\n        \"updatedAt\": \"2021-04-19T10:28:46.338Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"607d5b5e7d1e700007861baa\",\n        \"to\": [\n            {\n                \"id\": \"bot\",\n                \"name\": \"EF Bot\",\n                \"type\": \"Bot\"\n            }\n        ],\n        \"intents\": [],\n        \"output\": [],\n        \"entities\": [],\n        \"conversationId\": \"02e8d-kP3qXdPot2hRaWd\",\n        \"messageId\": \"64bfd2ed-4ad1-4a2b-b5b6-c02266915d57\",\n        \"messageType\": \"ChatMessage\",\n        \"from\": {\n            \"id\": \"6rmIgGx0iehwIZf5PVWv6\",\n            \"name\": \"33336\",\n            \"firstName\": \"33336\",\n            \"lastName\": \"\",\n            \"alias\": \"undefined\",\n            \"type\": \"Customer\"\n        },\n        \"timestamp\": \"2021-04-19T10:28:46.082Z\",\n        \"tag\": \"BOT_ONLY\",\n        \"refId\": \"whatsapp:33336\",\n        \"processByBot\": false,\n        \"language\": \"en\",\n        \"channel\": \"whatsapp\",\n        \"text\": \"1\",\n        \"attachments\": [],\n        \"buttons\": [],\n        \"botResponseType\": \"simple\",\n        \"createdAt\": \"2021-04-19T10:28:46.236Z\",\n        \"updatedAt\": \"2021-04-19T10:28:46.236Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"0bd0431a-8dc6-407e-88b2-3df4e123741d"},{"name":"Get Last Agent","id":"9dff1671-8ac5-4212-b9f4-1fe96a21ae6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/getLastAgent?refId=whatsapp:33336&type=owner","description":"<p>This API is used to fetch the agent who handled the conversation last time. It takes refId and type as query parameters, possible values for <strong>type</strong> attribute are <strong>outbound</strong> and <strong>owner</strong></p>\n","urlObject":{"protocol":"https","path":["database-connector","getLastAgent"],"host":["hcdev","expertflow","com"],"query":[{"key":"refId","value":"whatsapp:33336"},{"key":"type","value":"owner"}],"variable":[]}},"response":[{"id":"cb8245c7-71f4-4ca9-9dfe-172532db5627","name":"Get Last Agent","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://hcdev.expertflow.com/database-connector/getLastAgent?refId=whatsapp:33336&type=owner","protocol":"https","host":["hcdev","expertflow","com"],"path":["database-connector","getLastAgent"],"query":[{"key":"refId","value":"whatsapp:33336"},{"key":"type","value":"owner"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.16.1"},{"key":"Date","value":"Tue, 20 Apr 2021 06:26:26 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"2-3Sns9SSwMKZSYeMFnEirnh7LJYU\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"\"\""}],"_postman_id":"9dff1671-8ac5-4212-b9f4-1fe96a21ae6d"},{"name":"Metrics","id":"1a4f1b6d-40db-4b12-9013-3a550d785020","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/metrics","description":"<p>This API fetches the memory usage, CPU usage and nodejs related data to be used by the grafana later.</p>\n","urlObject":{"protocol":"https","path":["database-connector","metrics"],"host":["hcdev","expertflow","com"],"query":[],"variable":[]}},"response":[{"id":"d2d42feb-3d69-42a0-9317-5162716b4479","name":"Metrics","originalRequest":{"method":"GET","header":[],"url":"https://hcdev.expertflow.com/database-connector/metrics"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx/1.16.1"},{"key":"Date","value":"Tue, 20 Apr 2021 06:30:48 GMT"},{"key":"Content-Type","value":"text/plain; version=0.0.4; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"# HELP process_cpu_user_seconds_total Total user CPU time spent in seconds.\n# TYPE process_cpu_user_seconds_total counter\nprocess_cpu_user_seconds_total{app=\"database-connector\"} 3702.9922490000263\n\n# HELP process_cpu_system_seconds_total Total system CPU time spent in seconds.\n# TYPE process_cpu_system_seconds_total counter\nprocess_cpu_system_seconds_total{app=\"database-connector\"} 1681.7737420000037\n\n# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.\n# TYPE process_cpu_seconds_total counter\nprocess_cpu_seconds_total{app=\"database-connector\"} 5384.765991000009\n\n# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.\n# TYPE process_start_time_seconds gauge\nprocess_start_time_seconds{app=\"database-connector\"} 1618320418\n\n# HELP process_resident_memory_bytes Resident memory size in bytes.\n# TYPE process_resident_memory_bytes gauge\nprocess_resident_memory_bytes{app=\"database-connector\"} 78028800\n\n# HELP process_virtual_memory_bytes Virtual memory size in bytes.\n# TYPE process_virtual_memory_bytes gauge\nprocess_virtual_memory_bytes{app=\"database-connector\"} 330850304\n\n# HELP process_heap_bytes Process heap size in bytes.\n# TYPE process_heap_bytes gauge\nprocess_heap_bytes{app=\"database-connector\"} 288460800\n\n# HELP process_open_fds Number of open file descriptors.\n# TYPE process_open_fds gauge\nprocess_open_fds{app=\"database-connector\"} 27\n\n# HELP process_max_fds Maximum number of open file descriptors.\n# TYPE process_max_fds gauge\nprocess_max_fds{app=\"database-connector\"} 1048576\n\n# HELP nodejs_eventloop_lag_seconds Lag of event loop in seconds.\n# TYPE nodejs_eventloop_lag_seconds gauge\nnodejs_eventloop_lag_seconds{app=\"database-connector\"} 0.004374052\n\n# HELP nodejs_eventloop_lag_min_seconds The minimum recorded event loop delay.\n# TYPE nodejs_eventloop_lag_min_seconds gauge\nnodejs_eventloop_lag_min_seconds{app=\"database-connector\"} 0.000983552\n\n# HELP nodejs_eventloop_lag_max_seconds The maximum recorded event loop delay.\n# TYPE nodejs_eventloop_lag_max_seconds gauge\nnodejs_eventloop_lag_max_seconds{app=\"database-connector\"} 0.376963071\n\n# HELP nodejs_eventloop_lag_mean_seconds The mean of the recorded event loop delays.\n# TYPE nodejs_eventloop_lag_mean_seconds gauge\nnodejs_eventloop_lag_mean_seconds{app=\"database-connector\"} 0.010275567893624701\n\n# HELP nodejs_eventloop_lag_stddev_seconds The standard deviation of the recorded event loop delays.\n# TYPE nodejs_eventloop_lag_stddev_seconds gauge\nnodejs_eventloop_lag_stddev_seconds{app=\"database-connector\"} 0.0004776831091893674\n\n# HELP nodejs_eventloop_lag_p50_seconds The 50th percentile of the recorded event loop delays.\n# TYPE nodejs_eventloop_lag_p50_seconds gauge\nnodejs_eventloop_lag_p50_seconds{app=\"database-connector\"} 0.010231807\n\n# HELP nodejs_eventloop_lag_p90_seconds The 90th percentile of the recorded event loop delays.\n# TYPE nodejs_eventloop_lag_p90_seconds gauge\nnodejs_eventloop_lag_p90_seconds{app=\"database-connector\"} 0.010289151\n\n# HELP nodejs_eventloop_lag_p99_seconds The 99th percentile of the recorded event loop delays.\n# TYPE nodejs_eventloop_lag_p99_seconds gauge\nnodejs_eventloop_lag_p99_seconds{app=\"database-connector\"} 0.011476991\n\n# HELP nodejs_active_handles Number of active libuv handles grouped by handle type. Every handle type is C++ class name.\n# TYPE nodejs_active_handles gauge\nnodejs_active_handles{type=\"Socket\",app=\"database-connector\"} 8\nnodejs_active_handles{type=\"Server\",app=\"database-connector\"} 1\nnodejs_active_handles{type=\"TLSSocket\",app=\"database-connector\"} 2\n\n# HELP nodejs_active_handles_total Total number of active handles.\n# TYPE nodejs_active_handles_total gauge\nnodejs_active_handles_total{app=\"database-connector\"} 11\n\n# HELP nodejs_active_requests Number of active libuv requests grouped by request type. Every request type is C++ class name.\n# TYPE nodejs_active_requests gauge\nnodejs_active_requests{type=\"FSReqCallback\",app=\"database-connector\"} 1\n\n# HELP nodejs_active_requests_total Total number of active requests.\n# TYPE nodejs_active_requests_total gauge\nnodejs_active_requests_total{app=\"database-connector\"} 1\n\n# HELP nodejs_heap_size_total_bytes Process heap size from Node.js in bytes.\n# TYPE nodejs_heap_size_total_bytes gauge\nnodejs_heap_size_total_bytes{app=\"database-connector\"} 31600640\n\n# HELP nodejs_heap_size_used_bytes Process heap size used from Node.js in bytes.\n# TYPE nodejs_heap_size_used_bytes gauge\nnodejs_heap_size_used_bytes{app=\"database-connector\"} 22750752\n\n# HELP nodejs_external_memory_bytes Node.js external memory size in bytes.\n# TYPE nodejs_external_memory_bytes gauge\nnodejs_external_memory_bytes{app=\"database-connector\"} 19940100\n\n# HELP nodejs_heap_space_size_total_bytes Process heap space size total from Node.js in bytes.\n# TYPE nodejs_heap_space_size_total_bytes gauge\nnodejs_heap_space_size_total_bytes{space=\"read_only\",app=\"database-connector\"} 262144\nnodejs_heap_space_size_total_bytes{space=\"new\",app=\"database-connector\"} 1048576\nnodejs_heap_space_size_total_bytes{space=\"old\",app=\"database-connector\"} 22687744\nnodejs_heap_space_size_total_bytes{space=\"code\",app=\"database-connector\"} 2527232\nnodejs_heap_space_size_total_bytes{space=\"map\",app=\"database-connector\"} 1839104\nnodejs_heap_space_size_total_bytes{space=\"large_object\",app=\"database-connector\"} 3186688\nnodejs_heap_space_size_total_bytes{space=\"code_large_object\",app=\"database-connector\"} 49152\nnodejs_heap_space_size_total_bytes{space=\"new_large_object\",app=\"database-connector\"} 0\n\n# HELP nodejs_heap_space_size_used_bytes Process heap space size used from Node.js in bytes.\n# TYPE nodejs_heap_space_size_used_bytes gauge\nnodejs_heap_space_size_used_bytes{space=\"read_only\",app=\"database-connector\"} 32808\nnodejs_heap_space_size_used_bytes{space=\"new\",app=\"database-connector\"} 115360\nnodejs_heap_space_size_used_bytes{space=\"old\",app=\"database-connector\"} 17147600\nnodejs_heap_space_size_used_bytes{space=\"code\",app=\"database-connector\"} 1426336\nnodejs_heap_space_size_used_bytes{space=\"map\",app=\"database-connector\"} 885680\nnodejs_heap_space_size_used_bytes{space=\"large_object\",app=\"database-connector\"} 3143880\nnodejs_heap_space_size_used_bytes{space=\"code_large_object\",app=\"database-connector\"} 2784\nnodejs_heap_space_size_used_bytes{space=\"new_large_object\",app=\"database-connector\"} 0\n\n# HELP nodejs_heap_space_size_available_bytes Process heap space size available from Node.js in bytes.\n# TYPE nodejs_heap_space_size_available_bytes gauge\nnodejs_heap_space_size_available_bytes{space=\"read_only\",app=\"database-connector\"} 0\nnodejs_heap_space_size_available_bytes{space=\"new\",app=\"database-connector\"} 932096\nnodejs_heap_space_size_available_bytes{space=\"old\",app=\"database-connector\"} 5449952\nnodejs_heap_space_size_available_bytes{space=\"code\",app=\"database-connector\"} 972640\nnodejs_heap_space_size_available_bytes{space=\"map\",app=\"database-connector\"} 950712\nnodejs_heap_space_size_available_bytes{space=\"large_object\",app=\"database-connector\"} 0\nnodejs_heap_space_size_available_bytes{space=\"code_large_object\",app=\"database-connector\"} 0\nnodejs_heap_space_size_available_bytes{space=\"new_large_object\",app=\"database-connector\"} 1047456\n\n# HELP nodejs_version_info Node.js version info.\n# TYPE nodejs_version_info gauge\nnodejs_version_info{version=\"v12.20.0\",major=\"12\",minor=\"20\",patch=\"0\",app=\"database-connector\"} 1\n\n# HELP nodejs_gc_duration_seconds Garbage collection duration by kind, one of major, minor, incremental or weakcb.\n# TYPE nodejs_gc_duration_seconds histogram\nnodejs_gc_duration_seconds_bucket{le=\"0.001\",kind=\"incremental\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"0.01\",kind=\"incremental\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"0.1\",kind=\"incremental\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"1\",kind=\"incremental\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"2\",kind=\"incremental\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"5\",kind=\"incremental\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"+Inf\",kind=\"incremental\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_sum{kind=\"incremental\",app=\"database-connector\"} 0.04902678800000001\nnodejs_gc_duration_seconds_count{kind=\"incremental\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"0.001\",kind=\"major\",app=\"database-connector\"} 0\nnodejs_gc_duration_seconds_bucket{le=\"0.01\",kind=\"major\",app=\"database-connector\"} 258\nnodejs_gc_duration_seconds_bucket{le=\"0.1\",kind=\"major\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"1\",kind=\"major\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"2\",kind=\"major\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"5\",kind=\"major\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"+Inf\",kind=\"major\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_sum{kind=\"major\",app=\"database-connector\"} 2.0282096559999996\nnodejs_gc_duration_seconds_count{kind=\"major\",app=\"database-connector\"} 290\nnodejs_gc_duration_seconds_bucket{le=\"0.001\",kind=\"minor\",app=\"database-connector\"} 8213\nnodejs_gc_duration_seconds_bucket{le=\"0.01\",kind=\"minor\",app=\"database-connector\"} 52399\nnodejs_gc_duration_seconds_bucket{le=\"0.1\",kind=\"minor\",app=\"database-connector\"} 52507\nnodejs_gc_duration_seconds_bucket{le=\"1\",kind=\"minor\",app=\"database-connector\"} 52507\nnodejs_gc_duration_seconds_bucket{le=\"2\",kind=\"minor\",app=\"database-connector\"} 52507\nnodejs_gc_duration_seconds_bucket{le=\"5\",kind=\"minor\",app=\"database-connector\"} 52507\nnodejs_gc_duration_seconds_bucket{le=\"+Inf\",kind=\"minor\",app=\"database-connector\"} 52507\nnodejs_gc_duration_seconds_sum{kind=\"minor\",app=\"database-connector\"} 76.42363929999996\nnodejs_gc_duration_seconds_count{kind=\"minor\",app=\"database-connector\"} 52507\n\n# HELP http_request_duration_seconds Duration of HTTP requests in microseconds\n# TYPE http_request_duration_seconds histogram\n"}],"_postman_id":"1a4f1b6d-40db-4b12-9013-3a550d785020"},{"name":"Get All Conversations","id":"f1bb59ac-0593-4b37-9bb8-1cab2bef7e52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://192.168.2.78/database-connector/conversations/getAllConversations?start_time=2021-05-21&end_time=2021-05-21 23:11:59","description":"<p>This API is used to fetch all the conversations between a given time frame, i.e start and end time, start and end time parameters are mandatory and it returns an error if one or both of the parameters are missing.\nIn case only date is passed, it will consider time as start of day i.e <strong>00:00:00</strong> otherwise date and time can be passed in <strong>2021-05-21 23:11:59</strong> format.</p>\n","urlObject":{"protocol":"https","path":["database-connector","conversations","getAllConversations"],"host":["192","168","2","78"],"query":[{"key":"start_time","value":"2021-05-21"},{"key":"end_time","value":"2021-05-21 23:11:59"}],"variable":[]}},"response":[{"id":"2f804a62-9eb6-4e77-9a94-54528fc3dadb","name":"Get All Conversations","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://localhost:8443/conversations/getAllConversations?starttime=2021-04-30&endtime=2021-04-31","protocol":"https","host":["localhost"],"port":"8443","path":["conversations","getAllConversations"],"query":[{"key":"starttime","value":"2021-04-30"},{"key":"endtime","value":"2021-04-31"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1567"},{"key":"ETag","value":"W/\"61f-8NLKFZCmxZ9FQdIRyL4cm4qcMpI\""},{"key":"Date","value":"Fri, 30 Apr 2021 08:26:22 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"608bb32c57b0ec00075b7741\",\n        \"participant\": [],\n        \"roles\": [],\n        \"handRaise\": [],\n        \"id\": \"nagv2DszvRL9P3OU5SyP3\",\n        \"instanceId\": \"chat_server_1\",\n        \"startTime\": \"2021-04-30T07:35:08.395Z\",\n        \"channel\": \"web\",\n        \"state\": \"CLOSED\",\n        \"type\": \"Hybrid\",\n        \"taskId\": \"62e4463e-fec1-46ef-91ad-6f6f377ff67d\",\n        \"refId\": \"09000\",\n        \"sessionType\": \"1\",\n        \"skillgroup\": \"VIP\",\n        \"lastOwnerAgent\": \"rizwan\",\n        \"lastOutboundAgent\": \"\",\n        \"createdAt\": \"2021-04-30T07:35:08.411Z\",\n        \"updatedAt\": \"2021-04-30T07:35:48.616Z\",\n        \"__v\": 0,\n        \"participantJoinTime\": [],\n        \"endTime\": \"2021-04-30T07:35:48.041Z\"\n    },\n    {\n        \"_id\": \"608bbe9a57b0ec00075b7744\",\n        \"participant\": [],\n        \"roles\": [],\n        \"handRaise\": [],\n        \"id\": \"Z4iaD54QKMLRHVYMIchXP\",\n        \"instanceId\": \"chat_server_1\",\n        \"startTime\": \"2021-04-30T08:23:54.686Z\",\n        \"channel\": \"web\",\n        \"state\": \"CLOSED\",\n        \"type\": \"Hybrid\",\n        \"taskId\": \"5cc627f1-add3-4ae8-ad29-47e56da2308e\",\n        \"refId\": \"09000\",\n        \"sessionType\": \"1\",\n        \"skillgroup\": \"VIP\",\n        \"lastOwnerAgent\": \"rizwan\",\n        \"lastOutboundAgent\": \"\",\n        \"createdAt\": \"2021-04-30T08:23:54.695Z\",\n        \"updatedAt\": \"2021-04-30T08:24:16.855Z\",\n        \"__v\": 0,\n        \"participantJoinTime\": [],\n        \"endTime\": \"2021-04-30T08:24:16.746Z\"\n    },\n    {\n        \"_id\": \"608bbeb657b0ec00075b7747\",\n        \"participant\": [],\n        \"roles\": [],\n        \"handRaise\": [],\n        \"id\": \"FB8t9hjjcM3Rn36wS-Gz5\",\n        \"instanceId\": \"chat_server_1\",\n        \"startTime\": \"2021-04-30T08:24:22.428Z\",\n        \"channel\": \"web\",\n        \"state\": \"CLOSED\",\n        \"type\": \"Hybrid\",\n        \"taskId\": \"cab3a67b-c772-4af9-b2cf-78322c0cc959\",\n        \"refId\": \"09000\",\n        \"sessionType\": \"1\",\n        \"skillgroup\": \"VIP\",\n        \"lastOwnerAgent\": \"rizwan\",\n        \"lastOutboundAgent\": \"\",\n        \"createdAt\": \"2021-04-30T08:24:22.439Z\",\n        \"updatedAt\": \"2021-04-30T08:26:12.821Z\",\n        \"__v\": 0,\n        \"participantJoinTime\": [],\n        \"endTime\": \"2021-04-30T08:26:12.706Z\"\n    }\n]"}],"_postman_id":"f1bb59ac-0593-4b37-9bb8-1cab2bef7e52"},{"name":"Create Announcement","id":"ca28bd66-62cd-4668-adb8-f534641bc225","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"message\": \"First Announcement\",\r\n\t\"teams\": [{\"name\":\"Default\",\"id\":\"1\"}],\r\n\t\"start_time\": \"2021-06-10 14:50:00\",\r\n\t\"expiry_time\": \"2021-08-10 14:50:00\",\r\n\t\"created_by\": \"rizwan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://192.168.2.83/database-connector/announcements/createAnnouncement","description":"<p>This API is used to create a new announcement.</p>\n","urlObject":{"protocol":"https","path":["database-connector","announcements","createAnnouncement"],"host":["192","168","2","83"],"query":[],"variable":[]}},"response":[{"id":"c497d55d-ab79-486d-b633-9b0a99a25ad0","name":"Create Announcement","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"message\": \"First Announcement\",\r\n\t\"teams\": [{\"name\":\"Default\",\"id\":\"1\"}],\r\n\t\"start_time\": \"2021-06-10 14:50:00\",\r\n\t\"expiry_time\": \"2021-08-10 14:50:00\",\r\n\t\"created_by\": \"rizwan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://192.168.2.83/database-connector/announcements/createAnnouncement"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0"},{"key":"Date","value":"Thu, 10 Jun 2021 10:04:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"137-kEXphuaURMPZLKdhO8KLaYrz604\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"teams\": [\n        {\n            \"name\": \"Default\",\n            \"id\": \"1\"\n        }\n    ],\n    \"is_deleted\": false,\n    \"_id\": \"60c1e3b54337800007bb1c69\",\n    \"message\": \"First Announcement\",\n    \"start_time\": \"2021-06-10T09:50:00.000Z\",\n    \"expiry_time\": \"2021-08-10T09:50:00.000Z\",\n    \"created_by\": \"rizwan\",\n    \"createdAt\": \"2021-06-10T10:04:37.991Z\",\n    \"updatedAt\": \"2021-06-10T10:04:37.991Z\",\n    \"__v\": 0\n}"}],"_postman_id":"ca28bd66-62cd-4668-adb8-f534641bc225"},{"name":"Update Announcement","id":"139fb1a0-01fa-4d9b-b750-9a2d8c25097e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"teams\": [\r\n        {\r\n            \"name\": \"Default\",\r\n            \"id\": \"1\"\r\n        }\r\n    ],\r\n    \"is_deleted\": false,\r\n    \"_id\": \"60c1e3b54337800007bb1c69\",\r\n    \"message\": \"First Announcement updated\",\r\n    \"start_time\": \"2021-06-10T09:50:00.000Z\",\r\n    \"expiry_time\": \"2021-08-10T09:50:00.000Z\",\r\n    \"created_by\": \"rizwan\",\r\n    \"createdAt\": \"2021-06-10T10:04:37.991Z\",\r\n    \"updatedAt\": \"2021-06-10T10:04:37.991Z\",\r\n    \"updatedBy\":\"rizwan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://192.168.2.83/database-connector/announcements/updateAnnouncement","description":"<p>This API is used to update an announcement based on <strong>_id</strong> attribute</p>\n","urlObject":{"protocol":"https","path":["database-connector","announcements","updateAnnouncement"],"host":["192","168","2","83"],"query":[],"variable":[]}},"response":[{"id":"77ed3a54-1180-4fa6-9bae-7c214f2546b8","name":"Update Announcement","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"teams\": [\r\n        {\r\n            \"name\": \"Default\",\r\n            \"id\": \"1\"\r\n        }\r\n    ],\r\n    \"is_deleted\": false,\r\n    \"_id\": \"60c1e3b54337800007bb1c69\",\r\n    \"message\": \"First Announcement updated\",\r\n    \"start_time\": \"2021-06-10T09:50:00.000Z\",\r\n    \"expiry_time\": \"2021-08-10T09:50:00.000Z\",\r\n    \"created_by\": \"rizwan\",\r\n    \"createdAt\": \"2021-06-10T10:04:37.991Z\",\r\n    \"updatedAt\": \"2021-06-10T10:04:37.991Z\",\r\n    \"updatedBy\":\"rizwan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://192.168.2.83/database-connector/announcements/updateAnnouncement"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0"},{"key":"Date","value":"Thu, 10 Jun 2021 10:07:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"154-jd9KS45PWoOZ0ixIeA1nFijXyhU\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"teams\": [\n        {\n            \"name\": \"Default\",\n            \"id\": \"1\"\n        }\n    ],\n    \"is_deleted\": false,\n    \"_id\": \"60c1e3b54337800007bb1c69\",\n    \"message\": \"First Announcement updated\",\n    \"start_time\": \"2021-06-10T09:50:00.000Z\",\n    \"expiry_time\": \"2021-08-10T09:50:00.000Z\",\n    \"created_by\": \"rizwan\",\n    \"createdAt\": \"2021-06-10T10:04:37.991Z\",\n    \"updatedAt\": \"2021-06-10T10:07:48.665Z\",\n    \"__v\": 0,\n    \"updatedBy\": \"rizwan\"\n}"}],"_postman_id":"139fb1a0-01fa-4d9b-b750-9a2d8c25097e"},{"name":"Remove Announcement","id":"b07d6e59-9b8c-49ed-995b-670a5c8be9dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"60c1e3b54337800007bb1c69\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://192.168.2.83/database-connector/announcements/removeAnnouncement","description":"<p>This API is used to mark an announcement as deleted.</p>\n","urlObject":{"protocol":"https","path":["database-connector","announcements","removeAnnouncement"],"host":["192","168","2","83"],"query":[],"variable":[]}},"response":[{"id":"ff770b1b-d890-4bd0-b50e-44edb8b80a9b","name":"Remove Announcement","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"60c1e3b54337800007bb1c69\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://192.168.2.83/database-connector/announcements/removeAnnouncement"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0"},{"key":"Date","value":"Thu, 10 Jun 2021 10:12:47 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"153-qKEetP2gTBclvGvIFIxOlCuKzdA\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"teams\": [\n        {\n            \"name\": \"Default\",\n            \"id\": \"1\"\n        }\n    ],\n    \"is_deleted\": true,\n    \"_id\": \"60c1e3b54337800007bb1c69\",\n    \"message\": \"First Announcement updated\",\n    \"start_time\": \"2021-06-10T09:50:00.000Z\",\n    \"expiry_time\": \"2021-08-10T09:50:00.000Z\",\n    \"created_by\": \"rizwan\",\n    \"createdAt\": \"2021-06-10T10:04:37.991Z\",\n    \"updatedAt\": \"2021-06-10T10:11:06.919Z\",\n    \"__v\": 0,\n    \"updatedBy\": \"rizwan\"\n}"}],"_postman_id":"b07d6e59-9b8c-49ed-995b-670a5c8be9dc"},{"name":"Get Announcements By Team","id":"ccea9271-30a6-4cfb-b893-5fe0d34411c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://192.168.2.83/database-connector/announcements/getAnnouncementsByTeam/1","description":"<p>This is used to fetch the announcements of a team.</p>\n","urlObject":{"protocol":"https","path":["database-connector","announcements","getAnnouncementsByTeam","1"],"host":["192","168","2","83"],"query":[],"variable":[]}},"response":[{"id":"78da1a88-b27e-4946-9409-76687523d81a","name":"Get Announcements By Team","originalRequest":{"method":"GET","header":[],"url":"https://192.168.2.83/database-connector/announcements/getAnnouncementsByTeam/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0"},{"key":"Date","value":"Thu, 10 Jun 2021 10:19:39 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"156-niQGw20/EHzvtQ26vZhzBcSabTM\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"teams\": [\n            {\n                \"name\": \"Default\",\n                \"id\": \"1\"\n            }\n        ],\n        \"is_deleted\": false,\n        \"_id\": \"60c1e3b54337800007bb1c69\",\n        \"message\": \"First Announcement updated\",\n        \"start_time\": \"2021-06-10T09:50:00.000Z\",\n        \"expiry_time\": \"2021-08-10T09:50:00.000Z\",\n        \"created_by\": \"rizwan\",\n        \"createdAt\": \"2021-06-10T10:04:37.991Z\",\n        \"updatedAt\": \"2021-06-10T10:19:33.621Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"rizwan\"\n    }\n]"}],"_postman_id":"ccea9271-30a6-4cfb-b893-5fe0d34411c8"},{"name":"Get Active Announcements","id":"5d0dae1d-8b36-4f40-a0ae-d0abde9f71ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://192.168.2.83/database-connector/announcements/getActiveAnnouncements","description":"<p>This API returns all the announcements which are not expired yet.</p>\n","urlObject":{"protocol":"https","path":["database-connector","announcements","getActiveAnnouncements"],"host":["192","168","2","83"],"query":[],"variable":[]}},"response":[{"id":"b871c4bc-eb40-49ee-a476-33c05c2c3ca2","name":"Get Active Announcements","originalRequest":{"method":"GET","header":[],"url":"https://192.168.2.83/database-connector/announcements/getActiveAnnouncements"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0"},{"key":"Date","value":"Thu, 10 Jun 2021 10:22:18 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"274-3Nqw2B7Bc/QHKJwnVbW78mq7xIo\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"teams\": [\n            1\n        ],\n        \"is_deleted\": false,\n        \"_id\": \"60c1e1634337800007bb1c66\",\n        \"message\": \"First Announcement\",\n        \"start_time\": \"2021-06-10T09:50:00.000Z\",\n        \"expiry_time\": \"2021-08-10T09:50:00.000Z\",\n        \"created_by\": \"rizwan\",\n        \"createdAt\": \"2021-06-10T09:54:43.407Z\",\n        \"updatedAt\": \"2021-06-10T09:54:43.407Z\",\n        \"__v\": 0\n    },\n    {\n        \"teams\": [\n            {\n                \"name\": \"Default\",\n                \"id\": \"1\"\n            }\n        ],\n        \"is_deleted\": false,\n        \"_id\": \"60c1e3b54337800007bb1c69\",\n        \"message\": \"First Announcement updated\",\n        \"start_time\": \"2021-06-10T09:50:00.000Z\",\n        \"expiry_time\": \"2021-08-10T09:50:00.000Z\",\n        \"created_by\": \"rizwan\",\n        \"createdAt\": \"2021-06-10T10:04:37.991Z\",\n        \"updatedAt\": \"2021-06-10T10:19:33.621Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"rizwan\"\n    }\n]"}],"_postman_id":"5d0dae1d-8b36-4f40-a0ae-d0abde9f71ce"},{"name":"Get Agent Read Time","id":"e2d4347d-e358-4255-b16e-59c966ca3b60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://192.168.2.83/database-connector/announcements/getAgentReadTime/rizwan","description":"<p>This API fetches the last announcement read time for an agent.</p>\n","urlObject":{"protocol":"https","path":["database-connector","announcements","getAgentReadTime","rizwan"],"host":["192","168","2","83"],"query":[],"variable":[]}},"response":[{"id":"afe06d77-cf55-415c-80e3-6f9f10666bde","name":"Get Agent Read Time","originalRequest":{"method":"GET","header":[],"url":"https://192.168.2.83/database-connector/announcements/getAgentReadTime/rizwan"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0"},{"key":"Date","value":"Thu, 10 Jun 2021 10:24:15 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"55-sKInaVwuM0Lef1DkFVs1AzjFYYg\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"AnnouncementsReadTime\": \"2021-06-10T09:59:08.028Z\",\n    \"_id\": \"60c1d8594337800007bb1c56\"\n}"}],"_postman_id":"e2d4347d-e358-4255-b16e-59c966ca3b60"},{"name":"Update Agent Read Time","id":"87257d4f-263f-454c-882a-954e715930cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"AgentId\":\"rizwan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://192.168.2.83/database-connector/announcements/updateAgentReadTime","description":"<p>This API updates the announcement read time for an agent.</p>\n","urlObject":{"protocol":"https","path":["database-connector","announcements","updateAgentReadTime"],"host":["192","168","2","83"],"query":[],"variable":[]}},"response":[],"_postman_id":"87257d4f-263f-454c-882a-954e715930cd"},{"name":"GetActiveExpireAnnouncements","id":"4c794d7e-673d-4e77-8d63-3e7f523b47ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"start_Date\":\"2021-06-10\",\r\n    \"end_Date\":\"2021-06-30\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://192.168.2.83/database-connector/announcements/getActiveExpireAnnouncements","description":"<p>This API fetches all the announcements for a specific time period, announcements can be active and can have expiry time already passed.</p>\n","urlObject":{"protocol":"https","path":["database-connector","announcements","getActiveExpireAnnouncements"],"host":["192","168","2","83"],"query":[],"variable":[]}},"response":[{"id":"8974d19b-6254-4d7e-8a35-a9a062de5c72","name":"GetActiveExpireAnnouncements","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"start_Date\":\"2021-06-10\",\r\n    \"end_Date\":\"2021-06-30\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://192.168.2.83/database-connector/announcements/getActiveExpireAnnouncements"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0"},{"key":"Date","value":"Thu, 10 Jun 2021 10:53:18 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,POST,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"ETag","value":"W/\"40a-ZgWVlNQPIufHljT5n4mjoxvlUys\""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubdomains"},{"key":"Public-Key-Pins","value":"pin-sha256=\"klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=\"; pin-sha256=\"633lt352PKRXbOwf4xSEa1M517scpD3l5f79xMD9r9Q=\"; max-age=2592000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1;mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"teams\": [\n            1\n        ],\n        \"is_deleted\": false,\n        \"_id\": \"60c1e1634337800007bb1c66\",\n        \"message\": \"First Announcement\",\n        \"start_time\": \"2021-06-10T09:50:00.000Z\",\n        \"expiry_time\": \"2021-08-10T09:50:00.000Z\",\n        \"created_by\": \"rizwan\",\n        \"createdAt\": \"2021-06-10T09:54:43.407Z\",\n        \"updatedAt\": \"2021-06-10T09:54:43.407Z\",\n        \"__v\": 0\n    },\n    {\n        \"teams\": [\n            {\n                \"name\": \"Default\",\n                \"id\": \"1\"\n            }\n        ],\n        \"is_deleted\": false,\n        \"_id\": \"60c1e3b54337800007bb1c69\",\n        \"message\": \"First Announcement updated\",\n        \"start_time\": \"2021-06-10T09:50:00.000Z\",\n        \"expiry_time\": \"2021-08-10T09:50:00.000Z\",\n        \"created_by\": \"rizwan\",\n        \"createdAt\": \"2021-06-10T10:04:37.991Z\",\n        \"updatedAt\": \"2021-06-10T10:19:33.621Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"rizwan\"\n    },\n    {\n        \"teams\": [\n            {\n                \"name\": \"Default\",\n                \"id\": \"1\"\n            }\n        ],\n        \"is_deleted\": false,\n        \"_id\": \"60c1ea174337800007bb1c6a\",\n        \"message\": \"3rd Announcement\",\n        \"start_time\": \"2021-06-10T10:31:00.100Z\",\n        \"expiry_time\": \"2021-06-10T10:37:00.100Z\",\n        \"created_by\": \"sup\",\n        \"created_on\": \"2021-06-10T10:31:51.162Z\",\n        \"updated_by\": \"sup\",\n        \"updated_on\": \"2021-06-10T10:31:51.162Z\",\n        \"createdAt\": \"2021-06-10T10:31:51.170Z\",\n        \"updatedAt\": \"2021-06-10T10:31:51.170Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"4c794d7e-673d-4e77-8d63-3e7f523b47ac"},{"name":"https://192.168.2.82/database-connector/conversations/getAllConversations?start_time=2021-08-16&end_time=2021-08-16 23:11:59","id":"99f48d50-0349-44ee-a169-e6244f26e0fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://192.168.2.82/database-connector/conversations/getAllConversations?start_time=2021-08-16&end_time=2021-08-16 23:11:59","urlObject":{"protocol":"https","path":["database-connector","conversations","getAllConversations"],"host":["192","168","2","82"],"query":[{"key":"start_time","value":"2021-08-16"},{"key":"end_time","value":"2021-08-16 23:11:59"}],"variable":[]}},"response":[],"_postman_id":"99f48d50-0349-44ee-a169-e6244f26e0fb"}]}