Giter Club home page Giter Club logo

cube_zammad's Introduction

flowchart TD
    subgraph Zammad
        ZammadEvents[Ticket Events<br>and Interactions]
    end

    subgraph CubeJS
        CubeJSAPI[Cube.js API]
        ZammadApi[ZammadApi Class<br>for Webhook Validation]
        Postgres[Postgres Database]
        UserAuth[User Authentication<br>with Zammad API]
        UserInteraction[User Interaction<br>with Cube.js]
    end

    subgraph Users
        AuthorizedUser[Authorized User]
    end

    ZammadEvents -->|1. Zammad Webhook<br>Reception| CubeJSAPI
    CubeJSAPI -->|2. Cube.js Webhook<br>Validation| ZammadApi
    ZammadApi -->|Valid Payload| Postgres
    Postgres -->|3. Updating Postgres<br>Database| UserAuth
    UserAuth -->|4. User Authentication<br>in Cube.js| UserInteraction
    UserInteraction -->|5. User Interaction<br>with Cube.js| Postgres

    AuthorizedUser -->|Valid Credentials| UserAuth
Loading

Cube.js Integration with Zammad Webhooks

Overview

In this integration, Cube.js serves as a middleware between Zammad, an open-source ticketing system, and an Postgres database. The key functionalities encompass the reception and validation of Zammad webhooks, updating an Postgres database based on the webhook data, and authenticating Cube.js users.

Workflow

1. Zammad Webhook Reception

Whenever events that are being tacked occur in Zammad, such as User updates, Zammad dispatches webhooks to Cube.js. These webhooks encapsulate pertinent data regarding the events.

2. Cube.js Webhook Validation

Upon receipt of a Zammad webhook, Cube.js employs the ZammadApi class to validate the webhook payload. The validation process checks for the presence of required fields and ensures the integrity of the data received from Zammad.

3. Updating Postgres Database

If the Zammad webhook payload proves valid, Cube.js processes the data and effectuates updates to an Postgres database. This database likely houses information pertinent to Zammad tickets, user interactions, or other relevant data.

4. User Authentication in Cube.js

During user interaction with Cube.js, the application verifies their credentials using the Zammad API. This entails the establishment and validation of Zammad API tokens to authenticate Cube.js users.

5. User Interaction with Cube.js

Once authenticated, users can engage with Cube.js functionalities, such as querying data or performing analytics. Cube.js ensures that only authorized users possessing valid Zammad credentials can access and manipulate the data.

Demo App: Cube.js Zammad Integration Demo

cube_zammad's People

Contributors

luigiclemente avatar b21quocbao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.