@chat21/chat21-web-widget 5.0.52 → 5.0.53-rc.2
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/.github/workflows/docker-community-push-latest.yml +1 -0
- package/.github/workflows/docker-image-tag-community-tag-push.yml +1 -0
- package/CHANGELOG.md +16 -0
- package/Dockerfile +2 -2
- package/angular.json +4 -21
- package/deploy_amazon_beta.sh +1 -1
- package/deploy_amazon_prod.sh +1 -1
- package/package.json +17 -18
- package/src/app/app.component.scss +38 -10
- package/src/app/app.component.ts +2 -0
- package/src/app/app.module.ts +5 -3
- package/src/app/component/conversation-detail/conversation/conversation.component.html +13 -1
- package/src/app/component/conversation-detail/conversation/conversation.component.scss +19 -0
- package/src/app/component/conversation-detail/conversation/conversation.component.ts +50 -9
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.spec.ts +0 -2
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts +0 -10
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +22 -0
- package/src/app/component/form/form-builder/form-builder.component.ts +1 -1
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.ts +1 -1
- package/src/app/component/form/inputs/form-label/form-label.component.ts +1 -1
- package/src/app/component/form/inputs/form-text/form-text.component.ts +2 -2
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.ts +2 -2
- package/src/app/component/form/prechat-form/prechat-form.component.ts +1 -1
- package/src/app/component/home/home.component.html +7 -15
- package/src/app/component/message/bubble-message/bubble-message.component.html +1 -4
- package/src/app/component/message/bubble-message/bubble-message.component.ts +1 -37
- package/src/app/component/message/image/image.component.ts +1 -9
- package/src/app/component/message/info-message/info-message.component.html +3 -3
- package/src/app/component/message/info-message/info-message.component.ts +0 -10
- package/src/app/directives/tooltip.directive.spec.ts +8 -0
- package/src/app/directives/tooltip.directive.ts +46 -0
- package/src/app/providers/global-settings.service.ts +2 -2
- package/src/app/utils/rules.ts +13 -0
- package/src/base_script.html +57 -0
- package/src/chat21-core/providers/abstract/archivedconversations-handler.service.ts +5 -5
- package/src/chat21-core/providers/abstract/conversation-handler.service.ts +6 -6
- package/src/chat21-core/providers/abstract/conversations-handler.service.ts +6 -6
- package/src/chat21-core/providers/abstract/groups-handler.service.ts +5 -5
- package/src/chat21-core/providers/abstract/logger.service.ts +1 -0
- package/src/chat21-core/providers/abstract/messagingAuth.service.ts +2 -2
- package/src/chat21-core/providers/abstract/presence.service.ts +2 -2
- package/src/chat21-core/providers/abstract/typing.service.ts +2 -2
- package/src/chat21-core/providers/abstract/upload.service.ts +1 -1
- package/src/chat21-core/providers/firebase/firebase-archivedconversations-handler.ts +1 -1
- package/src/chat21-core/providers/firebase/firebase-groups-handler.ts +1 -1
- package/src/chat21-core/providers/logger/customLogger.ts +4 -0
- package/src/chat21-core/providers/mqtt/mqtt-archivedconversations-handler.ts +1 -1
- package/src/chat21-core/providers/mqtt/mqtt-conversations-handler.ts +0 -1
- package/src/chat21-core/providers/mqtt/mqtt-groups-handler.ts +1 -1
- package/src/chat21-core/utils/constants.ts +3 -2
- package/src/chat21-core/utils/utils.ts +2 -0
- package/src/launch.js +4 -61
- package/src/polyfills.ts +0 -10
- package/src/test.ts +3 -1
- package/tsconfig.json +5 -3
- package/dist/3rdpartylicenses.txt +0 -942
- package/dist/assets/i18n/en.json +0 -94
- package/dist/assets/i18n/es.json +0 -90
- package/dist/assets/i18n/fr.json +0 -90
- package/dist/assets/i18n/it.json +0 -90
- package/dist/assets/images/avatar_bot_tiledesk.svg +0 -1
- package/dist/assets/images/chat_human_avatar.svg +0 -12
- package/dist/assets/images/f21ico-done.svg +0 -1
- package/dist/assets/images/f21ico-done_all.svg +0 -1
- package/dist/assets/images/f21ico-schedule.svg +0 -1
- package/dist/assets/images/file-alt-solid.png +0 -0
- package/dist/assets/images/light_avatar_placeholder.svg +0 -1
- package/dist/assets/images/tommy_bot_tiledesk.svg +0 -48
- package/dist/assets/images/website_mockup.jpg +0 -0
- package/dist/assets/js/chat21client.js +0 -1066
- package/dist/assets/js/mqtt/4.1.0/mqtt.min.js +0 -1
- package/dist/assets/js/mqtt/4.2.6/mqtt.min.js +0 -1
- package/dist/assets/js/mqtt/4.2.8/mqtt.min.js +0 -1
- package/dist/assets/sounds/Carme.mp3 +0 -0
- package/dist/assets/sounds/justsaying.mp3 +0 -0
- package/dist/assets/sounds/pling.mp3 +0 -0
- package/dist/assets/styles/tiledesk_v1.scss +0 -22
- package/dist/assets/twp/chatbot-panel.html +0 -424
- package/dist/assets/twp/index-dev.html +0 -2430
- package/dist/assets/twp/index.html +0 -603
- package/dist/assets/twp/tiledesk_widget_files/bootstrap.min.css +0 -5
- package/dist/assets/twp/tiledesk_widget_files/bootstrap.min.js +0 -7
- package/dist/assets/twp/tiledesk_widget_files/facebook.png +0 -0
- package/dist/assets/twp/tiledesk_widget_files/font-awesome.min.css +0 -4
- package/dist/assets/twp/tiledesk_widget_files/icon +0 -23
- package/dist/assets/twp/tiledesk_widget_files/jquery.min.js +0 -2
- package/dist/assets/twp/tiledesk_widget_files/linkedin.png +0 -0
- package/dist/assets/twp/tiledesk_widget_files/logo-black.png +0 -0
- package/dist/assets/twp/tiledesk_widget_files/logo-mobile.png +0 -0
- package/dist/assets/twp/tiledesk_widget_files/logo-short.png +0 -0
- package/dist/assets/twp/tiledesk_widget_files/logo.png +0 -0
- package/dist/assets/twp/tiledesk_widget_files/logo@2x-black.png +0 -0
- package/dist/assets/twp/tiledesk_widget_files/telegram.png +0 -0
- package/dist/assets/twp/tiledesk_widget_files/twitter.png +0 -0
- package/dist/assets/twp/tiledesk_widget_files/website-poly.min.css +0 -5623
- package/dist/assets/twp/tiledesk_widget_files/whatsapp.png +0 -0
- package/dist/environments/real_data/widget-config-docker.json +0 -28
- package/dist/environments/real_data/widget-config-firebase.json +0 -30
- package/dist/environments/real_data/widget-config-mqtt.json +0 -27
- package/dist/environments/real_data/widget-config-native-mqtt.json +0 -28
- package/dist/environments/real_data/widget-config-native-prod.json +0 -27
- package/dist/f21ico-done.svg +0 -1
- package/dist/f21ico-done_all.svg +0 -1
- package/dist/f21ico-schedule.svg +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/iframe-style.css +0 -189
- package/dist/index.html +0 -16
- package/dist/launch.js +0 -428
- package/dist/main.js +0 -1
- package/dist/polyfills-es5.js +0 -1
- package/dist/polyfills.js +0 -1
- package/dist/runtime.js +0 -1
- package/dist/scripts.js +0 -1
- package/dist/styles.css +0 -1
- package/dist/styles.js +0 -1
- package/dist/test-auth-remote.html +0 -95
- package/dist/test-auth.html +0 -49
- package/dist/test-buttons.html +0 -147
- package/dist/test-custom-auth.html +0 -50
- package/dist/test-new.html +0 -231
- package/dist/test.html +0 -142
- package/dist/tiledesk.js +0 -72
- package/dist/vendor.js +0 -1
- package/dist/widget-config-template.json +0 -29
- package/dist/widget-config.json +0 -29
- package/e2e/protractor.conf.js +0 -32
- package/src/environments/environment.pre.ts +0 -42
- package/src/environments/environment.prod.ts +0 -40
- package/src/environments/environment.ts +0 -41
- package/src/environments/real_data/widget-config-docker.json +0 -28
- package/src/environments/real_data/widget-config-firebase.json +0 -30
- package/src/environments/real_data/widget-config-mqtt.json +0 -27
- package/src/environments/real_data/widget-config-native-mqtt.json +0 -28
- package/src/environments/real_data/widget-config-native-prod.json +0 -27
- package/src/test-auth-remote.html +0 -95
- package/src/test-auth.html +0 -49
- package/src/test-buttons.html +0 -147
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"chatEngine": "${CHAT21_ENGINE}",
|
|
3
|
-
"uploadEngine": "${UPLOAD_ENGINE}",
|
|
4
|
-
"pushEngine": "${PUSH_ENGINE}",
|
|
5
|
-
"fileUploadAccept":"${FILE_UPLOAD_ACCEPT}",
|
|
6
|
-
"logLevel": "${LOG_LEVEL}" ,
|
|
7
|
-
"remoteTranslationsUrl": "${TRANSLATIONS_URL}",
|
|
8
|
-
"firebaseConfig": {
|
|
9
|
-
"apiKey": "${FIREBASE_APIKEY}",
|
|
10
|
-
"authDomain": "${FIREBASE_AUTHDOMAIN}",
|
|
11
|
-
"databaseURL": "${FIREBASE_DATABASEURL}",
|
|
12
|
-
"projectId": "${FIREBASE_PROJECT_ID}",
|
|
13
|
-
"storageBucket": "${FIREBASE_STORAGEBUCKET}",
|
|
14
|
-
"messagingSenderId": "${FIREBASE_MESSAGINGSENDERID}",
|
|
15
|
-
"appId": "${FIREBASE_APP_ID}",
|
|
16
|
-
"tenant": "${FIREBASE_TENANT}"
|
|
17
|
-
},
|
|
18
|
-
"chat21Config": {
|
|
19
|
-
"appId": "${MQTT_APPID}",
|
|
20
|
-
"MQTTendpoint": "${MQTT_ENDPOINT}",
|
|
21
|
-
"APIendpoint": "${MQTT_APIENDPOINT}"
|
|
22
|
-
},
|
|
23
|
-
"apiUrl": "${API_URL}",
|
|
24
|
-
"baseImageUrl": "${API_BASEIMAGE_URL}",
|
|
25
|
-
"dashboardUrl": "${DASHBOARD_URL}",
|
|
26
|
-
"authPersistence": "${AUTH_PERSISTENCE}",
|
|
27
|
-
"enbedJs": "${ENBED_JS}"
|
|
28
|
-
|
|
29
|
-
}
|
package/dist/widget-config.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"chatEngine": "mqtt",
|
|
3
|
-
"uploadEngine": "native",
|
|
4
|
-
"pushEngine":"none",
|
|
5
|
-
"fileUploadAccept":"*/*",
|
|
6
|
-
"logLevel":"INFO",
|
|
7
|
-
"remoteTranslationsUrl": "http://localhost:3000/",
|
|
8
|
-
"firebaseConfig": {
|
|
9
|
-
"apiKey": "CHANGEIT",
|
|
10
|
-
"authDomain": "CHANGEIT",
|
|
11
|
-
"databaseURL": "CHANGEIT",
|
|
12
|
-
"projectId": "CHANGEIT",
|
|
13
|
-
"storageBucket": "CHANGEIT",
|
|
14
|
-
"messagingSenderId": "CHANGEIT",
|
|
15
|
-
"appId": "CHANGEIT",
|
|
16
|
-
"tenant": "CHANGEIT"
|
|
17
|
-
},
|
|
18
|
-
"chat21Config": {
|
|
19
|
-
"appId": "tilechat",
|
|
20
|
-
"MQTTendpoint": "ws://localhost:15675/ws",
|
|
21
|
-
"APIendpoint": "http://localhost:8004/api"
|
|
22
|
-
},
|
|
23
|
-
"apiUrl": "http://localhost:3000/",
|
|
24
|
-
"baseImageUrl": "http://localhost:3000/",
|
|
25
|
-
"dashboardUrl": "http://localhost:4500/",
|
|
26
|
-
"authPersistence": "LOCAL",
|
|
27
|
-
"enbedJs": true
|
|
28
|
-
|
|
29
|
-
}
|
package/e2e/protractor.conf.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
// Protractor configuration file, see link for more information
|
|
3
|
-
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
4
|
-
|
|
5
|
-
const { SpecReporter } = require('jasmine-spec-reporter');
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @type { import("protractor").Config }
|
|
9
|
-
*/
|
|
10
|
-
exports.config = {
|
|
11
|
-
allScriptsTimeout: 11000,
|
|
12
|
-
specs: [
|
|
13
|
-
'./src/**/*.e2e-spec.ts'
|
|
14
|
-
],
|
|
15
|
-
capabilities: {
|
|
16
|
-
'browserName': 'chrome'
|
|
17
|
-
},
|
|
18
|
-
directConnect: true,
|
|
19
|
-
baseUrl: 'http://localhost:4200/',
|
|
20
|
-
framework: 'jasmine',
|
|
21
|
-
jasmineNodeOpts: {
|
|
22
|
-
showColors: true,
|
|
23
|
-
defaultTimeoutInterval: 30000,
|
|
24
|
-
print: function() {}
|
|
25
|
-
},
|
|
26
|
-
onPrepare() {
|
|
27
|
-
require('ts-node').register({
|
|
28
|
-
project: require('path').join(__dirname, './tsconfig.json')
|
|
29
|
-
});
|
|
30
|
-
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
|
31
|
-
}
|
|
32
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// The file contents for the current environment will overwrite these during build2.
|
|
2
|
-
// The build2 system defaults to the dev environment which uses `environment.ts`, but if you do
|
|
3
|
-
// `ng build2 --env=prod` then `environment.prod.ts` will be used instead.
|
|
4
|
-
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
|
5
|
-
|
|
6
|
-
export const environment = {
|
|
7
|
-
production: true,
|
|
8
|
-
version: require('../../package.json').version, // https://stackoverflow.com/questions/34907682/how-to-display-app-version-in-angular2
|
|
9
|
-
remoteConfig: true,
|
|
10
|
-
remoteConfigUrl: '/widget-config.json',
|
|
11
|
-
remoteTranslationsUrl: 'http://localhost:3000/',
|
|
12
|
-
loadRemoteTranslations: true,
|
|
13
|
-
chatEngine: 'mqtt',
|
|
14
|
-
uploadEngine: 'native',
|
|
15
|
-
fileUploadAccept:"*/*",
|
|
16
|
-
logLevel: 'INFO',
|
|
17
|
-
firebaseConfig: {
|
|
18
|
-
apiKey: 'CHANGEIT',
|
|
19
|
-
authDomain: 'CHANGEIT',
|
|
20
|
-
databaseURL: 'CHANGEIT',
|
|
21
|
-
projectId: 'CHANGEIT',
|
|
22
|
-
storageBucket: 'CHANGEIT',
|
|
23
|
-
messagingSenderId: 'CHANGEIT',
|
|
24
|
-
appId: 'CHANGEIT',
|
|
25
|
-
tenant: 'tilechat',
|
|
26
|
-
},
|
|
27
|
-
chat21Config: {
|
|
28
|
-
appId: 'tilechat',
|
|
29
|
-
MQTTendpoint: 'mqtt://localhost:15675/ws', // MQTT endpoint
|
|
30
|
-
APIendpoint: 'http://localhost:8004/api'
|
|
31
|
-
},
|
|
32
|
-
apiUrl: 'http://localhost:3000/',
|
|
33
|
-
baseImageUrl: 'https://firebasestorage.googleapis.com/v0/b/',
|
|
34
|
-
dashboardUrl: "https://support-pre.tiledesk.com/dashboard/",
|
|
35
|
-
defaultLang : 'en',
|
|
36
|
-
storage_prefix : 'widget_sv5',
|
|
37
|
-
authPersistence: 'LOCAL',
|
|
38
|
-
supportMode: true,
|
|
39
|
-
enbedJs: true
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// The file contents for the current environment will overwrite these during build2.
|
|
2
|
-
// The build2 system defaults to the dev environment which uses `environment.ts`, but if you do
|
|
3
|
-
// `ng build2 --env=prod` then `environment.prod.ts` will be used instead.
|
|
4
|
-
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
|
5
|
-
|
|
6
|
-
export const environment = {
|
|
7
|
-
production: true,
|
|
8
|
-
version: require('../../package.json').version, // https://stackoverflow.com/questions/34907682/how-to-display-app-version-in-angular2
|
|
9
|
-
remoteConfig: true,
|
|
10
|
-
remoteConfigUrl: '/widget-config.json',
|
|
11
|
-
loadRemoteTranslations: true,
|
|
12
|
-
remoteTranslationsUrl: 'http://localhost:3000/',
|
|
13
|
-
chatEngine: 'CHANGEIT',
|
|
14
|
-
uploadEngine: 'CHANGEIT',
|
|
15
|
-
fileUploadAccept:"*/*",
|
|
16
|
-
logLevel: 'INFO',
|
|
17
|
-
firebaseConfig: {
|
|
18
|
-
apiKey: 'CHANGEIT',
|
|
19
|
-
authDomain: 'CHANGEIT',
|
|
20
|
-
databaseURL: 'CHANGEIT',
|
|
21
|
-
projectId: 'CHANGEIT',
|
|
22
|
-
storageBucket: 'CHANGEIT',
|
|
23
|
-
messagingSenderId: 'CHANGEIT',
|
|
24
|
-
appId: 'CHANGEIT',
|
|
25
|
-
tenant: 'CHANGEIT',
|
|
26
|
-
},
|
|
27
|
-
chat21Config: {
|
|
28
|
-
appId: 'tilechat',
|
|
29
|
-
MQTTendpoint: 'mqtt://localhost:15675/ws', // MQTT endpoint
|
|
30
|
-
APIendpoint: 'http://localhost:8004/api'
|
|
31
|
-
},
|
|
32
|
-
apiUrl: 'http://localhost:3000/',
|
|
33
|
-
baseImageUrl: 'https://firebasestorage.googleapis.com/v0/b/',
|
|
34
|
-
dashboardUrl: 'https://console.tiledesk.com/v2/dashboard/',
|
|
35
|
-
defaultLang : 'en',
|
|
36
|
-
storage_prefix : 'widget_sv5',
|
|
37
|
-
authPersistence: 'LOCAL',
|
|
38
|
-
supportMode: true,
|
|
39
|
-
enbedJs: true
|
|
40
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// The file contents for the current environment will overwrite these during build2.
|
|
2
|
-
// The build2 system defaults to the dev environment which uses `environment.ts`, but if you do
|
|
3
|
-
// `ng build2 --env=prod` then `environment.prod.ts` will be used instead.
|
|
4
|
-
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
|
5
|
-
|
|
6
|
-
export const environment = {
|
|
7
|
-
production: false,
|
|
8
|
-
version: require('../../package.json').version, // https://stackoverflow.com/questions/34907682/how-to-display-app-version-in-angular2
|
|
9
|
-
remoteConfig: true,
|
|
10
|
-
remoteConfigUrl: '/widget-config.json',
|
|
11
|
-
loadRemoteTranslations: true,
|
|
12
|
-
remoteTranslationsUrl: 'http://localhost:3000/',
|
|
13
|
-
chatEngine: 'mqtt',
|
|
14
|
-
uploadEngine: 'native',
|
|
15
|
-
tenant: 'tilechat',
|
|
16
|
-
fileUploadAccept:"*/*",
|
|
17
|
-
logLevel: 'INFO',
|
|
18
|
-
firebaseConfig: {
|
|
19
|
-
apiKey: 'CHANGEIT',
|
|
20
|
-
authDomain: 'CHANGEIT',
|
|
21
|
-
databaseURL: 'CHANGEIT',
|
|
22
|
-
projectId: 'CHANGEIT',
|
|
23
|
-
storageBucket: 'CHANGEIT',
|
|
24
|
-
messagingSenderId: 'CHANGEIT',
|
|
25
|
-
appId: 'CHANGEIT',
|
|
26
|
-
tenant: 'tilechat'
|
|
27
|
-
},
|
|
28
|
-
chat21Config: {
|
|
29
|
-
appId: 'tilechat',
|
|
30
|
-
MQTTendpoint: 'mqtt://localhost:15675/ws', // MQTT endpoint
|
|
31
|
-
APIendpoint: 'http://localhost:8004/api'
|
|
32
|
-
},
|
|
33
|
-
apiUrl: 'http://localhost:3000/',
|
|
34
|
-
baseImageUrl: 'https://firebasestorage.googleapis.com/v0/b/',
|
|
35
|
-
dashboardUrl: 'http://localhost:4500/',
|
|
36
|
-
defaultLang : 'en',
|
|
37
|
-
storage_prefix : 'widget_sv5',
|
|
38
|
-
authPersistence: 'LOCAL',
|
|
39
|
-
supportMode: true,
|
|
40
|
-
enbedJs: true
|
|
41
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"chatEngine": "mqtt",
|
|
3
|
-
"uploadEngine": "native",
|
|
4
|
-
"pushEngine":"mqtt",
|
|
5
|
-
"fileUploadAccept":"*/*",
|
|
6
|
-
"logLevel": "DEBUG",
|
|
7
|
-
"remoteTranslationsUrl": "http://localhost:3000/",
|
|
8
|
-
"firebaseConfig": {
|
|
9
|
-
"apiKey": "CHANGEIT",
|
|
10
|
-
"authDomain": "CHANGEIT",
|
|
11
|
-
"databaseURL": "CHANGEIT",
|
|
12
|
-
"projectId": "CHANGEIT",
|
|
13
|
-
"storageBucket": "CHANGEIT",
|
|
14
|
-
"messagingSenderId": "CHANGEIT",
|
|
15
|
-
"appId": "CHANGEIT",
|
|
16
|
-
"tenant": "tilechat"
|
|
17
|
-
},
|
|
18
|
-
"chat21Config": {
|
|
19
|
-
"appId": "tilechat",
|
|
20
|
-
"MQTTendpoint": "ws://localhost:15675/ws",
|
|
21
|
-
"APIendpoint": "http://localhost:8004/api",
|
|
22
|
-
"_log": true
|
|
23
|
-
},
|
|
24
|
-
"apiUrl": "http://localhost:3000/",
|
|
25
|
-
"baseImageUrl": "http://localhost:3000/",
|
|
26
|
-
"dashboardUrl": "http://localhost:8081/dashboard/",
|
|
27
|
-
"authPersistence": "LOCAL"
|
|
28
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"chatEngine": "firebase",
|
|
3
|
-
"uploadEngine": "firebase",
|
|
4
|
-
"pushEngine": "firebase",
|
|
5
|
-
"fileUploadAccept":"*/*",
|
|
6
|
-
"logLevel": "DEBUG",
|
|
7
|
-
"remoteTranslationsUrl": "https://tiledesk-server-pre.herokuapp.com/",
|
|
8
|
-
"firebaseConfig": {
|
|
9
|
-
"apiKey": "AIzaSyCoWXHNvP1-qOllCpTshhC6VjPXeRTK0T4",
|
|
10
|
-
"authDomain": "chat21-pre-01.firebaseapp.com",
|
|
11
|
-
"databaseURL": "https://chat21-pre-01.firebaseio.com",
|
|
12
|
-
"projectId": "chat21-pre-01",
|
|
13
|
-
"storageBucket": "chat21-pre-01.appspot.com",
|
|
14
|
-
"messagingSenderId": "269505353043",
|
|
15
|
-
"appId": "1:269505353043:web:b82af070572669e3707da6",
|
|
16
|
-
"tenant": "tilechat"
|
|
17
|
-
},
|
|
18
|
-
"chat21Config": {
|
|
19
|
-
"appId": "CHANGEIT",
|
|
20
|
-
"MQTTendpoint": "CHANGEIT",
|
|
21
|
-
"APIendpoint": "CHANGEIT"
|
|
22
|
-
},
|
|
23
|
-
"apiUrl": "https://tiledesk-server-pre.herokuapp.com/",
|
|
24
|
-
"baseImageUrl": "https://firebasestorage.googleapis.com/v0/b/",
|
|
25
|
-
"dashboardUrl": "https://support-pre.tiledesk.com/dashboard/",
|
|
26
|
-
"authPersistence": "LOCAL",
|
|
27
|
-
"enbedJs": true
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"chatEngine": "mqtt",
|
|
3
|
-
"uploadEngine": "native",
|
|
4
|
-
"pushEngine":"mqtt",
|
|
5
|
-
"fileUploadAccept":"*/*",
|
|
6
|
-
"logLevel": "DEBUG",
|
|
7
|
-
"remoteTranslationsUrl": "http://99.80.197.164:3000/",
|
|
8
|
-
"firebaseConfig": {
|
|
9
|
-
"apiKey": "CHANGEIT",
|
|
10
|
-
"authDomain": "CHANGEIT",
|
|
11
|
-
"databaseURL": "CHANGEIT",
|
|
12
|
-
"projectId": "CHANGEIT",
|
|
13
|
-
"storageBucket": "CHANGEIT",
|
|
14
|
-
"messagingSenderId": "CHANGEIT",
|
|
15
|
-
"appId": "CHANGEIT",
|
|
16
|
-
"tenant": "CHANGEIT"
|
|
17
|
-
},
|
|
18
|
-
"chat21Config": {
|
|
19
|
-
"appId": "tilechat",
|
|
20
|
-
"MQTTendpoint": "ws://99.80.197.164:15675/ws",
|
|
21
|
-
"APIendpoint": "http://99.80.197.164:8004/api",
|
|
22
|
-
"_log": true
|
|
23
|
-
},
|
|
24
|
-
"apiUrl": "http://99.80.197.164:3000/",
|
|
25
|
-
"baseImageUrl": "http://99.80.197.164:3000/",
|
|
26
|
-
"authPersistence": "LOCAL"
|
|
27
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"chatEngine": "mqtt",
|
|
3
|
-
"uploadEngine": "native",
|
|
4
|
-
"pushEngine":"mqtt",
|
|
5
|
-
"fileUploadAccept":"*/*",
|
|
6
|
-
"logLevel": "error",
|
|
7
|
-
"remoteTranslationsUrl": "https://console.native.tiledesk.com/api/",
|
|
8
|
-
"firebaseConfig": {
|
|
9
|
-
"apiKey": "CHANGEIT",
|
|
10
|
-
"authDomain": "CHANGEIT",
|
|
11
|
-
"databaseURL": "CHANGEIT",
|
|
12
|
-
"projectId": "CHANGEIT",
|
|
13
|
-
"storageBucket": "CHANGEIT",
|
|
14
|
-
"messagingSenderId": "CHANGEIT",
|
|
15
|
-
"appId": "CHANGEIT",
|
|
16
|
-
"tenant": "CHANGEIT"
|
|
17
|
-
},
|
|
18
|
-
"chat21Config": {
|
|
19
|
-
"appId": "tilechat",
|
|
20
|
-
"MQTTendpoint": "wss://console.native.tiledesk.com/mqws/ws",
|
|
21
|
-
"APIendpoint": "https://console.native.tiledesk.com/chatapi/api",
|
|
22
|
-
"_log": true
|
|
23
|
-
},
|
|
24
|
-
"apiUrl": "https://console.native.tiledesk.com/api/",
|
|
25
|
-
"baseImageUrl": "https://console.native.tiledesk.com/api/",
|
|
26
|
-
"dashboardUrl": "https://console.native.tiledesk.com/dashboard",
|
|
27
|
-
"authPersistence": "LOCAL"
|
|
28
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"chatEngine": "mqtt",
|
|
3
|
-
"uploadEngine": "native",
|
|
4
|
-
"pushEngine":"mqtt",
|
|
5
|
-
"fileUploadAccept":"*/*",
|
|
6
|
-
"logLevel": "debug",
|
|
7
|
-
"remoteTranslationsUrl": "https://api.tiledesk.com/v3/",
|
|
8
|
-
"firebaseConfig": {
|
|
9
|
-
"apiKey": "AIzaSyDKfdKrlD7AYcbQ-U-xxgV-b3FUQ4xt7NM",
|
|
10
|
-
"authDomain": "tiledesk-prod-v2.firebaseapp.com",
|
|
11
|
-
"databaseURL": "https://tiledesk-prod-v2.firebaseio.com",
|
|
12
|
-
"projectId": "tiledesk-prod-v2",
|
|
13
|
-
"storageBucket": "tiledesk-prod-v2.appspot.com",
|
|
14
|
-
"messagingSenderId": "92907897826",
|
|
15
|
-
"appId": "1:92907897826:web:f255664014a7cc14ee2fbb",
|
|
16
|
-
"tenant": "tilechat"
|
|
17
|
-
},
|
|
18
|
-
"chat21Config": {
|
|
19
|
-
"appId": "tilechat",
|
|
20
|
-
"MQTTendpoint": "wss://eu.rtmv3.tiledesk.com/mqws/ws",
|
|
21
|
-
"APIendpoint": "https://eu.rtmv3.tiledesk.com/chatapi/api",
|
|
22
|
-
"log": true
|
|
23
|
-
},
|
|
24
|
-
"apiUrl": "https://api.tiledesk.com/v3/",
|
|
25
|
-
"baseImageUrl": "https://eu.rtmv3.tiledesk.com/api/",
|
|
26
|
-
"authPersistence": "LOCAL"
|
|
27
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>Tilechat Widget</title>
|
|
6
|
-
<base href="./">
|
|
7
|
-
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<script type="application/javascript">
|
|
12
|
-
window.tiledeskSettings =
|
|
13
|
-
{
|
|
14
|
-
projectid: "5b55e806c93dde00143163dd",
|
|
15
|
-
development: true,
|
|
16
|
-
calloutTimer: 10,
|
|
17
|
-
autoStart:false,
|
|
18
|
-
startFromHome: true
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
(function(d, s, id) {
|
|
22
|
-
var js, fjs = d.getElementsByTagName(s)[0];
|
|
23
|
-
if (d.getElementById(id)) return;
|
|
24
|
-
js = d.createElement(s); js.id = id; //js.async=!0;
|
|
25
|
-
js.src = "./tiledesk.js";
|
|
26
|
-
fjs.parentNode.insertBefore(js, fjs);
|
|
27
|
-
}(document, 'script', 'tiledesk-jssdk'));
|
|
28
|
-
</script>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<script type="application/javascript">
|
|
33
|
-
|
|
34
|
-
function createCORSRequest(method, url, async) {
|
|
35
|
-
|
|
36
|
-
var xhr = new XMLHttpRequest();
|
|
37
|
-
if ("withCredentials" in xhr) {
|
|
38
|
-
|
|
39
|
-
// Check if the XMLHttpRequest object has a "withCredentials" property.
|
|
40
|
-
// "withCredentials" only exists on XMLHTTPRequest2 objects.
|
|
41
|
-
xhr.open(method, url, async);
|
|
42
|
-
// console.log("xhr12");
|
|
43
|
-
} else if (typeof XDomainRequest != "undefined") {
|
|
44
|
-
|
|
45
|
-
// Otherwise, check if XDomainRequest.
|
|
46
|
-
// XDomainRequest only exists in IE, and is IE's way of making CORS requests.
|
|
47
|
-
xhr = new XDomainRequest();
|
|
48
|
-
xhr.open(method, url);
|
|
49
|
-
// console.log("xhr111");
|
|
50
|
-
|
|
51
|
-
} else {
|
|
52
|
-
|
|
53
|
-
// Otherwise, CORS is not supported by the browser.
|
|
54
|
-
xhr = null;
|
|
55
|
-
// console.log("xhrnull");
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
return xhr;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
window.tileDeskAsyncInit = function() {
|
|
63
|
-
window.tiledesk.on('onLoadParams', function(event_data) {
|
|
64
|
-
// console.log("window.tiledesk", window.tiledesk);
|
|
65
|
-
var httpRequest = createCORSRequest('POST', 'https://demo@f21.it:password@api.tiledesk.com/v1/5b55e806c93dde00143163dd/jwt/generatetestjwt',false); //set async to false because loadParams must return when the get is complete
|
|
66
|
-
if (!httpRequest) {
|
|
67
|
-
throw new Error('CORS not supported');
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// console.log("onreadystatechange1");
|
|
71
|
-
httpRequest.onload = function() {
|
|
72
|
-
if (httpRequest.readyState === XMLHttpRequest.DONE) {
|
|
73
|
-
if (httpRequest.status === 200) {
|
|
74
|
-
// alert(httpRequest.responseText);
|
|
75
|
-
// console.log("httpRequest.responseText", httpRequest.responseText);
|
|
76
|
-
window.tiledesk.signInWithCustomToken(httpRequest.responseText);
|
|
77
|
-
return true;
|
|
78
|
-
} else {
|
|
79
|
-
alert('There was a problem with the request.');
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
httpRequest.onerror = function() {
|
|
85
|
-
console.error('There was an error!');
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
httpRequest.send();
|
|
89
|
-
return false;
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
</script>
|
|
93
|
-
|
|
94
|
-
</body>
|
|
95
|
-
</html>
|
package/src/test-auth.html
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>Tilechat Widget</title>
|
|
6
|
-
<base href="./">
|
|
7
|
-
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<script type="application/javascript">
|
|
12
|
-
window.tiledeskSettings =
|
|
13
|
-
{
|
|
14
|
-
projectid: "5b55e806c93dde00143163dd",
|
|
15
|
-
development: true,
|
|
16
|
-
calloutTimer: 10,
|
|
17
|
-
autoStart:false,
|
|
18
|
-
startFromHome: true,
|
|
19
|
-
isLogEnabled: true
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
(function(d, s, id) {
|
|
23
|
-
var js, fjs = d.getElementsByTagName(s)[0];
|
|
24
|
-
if (d.getElementById(id)) return;
|
|
25
|
-
js = d.createElement(s); js.id = id; //js.async=!0;
|
|
26
|
-
js.src = "./tiledesk.js";
|
|
27
|
-
fjs.parentNode.insertBefore(js, fjs);
|
|
28
|
-
}(document, 'script', 'tiledesk-jssdk'));
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<script type="application/javascript">
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
window.tileDeskAsyncInit = function() {
|
|
39
|
-
window.tiledesk.on('onLoadParams', function(event_data) {
|
|
40
|
-
// console.log("onLoadParams", event_data);
|
|
41
|
-
// console.log("window.tiledesk", window.tiledesk);
|
|
42
|
-
|
|
43
|
-
window.tiledesk.signInWithCustomToken("JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJub21lIjoiQW5kcmVhIiwiY29nbm9tZSI6ImxlbyIsImlhdCI6MTU0MzQyNDU3MCwiZXhwIjoxNTQzNDI0NTczfQ.x1QtbKuVprZjgPv9DaeGa7cnzqtZRivgf5Dhv36qNG8");
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
</script>
|
|
47
|
-
|
|
48
|
-
</body>
|
|
49
|
-
</html>
|
package/src/test-buttons.html
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>Tilechat Widget deprecated</title>
|
|
6
|
-
<base href="./">
|
|
7
|
-
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
8
|
-
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
|
|
9
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
10
|
-
<script>
|
|
11
|
-
// Handler for .ready() called.
|
|
12
|
-
window.tiledeskSettings =
|
|
13
|
-
{
|
|
14
|
-
projectid: "5b55e806c93dde00143163dd",
|
|
15
|
-
development: true,
|
|
16
|
-
calloutTimer: 10,
|
|
17
|
-
userFullname: "Dario",
|
|
18
|
-
userEmail: "czone555@gmail.com",
|
|
19
|
-
welcomeTitle: "Benvenuti su questa chat",
|
|
20
|
-
welcomeMsg: "Come possiamo aiutarti?",
|
|
21
|
-
logoChat: "http://serataromanticaroma.it/wp-content/uploads/2018/09/Logo-bianco-04.png",
|
|
22
|
-
startFromHome: true,
|
|
23
|
-
preChatForm: true,
|
|
24
|
-
autoStart: true
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
(function(d, s, id) {
|
|
28
|
-
var js, fjs = d.getElementsByTagName(s)[0];
|
|
29
|
-
if (d.getElementById(id)) return;
|
|
30
|
-
js = d.createElement(s);
|
|
31
|
-
js.id = id; js.async=!0;
|
|
32
|
-
js.src = "./tiledesk.js";
|
|
33
|
-
fjs.parentNode.insertBefore(js, fjs);
|
|
34
|
-
}(document, 'script', 'tiledesk-jssdk'));
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
localStorage.setItem("user_fullname", "Andrea from localStorage");
|
|
38
|
-
localStorage.setItem("user_email", "andrea.leo@f21.it");
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
window.tileDeskAsyncInit = function() {
|
|
42
|
-
window.tiledesk.on('onLoadParams', function(event_data) {
|
|
43
|
-
window.tiledeskSettings.welcomeMsg = " Hello at: " + new Date().toLocaleString();
|
|
44
|
-
window.tiledeskSettings.userFullname = localStorage.getItem("user_fullname");
|
|
45
|
-
window.tiledeskSettings.userEmail = localStorage.getItem("user_email");
|
|
46
|
-
window.tiledesk.show();
|
|
47
|
-
window.tiledesk.open();
|
|
48
|
-
//window.tiledesk.hide();
|
|
49
|
-
//window.tiledesk.open();
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
window.tiledesk.on('onBeforeMessageSend', function(event_data) {
|
|
53
|
-
var message = event_data.detail;
|
|
54
|
-
message.attributes.pagetitle = document.title;
|
|
55
|
-
message.attributes.userCompany = "Frontiere21";
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
window.tiledesk.on('onAfterMessageSend', function(event_data) {
|
|
59
|
-
// console.log("onAfterMessageSend called ", event_data);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
window.tiledesk.on('isLoggedIn', function(event_data) {
|
|
63
|
-
// console.log("isLoggedIn called ", event_data);
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
</script>
|
|
68
|
-
</head>
|
|
69
|
-
|
|
70
|
-
<style>
|
|
71
|
-
body {
|
|
72
|
-
background-color: antiquewhite;
|
|
73
|
-
}
|
|
74
|
-
a {
|
|
75
|
-
color:black;
|
|
76
|
-
background-color: brown;
|
|
77
|
-
text-decoration: chartreuse;
|
|
78
|
-
text-decoration-line: overline;
|
|
79
|
-
}
|
|
80
|
-
</style>
|
|
81
|
-
|
|
82
|
-
<body>
|
|
83
|
-
<a href="">test</a>
|
|
84
|
-
<button id="idShow">
|
|
85
|
-
SHOW
|
|
86
|
-
</button>
|
|
87
|
-
<button id="idHide">
|
|
88
|
-
HIDE
|
|
89
|
-
</button>
|
|
90
|
-
<button id="idOpen">
|
|
91
|
-
OPEN
|
|
92
|
-
</button>
|
|
93
|
-
<button id="idClose">
|
|
94
|
-
CLOSE
|
|
95
|
-
</button>
|
|
96
|
-
<button id="idAuth">
|
|
97
|
-
AUTH
|
|
98
|
-
</button>
|
|
99
|
-
|
|
100
|
-
<button id="preChatForm">
|
|
101
|
-
preChatForm
|
|
102
|
-
</button>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<script type="application/javascript">
|
|
106
|
-
$( document ).ready(function() {
|
|
107
|
-
|
|
108
|
-
var isOpenPrechatForm = true;
|
|
109
|
-
|
|
110
|
-
$( "#idShow" ).click(function() {
|
|
111
|
-
alert( "Handler for .click() idShow." );
|
|
112
|
-
window.tiledesk.show();
|
|
113
|
-
});
|
|
114
|
-
$( "#idHide" ).click(function() {
|
|
115
|
-
alert( "Handler for .click() idHide." );
|
|
116
|
-
window.tiledesk.hide();
|
|
117
|
-
});
|
|
118
|
-
$( "#idOpen" ).click(function() {
|
|
119
|
-
alert( "Handler for .click() idOpen." );
|
|
120
|
-
window.tiledesk.open();
|
|
121
|
-
});
|
|
122
|
-
$( "#idClose" ).click(function() {
|
|
123
|
-
alert( "Handler for .click() idClose." );
|
|
124
|
-
window.tiledesk.close();
|
|
125
|
-
});
|
|
126
|
-
$( "#idAuth" ).click(function() {
|
|
127
|
-
alert( "Handler for .click() idAuth." );
|
|
128
|
-
window.tiledesk.signInWithCustomToken("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQW5kcmVhIiwiZW1haWwiOiJhbmRyZWEubGVvQGZyb250aWVyZTIxLml0IiwiaWF0IjoxNTQwNDYwOTM2MzkzLCJleHRlcm5hbF9pZCI6IjEyMzQ1NiJ9.wD9YDI3hEXBipoQ7kUIPRqNybFNuXZb9OPEqkxLtJoY");
|
|
129
|
-
//window.tiledesk.signInAnonymous();
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
$( "#preChatForm" ).click(function() {
|
|
133
|
-
isOpenPrechatForm = !isOpenPrechatForm;
|
|
134
|
-
alert( "Handler for .click() isOpenPrechatForm. "+isOpenPrechatForm );
|
|
135
|
-
window.tiledesk.setPreChatForm(isOpenPrechatForm);
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
</script>
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
</body>
|
|
147
|
-
</html>
|