Commit451 / skyhook

Parses webhooks and forwards them in the proper format to Discord.
https://commit451.github.io/skyhook-web
MIT License
365 stars 94 forks source link

Support for Zoho Assist #209

Open patricktobias86 opened 12 months ago

patricktobias86 commented 12 months ago

Zoho Assist have two different type of webhooks:

Remote Support:

{
  "payload": {
    "sessionId": 937974381,
    "title": "On Demand Remote Support 937974381",
    "startTime": 1481369000053,
    "endTime": 1481369155546,
    "duration": 155493,
    "notes": "VPN issue",
    "chatTranscript": "https://assist.zoho.com/api/v1/chat/export?sysid=16474156125",
    "participants": [
      {
        "email": "david@zylker.com",
        "role": "Primary Technician",
        "os": "Windows",
        "region": "Florida",
        "country": "America",
        "duration": 155493
      },
      {
        "email": "mark.k@gmail.com",
        "role": "Customer",
        "os": "Windows",
        "region": "Florida",
        "country": "America",
        "duration": 155493
      }
    ]
  },
  "eventType": "SESSION_END_RS",
  "eventTime": "1688928870551",
  "eventBy": "op@primeupyour.life",
  "orgId": "815262805"
}

Unattended access:

{
  "payload": {
    "creatorEmail": "texas@texas.com",
    "sessionId": "963557549",
    "title": "On Demand Remote Access #963557549",
    "department": "PЯIMΞ",
    "deviceName": "PRIME",
    "deviceFullName": "PRIME",
    "devicePlatform": "windows",
    "deviceOs": "Windows 11 Pro",
    "deviceOsVersion": "6.3"
  },
  "eventType": "SESSION_START_URS",
  "eventTime": "1688874296857",
  "eventBy": "texas@texas.com",
  "orgId": "815262805"
}

Event Types:

Webhook Events Event Type
Outbound Session Start OUTBOUND_SESSION_START_RS
Session Start - Screen Share SESSION_START_SS
Session End - Remote Support SESSION_END_RS
Session End - Screen Share SESSION_END_SS
Customer Join - Remote Support CUSTOMER_JOIN_RS
Inbound Request Create INBOUND_REQUEST_CREATE
Inbound Request Transfer INBOUND_REQUEST_TRANSFER
Inbound Request Delegate INBOUND_REQUEST_DELEGATE
Inbound Request Picked INBOUND_REQUEST_PICKED
Inbound Request Declined INBOUND_REQUEST_DECLINED
Inbound Request Dropped INBOUND_REQUEST_DROPPED
Inbound Request Expired INBOUND_REQUEST_EXPIRED
Device Add DEVICE_ADD
Device Online DEVICE_ONLINE
Device Offline DEVICE_OFFLINE
Device Delete DEVICE_DELETE
Session Start SESSION_START
Session End SESSION_END