n8n-nodes-chatwoot-konan 0.1.0

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 (47) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +74 -0
  3. package/dist/credentials/KonanChatwootApi.credentials.d.ts +9 -0
  4. package/dist/credentials/KonanChatwootApi.credentials.js +54 -0
  5. package/dist/credentials/KonanChatwootApi.credentials.js.map +1 -0
  6. package/dist/icons/github.dark.svg +3 -0
  7. package/dist/icons/github.svg +3 -0
  8. package/dist/icons/konanChatwoot.svg +33 -0
  9. package/dist/nodes/KonanChatwoot/GenericFunctions.d.ts +3 -0
  10. package/dist/nodes/KonanChatwoot/GenericFunctions.js +47 -0
  11. package/dist/nodes/KonanChatwoot/GenericFunctions.js.map +1 -0
  12. package/dist/nodes/KonanChatwoot/KonanChatwoot.node.d.ts +5 -0
  13. package/dist/nodes/KonanChatwoot/KonanChatwoot.node.js +462 -0
  14. package/dist/nodes/KonanChatwoot/KonanChatwoot.node.js.map +1 -0
  15. package/dist/nodes/KonanChatwoot/KonanChatwootTrigger.node.d.ts +12 -0
  16. package/dist/nodes/KonanChatwoot/KonanChatwootTrigger.node.js +96 -0
  17. package/dist/nodes/KonanChatwoot/KonanChatwootTrigger.node.js.map +1 -0
  18. package/dist/nodes/KonanChatwoot/descriptions/AccountDescription.d.ts +3 -0
  19. package/dist/nodes/KonanChatwoot/descriptions/AccountDescription.js +86 -0
  20. package/dist/nodes/KonanChatwoot/descriptions/AccountDescription.js.map +1 -0
  21. package/dist/nodes/KonanChatwoot/descriptions/ContactDescription.d.ts +3 -0
  22. package/dist/nodes/KonanChatwoot/descriptions/ContactDescription.js +216 -0
  23. package/dist/nodes/KonanChatwoot/descriptions/ContactDescription.js.map +1 -0
  24. package/dist/nodes/KonanChatwoot/descriptions/ConversationDescription.d.ts +3 -0
  25. package/dist/nodes/KonanChatwoot/descriptions/ConversationDescription.js +366 -0
  26. package/dist/nodes/KonanChatwoot/descriptions/ConversationDescription.js.map +1 -0
  27. package/dist/nodes/KonanChatwoot/descriptions/CustomAttributeDescription.d.ts +3 -0
  28. package/dist/nodes/KonanChatwoot/descriptions/CustomAttributeDescription.js +164 -0
  29. package/dist/nodes/KonanChatwoot/descriptions/CustomAttributeDescription.js.map +1 -0
  30. package/dist/nodes/KonanChatwoot/descriptions/InboxDescription.d.ts +3 -0
  31. package/dist/nodes/KonanChatwoot/descriptions/InboxDescription.js +48 -0
  32. package/dist/nodes/KonanChatwoot/descriptions/InboxDescription.js.map +1 -0
  33. package/dist/nodes/KonanChatwoot/descriptions/LabelDescription.d.ts +3 -0
  34. package/dist/nodes/KonanChatwoot/descriptions/LabelDescription.js +132 -0
  35. package/dist/nodes/KonanChatwoot/descriptions/LabelDescription.js.map +1 -0
  36. package/dist/nodes/KonanChatwoot/descriptions/ProfileDescription.d.ts +3 -0
  37. package/dist/nodes/KonanChatwoot/descriptions/ProfileDescription.js +73 -0
  38. package/dist/nodes/KonanChatwoot/descriptions/ProfileDescription.js.map +1 -0
  39. package/dist/nodes/KonanChatwoot/descriptions/TeamDescription.d.ts +3 -0
  40. package/dist/nodes/KonanChatwoot/descriptions/TeamDescription.js +154 -0
  41. package/dist/nodes/KonanChatwoot/descriptions/TeamDescription.js.map +1 -0
  42. package/dist/nodes/KonanChatwoot/konanChatwoot.svg +33 -0
  43. package/dist/nodes/KonanChatwoot/shared/GenericFunctions.d.ts +3 -0
  44. package/dist/nodes/KonanChatwoot/shared/GenericFunctions.js +47 -0
  45. package/dist/nodes/KonanChatwoot/shared/GenericFunctions.js.map +1 -0
  46. package/dist/tsconfig.tsbuildinfo +1 -0
  47. package/package.json +50 -0
package/LICENSE.md ADDED
@@ -0,0 +1,19 @@
1
+ Copyright 2022 n8n
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # n8n-nodes-konan-chatwoot
2
+
3
+ Este é um pacote de **n8n Community Node** para integração completa com a **[API Oficial do Chatwoot](https://developers.chatwoot.com/api-reference/introduction)**.
4
+
5
+ [![n8n community node](https://img.shields.io/badge/n8n-community--node-orange.svg)](https://n8n.io)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE.md)
7
+
8
+ ---
9
+
10
+ ## 🚀 Funcionalidades Principais
11
+
12
+ O pacote disponibiliza dois nós no n8n:
13
+ 1. **Konan Chatwoot** (Node Principal de Ações)
14
+ 2. **Konan Chatwoot Trigger** (Node de Disparo por Webhook)
15
+
16
+ ### Recursos Cobertos (API Oficial v1)
17
+
18
+ - **Account (Conta)**: `Get`, `Update`
19
+ - **Contact (Contatos)**: `Create`, `Get`, `Update`, `Delete`, `List`, `Search`, `Set Custom Attributes`, `Destroy Custom Attributes`
20
+ - **Conversation (Conversas)**: `Create`, `Get`, `List`, `Send Message`, `Send File` (com suporte a anexos binários), `List Messages`, `List Attachments`, `Assign Agent`, `Assign Team`, `Add/Remove/Update Labels`, `Toggle Status`, `Set Priority`, `Set Custom Attributes`, `Update Last Seen`, `Update Presence`, `Mark Unread`, `Update Attachment Metadata`
21
+ - **Custom Attribute (Atributos Customizados)**: `Create`, `Get`, `List`, `Update`, `Delete` *(Suporte exclusivo aos modelos oficiais `Contact` e `Conversation`)*
22
+ - **Inbox (Caixas de Entrada)**: `Get`, `List`
23
+ - **Label (Etiquetas)**: `Create`, `Get`, `List`, `Update`, `Delete`
24
+ - **Profile (Perfil de Usuário)**: `Get`, `Update` *(Rota global `/api/v1/profile`)*
25
+ - **Team (Times)**: `Create`, `Get`, `Update`, `Delete`, `List`, `Get Team Members`, `Assign Agent`, `Unassign Agent`
26
+
27
+ ### Eventos de Webhook (Trigger Node)
28
+
29
+ - `Contact Created` (`contact_created`)
30
+ - `Contact Updated` (`contact_updated`)
31
+ - `Conversation Created` (`conversation_created`)
32
+ - `Conversation Status Changed` (`conversation_status_changed`)
33
+ - `Conversation Typing Off` (`conversation_typing_off`)
34
+ - `Conversation Typing On` (`conversation_typing_on`)
35
+ - `Conversation Updated` (`conversation_updated`)
36
+ - `Live Chat Widget Opened` (`webwidget_triggered`)
37
+ - `Message Created` (`message_created`)
38
+ - `Message Updated` (`message_updated`)
39
+
40
+ ---
41
+
42
+ ## ⚙️ Configuração de Credenciais
43
+
44
+ Para utilizar os nós no n8n, crie a credencial **Konan Chatwoot API** preenchendo:
45
+
46
+ 1. **Base URL**: Endereço da sua instância Chatwoot (ex.: `https://app.chatwoot.com` ou `https://chatwoot.suaempresa.com`).
47
+ 2. **Account ID**: O ID numérico da sua conta no Chatwoot (encontrado na URL da conta).
48
+ 3. **API Access Token**: O token obtido em **Profile Settings** no canto inferior esquerdo do painel do Chatwoot.
49
+
50
+ A autenticação é injetada automaticamente via HTTP Header `api_access_token`.
51
+
52
+ ---
53
+
54
+ ## 📦 Instalação e Build Local
55
+
56
+ ```bash
57
+ # Instalar dependências
58
+ npm install
59
+
60
+ # Compilar TypeScript e copiar ícones
61
+ npm run build
62
+
63
+ # Testar localmente com o n8n
64
+ npm link
65
+ cd ~/.n8n/custom
66
+ npm link n8n-nodes-konan-chatwoot
67
+ n8n start
68
+ ```
69
+
70
+ ---
71
+
72
+ ## 📄 Licença
73
+
74
+ [MIT](LICENSE.md)
@@ -0,0 +1,9 @@
1
+ import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class KonanChatwootApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KonanChatwootApi = void 0;
4
+ class KonanChatwootApi {
5
+ constructor() {
6
+ this.name = 'konanChatwootApi';
7
+ this.displayName = 'Konan Chatwoot API';
8
+ this.documentationUrl = 'https://developers.chatwoot.com/api-reference/introduction';
9
+ this.properties = [
10
+ {
11
+ displayName: 'Base URL',
12
+ name: 'baseUrl',
13
+ type: 'string',
14
+ default: 'https://app.chatwoot.com',
15
+ required: true,
16
+ description: 'URL da instância Chatwoot (cloud ou self-hosted)',
17
+ },
18
+ {
19
+ displayName: 'Account ID',
20
+ name: 'accountId',
21
+ type: 'string',
22
+ default: '',
23
+ required: true,
24
+ description: 'ID da conta Chatwoot utilizada nas chamadas de API',
25
+ },
26
+ {
27
+ displayName: 'API Access Token',
28
+ name: 'apiAccessToken',
29
+ type: 'string',
30
+ typeOptions: { password: true },
31
+ default: '',
32
+ required: true,
33
+ description: 'Token obtido em Profile Settings dentro do Chatwoot',
34
+ },
35
+ ];
36
+ this.authenticate = {
37
+ type: 'generic',
38
+ properties: {
39
+ headers: {
40
+ api_access_token: '={{$credentials.apiAccessToken}}',
41
+ },
42
+ },
43
+ };
44
+ this.test = {
45
+ request: {
46
+ baseURL: '={{$credentials.baseUrl}}',
47
+ url: '=/api/v1/accounts/{{$credentials.accountId}}',
48
+ method: 'GET',
49
+ },
50
+ };
51
+ }
52
+ }
53
+ exports.KonanChatwootApi = KonanChatwootApi;
54
+ //# sourceMappingURL=KonanChatwootApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KonanChatwootApi.credentials.js","sourceRoot":"","sources":["../../credentials/KonanChatwootApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,gBAAgB;IAA7B;QACC,SAAI,GAAG,kBAAkB,CAAC;QAE1B,gBAAW,GAAG,oBAAoB,CAAC;QAEnC,qBAAgB,GAAG,4DAA4D,CAAC;QAEhF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,kDAAkD;aAC/D;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,oDAAoD;aACjE;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,qDAAqD;aAClE;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,gBAAgB,EAAE,kCAAkC;iBACpD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,8CAA8C;gBACnD,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAnDD,4CAmDC"}
@@ -0,0 +1,3 @@
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="white"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="#24292F"/>
3
+ </svg>
@@ -0,0 +1,33 @@
1
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" style="display: block;" viewBox="0 0 2048 2048" width="1536" height="1536" preserveAspectRatio="none">
2
+ <defs>
3
+ <linearGradient id="Gradient1" gradientUnits="userSpaceOnUse" x1="1445.69" y1="634.129" x2="1407.26" y2="646.841">
4
+ <stop class="stop0" offset="0" stop-opacity="1" stop-color="rgb(163,161,162)"/>
5
+ <stop class="stop1" offset="1" stop-opacity="1" stop-color="rgb(191,190,190)"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <path transform="translate(0,0)" fill="rgb(254,254,254)" d="M 0 0 L 2048 0 L 2048 2048 L 0 2048 L 0 0 z"/>
9
+ <path transform="translate(0,0)" fill="rgb(33,38,48)" d="M 564.823 786.394 C 566.324 768.426 569.814 750.68 575.232 733.483 C 591.993 679.061 630.221 633.828 681.087 608.23 C 705.174 595.885 731.308 588.03 758.209 585.052 C 782.093 582.331 811.411 583.283 835.906 583.316 L 954.321 583.474 L 1096.63 583.535 C 1157.3 583.54 1214.9 579.658 1270.68 608.093 C 1284.37 615.077 1298.93 620.563 1306.17 634.97 C 1308.58 635.402 1309.37 634.851 1310.63 636.552 C 1323.34 653.665 1324.99 678.353 1305.69 691.45 C 1297.77 696.817 1286.59 700.15 1277.14 698.968 C 1269.27 691.659 1269.52 697.588 1262.33 695.304 C 1255.38 693.096 1239.62 687.451 1233.86 683.749 L 1234.32 681.859 C 1231.5 679.381 1213.11 673.589 1208.92 673.055 C 1202.17 673.719 1156.7 673.316 1151.74 673.04 C 1117.33 671.126 828.801 677.097 821.117 671.605 C 823.229 670.293 837.974 671.806 842.704 670.691 C 838.302 667.84 811.639 671.259 805.402 668.837 L 805.802 667.067 C 793.529 668.914 787.23 668.893 775.009 668.727 C 773.886 668.712 763.562 670.596 761.271 670.919 C 768.195 670.942 815.603 670.474 818.355 671.518 C 796.569 673.431 772.247 671.47 750.01 673.332 C 739.288 674.23 724.775 683.145 713.91 686.403 C 691.329 694.838 676.762 715.539 662.372 733.473 C 659.829 736.647 658.246 744.325 656.086 748.054 C 654.673 752.393 648.504 755.74 647.908 757.41 C 634.766 794.233 637.069 832.684 639.149 870.848 L 638.272 871.439 L 637.196 869.95 C 635.933 875.484 638.271 903.768 638.23 911.252 C 638.185 919.579 636.135 931.158 636.654 938.409 C 637.187 945.864 641.508 958.485 641.418 966.621 L 638.942 967.501 L 639.047 968.676 C 640.344 984.853 638.922 1000.92 638.059 1016.96 C 637.66 1024.37 639.864 1030.06 638.577 1039.19 C 637.593 1045.77 636.978 1052.39 636.735 1059.04 C 636.65 1061.87 638.349 1109.59 638.434 1109.85 L 640.606 1107.2 C 640.696 1108.78 640.947 1114.26 641.456 1115.67 C 642.923 1119.15 638.476 1129.35 639.088 1131.61 C 642.437 1143.96 645.98 1156.62 649.985 1168.77 C 652.468 1176.3 656.342 1176.94 650.772 1183.94 C 654.893 1192.61 661.432 1196.41 664.441 1204.1 C 679.163 1219.35 683.511 1221.8 700.954 1232.65 C 721.446 1245.41 749.636 1244.09 757.461 1266.92 C 776.552 1274.84 764.955 1313.11 765.093 1326.89 C 765.22 1339.55 760.379 1388.5 764.312 1394.92 C 790.559 1369.91 815.849 1341.21 841.619 1315.57 C 858.074 1299.2 878.755 1274.49 898.907 1263.44 C 924.361 1249.49 963.725 1253.19 992.977 1253.3 L 1161.4 1253.52 C 1193.19 1253.52 1245 1255.79 1274.23 1249.73 C 1299.58 1244.47 1323.34 1233.34 1343.61 1217.23 C 1375.66 1191.83 1404.34 1148.24 1408.92 1107.19 C 1407.95 1097.34 1409.74 1074.31 1409.58 1062.92 C 1409.27 1041.13 1408.56 1019.26 1408.53 997.5 L 1408.7 933.147 C 1408.82 920.158 1410.92 877.449 1407.03 866.957 C 1406.81 868.208 1407.48 879.825 1407.36 883.017 L 1405.73 884.156 C 1400.06 876.303 1395.35 841.233 1390.57 831.4 C 1379.46 808.746 1366.72 786.984 1350.98 767.207 C 1341.77 755.641 1341.8 743.339 1344.02 729.7 C 1342.56 725.046 1341.89 722.441 1342.18 717.491 C 1342.63 709.57 1346.26 702.166 1352.23 696.944 C 1358.04 691.772 1365.75 689.279 1373.49 690.072 C 1390.25 691.866 1401.79 710.45 1412.21 723.347 C 1415 725.473 1417.1 727.747 1420.3 728.077 C 1432.57 737.013 1434.27 744.715 1442.51 756.45 C 1459.64 780.849 1473.83 811.001 1479.68 840.274 C 1482.18 852.729 1481.75 869.887 1486.59 881.655 C 1486.23 883.239 1486.63 882.446 1484.9 883.73 C 1484.28 897.489 1488.96 917.923 1485.99 931.15 C 1483.85 940.64 1486.4 953.076 1487.51 962.481 L 1486.66 962.839 L 1485.21 962.137 C 1484.89 966.133 1485.66 970.088 1485.58 973.992 C 1485.23 990.283 1486.35 1006.33 1486.78 1022.55 C 1486.98 1029.95 1485.86 1039.48 1485.61 1047.15 L 1484.53 1091.84 C 1484.3 1098.96 1485.75 1106.01 1485.04 1113.15 C 1479.13 1172.5 1450.98 1237.94 1405.24 1277.13 C 1392.64 1287.92 1379.2 1296.06 1365.5 1305.14 C 1360.47 1308.47 1357.77 1312.28 1351.84 1314.63 C 1323.8 1325.72 1291.58 1336.51 1261.65 1340.54 C 1241.57 1343.25 1219.37 1338.52 1199.03 1338.64 C 1188.87 1338.7 1178.71 1341.09 1168.62 1340.98 C 1161.96 1340.91 1155.15 1339.51 1148.47 1339.11 C 1138.91 1338.55 1128.85 1338.96 1119.24 1339.17 C 1105.82 1339.46 1092.2 1341.76 1078.84 1341.56 C 1071.52 1341.45 1063.87 1340.15 1056.59 1339.24 C 1049.6 1338.37 1041.84 1339.65 1034.71 1339.51 C 1014.63 1339.12 994.666 1339.18 974.599 1339.05 C 964.832 1338.99 954.535 1337.98 944.836 1339.14 C 940.966 1339.6 938.506 1340.32 935.354 1342.6 C 937.21 1343.85 938.246 1343.4 940.934 1343.49 C 934.931 1346.27 929.376 1345.68 924.87 1347.75 C 918.102 1350.87 914.85 1360.27 907.531 1365.51 C 898.867 1371.7 887.856 1387.86 880.296 1394.2 C 867.587 1404.85 862.07 1408.22 850.379 1420.95 C 831.707 1441.26 815.302 1465.91 792.456 1481.24 C 786.495 1485.25 778.218 1485.13 771.886 1488.36 C 765.594 1491.57 758.539 1497 751.008 1496.4 C 732.449 1494.82 715.375 1485.62 703.857 1470.98 C 694.275 1458.57 689.768 1437.96 691.665 1423.23 C 692.569 1425.83 692.406 1426.91 694.209 1428.27 C 696.103 1421.47 693.685 1341.07 693.101 1329.63 C 692.95 1326.68 691.545 1322.93 690.175 1320.12 C 687.138 1313.88 675.485 1313.79 672.343 1311.5 C 656.276 1299.82 642.343 1290.58 628.305 1276.26 C 622.127 1269.96 613.217 1266.25 607.62 1257.71 C 596.671 1241.01 584.574 1223.1 577.104 1204.54 C 571.626 1190.93 568.102 1175.39 563.508 1161.33 C 560.929 1153.44 561.345 1137.52 559.487 1128.8 C 559.238 1127.63 559.374 1127.05 559.434 1125.75 C 561.566 1127.14 564.439 1135.57 566.059 1138.89 C 564.679 1130.49 563.789 1120.08 563.669 1111.45 C 563.009 1063.9 563.617 1016.2 563.463 968.667 L 563.476 838.491 C 563.51 829.608 562.666 792.546 564.823 786.394 z"/>
10
+ <path transform="translate(0,0)" fill="rgb(188,187,187)" d="M 1412.21 723.347 C 1415 725.473 1417.1 727.747 1420.3 728.077 C 1432.57 737.013 1434.27 744.715 1442.51 756.45 C 1459.64 780.849 1473.83 811.001 1479.68 840.274 C 1482.18 852.729 1481.75 869.887 1486.59 881.655 C 1486.23 883.239 1486.63 882.446 1484.9 883.73 C 1484.28 897.489 1488.96 917.923 1485.99 931.15 C 1483.85 940.64 1486.4 953.076 1487.51 962.481 L 1486.66 962.839 L 1485.21 962.137 C 1484.89 966.133 1485.66 970.088 1485.58 973.992 C 1485.23 990.283 1486.35 1006.33 1486.78 1022.55 C 1486.98 1029.95 1485.86 1039.48 1485.61 1047.15 L 1484.53 1091.84 C 1484.3 1098.96 1485.75 1106.01 1485.04 1113.15 C 1479.13 1172.5 1450.98 1237.94 1405.24 1277.13 C 1392.64 1287.92 1379.2 1296.06 1365.5 1305.14 C 1360.47 1308.47 1357.77 1312.28 1351.84 1314.63 C 1323.8 1325.72 1291.58 1336.51 1261.65 1340.54 C 1241.57 1343.25 1219.37 1338.52 1199.03 1338.64 C 1188.87 1338.7 1178.71 1341.09 1168.62 1340.98 C 1161.96 1340.91 1155.15 1339.51 1148.47 1339.11 C 1138.91 1338.55 1128.85 1338.96 1119.24 1339.17 C 1105.82 1339.46 1092.2 1341.76 1078.84 1341.56 C 1071.52 1341.45 1063.87 1340.15 1056.59 1339.24 C 1049.6 1338.37 1041.84 1339.65 1034.71 1339.51 C 1014.63 1339.12 994.666 1339.18 974.599 1339.05 C 964.832 1338.99 954.535 1337.98 944.836 1339.14 C 940.966 1339.6 938.506 1340.32 935.354 1342.6 C 937.21 1343.85 938.246 1343.4 940.934 1343.49 C 934.931 1346.27 929.376 1345.68 924.87 1347.75 C 918.102 1350.87 914.85 1360.27 907.531 1365.51 C 898.867 1371.7 887.856 1387.86 880.296 1394.2 C 867.587 1404.85 862.07 1408.22 850.379 1420.95 C 831.707 1441.26 815.302 1465.91 792.456 1481.24 C 786.495 1485.25 778.218 1485.13 771.886 1488.36 C 765.594 1491.57 758.539 1497 751.008 1496.4 C 732.449 1494.82 715.375 1485.62 703.857 1470.98 C 694.275 1458.57 689.768 1437.96 691.665 1423.23 C 692.569 1425.83 692.406 1426.91 694.209 1428.27 C 696.103 1421.47 693.685 1341.07 693.101 1329.63 C 692.95 1326.68 691.545 1322.93 690.175 1320.12 C 687.138 1313.88 675.485 1313.79 672.343 1311.5 C 656.276 1299.82 642.343 1290.58 628.305 1276.26 C 622.127 1269.96 613.217 1266.25 607.62 1257.71 C 596.671 1241.01 584.574 1223.1 577.104 1204.54 C 571.626 1190.93 568.102 1175.39 563.508 1161.33 C 560.929 1153.44 561.345 1137.52 559.487 1128.8 C 559.238 1127.63 559.374 1127.05 559.434 1125.75 C 561.566 1127.14 564.439 1135.57 566.059 1138.89 C 564.679 1130.49 563.789 1120.08 563.669 1111.45 C 563.009 1063.9 563.617 1016.2 563.463 968.667 L 563.476 838.491 C 563.51 829.608 562.666 792.546 564.823 786.394 L 564.517 1006.19 L 564.62 1069.86 C 564.556 1106.65 564.779 1139.12 577.955 1174.28 C 584.689 1192.25 594.407 1209.39 605.807 1224.81 C 607.829 1227.57 619.283 1241.48 620.155 1243.06 C 622.248 1250.46 626.591 1253.02 631.522 1258.56 C 649.262 1278.51 671.299 1294.8 695.288 1306.49 C 695.747 1331.71 695.875 1356.93 695.675 1382.15 C 695.622 1405.67 692.17 1429.92 706.652 1449.86 C 716.145 1459.38 725.506 1465.08 739.042 1466.95 C 773.218 1471.69 795.38 1445.06 816.612 1422.97 C 834.379 1404.49 906.061 1326.42 923.059 1317.73 C 938.355 1309.91 973.373 1313.21 990.692 1313.31 L 1160.12 1313.33 C 1195.04 1313.36 1250.47 1315.45 1282.36 1309.17 C 1316.27 1302.59 1348.24 1288.42 1375.88 1267.7 C 1432.56 1225.17 1457.37 1171.89 1466.95 1103.48 C 1467.98 1058.26 1467.43 1012.48 1467.67 967.181 C 1468.05 897.013 1473.09 833.691 1440.14 768.609 C 1431.89 752.335 1422.43 738.379 1412.21 723.347 z"/>
11
+ <path transform="translate(0,0)" fill="rgb(167,165,166)" d="M 706.652 1449.86 C 716.145 1459.38 725.506 1465.08 739.042 1466.95 C 773.218 1471.69 795.38 1445.06 816.612 1422.97 C 834.379 1404.49 906.061 1326.42 923.059 1317.73 C 938.355 1309.91 973.373 1313.21 990.692 1313.31 L 1160.12 1313.33 C 1195.04 1313.36 1250.47 1315.45 1282.36 1309.17 C 1316.27 1302.59 1348.24 1288.42 1375.88 1267.7 C 1432.56 1225.17 1457.37 1171.89 1466.95 1103.48 C 1468.92 1118.64 1469.49 1132.5 1463.03 1146.72 C 1460 1153.39 1464 1163.81 1461.32 1170.09 C 1451 1194.27 1441.05 1220.06 1422.77 1239.48 C 1416.52 1246.11 1411.09 1254.45 1404.24 1260.69 C 1386.16 1276.99 1359.59 1296.24 1337.38 1305.34 C 1312.52 1315.52 1289.19 1321.88 1262.31 1322.76 C 1250.69 1323.27 1238.07 1321.65 1226.55 1322.29 C 1201.2 1323.7 1173.2 1325.85 1147.86 1324.45 C 1126.69 1323.28 1109 1320.22 1087.13 1324.35 C 1084.9 1324.77 1074.47 1323.21 1070.97 1323.18 L 1032.51 1322.95 C 1029.5 1322.94 1020.61 1323.95 1018.54 1323.47 C 995.717 1318.17 971.299 1323.77 948.104 1324.44 C 943.818 1324.56 939.454 1328.39 935.656 1330.17 C 910.004 1342 894.09 1362.37 874.959 1381.89 C 860.869 1396.28 844.848 1411.05 830.717 1426.37 C 806.6 1452.52 791.026 1479.43 752.29 1482 C 740.679 1482.77 731.013 1478.91 722.576 1471.21 C 718.357 1467.35 710.177 1458.63 708.177 1453.64 L 706.652 1449.86 z"/>
12
+ <path transform="translate(0,0)" fill="rgb(188,187,187)" d="M 1306.17 634.97 C 1308.58 635.402 1309.37 634.851 1310.63 636.552 C 1323.34 653.665 1324.99 678.353 1305.69 691.45 C 1297.77 696.817 1286.59 700.15 1277.14 698.968 C 1269.27 691.659 1269.52 697.588 1262.33 695.304 C 1255.38 693.096 1239.62 687.451 1233.86 683.749 L 1234.32 681.859 C 1231.5 679.381 1213.11 673.589 1208.92 673.055 C 1202.17 673.719 1156.7 673.316 1151.74 673.04 C 1117.33 671.126 828.801 677.097 821.117 671.605 C 823.229 670.293 837.974 671.806 842.704 670.691 C 838.302 667.84 811.639 671.259 805.402 668.837 L 805.802 667.067 C 793.529 668.914 787.23 668.893 775.009 668.727 C 773.886 668.712 763.562 670.596 761.271 670.919 C 768.195 670.942 815.603 670.474 818.355 671.518 C 796.569 673.431 772.247 671.47 750.01 673.332 C 739.288 674.23 724.775 683.145 713.91 686.403 C 691.329 694.838 676.762 715.539 662.372 733.473 C 659.829 736.647 658.246 744.325 656.086 748.054 C 654.673 752.393 648.504 755.74 647.908 757.41 C 634.766 794.233 637.069 832.684 639.149 870.848 L 638.272 871.439 L 637.196 869.95 C 635.933 875.484 638.271 903.768 638.23 911.252 C 638.185 919.579 636.135 931.158 636.654 938.409 C 637.187 945.864 641.508 958.485 641.418 966.621 L 638.942 967.501 L 639.047 968.676 C 640.344 984.853 638.922 1000.92 638.059 1016.96 C 637.66 1024.37 639.864 1030.06 638.577 1039.19 C 637.593 1045.77 636.978 1052.39 636.735 1059.04 C 636.65 1061.87 638.349 1109.59 638.434 1109.85 L 640.606 1107.2 C 640.696 1108.78 640.947 1114.26 641.456 1115.67 C 642.923 1119.15 638.476 1129.35 639.088 1131.61 C 642.437 1143.96 645.98 1156.62 649.985 1168.77 C 652.468 1176.3 656.342 1176.94 650.772 1183.94 C 654.893 1192.61 661.432 1196.41 664.441 1204.1 C 650.976 1192.14 637.808 1167.68 631.151 1151.2 C 625.694 1119.77 626.747 1081.73 626.477 1050 C 626.363 1036.46 624.66 1018.43 624.676 1004.82 C 624.688 994.448 623.558 945.779 621.126 938.345 C 620.827 929.676 620.984 921.313 621.116 912.657 C 620.26 896.495 620.75 871.471 620.89 854.953 C 621.11 828.948 618.931 794.119 624.525 769.46 C 634.211 726.759 658.122 691.966 695.251 668.797 C 716.583 655.529 740.559 647.088 765.499 644.067 C 785.495 641.522 817.639 642.593 838.638 642.671 L 952.419 642.759 L 1095.38 642.691 C 1144.27 642.573 1193.99 638.717 1239.77 658.806 C 1255.01 665.497 1273.52 678.317 1290.3 671.941 C 1301.58 667.656 1305.91 657.727 1307.93 646.687 C 1307.65 642.573 1306.91 639.011 1306.17 634.97 z"/>
13
+ <path transform="translate(0,0)" fill="rgb(167,165,166)" d="M 621.116 912.657 C 620.26 896.495 620.75 871.471 620.89 854.953 C 621.11 828.948 618.931 794.119 624.525 769.46 C 634.211 726.759 658.122 691.966 695.251 668.797 C 716.583 655.529 740.559 647.088 765.499 644.067 C 785.495 641.522 817.639 642.593 838.638 642.671 L 952.419 642.759 L 1095.38 642.691 C 1144.27 642.573 1193.99 638.717 1239.77 658.806 C 1255.01 665.497 1273.52 678.317 1290.3 671.941 C 1301.58 667.656 1305.91 657.727 1307.93 646.687 C 1308 651.662 1308.69 656.486 1308.13 661.362 C 1304.54 692.81 1268.9 686.113 1249.23 675.188 C 1238.69 669.333 1239.09 672.316 1230.54 669.435 L 1233.26 668.159 L 1232.98 666.844 C 1227.75 665.055 1216.62 659.972 1212.66 659.152 C 1201.3 657.117 1190 656.126 1178.64 653.951 C 1170.74 652.439 1159.8 654.977 1151.5 654.329 C 1127.02 652.418 1102.19 654.409 1077.86 654.238 C 1056.32 654.087 1034.4 651.083 1012.58 652.84 C 1008.05 653.045 990.254 655.118 988.679 652.645 L 990.65 651.633 L 990.162 651.524 L 988.95 653.717 L 988.355 651.647 C 967.716 653.72 947.424 652.456 926.646 652.525 C 882.939 652.635 839.127 651.886 795.465 650.887 C 788.435 651.592 769.045 652.131 763.534 656.983 C 754.22 665.183 745.384 658.054 737.938 662.344 C 728.005 668.067 697.643 677.201 690.79 685.255 C 679.986 697.952 674.688 690.29 669.002 705.126 C 653.475 717.991 656.989 711.908 646.686 730.354 C 635.009 751.261 630.214 757.14 627.879 782.086 C 626.334 798.832 625.363 815.626 624.967 832.439 C 624.515 847.285 625.033 902.96 621.116 912.657 z"/>
14
+ <path transform="translate(0,0)" fill="rgb(213,213,213)" d="M 805.802 667.067 C 825.558 665.107 856.528 666.966 876.927 667.219 C 899.802 667.502 922.414 667.556 945.299 667.553 L 1101.36 667.507 C 1127.22 667.496 1153.38 667.429 1179.24 667.561 C 1181.76 667.573 1207.03 672.022 1208.92 673.055 C 1202.17 673.719 1156.7 673.316 1151.74 673.04 C 1117.33 671.126 828.801 677.097 821.117 671.605 C 823.229 670.293 837.974 671.806 842.704 670.691 C 838.302 667.84 811.639 671.259 805.402 668.837 L 805.802 667.067 z"/>
15
+ <path transform="translate(0,0)" fill="rgb(213,213,213)" d="M 1344.02 729.7 C 1349.95 740.357 1359.44 749.51 1366.76 759.321 C 1380.26 777.417 1391.4 798.422 1399.05 819.693 C 1405.14 836.72 1409.01 854.461 1410.57 872.478 C 1411.9 887.836 1411.44 906.082 1411.44 921.705 L 1411.4 1000.7 C 1411.4 1023.55 1414.11 1089.13 1408.92 1107.19 C 1407.95 1097.34 1409.74 1074.31 1409.58 1062.92 C 1409.27 1041.13 1408.56 1019.26 1408.53 997.5 L 1408.7 933.147 C 1408.82 920.158 1410.92 877.449 1407.03 866.957 C 1406.81 868.208 1407.48 879.825 1407.36 883.017 L 1405.73 884.156 C 1400.06 876.303 1395.35 841.233 1390.57 831.4 C 1379.46 808.746 1366.72 786.984 1350.98 767.207 C 1341.77 755.641 1341.8 743.339 1344.02 729.7 z"/>
16
+ <path transform="translate(0,0)" fill="rgb(167,165,166)" d="M 757.461 1266.92 C 776.552 1274.84 764.955 1313.11 765.093 1326.89 C 765.22 1339.55 760.379 1388.5 764.312 1394.92 C 760.516 1398.28 759.857 1399.52 755.135 1397.19 C 747.589 1387.56 751.968 1323.1 752.489 1306.65 C 752.884 1294.17 761.174 1287.62 757.461 1266.92 z"/>
17
+ <path transform="translate(0,0)" fill="rgb(167,165,166)" d="M 621.126 938.345 C 623.558 945.779 624.688 994.448 624.676 1004.82 C 624.66 1018.43 626.363 1036.46 626.477 1050 C 626.747 1081.73 625.694 1119.77 631.151 1151.2 C 617.521 1118.52 620.875 1081.06 620.918 1046.22 C 620.761 1010.26 620.83 974.302 621.126 938.345 z"/>
18
+ <path transform="translate(0,0)" fill="rgb(167,165,166)" d="M 620.155 1243.06 C 632.671 1255.05 643.602 1265.89 658.269 1275.71 C 668.83 1282.78 681.826 1287.69 691.962 1294.89 C 694.364 1296.59 695.187 1303.37 695.288 1306.49 C 671.299 1294.8 649.262 1278.51 631.522 1258.56 C 626.591 1253.02 622.248 1250.46 620.155 1243.06 z"/>
19
+ <path transform="translate(0,0)" fill="rgb(33,38,48)" d="M 1152.62 975.907 C 1147.22 964.519 1146.1 951.615 1150.27 939.627 C 1154.46 927.528 1163.48 917.708 1175.18 912.504 C 1186.8 907.324 1200.04 907.224 1211.73 912.228 C 1224.81 917.805 1232.21 927.515 1237.14 940.373 C 1243.22 943.843 1244.27 945.831 1246.49 952.886 C 1261.55 1000.58 1215.4 1041.15 1171.03 1013.72 C 1157.97 1005.65 1152.2 991.83 1152.62 975.907 z"/>
20
+ <path transform="translate(0,0)" fill="rgb(167,165,166)" d="M 1237.14 940.373 C 1243.22 943.843 1244.27 945.831 1246.49 952.886 C 1261.55 1000.58 1215.4 1041.15 1171.03 1013.72 C 1157.97 1005.65 1152.2 991.83 1152.62 975.907 C 1158.16 984.016 1160.42 987.226 1168.82 993.001 C 1179.23 999.032 1190.19 1001.68 1202.2 999.284 C 1213.77 996.878 1223.97 990.127 1230.71 980.423 C 1240.73 972.5 1239.56 951.594 1237.14 940.373 z"/>
21
+ <path transform="translate(0,0)" fill="rgb(18,19,22)" d="M 1221.16 984.354 C 1214.77 989.67 1194.57 1001.34 1186.52 995.941 L 1186.49 994.689 L 1189.13 993.876 C 1186.73 993.346 1183.75 995.013 1181.95 996.421 L 1182.49 997.514 C 1188.18 998.746 1204.33 997.019 1210.44 995.591 C 1216.34 994.214 1224.26 982.558 1230.71 980.423 C 1223.97 990.127 1213.77 996.878 1202.2 999.284 C 1190.19 1001.68 1179.23 999.032 1168.82 993.001 C 1169.24 992.734 1172.57 990.622 1172.59 990.623 C 1184.73 991.152 1193.45 994.667 1206.02 991.201 C 1211.85 989.594 1215.88 987.183 1221.16 984.354 z"/>
22
+ <path transform="translate(0,0)" fill="rgb(33,38,48)" d="M 981.398 977.71 C 972.328 962.664 972.693 943.749 982.336 929.065 C 991.98 914.38 1009.19 906.529 1026.6 908.873 C 1044.01 911.217 1058.54 923.341 1063.95 940.053 C 1072.05 945.952 1072.72 950.183 1074.84 960.031 C 1080.41 985.881 1065.27 1017.4 1036.84 1021.48 C 1023.21 1023.32 1009.42 1019.67 998.488 1011.33 C 985.574 1001.54 982.308 993.133 981.398 977.71 z"/>
23
+ <path transform="translate(0,0)" fill="rgb(167,165,166)" d="M 1063.95 940.053 C 1072.05 945.952 1072.72 950.183 1074.84 960.031 C 1080.41 985.881 1065.27 1017.4 1036.84 1021.48 C 1023.21 1023.32 1009.42 1019.67 998.488 1011.33 C 985.574 1001.54 982.308 993.133 981.398 977.71 C 993.377 997.581 1018.35 1005.31 1039.46 995.682 C 1060.57 986.053 1071.11 962.126 1063.95 940.053 z"/>
24
+ <path transform="translate(0,0)" fill="rgb(33,38,48)" d="M 809.372 980.792 C 802.158 967.789 799.728 955.545 804.189 940.977 C 807.637 929.381 815.665 919.693 826.419 914.151 C 852.746 900.407 878.197 913.275 890.312 938.711 C 896.925 942.908 899.04 947.302 900.749 954.885 C 907.031 982.753 894.623 1016.74 863.131 1021.2 C 834.703 1025.22 812.951 1009.45 809.372 980.792 z"/>
25
+ <path transform="translate(0,0)" fill="rgb(167,165,166)" d="M 890.312 938.711 C 896.925 942.908 899.04 947.302 900.749 954.885 C 907.031 982.753 894.623 1016.74 863.131 1021.2 C 834.703 1025.22 812.951 1009.45 809.372 980.792 C 813.141 984.819 816.198 988.607 820.874 991.48 C 826.166 989.386 828.006 990.285 833.115 991.306 C 854.355 995.549 866.914 992.366 882.145 977.701 C 883.694 976.209 884.386 977.036 886.909 977.422 C 895.394 965.358 893.363 951.991 890.312 938.711 z"/>
26
+ <path transform="translate(0,0)" fill="rgb(18,19,22)" d="M 820.874 991.48 C 826.166 989.386 828.006 990.285 833.115 991.306 C 854.355 995.549 866.914 992.366 882.145 977.701 C 883.694 976.209 884.386 977.036 886.909 977.422 C 871.617 1000.66 844.323 1007.21 820.874 991.48 z"/>
27
+ <path transform="translate(0,0)" fill="rgb(33,38,48)" d="M 1457.14 687.452 C 1444.28 662.883 1467.89 650.34 1486.87 642.414 C 1507.78 633.683 1547.95 601.567 1558.09 640.142 C 1562.5 642.657 1564.2 643.929 1565.77 649.354 C 1577.14 688.567 1524.75 706.029 1496.29 715.474 C 1480.48 720.722 1450.69 712.016 1457.14 687.452 z"/>
28
+ <path transform="translate(0,0)" fill="rgb(167,165,166)" d="M 1558.09 640.142 C 1562.5 642.657 1564.2 643.929 1565.77 649.354 C 1577.14 688.567 1524.75 706.029 1496.29 715.474 C 1480.48 720.722 1450.69 712.016 1457.14 687.452 C 1457.59 687.98 1458.05 688.5 1458.52 689.014 C 1476.18 708.218 1499.03 690.285 1518.23 681.091 C 1540.64 670.359 1557.55 666.881 1558.09 640.142 z"/>
29
+ <path transform="translate(0,0)" fill="rgb(33,38,48)" d="M 1397 628.306 C 1394.83 622.259 1394.49 616.702 1397.15 610.721 C 1405.97 590.962 1415.59 571.339 1424.44 551.605 C 1427.79 544.119 1431.66 535.672 1440.27 533.59 C 1457.15 529.506 1466.44 536.439 1471.21 551.987 C 1484.26 563.715 1475.29 585.876 1469.91 599.745 C 1464.43 613.875 1451.37 646.332 1440.92 655.681 C 1418.01 671.714 1389.99 657.116 1397 628.306 z"/>
30
+ <path transform="translate(0,0)" fill="rgb(167,165,166)" d="M 1471.21 551.987 C 1484.26 563.715 1475.29 585.876 1469.91 599.745 C 1464.43 613.875 1451.37 646.332 1440.92 655.681 C 1431.74 639.074 1444.99 635.318 1443.36 622.827 C 1449.09 602.379 1470.18 573.764 1471.21 551.987 z"/>
31
+ <path transform="translate(0,0)" fill="url(#Gradient1)" d="M 1440.86 626.99 L 1443.36 622.827 C 1444.99 635.318 1431.74 639.074 1440.92 655.681 C 1418.01 671.714 1389.99 657.116 1397 628.306 C 1400.3 632.757 1402.7 636.004 1407.56 638.893 C 1421.76 644.48 1433.26 640.029 1440.86 626.99 z"/>
32
+ <path transform="translate(0,0)" fill="rgb(18,19,22)" d="M 1407.56 638.893 C 1407.22 637.815 1406.21 635.861 1405.69 634.761 C 1410.13 633.882 1419.71 635.057 1423.23 633.826 C 1429.01 631.803 1432.57 627.113 1439.45 624.956 L 1440.86 626.99 C 1433.26 640.029 1421.76 644.48 1407.56 638.893 z"/>
33
+ </svg>
@@ -0,0 +1,3 @@
1
+ import { IExecuteFunctions, IHookFunctions, IHttpRequestMethods, IDataObject } from 'n8n-workflow';
2
+ export declare function konanChatwootApiRequest(this: IExecuteFunctions | IHookFunctions, method: IHttpRequestMethods, endpointPath: string, body?: IDataObject, qs?: IDataObject, isGlobalPath?: boolean): Promise<any>;
3
+ export declare function konanChatwootMultipartApiRequest(this: IExecuteFunctions, method: IHttpRequestMethods, endpointPath: string, formData: IDataObject, qs?: IDataObject): Promise<any>;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.konanChatwootApiRequest = konanChatwootApiRequest;
4
+ exports.konanChatwootMultipartApiRequest = konanChatwootMultipartApiRequest;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ async function konanChatwootApiRequest(method, endpointPath, body = {}, qs = {}, isGlobalPath = false) {
7
+ const credentials = await this.getCredentials('konanChatwootApi');
8
+ const baseUrl = credentials.baseUrl.replace(/\/$/, '');
9
+ const accountId = credentials.accountId;
10
+ const path = isGlobalPath
11
+ ? `/api/v1${endpointPath}`
12
+ : `/api/v1/accounts/${accountId}${endpointPath}`;
13
+ const options = {
14
+ method,
15
+ baseURL: baseUrl,
16
+ url: path,
17
+ body,
18
+ qs,
19
+ json: true,
20
+ };
21
+ try {
22
+ return await this.helpers.requestWithAuthentication.call(this, 'konanChatwootApi', options);
23
+ }
24
+ catch (error) {
25
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
26
+ }
27
+ }
28
+ async function konanChatwootMultipartApiRequest(method, endpointPath, formData, qs = {}) {
29
+ const credentials = await this.getCredentials('konanChatwootApi');
30
+ const baseUrl = credentials.baseUrl.replace(/\/$/, '');
31
+ const accountId = credentials.accountId;
32
+ const options = {
33
+ method,
34
+ baseURL: baseUrl,
35
+ url: `/api/v1/accounts/${accountId}${endpointPath}`,
36
+ formData,
37
+ qs,
38
+ json: true,
39
+ };
40
+ try {
41
+ return await this.helpers.requestWithAuthentication.call(this, 'konanChatwootApi', options);
42
+ }
43
+ catch (error) {
44
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
45
+ }
46
+ }
47
+ //# sourceMappingURL=GenericFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/KonanChatwoot/GenericFunctions.ts"],"names":[],"mappings":";;AASA,0DAkCC;AAED,4EA6BC;AA1ED,+CAOsB;AAEf,KAAK,UAAU,uBAAuB,CAE5C,MAA2B,EAC3B,YAAoB,EACpB,OAAoB,EAAE,EACtB,KAAkB,EAAE,EACpB,eAAwB,KAAK;IAE7B,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAClE,MAAM,OAAO,GAAI,WAAW,CAAC,OAAkB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACnE,MAAM,SAAS,GAAG,WAAW,CAAC,SAAmB,CAAC;IAElD,MAAM,IAAI,GAAG,YAAY;QACxB,CAAC,CAAC,UAAU,YAAY,EAAE;QAC1B,CAAC,CAAC,oBAAoB,SAAS,GAAG,YAAY,EAAE,CAAC;IAElD,MAAM,OAAO,GAAoB;QAChC,MAAM;QACN,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,IAAI;QACT,IAAI;QACJ,EAAE;QACF,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,IAAI,CAAC;QACJ,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CACvD,IAAI,EACJ,kBAAkB,EAClB,OAAO,CACP,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAY,CAAC,CAAC;IACtD,CAAC;AACF,CAAC;AAEM,KAAK,UAAU,gCAAgC,CAErD,MAA2B,EAC3B,YAAoB,EACpB,QAAqB,EACrB,KAAkB,EAAE;IAEpB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAClE,MAAM,OAAO,GAAI,WAAW,CAAC,OAAkB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACnE,MAAM,SAAS,GAAG,WAAW,CAAC,SAAmB,CAAC;IAElD,MAAM,OAAO,GAAoB;QAChC,MAAM;QACN,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,oBAAoB,SAAS,GAAG,YAAY,EAAE;QACnD,QAAQ;QACR,EAAE;QACF,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,IAAI,CAAC;QACJ,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CACvD,IAAI,EACJ,kBAAkB,EAClB,OAAO,CACP,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAY,CAAC,CAAC;IACtD,CAAC;AACF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class KonanChatwoot implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }