link-stack/packages/zammad-addon-metamigo
2023-05-03 08:20:51 +00:00
..
src Zammad Docker and addon updates 2023-05-03 08:20:51 +00:00
.gitignore Organize directories 2023-02-13 13:10:48 +00:00
.ruby-version Organize directories 2023-02-13 13:10:48 +00:00
LICENSE.md Organize directories 2023-02-13 13:10:48 +00:00
Makefile Organize directories 2023-02-13 13:10:48 +00:00
metamigo.szpm.template Organize directories 2023-02-13 13:10:48 +00:00
new-migration.py Organize directories 2023-02-13 13:10:48 +00:00
package.py Organize directories 2023-02-13 13:10:48 +00:00
README.md Organize directories 2023-02-13 13:10:48 +00:00

zammad-addon-metamigo

An addon that adds metamigo channels to Zammad.

Channels

This channel creates a three channels: "Voice", "Signal" and "Whatsapp".

To submit a ticket: make a POST to the Submission Endpoint with the header Authorization: SUBMISSION_TOKEN.

The payload for the Voice channel must be a json object with the keys:

  • startTime - string containing ISO date
  • endTime - string containing ISO date
  • to - fully qualified phone number
  • from - fully qualified phone number
  • duration - string containing the recording duration
  • callSid - the unique identifier for the call
  • recording - string base64 encoded binary of the recording
  • mimeType - string of the binary mime-type

The payload for the Signal channel must be a json object with the keys:

  • TBD

The payload for the Whatsapp channel must be a json object with the keys:

  • TBD

Development

  1. Edit the files in src/

    Migration files should go in src/db/addon/CHANNEL_NAME (see this post)

  2. Update version and changelog in metamigo-skeleton.szpm

  3. Build a new package make

    This outputs dist/metamigo-vXXX.szpm

  4. Install the szpm using the zammad package manager.

  5. Repeat

Create a new migration

Included is a helper script to create new migrations. You must have the python inflection library installed.

  • debian/ubuntu: apt install python3-inflection
  • pip: pip install --user inflection
  • or create your own venv

To make a new migration simply run:

make new-migration

License

License GNU AGPL v3.0

This is a free software project licensed under the GNU Affero General Public License v3.0 (GNU AGPLv3) by The Center for Digital Resilience and Guardian Project.

🐻