n8n-nodes-atendix 1.3.3 → 1.3.5
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.
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.TrayApiAuto = void 0;
|
|
9
|
-
const CONSUMER_KEY =
|
|
10
|
-
const CONSUMER_SECRET =
|
|
9
|
+
const CONSUMER_KEY = 'edb6c989395fa2d22be2505dbbaa202a818ca0fd0eb222a7389fdedb3782a467';
|
|
10
|
+
const CONSUMER_SECRET = '750dfb677368a6c070ef24de04e843eaa6085a05be298e98d5ad7139421ef7e6';
|
|
11
11
|
class TrayApiAuto {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.name = 'trayApiAuto';
|
|
@@ -85,8 +85,8 @@ class TrayApiAuto {
|
|
|
85
85
|
url: '/auth',
|
|
86
86
|
method: 'POST',
|
|
87
87
|
body: {
|
|
88
|
-
consumer_key:
|
|
89
|
-
consumer_secret:
|
|
88
|
+
consumer_key: 'edb6c989395fa2d22be2505dbbaa202a818ca0fd0eb222a7389fdedb3782a467',
|
|
89
|
+
consumer_secret: '750dfb677368a6c070ef24de04e843eaa6085a05be298e98d5ad7139421ef7e6',
|
|
90
90
|
code: '={{$credentials.authCode}}',
|
|
91
91
|
},
|
|
92
92
|
},
|
|
@@ -112,8 +112,8 @@ class TrayApiAuto {
|
|
|
112
112
|
const apiAddress = credentials.apiAddress.replace(/\/$/, '');
|
|
113
113
|
const authCode = credentials.authCode;
|
|
114
114
|
// Pega as chaves direto do processo para garantir que não estão vazias
|
|
115
|
-
const consumerKey =
|
|
116
|
-
const consumerSecret =
|
|
115
|
+
const consumerKey = 'edb6c989395fa2d22be2505dbbaa202a818ca0fd0eb222a7389fdedb3782a467';
|
|
116
|
+
const consumerSecret = '750dfb677368a6c070ef24de04e843eaa6085a05be298e98d5ad7139421ef7e6';
|
|
117
117
|
console.log(` Tentando autenticar na URL: ${apiAddress}/auth`);
|
|
118
118
|
console.log(` Usando Key: ${consumerKey ? 'Preenchida' : 'VAZIA!'}`);
|
|
119
119
|
try {
|
|
@@ -174,7 +174,7 @@ class Atendix {
|
|
|
174
174
|
const returnData = [];
|
|
175
175
|
const resource = this.getNodeParameter('resource', 0);
|
|
176
176
|
const operation = this.getNodeParameter('operation', 0);
|
|
177
|
-
const atendixAuthToken =
|
|
177
|
+
const atendixAuthToken = 'Bearer eyJhbGciOiJIUzI1NiJ9.e30.lEvvOyjcYVhrGiBHYZvV_HsmFEsc8lLw0yiNZk8lHJk';
|
|
178
178
|
if (!atendixAuthToken) {
|
|
179
179
|
console.error('❌ ATENDIX_AUTH_TOKEN não configurado nas variáveis de ambiente');
|
|
180
180
|
throw new Error('Configuração de validação Atendix incompleta. Entre em contato com o suporte.');
|
|
@@ -224,8 +224,8 @@ class Atendix {
|
|
|
224
224
|
method: 'POST',
|
|
225
225
|
url: `${baseUrl}/auth`,
|
|
226
226
|
body: {
|
|
227
|
-
consumer_key:
|
|
228
|
-
consumer_secret:
|
|
227
|
+
consumer_key: 'edb6c989395fa2d22be2505dbbaa202a818ca0fd0eb222a7389fdedb3782a467',
|
|
228
|
+
consumer_secret: '750dfb677368a6c070ef24de04e843eaa6085a05be298e98d5ad7139421ef7e6',
|
|
229
229
|
code: credentials.authCode,
|
|
230
230
|
},
|
|
231
231
|
json: true,
|