@tiledesk/tiledesk-whatsapp-connector 0.1.64 → 0.1.66
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/index.js +41 -20
- package/logs/app.log +566 -0
- package/package.json +1 -1
- package/routes/api.js +2 -1
- package/template/configure.html +45 -31
- package/template/detail.html +3 -3
- package/tiledesk/KVBaseMongo.js +9 -0
package/index.js
CHANGED
|
@@ -66,6 +66,7 @@ let REDIS_PASSWORD = null;
|
|
|
66
66
|
let BASE_FILE_URL = null;
|
|
67
67
|
let AMQP_MANAGER_URL = null;
|
|
68
68
|
let JOB_TOPIC_EXCHANGE = null;
|
|
69
|
+
let BRAND_NAME = null;
|
|
69
70
|
|
|
70
71
|
// Handlebars register helpers
|
|
71
72
|
handlebars.registerHelper("isEqual", (a, b) => {
|
|
@@ -249,6 +250,7 @@ router.get("/configure", async (req, res) => {
|
|
|
249
250
|
subscription_id: settings.subscriptionId,
|
|
250
251
|
department_id: settings.department_id,
|
|
251
252
|
departments: departments,
|
|
253
|
+
brand_name: BRAND_NAME
|
|
252
254
|
};
|
|
253
255
|
var html = template(replacements);
|
|
254
256
|
res.send(html);
|
|
@@ -267,6 +269,7 @@ router.get("/configure", async (req, res) => {
|
|
|
267
269
|
proxy_url: proxy_url,
|
|
268
270
|
departments: departments,
|
|
269
271
|
popup_view: popup_view,
|
|
272
|
+
brand_name: BRAND_NAME
|
|
270
273
|
};
|
|
271
274
|
var html = template(replacements);
|
|
272
275
|
res.send(html);
|
|
@@ -319,6 +322,7 @@ router.post("/update", async (req, res) => {
|
|
|
319
322
|
subscription_id: settings.subscriptionId,
|
|
320
323
|
department_id: settings.department_id,
|
|
321
324
|
departments: departments,
|
|
325
|
+
brand_name: BRAND_NAME
|
|
322
326
|
};
|
|
323
327
|
var html = template(replacements);
|
|
324
328
|
res.send(html);
|
|
@@ -378,6 +382,7 @@ router.post("/update", async (req, res) => {
|
|
|
378
382
|
subscription_id: settings.subscriptionId,
|
|
379
383
|
department_id: settings.department_id,
|
|
380
384
|
departments: departments,
|
|
385
|
+
brand_name: BRAND_NAME
|
|
381
386
|
};
|
|
382
387
|
var html = template(replacements);
|
|
383
388
|
res.send(html);
|
|
@@ -393,6 +398,7 @@ router.post("/update", async (req, res) => {
|
|
|
393
398
|
proxy_url: proxy_url,
|
|
394
399
|
departments: departments,
|
|
395
400
|
show_error_modal: true,
|
|
401
|
+
brand_name: BRAND_NAME
|
|
396
402
|
};
|
|
397
403
|
var html = template(replacements);
|
|
398
404
|
res.send(html);
|
|
@@ -444,6 +450,7 @@ router.post("/disconnect", async (req, res) => {
|
|
|
444
450
|
token: token,
|
|
445
451
|
proxy_url: proxy_url,
|
|
446
452
|
departments: departments,
|
|
453
|
+
brand_name: BRAND_NAME
|
|
447
454
|
};
|
|
448
455
|
var html = template(replacements);
|
|
449
456
|
res.send(html);
|
|
@@ -1616,30 +1623,44 @@ async function startApp(settings, callback) {
|
|
|
1616
1623
|
JOB_TOPIC_EXCHANGE = settings.JOB_TOPIC_EXCHANGE;
|
|
1617
1624
|
winston.info("(wab) JOB_TOPIC_EXCHANGE is present");
|
|
1618
1625
|
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1626
|
+
|
|
1627
|
+
if (settings.BRAND_NAME) {
|
|
1628
|
+
BRAND_NAME = settings.BRAND_NAME
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
// For test only
|
|
1634
|
+
if (settings.LOG_MONGODB_URL) {
|
|
1635
|
+
/**
|
|
1636
|
+
* Connect with a different Database
|
|
1637
|
+
*/
|
|
1638
|
+
// mongoose
|
|
1639
|
+
// .connect(settings.LOG_MONGODB_URL)
|
|
1640
|
+
// .then(() => {
|
|
1641
|
+
// winston.info("Mongoose DB Connected");
|
|
1642
|
+
// })
|
|
1643
|
+
// .catch((err) => {
|
|
1644
|
+
// winston.error("(Mongoose) Unable to connect with MongoDB ", err);
|
|
1645
|
+
// });
|
|
1625
1646
|
}
|
|
1626
1647
|
|
|
1627
|
-
|
|
1628
|
-
.
|
|
1629
|
-
|
|
1630
|
-
|
|
1648
|
+
if (settings.dbconnection) {
|
|
1649
|
+
db.reuseConnection(settings.dbconnection, () => {
|
|
1650
|
+
winston.info("(wab) KVBaseMongo reused exsisting db connection");
|
|
1651
|
+
if (callback) {
|
|
1652
|
+
callback(null);
|
|
1653
|
+
}
|
|
1631
1654
|
})
|
|
1632
|
-
|
|
1633
|
-
|
|
1655
|
+
} else {
|
|
1656
|
+
db.connect(settings.MONGODB_URL, () => {
|
|
1657
|
+
winston.info("(wab) KVBaseMongo successfully connected.");
|
|
1658
|
+
|
|
1659
|
+
if (callback) {
|
|
1660
|
+
callback(null);
|
|
1661
|
+
}
|
|
1634
1662
|
});
|
|
1635
|
-
|
|
1636
|
-
db.connect(settings.MONGODB_URL, () => {
|
|
1637
|
-
winston.info("(wab) KVBaseMongo successfully connected.");
|
|
1638
|
-
|
|
1639
|
-
if (callback) {
|
|
1640
|
-
callback(null);
|
|
1641
|
-
}
|
|
1642
|
-
});
|
|
1663
|
+
}
|
|
1643
1664
|
|
|
1644
1665
|
api.startRoute(
|
|
1645
1666
|
{
|
package/logs/app.log
CHANGED
|
@@ -1,2 +1,568 @@
|
|
|
1
1
|
info: (wab) Starting Whatsapp App
|
|
2
2
|
error: (wab) MONGODB_URL is mandatory. Exit...
|
|
3
|
+
error: uncaughtException: err is not defined
|
|
4
|
+
ReferenceError: err is not defined
|
|
5
|
+
at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:28:89)
|
|
6
|
+
at Module._compile (node:internal/modules/cjs/loader:1126:14)
|
|
7
|
+
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
|
|
8
|
+
at Module.load (node:internal/modules/cjs/loader:1004:32)
|
|
9
|
+
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
|
|
10
|
+
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
|
|
11
|
+
at node:internal/main/run_main_module:17:47 {"date":"Tue Apr 09 2024 14:24:59 GMT+0200 (Ora legale dell’Europa centrale)","error":{},"exception":true,"os":{"loadavg":[7.9677734375,8.98095703125,9.30712890625],"uptime":1738974},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":55188071,"external":65157472,"heapTotal":66486272,"heapUsed":45323440,"rss":109166592},"pid":27093,"uid":501,"version":"v16.17.0"},"stack":"ReferenceError: err is not defined\n at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:28:89)\n at Module._compile (node:internal/modules/cjs/loader:1126:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)\n at Module.load (node:internal/modules/cjs/loader:1004:32)\n at Function.Module._load (node:internal/modules/cjs/loader:839:12)\n at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)\n at node:internal/main/run_main_module:17:47","trace":[{"column":89,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js","function":null,"line":28,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1126,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1180,"method":".js","native":false},{"column":32,"file":"node:internal/modules/cjs/loader","function":"Module.load","line":1004,"method":"load","native":false},{"column":12,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":839,"method":"_load","native":false},{"column":12,"file":"node:internal/modules/run_main","function":"Function.executeUserEntryPoint [as runMain]","line":81,"method":"executeUserEntryPoint [as runMain]","native":false},{"column":47,"file":"node:internal/main/run_main_module","function":null,"line":17,"method":null,"native":false}]}
|
|
12
|
+
info: (wab) Starting Whatsapp App
|
|
13
|
+
error: (wab) MONGODB_URL is mandatory. Exit...
|
|
14
|
+
error: uncaughtException: Cannot read properties of undefined (reading 'db')
|
|
15
|
+
TypeError: Cannot read properties of undefined (reading 'db')
|
|
16
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:29:15
|
|
17
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/utils.js:695:9
|
|
18
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js:285:23
|
|
19
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/operations/connect.js:285:21
|
|
20
|
+
at parseConnectionString (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/core/uri_parser.js:580:12)
|
|
21
|
+
at connect (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/operations/connect.js:283:3)
|
|
22
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js:284:5
|
|
23
|
+
at maybePromise (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/utils.js:692:3)
|
|
24
|
+
at MongoClient.connect (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js:280:10)
|
|
25
|
+
at Function.MongoClient.connect (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js:426:22) {"date":"Tue Apr 09 2024 14:25:25 GMT+0200 (Ora legale dell’Europa centrale)","error":{},"exception":true,"os":{"loadavg":[6.74658203125,8.625,9.16943359375],"uptime":1739000},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":55029910,"external":65157472,"heapTotal":66224128,"heapUsed":45245056,"rss":113164288},"pid":27192,"uid":501,"version":"v16.17.0"},"stack":"TypeError: Cannot read properties of undefined (reading 'db')\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:29:15\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/utils.js:695:9\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js:285:23\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/operations/connect.js:285:21\n at parseConnectionString (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/core/uri_parser.js:580:12)\n at connect (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/operations/connect.js:283:3)\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js:284:5\n at maybePromise (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/utils.js:692:3)\n at MongoClient.connect (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js:280:10)\n at Function.MongoClient.connect (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js:426:22)","trace":[{"column":15,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js","function":null,"line":29,"method":null,"native":false},{"column":9,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/utils.js","function":null,"line":695,"method":null,"native":false},{"column":23,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js","function":null,"line":285,"method":null,"native":false},{"column":21,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/operations/connect.js","function":null,"line":285,"method":null,"native":false},{"column":12,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/core/uri_parser.js","function":"parseConnectionString","line":580,"method":null,"native":false},{"column":3,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/operations/connect.js","function":"connect","line":283,"method":null,"native":false},{"column":5,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js","function":null,"line":284,"method":null,"native":false},{"column":3,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/utils.js","function":"maybePromise","line":692,"method":null,"native":false},{"column":10,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js","function":"MongoClient.connect","line":280,"method":"connect","native":false},{"column":22,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongodb/lib/mongo_client.js","function":"Function.MongoClient.connect","line":426,"method":"connect","native":false}]}
|
|
26
|
+
debug: KV_COLLECTION: kvstore
|
|
27
|
+
info: (wab) Starting Whatsapp App
|
|
28
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
29
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
30
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
31
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
32
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
33
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
34
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
35
|
+
info: (wab api) Starting api route {"AMQP_MANAGER_URL":"amqp://eamjynjp:j6Eqqy90WDV_sv_616oyb4Xp7t7nu0as@squid.rmq.cloudamqp.com/eamjynjp","API_URL":"https://tiledesk-server-pre.herokuapp.com","BASE_FILE_URL":"https://tiledesk-server-pre.herokuapp.com","DB":{"KV_COLLECTION":"kvstore"},"GRAPH_URL":"https://graph.facebook.com/v14.0/","JOB_TOPIC_EXCHANGE":"tiledesk-whatsapp_dev"}
|
|
36
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
37
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
38
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
39
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
40
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
41
|
+
info: (wab) Redis ready!
|
|
42
|
+
info: Mongoose DB Connected
|
|
43
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
44
|
+
error: uncaughtException: listen EADDRINUSE: address already in use :::3000
|
|
45
|
+
Error: listen EADDRINUSE: address already in use :::3000
|
|
46
|
+
at Server.setupListenHandle [as _listen2] (node:net:1432:16)
|
|
47
|
+
at listenInCluster (node:net:1480:12)
|
|
48
|
+
at Server.listen (node:net:1568:7)
|
|
49
|
+
at Function.listen (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/express/lib/application.js:635:24)
|
|
50
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:54:11
|
|
51
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js:1648:9
|
|
52
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/KVBaseMongo.js:34:9
|
|
53
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/node_modules/mongodb/lib/utils.js:704:5
|
|
54
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/node_modules/mongodb/lib/mongo_client.js:286:7
|
|
55
|
+
at connectCallback (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/node_modules/mongodb/lib/operations/connect.js:367:5) {"date":"Tue Apr 09 2024 14:26:31 GMT+0200 (Ora legale dell’Europa centrale)","error":{"address":"::","code":"EADDRINUSE","errno":-48,"port":3000,"syscall":"listen"},"exception":true,"os":{"loadavg":[5.646484375,7.9033203125,8.8544921875],"uptime":1739066},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":54574929,"external":55614381,"heapTotal":71991296,"heapUsed":37668800,"rss":119799808},"pid":27426,"uid":501,"version":"v16.17.0"},"stack":"Error: listen EADDRINUSE: address already in use :::3000\n at Server.setupListenHandle [as _listen2] (node:net:1432:16)\n at listenInCluster (node:net:1480:12)\n at Server.listen (node:net:1568:7)\n at Function.listen (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/express/lib/application.js:635:24)\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:54:11\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js:1648:9\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/KVBaseMongo.js:34:9\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/node_modules/mongodb/lib/utils.js:704:5\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/node_modules/mongodb/lib/mongo_client.js:286:7\n at connectCallback (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/node_modules/mongodb/lib/operations/connect.js:367:5)","trace":[{"column":16,"file":"node:net","function":"Server.setupListenHandle [as _listen2]","line":1432,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"node:net","function":"listenInCluster","line":1480,"method":null,"native":false},{"column":7,"file":"node:net","function":"Server.listen","line":1568,"method":"listen","native":false},{"column":24,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/express/lib/application.js","function":"Function.listen","line":635,"method":"listen","native":false},{"column":11,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js","function":null,"line":54,"method":null,"native":false},{"column":9,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js","function":null,"line":1648,"method":null,"native":false},{"column":9,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/KVBaseMongo.js","function":null,"line":34,"method":null,"native":false},{"column":5,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/node_modules/mongodb/lib/utils.js","function":null,"line":704,"method":null,"native":false},{"column":7,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/node_modules/mongodb/lib/mongo_client.js","function":null,"line":286,"method":null,"native":false},{"column":5,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/node_modules/mongodb/lib/operations/connect.js","function":"connectCallback","line":367,"method":null,"native":false}]}
|
|
56
|
+
debug: KV_COLLECTION: kvstore
|
|
57
|
+
info: (wab) Starting Whatsapp App
|
|
58
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
59
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
60
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
61
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
62
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
63
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
64
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
65
|
+
info: (wab api) Starting api route {"AMQP_MANAGER_URL":"amqp://eamjynjp:j6Eqqy90WDV_sv_616oyb4Xp7t7nu0as@squid.rmq.cloudamqp.com/eamjynjp","API_URL":"https://tiledesk-server-pre.herokuapp.com","BASE_FILE_URL":"https://tiledesk-server-pre.herokuapp.com","DB":{"KV_COLLECTION":"kvstore"},"GRAPH_URL":"https://graph.facebook.com/v14.0/","JOB_TOPIC_EXCHANGE":"tiledesk-whatsapp_dev"}
|
|
66
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
67
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
68
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
69
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
70
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
71
|
+
info: (wab) Redis ready!
|
|
72
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
73
|
+
info: Mongoose DB Connected
|
|
74
|
+
debug: KV_COLLECTION: kvstore
|
|
75
|
+
info: (wab) Starting Whatsapp App
|
|
76
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
77
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
78
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
79
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
80
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
81
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
82
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
83
|
+
info: (wab api) Starting api route {"AMQP_MANAGER_URL":"amqp://eamjynjp:j6Eqqy90WDV_sv_616oyb4Xp7t7nu0as@squid.rmq.cloudamqp.com/eamjynjp","API_URL":"https://tiledesk-server-pre.herokuapp.com","BASE_FILE_URL":"https://tiledesk-server-pre.herokuapp.com","DB":{"KV_COLLECTION":"kvstore"},"GRAPH_URL":"https://graph.facebook.com/v14.0/","JOB_TOPIC_EXCHANGE":"tiledesk-whatsapp_dev"}
|
|
84
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
85
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
86
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
87
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
88
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
89
|
+
info: (wab) Redis ready!
|
|
90
|
+
info: Mongoose DB Connected
|
|
91
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
92
|
+
debug: KV_COLLECTION: kvstore
|
|
93
|
+
info: (wab) Starting Whatsapp App
|
|
94
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
95
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
96
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
97
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
98
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
99
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
100
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
101
|
+
info: (wab api) Starting api route {"AMQP_MANAGER_URL":"amqp://eamjynjp:j6Eqqy90WDV_sv_616oyb4Xp7t7nu0as@squid.rmq.cloudamqp.com/eamjynjp","API_URL":"https://tiledesk-server-pre.herokuapp.com","BASE_FILE_URL":"https://tiledesk-server-pre.herokuapp.com","DB":{"KV_COLLECTION":"kvstore"},"GRAPH_URL":"https://graph.facebook.com/v14.0/","JOB_TOPIC_EXCHANGE":"tiledesk-whatsapp_dev"}
|
|
102
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
103
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
104
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
105
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
106
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
107
|
+
info: (wab) Redis ready!
|
|
108
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
109
|
+
info: Mongoose DB Connected
|
|
110
|
+
debug: Searching on [object Object]
|
|
111
|
+
debug: Searching on Collection kvstore
|
|
112
|
+
verbose: Doc found with key: whatsapp-62c3f10152dc7400352bab0d
|
|
113
|
+
debug: (wab) settings: {"business_account_id":"107050042390257","department_id":"6408617fffe5e5002c284dbc","project_id":"62c3f10152dc7400352bab0d","proxy_url":"https://tiledesk-whatsapp-connector-dev.glitch.me/webhook/62c3f10152dc7400352bab0d","secret":"89aaa5f9-cebb-4bde-8901-090248d57c0a","subscriptionId":"659bba8f8baa4c002c0821e1","token":"JWT eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZmFiYTIyNTRlM2UwZTAwMzQ3MGE4YjkiLCJlbWFpbCI6Imdpb3Zhbm5pLnRyb2lzaXViQGdtYWlsLmNvbSIsImZpcnN0bmFtZSI6Ikdpb3Zhbm5pIiwibGFzdG5hbWUiOiJUcm9pc2kiLCJlbWFpbHZlcmlmaWVkIjp0cnVlLCJpYXQiOjE3MDM2ODc2ODAsImF1ZCI6Imh0dHBzOi8vdGlsZWRlc2suY29tIiwiaXNzIjoiaHR0cHM6Ly90aWxlZGVzay5jb20iLCJzdWIiOiJ1c2VyIiwianRpIjoiMzM2NTU5MjAtYjA2NS00YzRhLWIxNjctODZjZTU1ODg3NjZmIn0.aYi-BV-4lZ8fQuJuicKJcSE8qmKImDIohxwDEu-vHZpuS9P617E9GFSWT-srDZuzzhQeffiENHzMCFGofJvvaaulpAHwOpAqqhbu6IjICv_QzjACgAZ5vmC_7meMvhyAm3TexP6dMsJhZ2Ker5w9nkHvS2ZCpgRQf5cLvVy3IkA","verify_token":"tiledesk-verify-token","wab_token":"EAAF6CBX7UvEBACx4bQ3ZBFPqsSyQCdwvfOJpj4jFt7hzW5kC8Unx2EUGF8LPWsbNmcbdZCE2hmOFMmANXfIDytjqmd9O2qdoqubV8rkM5LdVtEbLdlrfbZCZB3C31oaTuZBtFbSPLIVhMogXX65Py2AImZAuHsBCsfnaNPWnRMsV1ILqjV05cQiOMmSZCgwMD1TZCItqswAvewZDZD"}
|
|
114
|
+
debug: KV_COLLECTION: kvstore
|
|
115
|
+
info: (wab) Starting Whatsapp App
|
|
116
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
117
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
118
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
119
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
120
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
121
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
122
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
123
|
+
info: (wab api) Starting api route {"AMQP_MANAGER_URL":"amqp://eamjynjp:j6Eqqy90WDV_sv_616oyb4Xp7t7nu0as@squid.rmq.cloudamqp.com/eamjynjp","API_URL":"https://tiledesk-server-pre.herokuapp.com","BASE_FILE_URL":"https://tiledesk-server-pre.herokuapp.com","DB":{"KV_COLLECTION":"kvstore"},"GRAPH_URL":"https://graph.facebook.com/v14.0/","JOB_TOPIC_EXCHANGE":"tiledesk-whatsapp_dev"}
|
|
124
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
125
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
126
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
127
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
128
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
129
|
+
info: (wab) Redis ready!
|
|
130
|
+
info: Mongoose DB Connected
|
|
131
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
132
|
+
debug: Searching on [object Object]
|
|
133
|
+
debug: Searching on Collection kvstore
|
|
134
|
+
verbose: Doc found with key: whatsapp-62c3f10152dc7400352bab0d
|
|
135
|
+
debug: (wab) settings: {"business_account_id":"107050042390257","department_id":"6408617fffe5e5002c284dbc","project_id":"62c3f10152dc7400352bab0d","proxy_url":"https://tiledesk-whatsapp-connector-dev.glitch.me/webhook/62c3f10152dc7400352bab0d","secret":"89aaa5f9-cebb-4bde-8901-090248d57c0a","subscriptionId":"659bba8f8baa4c002c0821e1","token":"JWT eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZmFiYTIyNTRlM2UwZTAwMzQ3MGE4YjkiLCJlbWFpbCI6Imdpb3Zhbm5pLnRyb2lzaXViQGdtYWlsLmNvbSIsImZpcnN0bmFtZSI6Ikdpb3Zhbm5pIiwibGFzdG5hbWUiOiJUcm9pc2kiLCJlbWFpbHZlcmlmaWVkIjp0cnVlLCJpYXQiOjE3MDM2ODc2ODAsImF1ZCI6Imh0dHBzOi8vdGlsZWRlc2suY29tIiwiaXNzIjoiaHR0cHM6Ly90aWxlZGVzay5jb20iLCJzdWIiOiJ1c2VyIiwianRpIjoiMzM2NTU5MjAtYjA2NS00YzRhLWIxNjctODZjZTU1ODg3NjZmIn0.aYi-BV-4lZ8fQuJuicKJcSE8qmKImDIohxwDEu-vHZpuS9P617E9GFSWT-srDZuzzhQeffiENHzMCFGofJvvaaulpAHwOpAqqhbu6IjICv_QzjACgAZ5vmC_7meMvhyAm3TexP6dMsJhZ2Ker5w9nkHvS2ZCpgRQf5cLvVy3IkA","verify_token":"tiledesk-verify-token","wab_token":"EAAF6CBX7UvEBACx4bQ3ZBFPqsSyQCdwvfOJpj4jFt7hzW5kC8Unx2EUGF8LPWsbNmcbdZCE2hmOFMmANXfIDytjqmd9O2qdoqubV8rkM5LdVtEbLdlrfbZCZB3C31oaTuZBtFbSPLIVhMogXX65Py2AImZAuHsBCsfnaNPWnRMsV1ILqjV05cQiOMmSZCgwMD1TZCItqswAvewZDZD"}
|
|
136
|
+
debug: KV_COLLECTION: kvstore
|
|
137
|
+
info: (wab) Starting Whatsapp App
|
|
138
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
139
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
140
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
141
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
142
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
143
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
144
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
145
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
146
|
+
info: (wab api) Starting api route {"AMQP_MANAGER_URL":"amqp://eamjynjp:j6Eqqy90WDV_sv_616oyb4Xp7t7nu0as@squid.rmq.cloudamqp.com/eamjynjp","API_URL":"https://tiledesk-server-pre.herokuapp.com","BASE_FILE_URL":"https://tiledesk-server-pre.herokuapp.com","DB":{"KV_COLLECTION":"kvstore","db":{"_events":{},"_eventsCount":0,"bufferMaxEntries":-1,"databaseName":"tiledesk-whatsapp-twilio-app","s":{"bson":{},"bufferMaxEntries":-1,"children":[],"dbCache":{},"logger":{"className":"Db"},"namespace":{"db":"tiledesk-whatsapp-twilio-app"},"noListener":false,"options":{"authSource":"admin","readPreference":{"mode":"primary"},"retryWrites":true},"parentDb":null,"readPreference":{"mode":"primary"},"topology":{"_events":{"all":[null,null],"close":[null,null],"error":[null,null],"fullsetup":[null,null],"parseError":[null,null],"reconnect":[null,null],"timeout":[null,null]},"_eventsCount":35,"_maxListeners":null,"s":{"bson":{},"clusterTime":{"clusterTime":"7355843363754475584","signature":{"hash":"ZkCdeJXPyGE+pzX/4tlfxVsO4pU=","keyId":"7322178465195622427"}},"connectionTimers":{},"credentials":{"mechanism":"default","mechanismProperties":{},"password":"x88Kjb85Y2Cm5rin","source":"admin","username":"tiledesk-whatsapp-twilio-app"},"description":{"commonWireVersion":9,"compatibilityError":null,"compatible":true,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"logicalSessionTimeoutMinutes":30,"maxElectionId":"7fffffff00000000000000b1","maxSetVersion":12,"servers":{},"setName":"tiledesk-prod-shard-0","stale":false,"type":"ReplicaSetWithPrimary"},"heartbeatFrequencyMS":10000,"id":0,"minHeartbeatFrequencyMS":500,"options":{"auth":{"db":"admin","password":"x88Kjb85Y2Cm5rin","user":"tiledesk-whatsapp-twilio-app","username":"tiledesk-whatsapp-twilio-app"},"authSource":"admin","caseTranslate":true,"checkServerIdentity":true,"compression":{"compressors":[]},"connectionTimeout":10000,"credentials":{"mechanism":"default","mechanismProperties":{},"password":"x88Kjb85Y2Cm5rin","source":"admin","username":"tiledesk-whatsapp-twilio-app"},"dbName":"tiledesk-whatsapp-twilio-app","emitError":true,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"maxPoolSize":10,"metadata":{"driver":{"name":"nodejs","version":"3.7.3"},"os":{"architecture":"arm64","name":"darwin","type":"Darwin","version":"23.1.0"},"platform":"'Node.js v16.17.0, LE (unified)"},"minHeartbeatFrequencyMS":500,"minPoolSize":0,"monitorCommands":false,"readPreference":{"mode":"primary"},"reconnect":false,"rejectUnauthorized":true,"retryWrites":true,"serverSelectionTimeoutMS":30000,"servers":[{"host":"tiledesk-prod-shard-00-00-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-01-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-02-vmvst.mongodb.net","port":27017}],"setName":"tiledesk-prod-shard-0","socketTimeout":0,"ssl":true,"useNewUrlParser":true,"useRecoveryToken":true,"useUnifiedTopology":true},"seedlist":[{"host":"tiledesk-prod-shard-00-00-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-01-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-02-vmvst.mongodb.net","port":27017}],"serverSelectionTimeoutMS":30000,"servers":{},"sessionPool":{"sessions":[],"topology":"[Circular]"},"sessions":{},"state":"connected"}}},"serverConfig":{"_events":{"all":[null,null],"close":[null,null],"error":[null,null],"fullsetup":[null,null],"parseError":[null,null],"reconnect":[null,null],"timeout":[null,null]},"_eventsCount":35,"_maxListeners":null,"s":{"bson":{},"clusterTime":{"clusterTime":"7355843363754475584","signature":{"hash":"ZkCdeJXPyGE+pzX/4tlfxVsO4pU=","keyId":"7322178465195622427"}},"connectionTimers":{},"credentials":{"mechanism":"default","mechanismProperties":{},"password":"x88Kjb85Y2Cm5rin","source":"admin","username":"tiledesk-whatsapp-twilio-app"},"description":{"commonWireVersion":9,"compatibilityError":null,"compatible":true,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"logicalSessionTimeoutMinutes":30,"maxElectionId":"7fffffff00000000000000b1","maxSetVersion":12,"servers":{},"setName":"tiledesk-prod-shard-0","stale":false,"type":"ReplicaSetWithPrimary"},"heartbeatFrequencyMS":10000,"id":0,"minHeartbeatFrequencyMS":500,"options":{"auth":{"db":"admin","password":"x88Kjb85Y2Cm5rin","user":"tiledesk-whatsapp-twilio-app","username":"tiledesk-whatsapp-twilio-app"},"authSource":"admin","caseTranslate":true,"checkServerIdentity":true,"compression":{"compressors":[]},"connectionTimeout":10000,"credentials":{"mechanism":"default","mechanismProperties":{},"password":"x88Kjb85Y2Cm5rin","source":"admin","username":"tiledesk-whatsapp-twilio-app"},"dbName":"tiledesk-whatsapp-twilio-app","emitError":true,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"maxPoolSize":10,"metadata":{"driver":{"name":"nodejs","version":"3.7.3"},"os":{"architecture":"arm64","name":"darwin","type":"Darwin","version":"23.1.0"},"platform":"'Node.js v16.17.0, LE (unified)"},"minHeartbeatFrequencyMS":500,"minPoolSize":0,"monitorCommands":false,"readPreference":{"mode":"primary"},"reconnect":false,"rejectUnauthorized":true,"retryWrites":true,"serverSelectionTimeoutMS":30000,"servers":[{"host":"tiledesk-prod-shard-00-00-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-01-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-02-vmvst.mongodb.net","port":27017}],"setName":"tiledesk-prod-shard-0","socketTimeout":0,"ssl":true,"useNewUrlParser":true,"useRecoveryToken":true,"useUnifiedTopology":true},"seedlist":[{"host":"tiledesk-prod-shard-00-00-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-01-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-02-vmvst.mongodb.net","port":27017}],"serverSelectionTimeoutMS":30000,"servers":{},"sessionPool":{"sessions":[],"topology":"[Circular]"},"sessions":{},"state":"connected"}}}},"GRAPH_URL":"https://graph.facebook.com/v14.0/","JOB_TOPIC_EXCHANGE":"tiledesk-whatsapp_dev"}
|
|
147
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
148
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
149
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
150
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
151
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
152
|
+
info: (wab) Redis ready!
|
|
153
|
+
info: Mongoose DB Connected
|
|
154
|
+
debug: Searching on [object Object]
|
|
155
|
+
debug: Searching on Collection kvstore
|
|
156
|
+
verbose: Doc found with key: whatsapp-62c3f10152dc7400352bab0d
|
|
157
|
+
debug: (wab) settings: {"business_account_id":"107050042390257","department_id":"6408617fffe5e5002c284dbc","project_id":"62c3f10152dc7400352bab0d","proxy_url":"https://tiledesk-whatsapp-connector-dev.glitch.me/webhook/62c3f10152dc7400352bab0d","secret":"89aaa5f9-cebb-4bde-8901-090248d57c0a","subscriptionId":"659bba8f8baa4c002c0821e1","token":"JWT eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZmFiYTIyNTRlM2UwZTAwMzQ3MGE4YjkiLCJlbWFpbCI6Imdpb3Zhbm5pLnRyb2lzaXViQGdtYWlsLmNvbSIsImZpcnN0bmFtZSI6Ikdpb3Zhbm5pIiwibGFzdG5hbWUiOiJUcm9pc2kiLCJlbWFpbHZlcmlmaWVkIjp0cnVlLCJpYXQiOjE3MDM2ODc2ODAsImF1ZCI6Imh0dHBzOi8vdGlsZWRlc2suY29tIiwiaXNzIjoiaHR0cHM6Ly90aWxlZGVzay5jb20iLCJzdWIiOiJ1c2VyIiwianRpIjoiMzM2NTU5MjAtYjA2NS00YzRhLWIxNjctODZjZTU1ODg3NjZmIn0.aYi-BV-4lZ8fQuJuicKJcSE8qmKImDIohxwDEu-vHZpuS9P617E9GFSWT-srDZuzzhQeffiENHzMCFGofJvvaaulpAHwOpAqqhbu6IjICv_QzjACgAZ5vmC_7meMvhyAm3TexP6dMsJhZ2Ker5w9nkHvS2ZCpgRQf5cLvVy3IkA","verify_token":"tiledesk-verify-token","wab_token":"EAAF6CBX7UvEBACx4bQ3ZBFPqsSyQCdwvfOJpj4jFt7hzW5kC8Unx2EUGF8LPWsbNmcbdZCE2hmOFMmANXfIDytjqmd9O2qdoqubV8rkM5LdVtEbLdlrfbZCZB3C31oaTuZBtFbSPLIVhMogXX65Py2AImZAuHsBCsfnaNPWnRMsV1ILqjV05cQiOMmSZCgwMD1TZCItqswAvewZDZD"}
|
|
158
|
+
debug: Searching on [object Object]
|
|
159
|
+
debug: Searching on Collection kvstore
|
|
160
|
+
verbose: Doc found with key: whatsapp-62c3f10152dc7400352bab0d
|
|
161
|
+
debug: (wab) settings: {"business_account_id":"107050042390257","department_id":"6408617fffe5e5002c284dbc","project_id":"62c3f10152dc7400352bab0d","proxy_url":"https://tiledesk-whatsapp-connector-dev.glitch.me/webhook/62c3f10152dc7400352bab0d","secret":"89aaa5f9-cebb-4bde-8901-090248d57c0a","subscriptionId":"659bba8f8baa4c002c0821e1","token":"JWT eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZmFiYTIyNTRlM2UwZTAwMzQ3MGE4YjkiLCJlbWFpbCI6Imdpb3Zhbm5pLnRyb2lzaXViQGdtYWlsLmNvbSIsImZpcnN0bmFtZSI6Ikdpb3Zhbm5pIiwibGFzdG5hbWUiOiJUcm9pc2kiLCJlbWFpbHZlcmlmaWVkIjp0cnVlLCJpYXQiOjE3MDM2ODc2ODAsImF1ZCI6Imh0dHBzOi8vdGlsZWRlc2suY29tIiwiaXNzIjoiaHR0cHM6Ly90aWxlZGVzay5jb20iLCJzdWIiOiJ1c2VyIiwianRpIjoiMzM2NTU5MjAtYjA2NS00YzRhLWIxNjctODZjZTU1ODg3NjZmIn0.aYi-BV-4lZ8fQuJuicKJcSE8qmKImDIohxwDEu-vHZpuS9P617E9GFSWT-srDZuzzhQeffiENHzMCFGofJvvaaulpAHwOpAqqhbu6IjICv_QzjACgAZ5vmC_7meMvhyAm3TexP6dMsJhZ2Ker5w9nkHvS2ZCpgRQf5cLvVy3IkA","verify_token":"tiledesk-verify-token","wab_token":"EAAF6CBX7UvEBACx4bQ3ZBFPqsSyQCdwvfOJpj4jFt7hzW5kC8Unx2EUGF8LPWsbNmcbdZCE2hmOFMmANXfIDytjqmd9O2qdoqubV8rkM5LdVtEbLdlrfbZCZB3C31oaTuZBtFbSPLIVhMogXX65Py2AImZAuHsBCsfnaNPWnRMsV1ILqjV05cQiOMmSZCgwMD1TZCItqswAvewZDZD"}
|
|
162
|
+
debug: KV_COLLECTION: kvstore
|
|
163
|
+
info: (wab) Starting Whatsapp App
|
|
164
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
165
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
166
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
167
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
168
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
169
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
170
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
171
|
+
info: (wab api) Starting api route {"AMQP_MANAGER_URL":"amqp://eamjynjp:j6Eqqy90WDV_sv_616oyb4Xp7t7nu0as@squid.rmq.cloudamqp.com/eamjynjp","API_URL":"https://tiledesk-server-pre.herokuapp.com","BASE_FILE_URL":"https://tiledesk-server-pre.herokuapp.com","DB":{"KV_COLLECTION":"kvstore"},"GRAPH_URL":"https://graph.facebook.com/v14.0/","JOB_TOPIC_EXCHANGE":"tiledesk-whatsapp_dev"}
|
|
172
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
173
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
174
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
175
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
176
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
177
|
+
info: (wab) Redis ready!
|
|
178
|
+
info: Mongoose DB Connected
|
|
179
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
180
|
+
debug: Searching on [object Object]
|
|
181
|
+
debug: Searching on Collection kvstore
|
|
182
|
+
verbose: Doc found with key: whatsapp-62c3f10152dc7400352bab0d
|
|
183
|
+
debug: (wab) settings: {"business_account_id":"107050042390257","department_id":"6408617fffe5e5002c284dbc","project_id":"62c3f10152dc7400352bab0d","proxy_url":"https://tiledesk-whatsapp-connector-dev.glitch.me/webhook/62c3f10152dc7400352bab0d","secret":"89aaa5f9-cebb-4bde-8901-090248d57c0a","subscriptionId":"659bba8f8baa4c002c0821e1","token":"JWT eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZmFiYTIyNTRlM2UwZTAwMzQ3MGE4YjkiLCJlbWFpbCI6Imdpb3Zhbm5pLnRyb2lzaXViQGdtYWlsLmNvbSIsImZpcnN0bmFtZSI6Ikdpb3Zhbm5pIiwibGFzdG5hbWUiOiJUcm9pc2kiLCJlbWFpbHZlcmlmaWVkIjp0cnVlLCJpYXQiOjE3MDM2ODc2ODAsImF1ZCI6Imh0dHBzOi8vdGlsZWRlc2suY29tIiwiaXNzIjoiaHR0cHM6Ly90aWxlZGVzay5jb20iLCJzdWIiOiJ1c2VyIiwianRpIjoiMzM2NTU5MjAtYjA2NS00YzRhLWIxNjctODZjZTU1ODg3NjZmIn0.aYi-BV-4lZ8fQuJuicKJcSE8qmKImDIohxwDEu-vHZpuS9P617E9GFSWT-srDZuzzhQeffiENHzMCFGofJvvaaulpAHwOpAqqhbu6IjICv_QzjACgAZ5vmC_7meMvhyAm3TexP6dMsJhZ2Ker5w9nkHvS2ZCpgRQf5cLvVy3IkA","verify_token":"tiledesk-verify-token","wab_token":"EAAF6CBX7UvEBACx4bQ3ZBFPqsSyQCdwvfOJpj4jFt7hzW5kC8Unx2EUGF8LPWsbNmcbdZCE2hmOFMmANXfIDytjqmd9O2qdoqubV8rkM5LdVtEbLdlrfbZCZB3C31oaTuZBtFbSPLIVhMogXX65Py2AImZAuHsBCsfnaNPWnRMsV1ILqjV05cQiOMmSZCgwMD1TZCItqswAvewZDZD"}
|
|
184
|
+
debug: KV_COLLECTION: kvstore
|
|
185
|
+
info: (wab) Starting Whatsapp App
|
|
186
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
187
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
188
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
189
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
190
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
191
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
192
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
193
|
+
info: (wab api) Starting api route {"AMQP_MANAGER_URL":"amqp://eamjynjp:j6Eqqy90WDV_sv_616oyb4Xp7t7nu0as@squid.rmq.cloudamqp.com/eamjynjp","API_URL":"https://tiledesk-server-pre.herokuapp.com","BASE_FILE_URL":"https://tiledesk-server-pre.herokuapp.com","DB":{"KV_COLLECTION":"kvstore"},"GRAPH_URL":"https://graph.facebook.com/v14.0/","JOB_TOPIC_EXCHANGE":"tiledesk-whatsapp_dev"}
|
|
194
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
195
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
196
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
197
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
198
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
199
|
+
info: (wab) Redis ready!
|
|
200
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
201
|
+
info: Mongoose DB Connected
|
|
202
|
+
debug: Searching on [object Object]
|
|
203
|
+
debug: Searching on Collection kvstore
|
|
204
|
+
verbose: Doc found with key: whatsapp-62c3f10152dc7400352bab0d
|
|
205
|
+
debug: (wab) settings: {"business_account_id":"107050042390257","department_id":"6408617fffe5e5002c284dbc","project_id":"62c3f10152dc7400352bab0d","proxy_url":"https://tiledesk-whatsapp-connector-dev.glitch.me/webhook/62c3f10152dc7400352bab0d","secret":"89aaa5f9-cebb-4bde-8901-090248d57c0a","subscriptionId":"659bba8f8baa4c002c0821e1","token":"JWT eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZmFiYTIyNTRlM2UwZTAwMzQ3MGE4YjkiLCJlbWFpbCI6Imdpb3Zhbm5pLnRyb2lzaXViQGdtYWlsLmNvbSIsImZpcnN0bmFtZSI6Ikdpb3Zhbm5pIiwibGFzdG5hbWUiOiJUcm9pc2kiLCJlbWFpbHZlcmlmaWVkIjp0cnVlLCJpYXQiOjE3MDM2ODc2ODAsImF1ZCI6Imh0dHBzOi8vdGlsZWRlc2suY29tIiwiaXNzIjoiaHR0cHM6Ly90aWxlZGVzay5jb20iLCJzdWIiOiJ1c2VyIiwianRpIjoiMzM2NTU5MjAtYjA2NS00YzRhLWIxNjctODZjZTU1ODg3NjZmIn0.aYi-BV-4lZ8fQuJuicKJcSE8qmKImDIohxwDEu-vHZpuS9P617E9GFSWT-srDZuzzhQeffiENHzMCFGofJvvaaulpAHwOpAqqhbu6IjICv_QzjACgAZ5vmC_7meMvhyAm3TexP6dMsJhZ2Ker5w9nkHvS2ZCpgRQf5cLvVy3IkA","verify_token":"tiledesk-verify-token","wab_token":"EAAF6CBX7UvEBACx4bQ3ZBFPqsSyQCdwvfOJpj4jFt7hzW5kC8Unx2EUGF8LPWsbNmcbdZCE2hmOFMmANXfIDytjqmd9O2qdoqubV8rkM5LdVtEbLdlrfbZCZB3C31oaTuZBtFbSPLIVhMogXX65Py2AImZAuHsBCsfnaNPWnRMsV1ILqjV05cQiOMmSZCgwMD1TZCItqswAvewZDZD"}
|
|
206
|
+
debug: KV_COLLECTION: kvstore
|
|
207
|
+
info: (wab) Starting Whatsapp App
|
|
208
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
209
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
210
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
211
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
212
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
213
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
214
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
215
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
216
|
+
info: (wab api) Starting api route {"AMQP_MANAGER_URL":"amqp://eamjynjp:j6Eqqy90WDV_sv_616oyb4Xp7t7nu0as@squid.rmq.cloudamqp.com/eamjynjp","API_URL":"https://tiledesk-server-pre.herokuapp.com","BASE_FILE_URL":"https://tiledesk-server-pre.herokuapp.com","DB":{"KV_COLLECTION":"kvstore","db":{"_events":{},"_eventsCount":0,"bufferMaxEntries":-1,"databaseName":"tiledesk-whatsapp-twilio-app","s":{"bson":{},"bufferMaxEntries":-1,"children":[],"dbCache":{},"logger":{"className":"Db"},"namespace":{"db":"tiledesk-whatsapp-twilio-app"},"noListener":false,"options":{"authSource":"admin","readPreference":{"mode":"primary"},"retryWrites":true},"parentDb":null,"readPreference":{"mode":"primary"},"topology":{"_events":{"all":[null,null],"close":[null,null],"error":[null,null],"fullsetup":[null,null],"parseError":[null,null],"reconnect":[null,null],"timeout":[null,null]},"_eventsCount":35,"_maxListeners":null,"s":{"bson":{},"clusterTime":{"clusterTime":"7355843578502840338","signature":{"hash":"SG2Kvp0eHQONv2tKaon4krXqEgw=","keyId":"7322178465195622427"}},"connectionTimers":{},"credentials":{"mechanism":"default","mechanismProperties":{},"password":"x88Kjb85Y2Cm5rin","source":"admin","username":"tiledesk-whatsapp-twilio-app"},"description":{"commonWireVersion":9,"compatibilityError":null,"compatible":true,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"logicalSessionTimeoutMinutes":30,"maxElectionId":"7fffffff00000000000000b1","maxSetVersion":12,"servers":{},"setName":"tiledesk-prod-shard-0","stale":false,"type":"ReplicaSetWithPrimary"},"heartbeatFrequencyMS":10000,"id":0,"minHeartbeatFrequencyMS":500,"options":{"auth":{"db":"admin","password":"x88Kjb85Y2Cm5rin","user":"tiledesk-whatsapp-twilio-app","username":"tiledesk-whatsapp-twilio-app"},"authSource":"admin","caseTranslate":true,"checkServerIdentity":true,"compression":{"compressors":[]},"connectionTimeout":10000,"credentials":{"mechanism":"default","mechanismProperties":{},"password":"x88Kjb85Y2Cm5rin","source":"admin","username":"tiledesk-whatsapp-twilio-app"},"dbName":"tiledesk-whatsapp-twilio-app","emitError":true,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"maxPoolSize":10,"metadata":{"driver":{"name":"nodejs","version":"3.7.3"},"os":{"architecture":"arm64","name":"darwin","type":"Darwin","version":"23.1.0"},"platform":"'Node.js v16.17.0, LE (unified)"},"minHeartbeatFrequencyMS":500,"minPoolSize":0,"monitorCommands":false,"readPreference":{"mode":"primary"},"reconnect":false,"rejectUnauthorized":true,"retryWrites":true,"serverSelectionTimeoutMS":30000,"servers":[{"host":"tiledesk-prod-shard-00-00-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-01-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-02-vmvst.mongodb.net","port":27017}],"setName":"tiledesk-prod-shard-0","socketTimeout":0,"ssl":true,"useNewUrlParser":true,"useRecoveryToken":true,"useUnifiedTopology":true},"seedlist":[{"host":"tiledesk-prod-shard-00-00-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-01-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-02-vmvst.mongodb.net","port":27017}],"serverSelectionTimeoutMS":30000,"servers":{},"sessionPool":{"sessions":[],"topology":"[Circular]"},"sessions":{},"state":"connected"}}},"serverConfig":{"_events":{"all":[null,null],"close":[null,null],"error":[null,null],"fullsetup":[null,null],"parseError":[null,null],"reconnect":[null,null],"timeout":[null,null]},"_eventsCount":35,"_maxListeners":null,"s":{"bson":{},"clusterTime":{"clusterTime":"7355843578502840338","signature":{"hash":"SG2Kvp0eHQONv2tKaon4krXqEgw=","keyId":"7322178465195622427"}},"connectionTimers":{},"credentials":{"mechanism":"default","mechanismProperties":{},"password":"x88Kjb85Y2Cm5rin","source":"admin","username":"tiledesk-whatsapp-twilio-app"},"description":{"commonWireVersion":9,"compatibilityError":null,"compatible":true,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"logicalSessionTimeoutMinutes":30,"maxElectionId":"7fffffff00000000000000b1","maxSetVersion":12,"servers":{},"setName":"tiledesk-prod-shard-0","stale":false,"type":"ReplicaSetWithPrimary"},"heartbeatFrequencyMS":10000,"id":0,"minHeartbeatFrequencyMS":500,"options":{"auth":{"db":"admin","password":"x88Kjb85Y2Cm5rin","user":"tiledesk-whatsapp-twilio-app","username":"tiledesk-whatsapp-twilio-app"},"authSource":"admin","caseTranslate":true,"checkServerIdentity":true,"compression":{"compressors":[]},"connectionTimeout":10000,"credentials":{"mechanism":"default","mechanismProperties":{},"password":"x88Kjb85Y2Cm5rin","source":"admin","username":"tiledesk-whatsapp-twilio-app"},"dbName":"tiledesk-whatsapp-twilio-app","emitError":true,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"maxPoolSize":10,"metadata":{"driver":{"name":"nodejs","version":"3.7.3"},"os":{"architecture":"arm64","name":"darwin","type":"Darwin","version":"23.1.0"},"platform":"'Node.js v16.17.0, LE (unified)"},"minHeartbeatFrequencyMS":500,"minPoolSize":0,"monitorCommands":false,"readPreference":{"mode":"primary"},"reconnect":false,"rejectUnauthorized":true,"retryWrites":true,"serverSelectionTimeoutMS":30000,"servers":[{"host":"tiledesk-prod-shard-00-00-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-01-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-02-vmvst.mongodb.net","port":27017}],"setName":"tiledesk-prod-shard-0","socketTimeout":0,"ssl":true,"useNewUrlParser":true,"useRecoveryToken":true,"useUnifiedTopology":true},"seedlist":[{"host":"tiledesk-prod-shard-00-00-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-01-vmvst.mongodb.net","port":27017},{"host":"tiledesk-prod-shard-00-02-vmvst.mongodb.net","port":27017}],"serverSelectionTimeoutMS":30000,"servers":{},"sessionPool":{"sessions":[],"topology":"[Circular]"},"sessions":{},"state":"connected"}}}},"GRAPH_URL":"https://graph.facebook.com/v14.0/","JOB_TOPIC_EXCHANGE":"tiledesk-whatsapp_dev"}
|
|
217
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
218
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
219
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
220
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
221
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
222
|
+
info: (wab) Redis ready!
|
|
223
|
+
info: Mongoose DB Connected
|
|
224
|
+
debug: KV_COLLECTION: kvstore
|
|
225
|
+
error: uncaughtException: mongoose is not defined
|
|
226
|
+
ReferenceError: mongoose is not defined
|
|
227
|
+
at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:29:18)
|
|
228
|
+
at Module._compile (node:internal/modules/cjs/loader:1126:14)
|
|
229
|
+
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
|
|
230
|
+
at Module.load (node:internal/modules/cjs/loader:1004:32)
|
|
231
|
+
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
|
|
232
|
+
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
|
|
233
|
+
at node:internal/main/run_main_module:17:47 {"date":"Tue Apr 09 2024 14:31:36 GMT+0200 (Ora legale dell’Europa centrale)","error":{},"exception":true,"os":{"loadavg":[4.72412109375,8.51025390625,9.13525390625],"uptime":1739371},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":54941131,"external":65157817,"heapTotal":66486272,"heapUsed":44558264,"rss":102596608},"pid":28659,"uid":501,"version":"v16.17.0"},"stack":"ReferenceError: mongoose is not defined\n at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:29:18)\n at Module._compile (node:internal/modules/cjs/loader:1126:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)\n at Module.load (node:internal/modules/cjs/loader:1004:32)\n at Function.Module._load (node:internal/modules/cjs/loader:839:12)\n at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)\n at node:internal/main/run_main_module:17:47","trace":[{"column":18,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js","function":null,"line":29,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1126,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1180,"method":".js","native":false},{"column":32,"file":"node:internal/modules/cjs/loader","function":"Module.load","line":1004,"method":"load","native":false},{"column":12,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":839,"method":"_load","native":false},{"column":12,"file":"node:internal/modules/run_main","function":"Function.executeUserEntryPoint [as runMain]","line":81,"method":"executeUserEntryPoint [as runMain]","native":false},{"column":47,"file":"node:internal/main/run_main_module","function":null,"line":17,"method":null,"native":false}]}
|
|
234
|
+
debug: KV_COLLECTION: kvstore
|
|
235
|
+
error: uncaughtException: databaseUri is not defined
|
|
236
|
+
ReferenceError: databaseUri is not defined
|
|
237
|
+
at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:30:35)
|
|
238
|
+
at Module._compile (node:internal/modules/cjs/loader:1126:14)
|
|
239
|
+
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
|
|
240
|
+
at Module.load (node:internal/modules/cjs/loader:1004:32)
|
|
241
|
+
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
|
|
242
|
+
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
|
|
243
|
+
at node:internal/main/run_main_module:17:47 {"date":"Tue Apr 09 2024 14:31:57 GMT+0200 (Ora legale dell’Europa centrale)","error":{},"exception":true,"os":{"loadavg":[9.37060546875,9.2939453125,9.3994140625],"uptime":1739392},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":55023032,"external":60488835,"heapTotal":70631424,"heapUsed":48412096,"rss":113213440},"pid":28744,"uid":501,"version":"v16.17.0"},"stack":"ReferenceError: databaseUri is not defined\n at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:30:35)\n at Module._compile (node:internal/modules/cjs/loader:1126:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)\n at Module.load (node:internal/modules/cjs/loader:1004:32)\n at Function.Module._load (node:internal/modules/cjs/loader:839:12)\n at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)\n at node:internal/main/run_main_module:17:47","trace":[{"column":35,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js","function":null,"line":30,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1126,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1180,"method":".js","native":false},{"column":32,"file":"node:internal/modules/cjs/loader","function":"Module.load","line":1004,"method":"load","native":false},{"column":12,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":839,"method":"_load","native":false},{"column":12,"file":"node:internal/modules/run_main","function":"Function.executeUserEntryPoint [as runMain]","line":81,"method":"executeUserEntryPoint [as runMain]","native":false},{"column":47,"file":"node:internal/main/run_main_module","function":null,"line":17,"method":null,"native":false}]}
|
|
244
|
+
debug: KV_COLLECTION: kvstore
|
|
245
|
+
error: uncaughtException: autoIndex is not defined
|
|
246
|
+
ReferenceError: autoIndex is not defined
|
|
247
|
+
at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:30:88)
|
|
248
|
+
at Module._compile (node:internal/modules/cjs/loader:1126:14)
|
|
249
|
+
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
|
|
250
|
+
at Module.load (node:internal/modules/cjs/loader:1004:32)
|
|
251
|
+
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
|
|
252
|
+
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
|
|
253
|
+
at node:internal/main/run_main_module:17:47 {"date":"Tue Apr 09 2024 14:32:06 GMT+0200 (Ora legale dell’Europa centrale)","error":{},"exception":true,"os":{"loadavg":[9.01220703125,9.21826171875,9.37109375],"uptime":1739401},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":54980573,"external":66590193,"heapTotal":70107136,"heapUsed":48795616,"rss":117030912},"pid":28802,"uid":501,"version":"v16.17.0"},"stack":"ReferenceError: autoIndex is not defined\n at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:30:88)\n at Module._compile (node:internal/modules/cjs/loader:1126:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)\n at Module.load (node:internal/modules/cjs/loader:1004:32)\n at Function.Module._load (node:internal/modules/cjs/loader:839:12)\n at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)\n at node:internal/main/run_main_module:17:47","trace":[{"column":88,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js","function":null,"line":30,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1126,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1180,"method":".js","native":false},{"column":32,"file":"node:internal/modules/cjs/loader","function":"Module.load","line":1004,"method":"load","native":false},{"column":12,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":839,"method":"_load","native":false},{"column":12,"file":"node:internal/modules/run_main","function":"Function.executeUserEntryPoint [as runMain]","line":81,"method":"executeUserEntryPoint [as runMain]","native":false},{"column":47,"file":"node:internal/main/run_main_module","function":null,"line":17,"method":null,"native":false}]}
|
|
254
|
+
debug: KV_COLLECTION: kvstore
|
|
255
|
+
error: uncaughtException: winston is not defined
|
|
256
|
+
ReferenceError: winston is not defined
|
|
257
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:35:3
|
|
258
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/helpers/promiseOrCallback.js:26:18
|
|
259
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/index.js:385:14
|
|
260
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/connection.js:841:15
|
|
261
|
+
at processTicksAndRejections (node:internal/process/task_queues:96:5) {"date":"Tue Apr 09 2024 14:32:34 GMT+0200 (Ora legale dell’Europa centrale)","error":{},"exception":true,"os":{"loadavg":[8.70263671875,9.13037109375,9.33349609375],"uptime":1739429},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":54503944,"external":55448589,"heapTotal":77447168,"heapUsed":43236448,"rss":120143872},"pid":28920,"uid":501,"version":"v16.17.0"},"stack":"ReferenceError: winston is not defined\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:35:3\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/helpers/promiseOrCallback.js:26:18\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/index.js:385:14\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/connection.js:841:15\n at processTicksAndRejections (node:internal/process/task_queues:96:5)","trace":[{"column":3,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js","function":null,"line":35,"method":null,"native":false},{"column":18,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/helpers/promiseOrCallback.js","function":null,"line":26,"method":null,"native":false},{"column":14,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/index.js","function":null,"line":385,"method":null,"native":false},{"column":15,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/connection.js","function":null,"line":841,"method":null,"native":false},{"column":5,"file":"node:internal/process/task_queues","function":"processTicksAndRejections","line":96,"method":null,"native":false}]}
|
|
262
|
+
debug: KV_COLLECTION: kvstore
|
|
263
|
+
info: (wab) Starting Whatsapp App
|
|
264
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
265
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
266
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
267
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
268
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
269
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
270
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
271
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
272
|
+
info: (wab api) Starting api route
|
|
273
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
274
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
275
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
276
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
277
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
278
|
+
info: (wab) Redis ready!
|
|
279
|
+
info: Mongoose DB Connected
|
|
280
|
+
debug: Searching on [object Object]
|
|
281
|
+
debug: Searching on Collection kvstore
|
|
282
|
+
verbose: Doc found with key: whatsapp-62c3f10152dc7400352bab0d
|
|
283
|
+
debug: (wab) settings: {"business_account_id":"107050042390257","department_id":"6408617fffe5e5002c284dbc","project_id":"62c3f10152dc7400352bab0d","proxy_url":"https://tiledesk-whatsapp-connector-dev.glitch.me/webhook/62c3f10152dc7400352bab0d","secret":"89aaa5f9-cebb-4bde-8901-090248d57c0a","subscriptionId":"659bba8f8baa4c002c0821e1","token":"JWT eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZmFiYTIyNTRlM2UwZTAwMzQ3MGE4YjkiLCJlbWFpbCI6Imdpb3Zhbm5pLnRyb2lzaXViQGdtYWlsLmNvbSIsImZpcnN0bmFtZSI6Ikdpb3Zhbm5pIiwibGFzdG5hbWUiOiJUcm9pc2kiLCJlbWFpbHZlcmlmaWVkIjp0cnVlLCJpYXQiOjE3MDM2ODc2ODAsImF1ZCI6Imh0dHBzOi8vdGlsZWRlc2suY29tIiwiaXNzIjoiaHR0cHM6Ly90aWxlZGVzay5jb20iLCJzdWIiOiJ1c2VyIiwianRpIjoiMzM2NTU5MjAtYjA2NS00YzRhLWIxNjctODZjZTU1ODg3NjZmIn0.aYi-BV-4lZ8fQuJuicKJcSE8qmKImDIohxwDEu-vHZpuS9P617E9GFSWT-srDZuzzhQeffiENHzMCFGofJvvaaulpAHwOpAqqhbu6IjICv_QzjACgAZ5vmC_7meMvhyAm3TexP6dMsJhZ2Ker5w9nkHvS2ZCpgRQf5cLvVy3IkA","verify_token":"tiledesk-verify-token","wab_token":"EAAF6CBX7UvEBACx4bQ3ZBFPqsSyQCdwvfOJpj4jFt7hzW5kC8Unx2EUGF8LPWsbNmcbdZCE2hmOFMmANXfIDytjqmd9O2qdoqubV8rkM5LdVtEbLdlrfbZCZB3C31oaTuZBtFbSPLIVhMogXX65Py2AImZAuHsBCsfnaNPWnRMsV1ILqjV05cQiOMmSZCgwMD1TZCItqswAvewZDZD"}
|
|
284
|
+
debug: KV_COLLECTION: kvstore
|
|
285
|
+
info: (wab) Starting Whatsapp App
|
|
286
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
287
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
288
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
289
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
290
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
291
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
292
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
293
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
294
|
+
info: (wab api) Starting api route
|
|
295
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
296
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
297
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
298
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
299
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
300
|
+
info: (wab) Redis ready!
|
|
301
|
+
info: Mongoose DB Connected
|
|
302
|
+
debug: KV_COLLECTION: kvstore
|
|
303
|
+
info: (wab) Starting Whatsapp App
|
|
304
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
305
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
306
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
307
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
308
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
309
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
310
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
311
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
312
|
+
info: (wab api) Starting api route
|
|
313
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
314
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
315
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
316
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
317
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
318
|
+
info: (wab) Redis ready!
|
|
319
|
+
info: Mongoose DB Connected
|
|
320
|
+
debug: KV_COLLECTION: kvstore
|
|
321
|
+
info: (wab) Starting Whatsapp App
|
|
322
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
323
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
324
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
325
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
326
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
327
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
328
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
329
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
330
|
+
info: (wab api) Starting api route
|
|
331
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
332
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
333
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
334
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
335
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
336
|
+
info: (wab) Redis ready!
|
|
337
|
+
info: Mongoose DB Connected
|
|
338
|
+
debug: KV_COLLECTION: kvstore
|
|
339
|
+
info: (wab) Starting Whatsapp App
|
|
340
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
341
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
342
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
343
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
344
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
345
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
346
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
347
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
348
|
+
info: (wab api) Starting api route
|
|
349
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
350
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
351
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
352
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
353
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
354
|
+
info: (wab) Redis ready!
|
|
355
|
+
info: Mongoose DB Connected
|
|
356
|
+
debug: KV_COLLECTION: kvstore
|
|
357
|
+
info: (wab) Starting Whatsapp App
|
|
358
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
359
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
360
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
361
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
362
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
363
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
364
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
365
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
366
|
+
info: (wab api) Starting api route
|
|
367
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
368
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
369
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
370
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
371
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
372
|
+
info: (wab) Redis ready!
|
|
373
|
+
info: Mongoose DB Connected
|
|
374
|
+
debug: KV_COLLECTION: kvstore
|
|
375
|
+
info: (wab) Starting Whatsapp App
|
|
376
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
377
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
378
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
379
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
380
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
381
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
382
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
383
|
+
error: uncaughtException: LOG_MONGODB_URL is not defined
|
|
384
|
+
ReferenceError: LOG_MONGODB_URL is not defined
|
|
385
|
+
at Object.startApp (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js:1645:3)
|
|
386
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:37:12
|
|
387
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/helpers/promiseOrCallback.js:26:18
|
|
388
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/index.js:385:14
|
|
389
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/connection.js:841:15
|
|
390
|
+
at processTicksAndRejections (node:internal/process/task_queues:96:5) {"date":"Tue Apr 09 2024 14:50:00 GMT+0200 (Ora legale dell’Europa centrale)","error":{},"exception":true,"os":{"loadavg":[6.17431640625,7.03369140625,7.70458984375],"uptime":1740475},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":54562597,"external":57468268,"heapTotal":74563584,"heapUsed":46369952,"rss":78118912},"pid":32530,"uid":501,"version":"v16.17.0"},"stack":"ReferenceError: LOG_MONGODB_URL is not defined\n at Object.startApp (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js:1645:3)\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:37:12\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/helpers/promiseOrCallback.js:26:18\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/index.js:385:14\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/connection.js:841:15\n at processTicksAndRejections (node:internal/process/task_queues:96:5)","trace":[{"column":3,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js","function":"Object.startApp","line":1645,"method":"startApp","native":false},{"column":12,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js","function":null,"line":37,"method":null,"native":false},{"column":18,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/helpers/promiseOrCallback.js","function":null,"line":26,"method":null,"native":false},{"column":14,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/index.js","function":null,"line":385,"method":null,"native":false},{"column":15,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/connection.js","function":null,"line":841,"method":null,"native":false},{"column":5,"file":"node:internal/process/task_queues","function":"processTicksAndRejections","line":96,"method":null,"native":false}]}
|
|
391
|
+
debug: KV_COLLECTION: kvstore
|
|
392
|
+
info: (wab) Starting Whatsapp App
|
|
393
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
394
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
395
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
396
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
397
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
398
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
399
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
400
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
401
|
+
info: (wab api) Starting api route
|
|
402
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
403
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
404
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
405
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
406
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
407
|
+
info: (wab) Redis ready!
|
|
408
|
+
debug: KV_COLLECTION: kvstore
|
|
409
|
+
error: uncaughtException: LOG_MONGODB_URL is not defined
|
|
410
|
+
ReferenceError: LOG_MONGODB_URL is not defined
|
|
411
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:40:24
|
|
412
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/helpers/promiseOrCallback.js:26:18
|
|
413
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/index.js:385:14
|
|
414
|
+
at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/connection.js:841:15
|
|
415
|
+
at processTicksAndRejections (node:internal/process/task_queues:96:5) {"date":"Tue Apr 09 2024 14:51:29 GMT+0200 (Ora legale dell’Europa centrale)","error":{},"exception":true,"os":{"loadavg":[5.9404296875,7.203125,7.736328125],"uptime":1740564},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":54538590,"external":60528083,"heapTotal":74301440,"heapUsed":46258728,"rss":122585088},"pid":32875,"uid":501,"version":"v16.17.0"},"stack":"ReferenceError: LOG_MONGODB_URL is not defined\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js:40:24\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/helpers/promiseOrCallback.js:26:18\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/index.js:385:14\n at /Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/connection.js:841:15\n at processTicksAndRejections (node:internal/process/task_queues:96:5)","trace":[{"column":24,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/index.js","function":null,"line":40,"method":null,"native":false},{"column":18,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/helpers/promiseOrCallback.js","function":null,"line":26,"method":null,"native":false},{"column":14,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/index.js","function":null,"line":385,"method":null,"native":false},{"column":15,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/node_modules/mongoose/lib/connection.js","function":null,"line":841,"method":null,"native":false},{"column":5,"file":"node:internal/process/task_queues","function":"processTicksAndRejections","line":96,"method":null,"native":false}]}
|
|
416
|
+
debug: KV_COLLECTION: kvstore
|
|
417
|
+
info: (wab) Starting Whatsapp App
|
|
418
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
419
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
420
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
421
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
422
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
423
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
424
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
425
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
426
|
+
info: (wab api) Starting api route
|
|
427
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
428
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
429
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
430
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
431
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
432
|
+
info: (wab) Redis ready!
|
|
433
|
+
debug: KV_COLLECTION: kvstore
|
|
434
|
+
info: (wab) Starting Whatsapp App
|
|
435
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
436
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
437
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
438
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
439
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
440
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
441
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
442
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
443
|
+
info: (wab api) Starting api route
|
|
444
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
445
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
446
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
447
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
448
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
449
|
+
info: (wab) Redis ready!
|
|
450
|
+
debug: KV_COLLECTION: kvstore
|
|
451
|
+
info: (wab) Starting Whatsapp App
|
|
452
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
453
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
454
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
455
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
456
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
457
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
458
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
459
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
460
|
+
info: (wab api) Starting api route
|
|
461
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
462
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
463
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
464
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
465
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
466
|
+
info: (wab) Redis ready!
|
|
467
|
+
debug: KV_COLLECTION: kvstore
|
|
468
|
+
info: (wab) Starting Whatsapp App
|
|
469
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
470
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
471
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
472
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
473
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
474
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
475
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
476
|
+
info: (wab) KVBaseMongo reused exsisting db connection
|
|
477
|
+
info: (wab api) Starting api route
|
|
478
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
479
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
480
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
481
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
482
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
483
|
+
info: (wab) Redis ready!
|
|
484
|
+
debug: KV_COLLECTION: kvstore
|
|
485
|
+
info: (wab) Starting Whatsapp App
|
|
486
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
487
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
488
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
489
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
490
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
491
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
492
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
493
|
+
info: (wab api) Starting api route
|
|
494
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
495
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
496
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
497
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
498
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
499
|
+
info: (wab) Redis ready!
|
|
500
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
501
|
+
debug: KV_COLLECTION: kvstore
|
|
502
|
+
info: (wab) Starting Whatsapp App
|
|
503
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
504
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
505
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
506
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
507
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
508
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
509
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
510
|
+
info: (wab api) Starting api route
|
|
511
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
512
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
513
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
514
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
515
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
516
|
+
info: (wab) Redis ready!
|
|
517
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
518
|
+
debug: KV_COLLECTION: kvstore
|
|
519
|
+
info: (wab) Starting Whatsapp App
|
|
520
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
521
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
522
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
523
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
524
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
525
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
526
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
527
|
+
info: (wab api) Starting api route
|
|
528
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
529
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
530
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
531
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
532
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
533
|
+
info: (wab) Redis ready!
|
|
534
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
535
|
+
debug: KV_COLLECTION: kvstore
|
|
536
|
+
info: (wab) Starting Whatsapp App
|
|
537
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
538
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
539
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
540
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
541
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
542
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
543
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
544
|
+
info: (wab api) Starting api route
|
|
545
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
546
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
547
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
548
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
549
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
550
|
+
info: (wab) Redis ready!
|
|
551
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
552
|
+
debug: KV_COLLECTION: kvstore
|
|
553
|
+
info: (wab) Starting Whatsapp App
|
|
554
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
555
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
556
|
+
info: (wab) BASE_URL: https://tiledesk-whatsapp-connector-dev.glitch.me
|
|
557
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
558
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
559
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
560
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
561
|
+
info: (wab api) Starting api route
|
|
562
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v14.0/
|
|
563
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
564
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
565
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
566
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
567
|
+
info: (wab) Redis ready!
|
|
568
|
+
info: (wab) KVBaseMongo successfully connected.
|
package/package.json
CHANGED
package/routes/api.js
CHANGED
|
@@ -174,7 +174,8 @@ router.post('/tiledesk/broadcast', async (req, res) => {
|
|
|
174
174
|
|
|
175
175
|
// start api route from whatsappRoute
|
|
176
176
|
async function startRoute(settings, callback) {
|
|
177
|
-
winston.info("(wab api) Starting api route", settings);
|
|
177
|
+
//winston.info("(wab api) Starting api route", settings);
|
|
178
|
+
winston.info("(wab api) Starting api route");
|
|
178
179
|
|
|
179
180
|
if (!settings.DB) {
|
|
180
181
|
winston.error("(wab api) db id mandatory. Exit...");
|
package/template/configure.html
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<!-- INFO BOX -->
|
|
95
95
|
{{#unless popup_view}}
|
|
96
96
|
<div class="info-box">
|
|
97
|
-
|
|
97
|
+
{{#unless brand_name}}
|
|
98
98
|
<div class="info-list">
|
|
99
99
|
<!--
|
|
100
100
|
<div style="margin-bottom:20px;">
|
|
@@ -111,53 +111,55 @@
|
|
|
111
111
|
|
|
112
112
|
<ul>
|
|
113
113
|
<div class="list-element">
|
|
114
|
-
<img src="https://cdn-icons-png.flaticon.com/512/1443/1443000.png" width=20 height=20 style="margin-right: 10px;"/>
|
|
114
|
+
<img src="https://cdn-icons-png.flaticon.com/512/1443/1443000.png" width="20" height="20" style="margin-right: 10px;"/>
|
|
115
115
|
<h7>Integrate your Whatsapp number with Tiledesk</h7>
|
|
116
116
|
</div>
|
|
117
117
|
<div class="list-element">
|
|
118
|
-
<img src="https://cdn-icons-png.flaticon.com/512/1443/1443000.png" width=20 height=20 style="margin-right: 10px;"/>
|
|
118
|
+
<img src="https://cdn-icons-png.flaticon.com/512/1443/1443000.png" width="20" height="20" style="margin-right: 10px;"/>
|
|
119
119
|
<h7>Once a chat is initiated on your Whatsapp number, receive an alert on your Tiledesk account</h7>
|
|
120
120
|
</div>
|
|
121
121
|
<div class="list-element">
|
|
122
|
-
<img src="https://cdn-icons-png.flaticon.com/512/1443/1443000.png" width=20 height=20 style="margin-right: 10px;"/>
|
|
122
|
+
<img src="https://cdn-icons-png.flaticon.com/512/1443/1443000.png" width="20" height="20" style="margin-right: 10px;"/>
|
|
123
123
|
<h7>Enable instant messaging and answer multiple conversations, everything from Tiledesk account</h7>
|
|
124
124
|
</div>
|
|
125
125
|
</ul>
|
|
126
126
|
</div>
|
|
127
|
+
{{/unless}}
|
|
127
128
|
</div>
|
|
128
129
|
{{/unless}}
|
|
129
130
|
|
|
130
131
|
<!-- Docs Section -->
|
|
131
132
|
{{#unless popup_view}}
|
|
132
133
|
<div class="docs-box">
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
134
|
+
{{#unless brand_name}}
|
|
135
|
+
<div class="docs-section">
|
|
136
|
+
<p style="margin-top: 20px; font-size: 18px; font-weight: 600;">Before you start</p>
|
|
137
|
+
<div style="padding: 20px; background-color: #2fa2dc24; border-radius: 8px; width: 600px; margin-bottom: 5px;">
|
|
138
|
+
<div style="display: flex; flex-direction: row; align-items: baseline;">
|
|
139
|
+
<div>
|
|
140
|
+
<img src="https://freeiconshop.com/wp-content/uploads/edd/arrow-flat.png" width="20px" height="auto" style="margin-right: 10px;">
|
|
141
|
+
</div>
|
|
142
|
+
<div>
|
|
143
|
+
<a href="https://gethelp.tiledesk.com/articles/connect-tiledesk-with-whatsapp-business/" target="_blank">Connect Tiledesk with WhatsApp Business</a>
|
|
144
|
+
<p style="color: grey; margin-bottom: 0px;">A small but very useful guide on how to connect your WhatsApp Business number with Tiledesk</p>
|
|
145
|
+
</div>
|
|
144
146
|
</div>
|
|
145
147
|
</div>
|
|
146
|
-
</div>
|
|
147
148
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
<div style="padding: 20px; background-color: #2fa2dc24; border-radius: 8px; width: 600px; margin-bottom: 5px;">
|
|
150
|
+
<div style="display: flex; flex-direction: row; align-items: baseline;">
|
|
151
|
+
<div>
|
|
152
|
+
<img src="https://freeiconshop.com/wp-content/uploads/edd/arrow-flat.png" width="20px" height="auto" style="margin-right: 10px;">
|
|
153
|
+
</div>
|
|
154
|
+
<div>
|
|
155
|
+
<a href="https://gethelp.tiledesk.com/articles/configure-a-whatsapp-business-account/" target="_blank">Configure a WhatsApp Business account</a>
|
|
156
|
+
<p style="color: grey; margin-bottom: 0px;">Not sure how to set up a business account? Take a look here.</p>
|
|
157
|
+
</div>
|
|
156
158
|
</div>
|
|
157
159
|
</div>
|
|
158
|
-
</div>
|
|
159
160
|
|
|
160
|
-
|
|
161
|
+
</div>
|
|
162
|
+
{{/unless}}
|
|
161
163
|
</div>
|
|
162
164
|
{{/unless}}
|
|
163
165
|
|
|
@@ -238,7 +240,7 @@
|
|
|
238
240
|
<div class="form-group" style="width: 522px;">
|
|
239
241
|
<label class="input-label" for="department">Department <span style="font-weight: normal;">(Optional)</span></label>
|
|
240
242
|
<div style="display: flex; flex-direction: row; align-items: center;">
|
|
241
|
-
<select class="custom-select" name="department"
|
|
243
|
+
<select class="custom-select form-control" name="department">
|
|
242
244
|
{{#each departments}}
|
|
243
245
|
{{#if (isEqual _id ../department_id)}}
|
|
244
246
|
<option value="{{ _id }}" selected>{{ name }}</option>
|
|
@@ -284,7 +286,13 @@
|
|
|
284
286
|
<!-- Disconnect Button -->
|
|
285
287
|
{{#if wab_token}}
|
|
286
288
|
<div>
|
|
287
|
-
|
|
289
|
+
{{#if brand_name}}
|
|
290
|
+
<p style="color: rgb(140, 140, 140);">The WhatsApp Business App is configured on your {{ brand_name }} project.</p>
|
|
291
|
+
{{else}}
|
|
292
|
+
<p style="color: rgb(140, 140, 140);">The WhatsApp Business App is configured on your Tiledesk project.</p>
|
|
293
|
+
{{/if}}
|
|
294
|
+
|
|
295
|
+
|
|
288
296
|
<p>By clicking on disconnect you will no longer be able to receive messages from the WhatsApp channel</p>
|
|
289
297
|
<form action="./disconnect" method="post">
|
|
290
298
|
<input type="hidden" name="project_id" value="{{ project_id }}">
|
|
@@ -294,8 +302,13 @@
|
|
|
294
302
|
</form>
|
|
295
303
|
</div>
|
|
296
304
|
{{else}}
|
|
297
|
-
|
|
298
|
-
|
|
305
|
+
<!-- App not configured -->
|
|
306
|
+
{{#if brand_name}}
|
|
307
|
+
<p style="color: rgb(140, 140, 140);">The WhatsApp Business App is not yet configured on your {{ brand_name }} project.</p>
|
|
308
|
+
{{else}}
|
|
309
|
+
<p style="color: rgb(140, 140, 140);">The WhatsApp Business App is not yet configured on your Tiledesk project.</p>
|
|
310
|
+
{{/if}}
|
|
311
|
+
|
|
299
312
|
{{/if}}
|
|
300
313
|
</div>
|
|
301
314
|
</div>
|
|
@@ -348,4 +361,5 @@
|
|
|
348
361
|
</script>
|
|
349
362
|
|
|
350
363
|
|
|
351
|
-
</body>
|
|
364
|
+
</body>
|
|
365
|
+
</html>
|
package/template/detail.html
CHANGED
|
@@ -216,11 +216,11 @@
|
|
|
216
216
|
|
|
217
217
|
<div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 15px;">
|
|
218
218
|
<div>
|
|
219
|
-
<p>Bug
|
|
219
|
+
<p>Bug fix and minor improvements</p>
|
|
220
220
|
</div>
|
|
221
221
|
<p style="font-size: 12px; color: #676767; margin-bottom: 0px;">Version <b>0.1.64</b></p>
|
|
222
222
|
</div>
|
|
223
|
-
|
|
223
|
+
|
|
224
224
|
<div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 15px;">
|
|
225
225
|
<div>
|
|
226
226
|
<p>Plans upgrade</p>
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
</div>
|
|
242
242
|
<p style="font-size: 12px; color: #676767; margin-bottom: 0px;">Version <b>0.1.61</b></p>
|
|
243
243
|
</div>
|
|
244
|
-
|
|
244
|
+
|
|
245
245
|
<hr style="margin-top: 50px; margin-bottom: 20px">
|
|
246
246
|
|
|
247
247
|
<script>
|
package/tiledesk/KVBaseMongo.js
CHANGED
|
@@ -36,6 +36,15 @@ class KVBaseMongo {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
reuseConnection(db, callback) {
|
|
40
|
+
this.db = db;
|
|
41
|
+
this.db.collection(this.KV_COLLECTION).createIndex(
|
|
42
|
+
{ "key": 1 }, { unique: true }
|
|
43
|
+
)
|
|
44
|
+
callback();
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
39
48
|
set(k, v) {
|
|
40
49
|
return new Promise(resolve => {
|
|
41
50
|
//this.db.set(k, v).then(() => {resolve();});
|