@tiledesk/tiledesk-whatsapp-connector 1.0.23 → 1.0.25
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.
- package/.env +1 -1
- package/package.json +1 -1
- package/tiledesk/TiledeskChannel.js +2 -0
package/.env
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# CUSTOM ENV
|
|
2
|
-
NPM_PUBLISH_TOKEN=
|
|
2
|
+
NPM_PUBLISH_TOKEN=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
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ const axios = require("axios").default;
|
|
|
2
2
|
const jwt = require('jsonwebtoken');
|
|
3
3
|
const { v4: uuidv4 } = require('uuid');
|
|
4
4
|
const winston = require('../winston')
|
|
5
|
+
const utils = require('../utils/utils');
|
|
5
6
|
|
|
6
7
|
class TiledeskChannel {
|
|
7
8
|
|
|
@@ -328,6 +329,7 @@ class TiledeskChannel {
|
|
|
328
329
|
_id: 'wab-' + channel.from,
|
|
329
330
|
first_name: channel.firstname,
|
|
330
331
|
last_name: channel.lastname,
|
|
332
|
+
phone: channel.from,
|
|
331
333
|
sub: 'userexternal',
|
|
332
334
|
aud: 'https://tiledesk.com/subscriptions/' + this.settings.subscriptionId
|
|
333
335
|
}
|