@tiledesk/tiledesk-whatsapp-connector 0.1.1 → 0.1.4
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 +1 -1
- package/package.json +1 -1
- package/template/configure.html +2 -2
- package/tiledesk/TiledeskChannel.js +3 -3
package/index.js
CHANGED
|
@@ -591,7 +591,7 @@ function readHTMLFile(templateName, callback) {
|
|
|
591
591
|
console.log("file: ", file);
|
|
592
592
|
console.log("*** appRoot: ", appRoot.toString());
|
|
593
593
|
console.log("type: ", typeof(appRoot))
|
|
594
|
-
fs.readFile('
|
|
594
|
+
fs.readFile(__dirname + '/template' + templateName, { encoding: 'utf-8' },
|
|
595
595
|
function(err, html) {
|
|
596
596
|
if (err) {
|
|
597
597
|
throw err;
|
package/package.json
CHANGED
package/template/configure.html
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<div>
|
|
44
44
|
|
|
45
45
|
<h1 style="margin-top: 0px; margin-bottom: 2px; min-width: 500px;">WhatsApp Business (Test)</h1>
|
|
46
|
-
<h7 style="color: rgb(140, 140, 140);">by Tiledesk (v.
|
|
46
|
+
<h7 style="color: rgb(140, 140, 140);">by Tiledesk (v. 0.1.4)</h7>
|
|
47
47
|
|
|
48
48
|
{{#if wab_token}}
|
|
49
49
|
<div style="margin-top: 20px;">
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
function copyTextToClipboard() {
|
|
172
|
-
const proxyUrl = document.getElementById('proxy_url')
|
|
172
|
+
const proxyUrl = document.getElementById('proxy_url').select()
|
|
173
173
|
|
|
174
174
|
//document.querySelector('textarea').select();
|
|
175
175
|
try {
|
|
@@ -97,7 +97,7 @@ class TiledeskChannel {
|
|
|
97
97
|
method: 'GET'
|
|
98
98
|
}).then((response) => {
|
|
99
99
|
|
|
100
|
-
if (log) {
|
|
100
|
+
if (this.log) {
|
|
101
101
|
console.log("[Tiledesk Channel] get request response: ", response.data);
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -108,7 +108,7 @@ class TiledeskChannel {
|
|
|
108
108
|
request_id = new_request_id;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
if (log) {
|
|
111
|
+
if (this.log) {
|
|
112
112
|
console.log("[Tiledesk Channel] tiledeskMessage:", tiledeskMessage);
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -122,7 +122,7 @@ class TiledeskChannel {
|
|
|
122
122
|
method: 'POST'
|
|
123
123
|
}).then((response) => {
|
|
124
124
|
|
|
125
|
-
if (log) {
|
|
125
|
+
if (this.log) {
|
|
126
126
|
console.log("[Tiledesk Channel] send message response: ", response.data);
|
|
127
127
|
}
|
|
128
128
|
|