n8n-nodes-zapperhub 0.0.0-stage → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +73 -2
  3. package/dist/credentials/ZapperHubApi.credentials.d.ts +10 -0
  4. package/dist/credentials/ZapperHubApi.credentials.js +53 -0
  5. package/dist/credentials/ZapperHubApi.credentials.js.map +1 -0
  6. package/dist/credentials/zapperhub.dark.svg +1 -0
  7. package/dist/credentials/zapperhub.svg +1 -0
  8. package/dist/nodes/ZapperHub/ZapperHub.node.d.ts +4 -0
  9. package/dist/nodes/ZapperHub/ZapperHub.node.js +72 -0
  10. package/dist/nodes/ZapperHub/ZapperHub.node.js.map +1 -0
  11. package/dist/nodes/ZapperHub/ZapperHub.node.json +18 -0
  12. package/dist/nodes/ZapperHub/presend.d.ts +9 -0
  13. package/dist/nodes/ZapperHub/presend.js +125 -0
  14. package/dist/nodes/ZapperHub/presend.js.map +1 -0
  15. package/dist/nodes/ZapperHub/resources/call.d.ts +2 -0
  16. package/dist/nodes/ZapperHub/resources/call.js +173 -0
  17. package/dist/nodes/ZapperHub/resources/call.js.map +1 -0
  18. package/dist/nodes/ZapperHub/resources/chat.d.ts +2 -0
  19. package/dist/nodes/ZapperHub/resources/chat.js +71 -0
  20. package/dist/nodes/ZapperHub/resources/chat.js.map +1 -0
  21. package/dist/nodes/ZapperHub/resources/contact.d.ts +2 -0
  22. package/dist/nodes/ZapperHub/resources/contact.js +150 -0
  23. package/dist/nodes/ZapperHub/resources/contact.js.map +1 -0
  24. package/dist/nodes/ZapperHub/resources/group.d.ts +2 -0
  25. package/dist/nodes/ZapperHub/resources/group.js +169 -0
  26. package/dist/nodes/ZapperHub/resources/group.js.map +1 -0
  27. package/dist/nodes/ZapperHub/resources/instagram.d.ts +2 -0
  28. package/dist/nodes/ZapperHub/resources/instagram.js +81 -0
  29. package/dist/nodes/ZapperHub/resources/instagram.js.map +1 -0
  30. package/dist/nodes/ZapperHub/resources/message.d.ts +2 -0
  31. package/dist/nodes/ZapperHub/resources/message.js +967 -0
  32. package/dist/nodes/ZapperHub/resources/message.js.map +1 -0
  33. package/dist/nodes/ZapperHub/resources/other.d.ts +4 -0
  34. package/dist/nodes/ZapperHub/resources/other.js +78 -0
  35. package/dist/nodes/ZapperHub/resources/other.js.map +1 -0
  36. package/dist/nodes/ZapperHub/resources/template.d.ts +2 -0
  37. package/dist/nodes/ZapperHub/resources/template.js +70 -0
  38. package/dist/nodes/ZapperHub/resources/template.js.map +1 -0
  39. package/dist/nodes/ZapperHub/shared.d.ts +29 -0
  40. package/dist/nodes/ZapperHub/shared.js +141 -0
  41. package/dist/nodes/ZapperHub/shared.js.map +1 -0
  42. package/dist/nodes/ZapperHub/zapperhub.dark.svg +1 -0
  43. package/dist/nodes/ZapperHub/zapperhub.svg +1 -0
  44. package/dist/nodes/ZapperHubTrigger/ZapperHubTrigger.node.d.ts +12 -0
  45. package/dist/nodes/ZapperHubTrigger/ZapperHubTrigger.node.js +262 -0
  46. package/dist/nodes/ZapperHubTrigger/ZapperHubTrigger.node.js.map +1 -0
  47. package/dist/nodes/ZapperHubTrigger/ZapperHubTrigger.node.json +18 -0
  48. package/dist/nodes/ZapperHubTrigger/zapperhub.dark.svg +1 -0
  49. package/dist/nodes/ZapperHubTrigger/zapperhub.svg +1 -0
  50. package/dist/package.json +61 -0
  51. package/dist/tsconfig.tsbuildinfo +1 -0
  52. package/package.json +59 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Jefferson Felix
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,74 @@
1
- # Temporary Holding Version
1
+ # n8n-nodes-zapperhub
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Official [n8n](https://n8n.io/) nodes for [ZapperHub](https://zapperhub.com), the WhatsApp API for
4
+ messages and voice calls, on the official Meta connection (Cloud API) or by QR Code.
5
+
6
+ This package replaces `n8n-nodes-zapperapi`. ZapperAPI is now ZapperHub.
7
+
8
+ - [Installation](#installation)
9
+ - [Credentials](#credentials)
10
+ - [Nodes](#nodes)
11
+ - [Compatibility](#compatibility)
12
+ - [Resources](#resources)
13
+
14
+ ## Installation
15
+
16
+ In n8n, open **Settings > Community Nodes**, click **Install** and enter `n8n-nodes-zapperhub`.
17
+ See the [community nodes installation guide](https://docs.n8n.io/integrations/community-nodes/installation/).
18
+
19
+ ## Credentials
20
+
21
+ Each credential is one ZapperHub instance (one connected number). In the
22
+ [ZapperHub panel](https://app.zapperhub.com), open **Instances** and copy:
23
+
24
+ - **Instance ID**, for example `inst_abcdefg123456`
25
+ - **API Key** of the instance
26
+
27
+ ## Nodes
28
+
29
+ ### ZapperHub Trigger
30
+
31
+ Starts the workflow when an event happens in the instance. When the workflow is published, or when
32
+ you listen for a test event, the node creates a webhook in the instance with the events you chose.
33
+ It removes the webhook when the workflow stops.
34
+
35
+ - Every delivery is checked against the `x-webhook-signature` header (HMAC-SHA256 with the API key).
36
+ Deliveries without a valid signature get `401`.
37
+ - **Ignore Messages Sent by Me** is on by default, so a workflow that replies does not trigger itself.
38
+ - ZapperHub only accepts HTTPS webhook URLs, so n8n must be reachable from the internet.
39
+
40
+ Events: message received or sent, message status, message error, message edited or deleted, connection
41
+ update, call update, group participants update, marketing preference change, contact identity change,
42
+ template sync finished, storage failed or recovered, Instagram comment, Instagram token expired or
43
+ refresh failed.
44
+
45
+ ### ZapperHub
46
+
47
+ | Resource | Operations |
48
+ | --- | --- |
49
+ | Message | Send text, media, audio, sticker, location, contact, buttons, list, carousel, template, PIX charge, text as voice; react; mark as read; delete; get many; get delivery receipts; check the 24-hour service window |
50
+ | Call | Make, play audio, hang up, reject, get, get many, get and request call permission |
51
+ | Chat | Archive, unarchive, mute, pin, delete |
52
+ | Contact | Check numbers, get, get profile picture, get phone number from LID, block, unblock, get blocked, get marketing opt-outs, set marketing preference, delete data |
53
+ | Group | Create, get, get many, update name and description, update and remove picture, get and reset invite link, update participants. QR Code instances only. |
54
+ | Template | Get, get many, sync with Meta, get sync status |
55
+ | Instagram | Reply privately to a comment, comment on a post, get post, get many posts |
56
+ | Channel | Get many |
57
+ | Profile | Update picture, remove picture, update about |
58
+ | Connection | Get (status, QR Code or pairing code) |
59
+
60
+ Media, audio and sticker accept a URL, a base64 file or a binary file from a previous node. Messages
61
+ sent by the node carry `trackSource: "n8n"` in the message log and in the webhook events.
62
+
63
+ The node can be used as a tool by the n8n AI Agent.
64
+
65
+ ## Compatibility
66
+
67
+ Tested with n8n 2.48.
68
+
69
+ ## Resources
70
+
71
+ - [ZapperHub documentation](https://docs.zapperhub.com)
72
+ - [API reference](https://docs.zapperhub.com/api-reference)
73
+ - [Webhook events](https://docs.zapperhub.com/integrations/webhooks)
74
+ - [n8n community nodes](https://docs.n8n.io/integrations/#community-nodes)
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
2
+ export declare class ZapperHubApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZapperHubApi = void 0;
4
+ class ZapperHubApi {
5
+ constructor() {
6
+ this.name = 'zapperHubApi';
7
+ this.displayName = 'ZapperHub API';
8
+ this.icon = { light: 'file:zapperhub.svg', dark: 'file:zapperhub.dark.svg' };
9
+ this.documentationUrl = 'https://docs.zapperhub.com/quickstart';
10
+ this.properties = [
11
+ {
12
+ displayName: 'API URL',
13
+ name: 'apiUrl',
14
+ type: 'hidden',
15
+ default: 'https://api.zapperhub.com',
16
+ },
17
+ {
18
+ displayName: 'Instance ID',
19
+ name: 'instanceId',
20
+ type: 'string',
21
+ required: true,
22
+ default: '',
23
+ placeholder: 'inst_abcdefg123456',
24
+ description: 'ID of the instance, shown in the ZapperHub panel under Instances. Each instance is one connected number.',
25
+ },
26
+ {
27
+ displayName: 'API Key',
28
+ name: 'apiKey',
29
+ type: 'string',
30
+ typeOptions: { password: true },
31
+ required: true,
32
+ default: '',
33
+ description: 'API key of the instance, shown next to the instance ID in the ZapperHub panel',
34
+ },
35
+ ];
36
+ this.authenticate = {
37
+ type: 'generic',
38
+ properties: {
39
+ headers: {
40
+ 'x-api-key': '={{$credentials.apiKey}}',
41
+ },
42
+ },
43
+ };
44
+ this.test = {
45
+ request: {
46
+ baseURL: '={{$credentials.apiUrl}}/{{$credentials.instanceId}}',
47
+ url: '/connection',
48
+ },
49
+ };
50
+ }
51
+ }
52
+ exports.ZapperHubApi = ZapperHubApi;
53
+ //# sourceMappingURL=ZapperHubApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZapperHubApi.credentials.js","sourceRoot":"","sources":["../../credentials/ZapperHubApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QAEtB,gBAAW,GAAG,eAAe,CAAC;QAE9B,SAAI,GAAS,EAAE,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;QAE9E,qBAAgB,GAAG,uCAAuC,CAAC;QAE3D,eAAU,GAAsB;YAC/B;gBAEC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,2BAA2B;aACpC;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oBAAoB;gBACjC,WAAW,EACV,0GAA0G;aAC3G;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+EAA+E;aAC5F;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,0BAA0B;iBACvC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,sDAAsD;gBAC/D,GAAG,EAAE,aAAa;aAClB;SACD,CAAC;IACH,CAAC;CAAA;AArDD,oCAqDC"}
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0.02 0.02 399.96 399.96" width="399.96" height="399.96" role="img" aria-label="ZapperHub"><title>ZapperHub</title><g fill="#AA89FF" fill-rule="evenodd"><path d="M204.79 95.22C203.18 95.61 201.53 95.89 199.96 96.43C198.05 97.08 192.55 99.59 194.39 98.77C192.26 99.97 186.02 103.8 188.09 102.51C186.35 103.73 184.57 104.92 182.92 106.26C181.09 107.77 175.98 112.7 177.68 111.06C176.7 112.09 175.7 113.08 174.77 114.15C173.84 115.22 171.23 118.55 172.11 117.44C170.54 119.58 166.28 126.31 167.68 124.05C166.98 125.34 166.2 126.59 165.58 127.91C165.16 128.84 164.2 131.74 164.55 130.78C164.88 133.65 165.42 136.09 168.8 136.7C170.35 136.98 176.49 134.1 174.5 134.88C176.93 134.01 179.36 133.13 181.83 132.36C183.12 131.96 184.43 131.65 185.75 131.36C186.7 131.15 189.6 130.72 188.64 130.89C191.11 130.43 192.19 130.15 194.69 130.06C197.36 129.95 205.36 129.94 202.69 129.9C204.7 130 206.7 130.08 208.69 130.29C210.05 130.45 214.07 131.25 212.73 130.99C215.66 131.54 215.71 131.39 218.65 132.31C220.67 132.94 226.64 135.05 224.66 134.33C227.24 135.33 234.72 138.95 232.23 137.73C234.35 138.91 236.47 140.1 238.5 141.43C240.11 142.47 244.68 145.95 243.14 144.82C245.14 146.4 247.23 148.43 249.86 148.98C251.8 149.39 257.63 150.48 255.7 150.05C258.34 150.48 266.2 152.11 263.58 151.57C265.91 152.16 272.82 154.31 270.53 153.56C271.49 153.92 272.47 154.22 273.41 154.62C274.78 155.21 278.83 157.19 277.48 156.53C279.59 157.73 285.69 161.73 283.67 160.38C285.77 161.95 291.79 166.97 289.8 165.28C291.55 166.84 293.31 168.42 294.93 170.11C296.57 171.82 301.08 177.3 299.57 175.47C301.27 177.78 306.14 184.88 304.55 182.49C306.81 186.36 307.68 186.95 307.87 186.65C309.15 184.65 308.09 176.04 308.25 178.99C308.12 177.35 308.04 175.7 307.76 174.08C307.41 171.98 305.85 165.76 306.36 167.83C305.75 165.49 303.58 158.56 304.32 160.87C303.54 158.63 302.78 156.38 301.9 154.19C301.24 152.56 298.94 147.81 299.68 149.4C298.45 147.01 294.42 139.99 295.78 142.31C294.89 140.9 294.03 139.46 293.11 138.07C292.31 136.86 289.79 133.35 290.62 134.53C289.47 133.02 288.34 131.49 287.13 130.02C286.38 129.1 283.93 126.46 284.74 127.34C283.49 125.93 282.3 124.49 280.99 123.14C279.35 121.46 274.18 116.64 275.91 118.25C274.49 116.99 273.08 115.7 271.63 114.49C270.54 113.57 267.15 111 268.26 111.87C266.15 110.31 259.66 105.86 261.84 107.33C259.36 105.76 251.73 101.4 254.29 102.83C252.74 102.05 251.21 101.21 249.63 100.49C248.02 99.74 243.06 97.77 244.71 98.43C243 97.82 241.3 97.15 239.58 96.6C238.3 96.2 234.38 95.22 235.68 95.57C234.04 95.21 232.42 94.75 230.75 94.51C228.45 94.21 221.47 93.81 223.79 93.95C221.13 93.87 213.13 94 215.79 93.93C213.47 94.07 211.13 94.17 208.82 94.44C207.46 94.6 203.46 95.51 204.79 95.22ZM304.78 204.79C304.39 203.18 304.11 201.53 303.57 199.96C302.92 198.05 300.41 192.55 301.23 194.39C300.03 192.26 296.2 186.02 297.49 188.09C296.27 186.35 295.08 184.57 293.74 182.92C292.23 181.09 287.3 175.98 288.94 177.68C287.91 176.7 286.92 175.7 285.85 174.77C284.78 173.84 281.45 171.23 282.56 172.11C280.42 170.54 273.69 166.28 275.95 167.68C274.66 166.98 273.41 166.2 272.09 165.58C271.16 165.16 268.26 164.2 269.22 164.55C266.35 164.88 263.91 165.42 263.3 168.8C263.02 170.35 265.9 176.49 265.12 174.5C265.99 176.93 266.87 179.36 267.64 181.83C268.04 183.12 268.35 184.43 268.64 185.75C268.85 186.7 269.28 189.6 269.11 188.64C269.57 191.11 269.85 192.19 269.94 194.69C270.05 197.36 270.06 205.36 270.1 202.69C270 204.7 269.92 206.7 269.71 208.69C269.55 210.05 268.75 214.07 269.01 212.73C268.46 215.66 268.61 215.71 267.69 218.65C267.06 220.67 264.95 226.64 265.67 224.66C264.67 227.24 261.05 234.72 262.27 232.23C261.09 234.35 259.9 236.47 258.57 238.5C257.53 240.11 254.05 244.68 255.18 243.14C253.6 245.14 251.57 247.23 251.02 249.86C250.61 251.8 249.52 257.63 249.95 255.7C249.52 258.34 247.89 266.2 248.43 263.58C247.84 265.91 245.69 272.82 246.44 270.53C246.08 271.49 245.78 272.47 245.38 273.41C244.79 274.78 242.81 278.83 243.47 277.48C242.27 279.59 238.27 285.69 239.62 283.67C238.05 285.77 233.03 291.79 234.72 289.8C233.16 291.55 231.58 293.31 229.89 294.93C228.18 296.57 222.7 301.08 224.53 299.57C222.22 301.27 215.12 306.14 217.51 304.55C213.64 306.81 213.05 307.68 213.35 307.87C215.35 309.15 223.96 308.09 221.01 308.25C222.65 308.12 224.3 308.04 225.92 307.76C228.02 307.41 234.24 305.85 232.17 306.36C234.51 305.75 241.44 303.58 239.13 304.32C241.37 303.54 243.62 302.78 245.81 301.9C247.44 301.24 252.19 298.94 250.6 299.68C252.99 298.45 260.01 294.42 257.69 295.78C259.1 294.89 260.54 294.03 261.93 293.11C263.14 292.31 266.65 289.79 265.47 290.62C266.98 289.47 268.51 288.34 269.98 287.13C270.9 286.38 273.54 283.93 272.66 284.74C274.07 283.49 275.51 282.3 276.86 280.99C278.54 279.35 283.36 274.18 281.75 275.91C283.01 274.49 284.3 273.08 285.51 271.63C286.43 270.54 289 267.15 288.13 268.26C289.69 266.15 294.14 259.66 292.67 261.84C294.24 259.36 298.6 251.73 297.17 254.29C297.95 252.74 298.79 251.21 299.51 249.63C300.26 248.02 302.23 243.06 301.57 244.71C302.18 243 302.85 241.3 303.4 239.58C303.8 238.3 304.78 234.38 304.43 235.68C304.79 234.04 305.25 232.42 305.49 230.75C305.79 228.45 306.19 221.47 306.05 223.79C306.13 221.13 306 213.13 306.07 215.79C305.93 213.47 305.83 211.13 305.56 208.82C305.4 207.46 304.49 203.46 304.78 204.79ZM195.21 304.78C196.82 304.39 198.47 304.11 200.04 303.57C201.95 302.92 207.45 300.41 205.61 301.23C207.74 300.03 213.98 296.2 211.91 297.49C213.65 296.27 215.43 295.08 217.08 293.74C218.91 292.23 224.02 287.3 222.32 288.94C223.3 287.91 224.3 286.92 225.23 285.85C226.16 284.78 228.77 281.45 227.89 282.56C229.46 280.42 233.72 273.69 232.32 275.95C233.02 274.66 233.8 273.41 234.42 272.09C234.84 271.16 235.8 268.26 235.45 269.22C235.12 266.35 234.58 263.91 231.2 263.3C229.65 263.02 223.51 265.9 225.5 265.12C223.07 265.99 220.64 266.87 218.17 267.64C216.88 268.04 215.57 268.35 214.25 268.64C213.3 268.85 210.4 269.28 211.36 269.11C208.89 269.57 207.81 269.85 205.31 269.94C202.64 270.05 194.64 270.06 197.31 270.1C195.3 270 193.3 269.92 191.31 269.71C189.95 269.55 185.93 268.75 187.27 269.01C184.34 268.46 184.29 268.61 181.35 267.69C179.33 267.06 173.36 264.95 175.34 265.67C172.76 264.67 165.28 261.05 167.77 262.27C165.65 261.09 163.53 259.9 161.5 258.57C159.89 257.53 155.32 254.05 156.86 255.18C154.86 253.6 152.77 251.57 150.14 251.02C148.2 250.61 142.37 249.52 144.3 249.95C141.66 249.52 133.8 247.89 136.42 248.43C134.09 247.84 127.18 245.69 129.47 246.44C128.51 246.08 127.53 245.78 126.59 245.38C125.22 244.79 121.17 242.81 122.52 243.47C120.41 242.27 114.31 238.27 116.33 239.62C114.23 238.05 108.21 233.03 110.2 234.72C108.45 233.16 106.69 231.58 105.07 229.89C103.43 228.18 98.92 222.7 100.43 224.53C98.73 222.22 93.86 215.12 95.45 217.51C93.19 213.64 92.32 213.05 92.13 213.35C90.85 215.35 91.91 223.96 91.75 221.01C91.88 222.65 91.96 224.3 92.24 225.92C92.59 228.02 94.15 234.24 93.64 232.17C94.25 234.51 96.42 241.44 95.68 239.13C96.46 241.37 97.22 243.62 98.1 245.81C98.76 247.44 101.06 252.19 100.32 250.6C101.55 252.99 105.58 260.01 104.22 257.69C105.11 259.1 105.97 260.54 106.89 261.93C107.69 263.14 110.21 266.65 109.38 265.47C110.53 266.98 111.66 268.51 112.87 269.98C113.62 270.9 116.07 273.54 115.26 272.66C116.51 274.07 117.7 275.51 119.01 276.86C120.65 278.54 125.82 283.36 124.09 281.75C125.51 283.01 126.92 284.3 128.37 285.51C129.46 286.43 132.85 289 131.74 288.13C133.85 289.69 140.34 294.14 138.16 292.67C140.64 294.24 148.27 298.6 145.71 297.17C147.26 297.95 148.79 298.79 150.37 299.51C151.98 300.26 156.94 302.23 155.29 301.57C157 302.18 158.7 302.85 160.42 303.4C161.7 303.8 165.62 304.78 164.32 304.43C165.96 304.79 167.58 305.25 169.25 305.49C171.55 305.79 178.53 306.19 176.21 306.05C178.87 306.13 186.87 306 184.21 306.07C186.53 305.93 188.87 305.83 191.18 305.56C192.54 305.4 196.54 304.49 195.21 304.78ZM95.22 195.21C95.61 196.82 95.89 198.47 96.43 200.04C97.08 201.95 99.59 207.45 98.77 205.61C99.97 207.74 103.8 213.98 102.51 211.91C103.73 213.65 104.92 215.43 106.26 217.08C107.77 218.91 112.7 224.02 111.06 222.32C112.09 223.3 113.08 224.3 114.15 225.23C115.22 226.16 118.55 228.77 117.44 227.89C119.58 229.46 126.31 233.72 124.05 232.32C125.34 233.02 126.59 233.8 127.91 234.42C128.84 234.84 131.74 235.8 130.78 235.45C133.65 235.12 136.09 234.58 136.7 231.2C136.98 229.65 134.1 223.51 134.88 225.5C134.01 223.07 133.13 220.64 132.36 218.17C131.96 216.88 131.65 215.57 131.36 214.25C131.15 213.3 130.72 210.4 130.89 211.36C130.43 208.89 130.15 207.81 130.06 205.31C129.95 202.64 129.94 194.64 129.9 197.31C130 195.3 130.08 193.3 130.29 191.31C130.45 189.95 131.25 185.93 130.99 187.27C131.54 184.34 131.39 184.29 132.31 181.35C132.94 179.33 135.05 173.36 134.33 175.34C135.33 172.76 138.95 165.28 137.73 167.77C138.91 165.65 140.1 163.53 141.43 161.5C142.47 159.89 145.95 155.32 144.82 156.86C146.4 154.86 148.43 152.77 148.98 150.14C149.39 148.2 150.48 142.37 150.05 144.3C150.48 141.66 152.11 133.8 151.57 136.42C152.16 134.09 154.31 127.18 153.56 129.47C153.92 128.51 154.22 127.53 154.62 126.59C155.21 125.22 157.19 121.17 156.53 122.52C157.73 120.41 161.73 114.31 160.38 116.33C161.95 114.23 166.97 108.21 165.28 110.2C166.84 108.45 168.42 106.69 170.11 105.07C171.82 103.43 177.3 98.92 175.47 100.43C177.78 98.73 184.88 93.86 182.49 95.45C186.36 93.19 186.95 92.32 186.65 92.13C184.65 90.85 176.04 91.91 178.99 91.75C177.35 91.88 175.7 91.96 174.08 92.24C171.98 92.59 165.76 94.15 167.83 93.64C165.49 94.25 158.56 96.42 160.87 95.68C158.63 96.46 156.38 97.22 154.19 98.1C152.56 98.76 147.81 101.06 149.4 100.32C147.01 101.55 139.99 105.58 142.31 104.22C140.9 105.11 139.46 105.97 138.07 106.89C136.86 107.69 133.35 110.21 134.53 109.38C133.02 110.53 131.49 111.66 130.02 112.87C129.1 113.62 126.46 116.07 127.34 115.26C125.93 116.51 124.49 117.7 123.14 119.01C121.46 120.65 116.64 125.82 118.25 124.09C116.99 125.51 115.7 126.92 114.49 128.37C113.57 129.46 111 132.85 111.87 131.74C110.31 133.85 105.86 140.34 107.33 138.16C105.76 140.64 101.4 148.27 102.83 145.71C102.05 147.26 101.21 148.79 100.49 150.37C99.74 151.98 97.77 156.94 98.43 155.29C97.82 157 97.15 158.7 96.6 160.42C96.2 161.7 95.22 165.62 95.57 164.32C95.21 165.96 94.75 167.58 94.51 169.25C94.21 171.55 93.81 178.53 93.95 176.21C93.87 178.87 94 186.87 93.93 184.21C94.07 186.53 94.17 188.87 94.44 191.18C94.6 192.54 95.51 196.54 95.22 195.21ZM309.9 267.02C309.25 268.07 308.63 269.15 307.9 270.15C307.04 271.29 304.62 274.82 305.44 273.65C304.19 275.38 302.97 277.11 301.66 278.8C300.64 280.13 297.4 283.97 298.47 282.68C297.25 284.12 296.07 285.58 294.79 286.95C293.18 288.69 288.11 293.66 289.81 292.01C288.3 293.5 286.78 294.98 285.2 296.41C283.98 297.51 280.18 300.66 281.45 299.61C279.42 301.27 273.19 306.03 275.28 304.46C273.72 305.55 272.3 306.84 270.71 307.9C269.3 308.83 264.85 311.28 266.32 310.43C263.78 311.73 260.93 313.03 259.34 315.53C258.51 316.84 257.01 321.28 257.54 319.82C257.16 323.25 257.18 326.23 259.25 329.22C259.93 330.2 262.38 332.78 261.6 331.89C263.37 333.11 264.71 334.1 266.82 334.76C267.27 334.91 268.65 335.2 268.2 335.07C270.58 335.05 272.64 335.15 274.91 334.15C275.79 333.75 278.31 332.3 277.44 332.74C279.44 331.4 285.34 327.27 283.38 328.66C284.93 327.54 286.51 326.49 288.04 325.35C289.97 323.93 295.6 319.49 293.73 320.99C294.85 320.12 295.99 319.29 297.07 318.38C298.36 317.32 302.1 314 300.84 315.1C303.15 313.08 309.79 306.74 307.58 308.87C310.24 306.19 317.84 297.84 315.33 300.65C317.54 298.16 323.83 290.45 321.75 293.04C323.65 290.6 329.19 283.19 327.37 285.68C328.93 283.55 333.3 276.95 331.85 279.15C332.41 278.06 333.14 277.02 333.5 275.85C333.88 274.63 334.27 270.8 334.07 272.06C333.79 269.86 333.78 268.24 332.69 266.21C332.33 265.56 331.11 263.7 331.48 264.34C329.66 262.5 327.84 260.41 325.14 259.87C323.89 259.61 320.08 259.39 321.34 259.51C318.07 259.85 315.72 260.16 313.19 262.38C312.16 263.29 311.16 264.48 310.47 265.66C310.23 266.08 309.64 267.44 309.9 267.02ZM132.98 309.9C131.93 309.25 130.85 308.63 129.85 307.9C128.71 307.04 125.18 304.62 126.35 305.44C124.62 304.19 122.89 302.97 121.2 301.66C119.87 300.64 116.03 297.4 117.32 298.47C115.88 297.25 114.42 296.07 113.05 294.79C111.31 293.18 106.34 288.11 107.99 289.81C106.5 288.3 105.02 286.78 103.59 285.2C102.49 283.98 99.34 280.18 100.39 281.45C98.73 279.42 93.97 273.19 95.54 275.28C94.45 273.72 93.16 272.3 92.1 270.71C91.17 269.3 88.72 264.85 89.57 266.32C88.27 263.78 86.97 260.93 84.47 259.34C83.16 258.51 78.72 257.01 80.18 257.54C76.75 257.16 73.77 257.18 70.78 259.25C69.8 259.93 67.22 262.38 68.11 261.6C66.89 263.37 65.9 264.71 65.24 266.82C65.09 267.27 64.8 268.65 64.93 268.2C64.95 270.58 64.85 272.64 65.85 274.91C66.25 275.79 67.7 278.31 67.26 277.44C68.6 279.44 72.73 285.34 71.34 283.38C72.46 284.93 73.51 286.51 74.65 288.04C76.07 289.97 80.51 295.6 79.01 293.73C79.88 294.85 80.71 295.99 81.62 297.07C82.68 298.36 86 302.1 84.9 300.84C86.92 303.15 93.26 309.79 91.13 307.58C93.81 310.24 102.16 317.84 99.35 315.33C101.84 317.54 109.55 323.83 106.96 321.75C109.4 323.65 116.81 329.19 114.32 327.37C116.45 328.93 123.05 333.3 120.85 331.85C121.94 332.41 122.98 333.14 124.15 333.5C125.37 333.88 129.2 334.27 127.94 334.07C130.14 333.79 131.76 333.78 133.79 332.69C134.44 332.33 136.3 331.11 135.66 331.48C137.5 329.66 139.59 327.84 140.13 325.14C140.39 323.89 140.61 320.08 140.49 321.34C140.15 318.07 139.84 315.72 137.62 313.19C136.71 312.16 135.52 311.16 134.34 310.47C133.92 310.23 132.56 309.64 132.98 309.9ZM90.1 132.98C90.75 131.93 91.37 130.85 92.1 129.85C92.96 128.71 95.38 125.18 94.56 126.35C95.81 124.62 97.03 122.89 98.34 121.2C99.36 119.87 102.6 116.03 101.53 117.32C102.75 115.88 103.93 114.42 105.21 113.05C106.82 111.31 111.89 106.34 110.19 107.99C111.7 106.5 113.22 105.02 114.8 103.59C116.02 102.49 119.82 99.34 118.55 100.39C120.58 98.73 126.81 93.97 124.72 95.54C126.28 94.45 127.7 93.16 129.29 92.1C130.7 91.17 135.15 88.72 133.68 89.57C136.22 88.27 139.07 86.97 140.66 84.47C141.49 83.16 142.99 78.72 142.46 80.18C142.84 76.75 142.82 73.77 140.75 70.78C140.07 69.8 137.62 67.22 138.4 68.11C136.63 66.89 135.29 65.9 133.18 65.24C132.73 65.09 131.35 64.8 131.8 64.93C129.42 64.95 127.36 64.85 125.09 65.85C124.21 66.25 121.69 67.7 122.56 67.26C120.56 68.6 114.66 72.73 116.62 71.34C115.07 72.46 113.49 73.51 111.96 74.65C110.03 76.07 104.4 80.51 106.27 79.01C105.15 79.88 104.01 80.71 102.93 81.62C101.64 82.68 97.9 86 99.16 84.9C96.85 86.92 90.21 93.26 92.42 91.13C89.76 93.81 82.16 102.16 84.67 99.35C82.46 101.84 76.17 109.55 78.25 106.96C76.35 109.4 70.81 116.81 72.63 114.32C71.07 116.45 66.7 123.05 68.15 120.85C67.59 121.94 66.86 122.98 66.5 124.15C66.12 125.37 65.73 129.2 65.93 127.94C66.21 130.14 66.22 131.76 67.31 133.79C67.67 134.44 68.89 136.3 68.52 135.66C70.34 137.5 72.16 139.59 74.86 140.13C76.11 140.39 79.92 140.61 78.66 140.49C81.93 140.15 84.28 139.84 86.81 137.62C87.84 136.71 88.84 135.52 89.53 134.34C89.77 133.92 90.36 132.56 90.1 132.98ZM267.02 90.1C268.07 90.75 269.15 91.37 270.15 92.1C271.29 92.96 274.82 95.38 273.65 94.56C275.38 95.81 277.11 97.03 278.8 98.34C280.13 99.36 283.97 102.6 282.68 101.53C284.12 102.75 285.58 103.93 286.95 105.21C288.69 106.82 293.66 111.89 292.01 110.19C293.5 111.7 294.98 113.22 296.41 114.8C297.51 116.02 300.66 119.82 299.61 118.55C301.27 120.58 306.03 126.81 304.46 124.72C305.55 126.28 306.84 127.7 307.9 129.29C308.83 130.7 311.28 135.15 310.43 133.68C311.73 136.22 313.03 139.07 315.53 140.66C316.84 141.49 321.28 142.99 319.82 142.46C323.25 142.84 326.23 142.82 329.22 140.75C330.2 140.07 332.78 137.62 331.89 138.4C333.11 136.63 334.1 135.29 334.76 133.18C334.91 132.73 335.2 131.35 335.07 131.8C335.05 129.42 335.15 127.36 334.15 125.09C333.75 124.21 332.3 121.69 332.74 122.56C331.4 120.56 327.27 114.66 328.66 116.62C327.54 115.07 326.49 113.49 325.35 111.96C323.93 110.03 319.49 104.4 320.99 106.27C320.12 105.15 319.29 104.01 318.38 102.93C317.32 101.64 314 97.9 315.1 99.16C313.08 96.85 306.74 90.21 308.87 92.42C306.19 89.76 297.84 82.16 300.65 84.67C298.16 82.46 290.45 76.17 293.04 78.25C290.6 76.35 283.19 70.81 285.68 72.63C283.55 71.07 276.95 66.7 279.15 68.15C278.06 67.59 277.02 66.86 275.85 66.5C274.63 66.12 270.8 65.73 272.06 65.93C269.86 66.21 268.24 66.22 266.21 67.31C265.56 67.67 263.7 68.89 264.34 68.52C262.5 70.34 260.41 72.16 259.87 74.86C259.61 76.11 259.39 79.92 259.51 78.66C259.85 81.93 260.16 84.28 262.38 86.81C263.29 87.84 264.48 88.84 265.66 89.53C266.08 89.77 267.44 90.36 267.02 90.1Z"/><circle cx="200" cy="34.66" r="34.64"/><circle cx="365.34" cy="200" r="34.64"/><circle cx="200" cy="365.34" r="34.64"/><circle cx="34.66" cy="200" r="34.64"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0.02 0.02 399.96 399.96" width="399.96" height="399.96" role="img" aria-label="ZapperHub"><title>ZapperHub</title><g fill="#7C52D1" fill-rule="evenodd"><path d="M204.79 95.22C203.18 95.61 201.53 95.89 199.96 96.43C198.05 97.08 192.55 99.59 194.39 98.77C192.26 99.97 186.02 103.8 188.09 102.51C186.35 103.73 184.57 104.92 182.92 106.26C181.09 107.77 175.98 112.7 177.68 111.06C176.7 112.09 175.7 113.08 174.77 114.15C173.84 115.22 171.23 118.55 172.11 117.44C170.54 119.58 166.28 126.31 167.68 124.05C166.98 125.34 166.2 126.59 165.58 127.91C165.16 128.84 164.2 131.74 164.55 130.78C164.88 133.65 165.42 136.09 168.8 136.7C170.35 136.98 176.49 134.1 174.5 134.88C176.93 134.01 179.36 133.13 181.83 132.36C183.12 131.96 184.43 131.65 185.75 131.36C186.7 131.15 189.6 130.72 188.64 130.89C191.11 130.43 192.19 130.15 194.69 130.06C197.36 129.95 205.36 129.94 202.69 129.9C204.7 130 206.7 130.08 208.69 130.29C210.05 130.45 214.07 131.25 212.73 130.99C215.66 131.54 215.71 131.39 218.65 132.31C220.67 132.94 226.64 135.05 224.66 134.33C227.24 135.33 234.72 138.95 232.23 137.73C234.35 138.91 236.47 140.1 238.5 141.43C240.11 142.47 244.68 145.95 243.14 144.82C245.14 146.4 247.23 148.43 249.86 148.98C251.8 149.39 257.63 150.48 255.7 150.05C258.34 150.48 266.2 152.11 263.58 151.57C265.91 152.16 272.82 154.31 270.53 153.56C271.49 153.92 272.47 154.22 273.41 154.62C274.78 155.21 278.83 157.19 277.48 156.53C279.59 157.73 285.69 161.73 283.67 160.38C285.77 161.95 291.79 166.97 289.8 165.28C291.55 166.84 293.31 168.42 294.93 170.11C296.57 171.82 301.08 177.3 299.57 175.47C301.27 177.78 306.14 184.88 304.55 182.49C306.81 186.36 307.68 186.95 307.87 186.65C309.15 184.65 308.09 176.04 308.25 178.99C308.12 177.35 308.04 175.7 307.76 174.08C307.41 171.98 305.85 165.76 306.36 167.83C305.75 165.49 303.58 158.56 304.32 160.87C303.54 158.63 302.78 156.38 301.9 154.19C301.24 152.56 298.94 147.81 299.68 149.4C298.45 147.01 294.42 139.99 295.78 142.31C294.89 140.9 294.03 139.46 293.11 138.07C292.31 136.86 289.79 133.35 290.62 134.53C289.47 133.02 288.34 131.49 287.13 130.02C286.38 129.1 283.93 126.46 284.74 127.34C283.49 125.93 282.3 124.49 280.99 123.14C279.35 121.46 274.18 116.64 275.91 118.25C274.49 116.99 273.08 115.7 271.63 114.49C270.54 113.57 267.15 111 268.26 111.87C266.15 110.31 259.66 105.86 261.84 107.33C259.36 105.76 251.73 101.4 254.29 102.83C252.74 102.05 251.21 101.21 249.63 100.49C248.02 99.74 243.06 97.77 244.71 98.43C243 97.82 241.3 97.15 239.58 96.6C238.3 96.2 234.38 95.22 235.68 95.57C234.04 95.21 232.42 94.75 230.75 94.51C228.45 94.21 221.47 93.81 223.79 93.95C221.13 93.87 213.13 94 215.79 93.93C213.47 94.07 211.13 94.17 208.82 94.44C207.46 94.6 203.46 95.51 204.79 95.22ZM304.78 204.79C304.39 203.18 304.11 201.53 303.57 199.96C302.92 198.05 300.41 192.55 301.23 194.39C300.03 192.26 296.2 186.02 297.49 188.09C296.27 186.35 295.08 184.57 293.74 182.92C292.23 181.09 287.3 175.98 288.94 177.68C287.91 176.7 286.92 175.7 285.85 174.77C284.78 173.84 281.45 171.23 282.56 172.11C280.42 170.54 273.69 166.28 275.95 167.68C274.66 166.98 273.41 166.2 272.09 165.58C271.16 165.16 268.26 164.2 269.22 164.55C266.35 164.88 263.91 165.42 263.3 168.8C263.02 170.35 265.9 176.49 265.12 174.5C265.99 176.93 266.87 179.36 267.64 181.83C268.04 183.12 268.35 184.43 268.64 185.75C268.85 186.7 269.28 189.6 269.11 188.64C269.57 191.11 269.85 192.19 269.94 194.69C270.05 197.36 270.06 205.36 270.1 202.69C270 204.7 269.92 206.7 269.71 208.69C269.55 210.05 268.75 214.07 269.01 212.73C268.46 215.66 268.61 215.71 267.69 218.65C267.06 220.67 264.95 226.64 265.67 224.66C264.67 227.24 261.05 234.72 262.27 232.23C261.09 234.35 259.9 236.47 258.57 238.5C257.53 240.11 254.05 244.68 255.18 243.14C253.6 245.14 251.57 247.23 251.02 249.86C250.61 251.8 249.52 257.63 249.95 255.7C249.52 258.34 247.89 266.2 248.43 263.58C247.84 265.91 245.69 272.82 246.44 270.53C246.08 271.49 245.78 272.47 245.38 273.41C244.79 274.78 242.81 278.83 243.47 277.48C242.27 279.59 238.27 285.69 239.62 283.67C238.05 285.77 233.03 291.79 234.72 289.8C233.16 291.55 231.58 293.31 229.89 294.93C228.18 296.57 222.7 301.08 224.53 299.57C222.22 301.27 215.12 306.14 217.51 304.55C213.64 306.81 213.05 307.68 213.35 307.87C215.35 309.15 223.96 308.09 221.01 308.25C222.65 308.12 224.3 308.04 225.92 307.76C228.02 307.41 234.24 305.85 232.17 306.36C234.51 305.75 241.44 303.58 239.13 304.32C241.37 303.54 243.62 302.78 245.81 301.9C247.44 301.24 252.19 298.94 250.6 299.68C252.99 298.45 260.01 294.42 257.69 295.78C259.1 294.89 260.54 294.03 261.93 293.11C263.14 292.31 266.65 289.79 265.47 290.62C266.98 289.47 268.51 288.34 269.98 287.13C270.9 286.38 273.54 283.93 272.66 284.74C274.07 283.49 275.51 282.3 276.86 280.99C278.54 279.35 283.36 274.18 281.75 275.91C283.01 274.49 284.3 273.08 285.51 271.63C286.43 270.54 289 267.15 288.13 268.26C289.69 266.15 294.14 259.66 292.67 261.84C294.24 259.36 298.6 251.73 297.17 254.29C297.95 252.74 298.79 251.21 299.51 249.63C300.26 248.02 302.23 243.06 301.57 244.71C302.18 243 302.85 241.3 303.4 239.58C303.8 238.3 304.78 234.38 304.43 235.68C304.79 234.04 305.25 232.42 305.49 230.75C305.79 228.45 306.19 221.47 306.05 223.79C306.13 221.13 306 213.13 306.07 215.79C305.93 213.47 305.83 211.13 305.56 208.82C305.4 207.46 304.49 203.46 304.78 204.79ZM195.21 304.78C196.82 304.39 198.47 304.11 200.04 303.57C201.95 302.92 207.45 300.41 205.61 301.23C207.74 300.03 213.98 296.2 211.91 297.49C213.65 296.27 215.43 295.08 217.08 293.74C218.91 292.23 224.02 287.3 222.32 288.94C223.3 287.91 224.3 286.92 225.23 285.85C226.16 284.78 228.77 281.45 227.89 282.56C229.46 280.42 233.72 273.69 232.32 275.95C233.02 274.66 233.8 273.41 234.42 272.09C234.84 271.16 235.8 268.26 235.45 269.22C235.12 266.35 234.58 263.91 231.2 263.3C229.65 263.02 223.51 265.9 225.5 265.12C223.07 265.99 220.64 266.87 218.17 267.64C216.88 268.04 215.57 268.35 214.25 268.64C213.3 268.85 210.4 269.28 211.36 269.11C208.89 269.57 207.81 269.85 205.31 269.94C202.64 270.05 194.64 270.06 197.31 270.1C195.3 270 193.3 269.92 191.31 269.71C189.95 269.55 185.93 268.75 187.27 269.01C184.34 268.46 184.29 268.61 181.35 267.69C179.33 267.06 173.36 264.95 175.34 265.67C172.76 264.67 165.28 261.05 167.77 262.27C165.65 261.09 163.53 259.9 161.5 258.57C159.89 257.53 155.32 254.05 156.86 255.18C154.86 253.6 152.77 251.57 150.14 251.02C148.2 250.61 142.37 249.52 144.3 249.95C141.66 249.52 133.8 247.89 136.42 248.43C134.09 247.84 127.18 245.69 129.47 246.44C128.51 246.08 127.53 245.78 126.59 245.38C125.22 244.79 121.17 242.81 122.52 243.47C120.41 242.27 114.31 238.27 116.33 239.62C114.23 238.05 108.21 233.03 110.2 234.72C108.45 233.16 106.69 231.58 105.07 229.89C103.43 228.18 98.92 222.7 100.43 224.53C98.73 222.22 93.86 215.12 95.45 217.51C93.19 213.64 92.32 213.05 92.13 213.35C90.85 215.35 91.91 223.96 91.75 221.01C91.88 222.65 91.96 224.3 92.24 225.92C92.59 228.02 94.15 234.24 93.64 232.17C94.25 234.51 96.42 241.44 95.68 239.13C96.46 241.37 97.22 243.62 98.1 245.81C98.76 247.44 101.06 252.19 100.32 250.6C101.55 252.99 105.58 260.01 104.22 257.69C105.11 259.1 105.97 260.54 106.89 261.93C107.69 263.14 110.21 266.65 109.38 265.47C110.53 266.98 111.66 268.51 112.87 269.98C113.62 270.9 116.07 273.54 115.26 272.66C116.51 274.07 117.7 275.51 119.01 276.86C120.65 278.54 125.82 283.36 124.09 281.75C125.51 283.01 126.92 284.3 128.37 285.51C129.46 286.43 132.85 289 131.74 288.13C133.85 289.69 140.34 294.14 138.16 292.67C140.64 294.24 148.27 298.6 145.71 297.17C147.26 297.95 148.79 298.79 150.37 299.51C151.98 300.26 156.94 302.23 155.29 301.57C157 302.18 158.7 302.85 160.42 303.4C161.7 303.8 165.62 304.78 164.32 304.43C165.96 304.79 167.58 305.25 169.25 305.49C171.55 305.79 178.53 306.19 176.21 306.05C178.87 306.13 186.87 306 184.21 306.07C186.53 305.93 188.87 305.83 191.18 305.56C192.54 305.4 196.54 304.49 195.21 304.78ZM95.22 195.21C95.61 196.82 95.89 198.47 96.43 200.04C97.08 201.95 99.59 207.45 98.77 205.61C99.97 207.74 103.8 213.98 102.51 211.91C103.73 213.65 104.92 215.43 106.26 217.08C107.77 218.91 112.7 224.02 111.06 222.32C112.09 223.3 113.08 224.3 114.15 225.23C115.22 226.16 118.55 228.77 117.44 227.89C119.58 229.46 126.31 233.72 124.05 232.32C125.34 233.02 126.59 233.8 127.91 234.42C128.84 234.84 131.74 235.8 130.78 235.45C133.65 235.12 136.09 234.58 136.7 231.2C136.98 229.65 134.1 223.51 134.88 225.5C134.01 223.07 133.13 220.64 132.36 218.17C131.96 216.88 131.65 215.57 131.36 214.25C131.15 213.3 130.72 210.4 130.89 211.36C130.43 208.89 130.15 207.81 130.06 205.31C129.95 202.64 129.94 194.64 129.9 197.31C130 195.3 130.08 193.3 130.29 191.31C130.45 189.95 131.25 185.93 130.99 187.27C131.54 184.34 131.39 184.29 132.31 181.35C132.94 179.33 135.05 173.36 134.33 175.34C135.33 172.76 138.95 165.28 137.73 167.77C138.91 165.65 140.1 163.53 141.43 161.5C142.47 159.89 145.95 155.32 144.82 156.86C146.4 154.86 148.43 152.77 148.98 150.14C149.39 148.2 150.48 142.37 150.05 144.3C150.48 141.66 152.11 133.8 151.57 136.42C152.16 134.09 154.31 127.18 153.56 129.47C153.92 128.51 154.22 127.53 154.62 126.59C155.21 125.22 157.19 121.17 156.53 122.52C157.73 120.41 161.73 114.31 160.38 116.33C161.95 114.23 166.97 108.21 165.28 110.2C166.84 108.45 168.42 106.69 170.11 105.07C171.82 103.43 177.3 98.92 175.47 100.43C177.78 98.73 184.88 93.86 182.49 95.45C186.36 93.19 186.95 92.32 186.65 92.13C184.65 90.85 176.04 91.91 178.99 91.75C177.35 91.88 175.7 91.96 174.08 92.24C171.98 92.59 165.76 94.15 167.83 93.64C165.49 94.25 158.56 96.42 160.87 95.68C158.63 96.46 156.38 97.22 154.19 98.1C152.56 98.76 147.81 101.06 149.4 100.32C147.01 101.55 139.99 105.58 142.31 104.22C140.9 105.11 139.46 105.97 138.07 106.89C136.86 107.69 133.35 110.21 134.53 109.38C133.02 110.53 131.49 111.66 130.02 112.87C129.1 113.62 126.46 116.07 127.34 115.26C125.93 116.51 124.49 117.7 123.14 119.01C121.46 120.65 116.64 125.82 118.25 124.09C116.99 125.51 115.7 126.92 114.49 128.37C113.57 129.46 111 132.85 111.87 131.74C110.31 133.85 105.86 140.34 107.33 138.16C105.76 140.64 101.4 148.27 102.83 145.71C102.05 147.26 101.21 148.79 100.49 150.37C99.74 151.98 97.77 156.94 98.43 155.29C97.82 157 97.15 158.7 96.6 160.42C96.2 161.7 95.22 165.62 95.57 164.32C95.21 165.96 94.75 167.58 94.51 169.25C94.21 171.55 93.81 178.53 93.95 176.21C93.87 178.87 94 186.87 93.93 184.21C94.07 186.53 94.17 188.87 94.44 191.18C94.6 192.54 95.51 196.54 95.22 195.21ZM309.9 267.02C309.25 268.07 308.63 269.15 307.9 270.15C307.04 271.29 304.62 274.82 305.44 273.65C304.19 275.38 302.97 277.11 301.66 278.8C300.64 280.13 297.4 283.97 298.47 282.68C297.25 284.12 296.07 285.58 294.79 286.95C293.18 288.69 288.11 293.66 289.81 292.01C288.3 293.5 286.78 294.98 285.2 296.41C283.98 297.51 280.18 300.66 281.45 299.61C279.42 301.27 273.19 306.03 275.28 304.46C273.72 305.55 272.3 306.84 270.71 307.9C269.3 308.83 264.85 311.28 266.32 310.43C263.78 311.73 260.93 313.03 259.34 315.53C258.51 316.84 257.01 321.28 257.54 319.82C257.16 323.25 257.18 326.23 259.25 329.22C259.93 330.2 262.38 332.78 261.6 331.89C263.37 333.11 264.71 334.1 266.82 334.76C267.27 334.91 268.65 335.2 268.2 335.07C270.58 335.05 272.64 335.15 274.91 334.15C275.79 333.75 278.31 332.3 277.44 332.74C279.44 331.4 285.34 327.27 283.38 328.66C284.93 327.54 286.51 326.49 288.04 325.35C289.97 323.93 295.6 319.49 293.73 320.99C294.85 320.12 295.99 319.29 297.07 318.38C298.36 317.32 302.1 314 300.84 315.1C303.15 313.08 309.79 306.74 307.58 308.87C310.24 306.19 317.84 297.84 315.33 300.65C317.54 298.16 323.83 290.45 321.75 293.04C323.65 290.6 329.19 283.19 327.37 285.68C328.93 283.55 333.3 276.95 331.85 279.15C332.41 278.06 333.14 277.02 333.5 275.85C333.88 274.63 334.27 270.8 334.07 272.06C333.79 269.86 333.78 268.24 332.69 266.21C332.33 265.56 331.11 263.7 331.48 264.34C329.66 262.5 327.84 260.41 325.14 259.87C323.89 259.61 320.08 259.39 321.34 259.51C318.07 259.85 315.72 260.16 313.19 262.38C312.16 263.29 311.16 264.48 310.47 265.66C310.23 266.08 309.64 267.44 309.9 267.02ZM132.98 309.9C131.93 309.25 130.85 308.63 129.85 307.9C128.71 307.04 125.18 304.62 126.35 305.44C124.62 304.19 122.89 302.97 121.2 301.66C119.87 300.64 116.03 297.4 117.32 298.47C115.88 297.25 114.42 296.07 113.05 294.79C111.31 293.18 106.34 288.11 107.99 289.81C106.5 288.3 105.02 286.78 103.59 285.2C102.49 283.98 99.34 280.18 100.39 281.45C98.73 279.42 93.97 273.19 95.54 275.28C94.45 273.72 93.16 272.3 92.1 270.71C91.17 269.3 88.72 264.85 89.57 266.32C88.27 263.78 86.97 260.93 84.47 259.34C83.16 258.51 78.72 257.01 80.18 257.54C76.75 257.16 73.77 257.18 70.78 259.25C69.8 259.93 67.22 262.38 68.11 261.6C66.89 263.37 65.9 264.71 65.24 266.82C65.09 267.27 64.8 268.65 64.93 268.2C64.95 270.58 64.85 272.64 65.85 274.91C66.25 275.79 67.7 278.31 67.26 277.44C68.6 279.44 72.73 285.34 71.34 283.38C72.46 284.93 73.51 286.51 74.65 288.04C76.07 289.97 80.51 295.6 79.01 293.73C79.88 294.85 80.71 295.99 81.62 297.07C82.68 298.36 86 302.1 84.9 300.84C86.92 303.15 93.26 309.79 91.13 307.58C93.81 310.24 102.16 317.84 99.35 315.33C101.84 317.54 109.55 323.83 106.96 321.75C109.4 323.65 116.81 329.19 114.32 327.37C116.45 328.93 123.05 333.3 120.85 331.85C121.94 332.41 122.98 333.14 124.15 333.5C125.37 333.88 129.2 334.27 127.94 334.07C130.14 333.79 131.76 333.78 133.79 332.69C134.44 332.33 136.3 331.11 135.66 331.48C137.5 329.66 139.59 327.84 140.13 325.14C140.39 323.89 140.61 320.08 140.49 321.34C140.15 318.07 139.84 315.72 137.62 313.19C136.71 312.16 135.52 311.16 134.34 310.47C133.92 310.23 132.56 309.64 132.98 309.9ZM90.1 132.98C90.75 131.93 91.37 130.85 92.1 129.85C92.96 128.71 95.38 125.18 94.56 126.35C95.81 124.62 97.03 122.89 98.34 121.2C99.36 119.87 102.6 116.03 101.53 117.32C102.75 115.88 103.93 114.42 105.21 113.05C106.82 111.31 111.89 106.34 110.19 107.99C111.7 106.5 113.22 105.02 114.8 103.59C116.02 102.49 119.82 99.34 118.55 100.39C120.58 98.73 126.81 93.97 124.72 95.54C126.28 94.45 127.7 93.16 129.29 92.1C130.7 91.17 135.15 88.72 133.68 89.57C136.22 88.27 139.07 86.97 140.66 84.47C141.49 83.16 142.99 78.72 142.46 80.18C142.84 76.75 142.82 73.77 140.75 70.78C140.07 69.8 137.62 67.22 138.4 68.11C136.63 66.89 135.29 65.9 133.18 65.24C132.73 65.09 131.35 64.8 131.8 64.93C129.42 64.95 127.36 64.85 125.09 65.85C124.21 66.25 121.69 67.7 122.56 67.26C120.56 68.6 114.66 72.73 116.62 71.34C115.07 72.46 113.49 73.51 111.96 74.65C110.03 76.07 104.4 80.51 106.27 79.01C105.15 79.88 104.01 80.71 102.93 81.62C101.64 82.68 97.9 86 99.16 84.9C96.85 86.92 90.21 93.26 92.42 91.13C89.76 93.81 82.16 102.16 84.67 99.35C82.46 101.84 76.17 109.55 78.25 106.96C76.35 109.4 70.81 116.81 72.63 114.32C71.07 116.45 66.7 123.05 68.15 120.85C67.59 121.94 66.86 122.98 66.5 124.15C66.12 125.37 65.73 129.2 65.93 127.94C66.21 130.14 66.22 131.76 67.31 133.79C67.67 134.44 68.89 136.3 68.52 135.66C70.34 137.5 72.16 139.59 74.86 140.13C76.11 140.39 79.92 140.61 78.66 140.49C81.93 140.15 84.28 139.84 86.81 137.62C87.84 136.71 88.84 135.52 89.53 134.34C89.77 133.92 90.36 132.56 90.1 132.98ZM267.02 90.1C268.07 90.75 269.15 91.37 270.15 92.1C271.29 92.96 274.82 95.38 273.65 94.56C275.38 95.81 277.11 97.03 278.8 98.34C280.13 99.36 283.97 102.6 282.68 101.53C284.12 102.75 285.58 103.93 286.95 105.21C288.69 106.82 293.66 111.89 292.01 110.19C293.5 111.7 294.98 113.22 296.41 114.8C297.51 116.02 300.66 119.82 299.61 118.55C301.27 120.58 306.03 126.81 304.46 124.72C305.55 126.28 306.84 127.7 307.9 129.29C308.83 130.7 311.28 135.15 310.43 133.68C311.73 136.22 313.03 139.07 315.53 140.66C316.84 141.49 321.28 142.99 319.82 142.46C323.25 142.84 326.23 142.82 329.22 140.75C330.2 140.07 332.78 137.62 331.89 138.4C333.11 136.63 334.1 135.29 334.76 133.18C334.91 132.73 335.2 131.35 335.07 131.8C335.05 129.42 335.15 127.36 334.15 125.09C333.75 124.21 332.3 121.69 332.74 122.56C331.4 120.56 327.27 114.66 328.66 116.62C327.54 115.07 326.49 113.49 325.35 111.96C323.93 110.03 319.49 104.4 320.99 106.27C320.12 105.15 319.29 104.01 318.38 102.93C317.32 101.64 314 97.9 315.1 99.16C313.08 96.85 306.74 90.21 308.87 92.42C306.19 89.76 297.84 82.16 300.65 84.67C298.16 82.46 290.45 76.17 293.04 78.25C290.6 76.35 283.19 70.81 285.68 72.63C283.55 71.07 276.95 66.7 279.15 68.15C278.06 67.59 277.02 66.86 275.85 66.5C274.63 66.12 270.8 65.73 272.06 65.93C269.86 66.21 268.24 66.22 266.21 67.31C265.56 67.67 263.7 68.89 264.34 68.52C262.5 70.34 260.41 72.16 259.87 74.86C259.61 76.11 259.39 79.92 259.51 78.66C259.85 81.93 260.16 84.28 262.38 86.81C263.29 87.84 264.48 88.84 265.66 89.53C266.08 89.77 267.44 90.36 267.02 90.1Z"/><circle cx="200" cy="34.66" r="34.64"/><circle cx="365.34" cy="200" r="34.64"/><circle cx="200" cy="365.34" r="34.64"/><circle cx="34.66" cy="200" r="34.64"/></g></svg>
@@ -0,0 +1,4 @@
1
+ import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class ZapperHub implements INodeType {
3
+ description: INodeTypeDescription;
4
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZapperHub = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const call_1 = require("./resources/call");
6
+ const chat_1 = require("./resources/chat");
7
+ const contact_1 = require("./resources/contact");
8
+ const group_1 = require("./resources/group");
9
+ const instagram_1 = require("./resources/instagram");
10
+ const message_1 = require("./resources/message");
11
+ const other_1 = require("./resources/other");
12
+ const template_1 = require("./resources/template");
13
+ class ZapperHub {
14
+ constructor() {
15
+ this.description = {
16
+ displayName: 'ZapperHub',
17
+ name: 'zapperHub',
18
+ icon: { light: 'file:zapperhub.svg', dark: 'file:zapperhub.dark.svg' },
19
+ group: ['output'],
20
+ version: 1,
21
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
22
+ description: 'Send and manage WhatsApp messages, calls, contacts and groups with the ZapperHub API',
23
+ defaults: {
24
+ name: 'ZapperHub',
25
+ },
26
+ usableAsTool: true,
27
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
28
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
29
+ credentials: [{ name: 'zapperHubApi', required: true }],
30
+ requestDefaults: {
31
+ baseURL: '={{$credentials.apiUrl}}/{{$credentials.instanceId}}',
32
+ headers: {
33
+ Accept: 'application/json',
34
+ 'Content-Type': 'application/json',
35
+ },
36
+ },
37
+ properties: [
38
+ {
39
+ displayName: 'Resource',
40
+ name: 'resource',
41
+ type: 'options',
42
+ noDataExpression: true,
43
+ options: [
44
+ { name: 'Call', value: 'call' },
45
+ { name: 'Channel', value: 'channel' },
46
+ { name: 'Chat', value: 'chat' },
47
+ { name: 'Connection', value: 'connection' },
48
+ { name: 'Contact', value: 'contact' },
49
+ { name: 'Group', value: 'group' },
50
+ { name: 'Instagram', value: 'instagram' },
51
+ { name: 'Message', value: 'message' },
52
+ { name: 'Profile', value: 'profile' },
53
+ { name: 'Template', value: 'template' },
54
+ ],
55
+ default: 'message',
56
+ },
57
+ ...message_1.messageDescription,
58
+ ...call_1.callDescription,
59
+ ...other_1.channelDescription,
60
+ ...chat_1.chatDescription,
61
+ ...other_1.connectionDescription,
62
+ ...contact_1.contactDescription,
63
+ ...group_1.groupDescription,
64
+ ...instagram_1.instagramDescription,
65
+ ...other_1.profileDescription,
66
+ ...template_1.templateDescription,
67
+ ],
68
+ };
69
+ }
70
+ }
71
+ exports.ZapperHub = ZapperHub;
72
+ //# sourceMappingURL=ZapperHub.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZapperHub.node.js","sourceRoot":"","sources":["../../../nodes/ZapperHub/ZapperHub.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAE9F,2CAAmD;AACnD,2CAAmD;AACnD,iDAAyD;AACzD,6CAAqD;AACrD,qDAA6D;AAC7D,iDAAyD;AACzD,6CAI2B;AAC3B,mDAA2D;AAE3D,MAAa,SAAS;IAAtB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,yBAAyB,EAAE;YACtE,KAAK,EAAE,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EACV,sFAAsF;YACvF,QAAQ,EAAE;gBAC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ACrB,GAAG,sBAAe;gBAClB,GAAG,6BAAqB;gBACxB,GAAG,4BAAkB;gBACrB,GAAG,wBAAgB;gBACnB,GAAG,gCAAoB;gBACvB,GAAG,0BAAkB;gBACrB,GAAG,8BAAmB;aACtB;SACD,CAAC;IACH,CAAC;CAAA;AAxDD,8BAwDC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-zapperhub.zapperHub",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Communication"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://docs.zapperhub.com/integrations/n8n"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://docs.zapperhub.com/integrations/n8n"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,9 @@
1
+ import type { IExecuteSingleFunctions, IHttpRequestOptions } from 'n8n-workflow';
2
+ type PreSend = (this: IExecuteSingleFunctions, requestOptions: IHttpRequestOptions) => Promise<IHttpRequestOptions>;
3
+ export declare function binaryFile(bodyProperty: string): PreSend;
4
+ export declare const buildButtons: PreSend;
5
+ export declare const buildListSections: PreSend;
6
+ export declare const buildCarouselCards: PreSend;
7
+ export declare const buildContactPhones: PreSend;
8
+ export declare function jsonParameter(parameterName: string, bodyProperty: string): PreSend;
9
+ export {};
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildContactPhones = exports.buildCarouselCards = exports.buildListSections = exports.buildButtons = void 0;
4
+ exports.binaryFile = binaryFile;
5
+ exports.jsonParameter = jsonParameter;
6
+ const n8n_workflow_1 = require("n8n-workflow");
7
+ function body(requestOptions) {
8
+ var _a;
9
+ (_a = requestOptions.body) !== null && _a !== void 0 ? _a : (requestOptions.body = {});
10
+ return requestOptions.body;
11
+ }
12
+ function binaryFile(bodyProperty) {
13
+ return async function (requestOptions) {
14
+ var _a, _b;
15
+ if (this.getNodeParameter('fileSource', 'url') !== 'binary')
16
+ return requestOptions;
17
+ const propertyName = this.getNodeParameter('binaryPropertyName', 'data');
18
+ const binary = this.helpers.assertBinaryData(propertyName);
19
+ const buffer = await this.helpers.getBinaryDataBuffer(propertyName);
20
+ const data = body(requestOptions);
21
+ data[bodyProperty] = `data:${binary.mimeType};base64,${buffer.toString('base64')}`;
22
+ if (data.mediaType === 'document') {
23
+ (_a = data.filename) !== null && _a !== void 0 ? _a : (data.filename = binary.fileName);
24
+ (_b = data.mimetype) !== null && _b !== void 0 ? _b : (data.mimetype = binary.mimeType);
25
+ }
26
+ return requestOptions;
27
+ };
28
+ }
29
+ const buildButtons = async function (requestOptions) {
30
+ var _a;
31
+ const input = this.getNodeParameter('buttons', {});
32
+ body(requestOptions).buttons = ((_a = input.button) !== null && _a !== void 0 ? _a : []).map((button) => {
33
+ const result = {
34
+ type: button.type,
35
+ displayText: button.displayText,
36
+ id: button.id,
37
+ };
38
+ if (button.type === 'url')
39
+ result.url = button.url;
40
+ if (button.type === 'copy')
41
+ result.copyCode = button.copyCode;
42
+ if (button.type === 'call')
43
+ result.phoneNumber = button.phoneNumber;
44
+ return result;
45
+ });
46
+ return requestOptions;
47
+ };
48
+ exports.buildButtons = buildButtons;
49
+ const buildListSections = async function (requestOptions) {
50
+ var _a, _b, _c;
51
+ const input = this.getNodeParameter('rows', {});
52
+ const sections = [];
53
+ for (const row of (_a = input.row) !== null && _a !== void 0 ? _a : []) {
54
+ const title = (_c = (_b = row.section) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : '';
55
+ let section = sections.find((item) => item.title === title);
56
+ if (!section) {
57
+ section = { title, rows: [] };
58
+ sections.push(section);
59
+ }
60
+ section.rows.push({
61
+ title: row.title,
62
+ rowId: row.rowId,
63
+ ...(row.description ? { description: row.description } : {}),
64
+ });
65
+ }
66
+ body(requestOptions).sections = sections.map((section) => section.title ? section : { rows: section.rows });
67
+ return requestOptions;
68
+ };
69
+ exports.buildListSections = buildListSections;
70
+ const buildCarouselCards = async function (requestOptions) {
71
+ var _a;
72
+ const input = this.getNodeParameter('cards', {});
73
+ body(requestOptions).cards = ((_a = input.card) !== null && _a !== void 0 ? _a : []).map((card) => {
74
+ const buttons = card.buttonType === 'url'
75
+ ? [{ type: 'url', text: card.buttonText, url: card.buttonUrl }]
76
+ : [{ type: 'reply', text: card.buttonText, id: card.buttonId }];
77
+ if (card.buttonType === 'reply' && card.secondButtonText) {
78
+ buttons.push({ type: 'reply', text: card.secondButtonText, id: card.secondButtonId });
79
+ }
80
+ return {
81
+ header: { type: card.mediaType, url: card.mediaUrl },
82
+ ...(card.text ? { body: card.text } : {}),
83
+ buttons,
84
+ };
85
+ });
86
+ return requestOptions;
87
+ };
88
+ exports.buildCarouselCards = buildCarouselCards;
89
+ const buildContactPhones = async function (requestOptions) {
90
+ var _a, _b;
91
+ const input = this.getNodeParameter('phones', {});
92
+ const data = body(requestOptions);
93
+ const vcard = ((_a = data.vcard) !== null && _a !== void 0 ? _a : {});
94
+ vcard.tel = ((_b = input.phone) !== null && _b !== void 0 ? _b : []).map((phone) => ({ value: phone.number, type: [phone.type] }));
95
+ data.vcard = vcard;
96
+ return requestOptions;
97
+ };
98
+ exports.buildContactPhones = buildContactPhones;
99
+ function jsonParameter(parameterName, bodyProperty) {
100
+ return async function (requestOptions) {
101
+ var _a;
102
+ const value = this.getNodeParameter(parameterName, '');
103
+ if (value === '' || value === undefined || value === null)
104
+ return requestOptions;
105
+ let parsed = value;
106
+ if (typeof value === 'string') {
107
+ try {
108
+ parsed = JSON.parse(value);
109
+ }
110
+ catch {
111
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `"${parameterName}" is not valid JSON`);
112
+ }
113
+ }
114
+ const data = body(requestOptions);
115
+ const path = bodyProperty.split('.');
116
+ let target = data;
117
+ for (const key of path.slice(0, -1)) {
118
+ (_a = target[key]) !== null && _a !== void 0 ? _a : (target[key] = {});
119
+ target = target[key];
120
+ }
121
+ target[path[path.length - 1]] = parsed;
122
+ return requestOptions;
123
+ };
124
+ }
125
+ //# sourceMappingURL=presend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presend.js","sourceRoot":"","sources":["../../../nodes/ZapperHub/presend.ts"],"names":[],"mappings":";;;AAiBA,gCAcC;AAsHD,sCAsBC;AA1KD,+CAAkD;AAOlD,SAAS,IAAI,CAAC,cAAmC;;IAChD,MAAA,cAAc,CAAC,IAAI,oCAAnB,cAAc,CAAC,IAAI,GAAK,EAAE,EAAC;IAC3B,OAAO,cAAc,CAAC,IAAmB,CAAC;AAC3C,CAAC;AAMD,SAAgB,UAAU,CAAC,YAAoB;IAC9C,OAAO,KAAK,WAA0C,cAAc;;QACnE,IAAI,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,KAAK,CAAC,KAAK,QAAQ;YAAE,OAAO,cAAc,CAAC;QACnF,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,MAAM,CAAW,CAAC;QACnF,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACpE,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;QAClC,IAAI,CAAC,YAAY,CAAC,GAAG,QAAQ,MAAM,CAAC,QAAQ,WAAW,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnF,IAAI,IAAI,CAAC,SAAS,KAAK,UAAU,EAAE,CAAC;YACnC,MAAA,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,MAAM,CAAC,QAAQ,EAAC;YAClC,MAAA,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,MAAM,CAAC,QAAQ,EAAC;QACnC,CAAC;QACD,OAAO,cAAc,CAAC;IACvB,C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