2 KiB
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 dateendTime- string containing ISO dateto- fully qualified phone numberfrom- fully qualified phone numberduration- string containing the recording durationcallSid- the unique identifier for the callrecording- string base64 encoded binary of the recordingmimeType- 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
-
Edit the files in
src/Migration files should go in
src/db/addon/CHANNEL_NAME(see this post) -
Update version and changelog in
metamigo-skeleton.szpm -
Build a new package
makeThis outputs
dist/metamigo-vXXX.szpm -
Install the szpm using the zammad package manager.
-
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
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.
🐻