@tiledesk/tiledesk-whatsapp-connector 0.1.87 → 1.0.0
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/logs/app.log +150 -0
- package/package.json +1 -1
- package/template/configure.html +31 -25
package/logs/app.log
CHANGED
|
@@ -4695,3 +4695,153 @@ info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
|
4695
4695
|
info: (wab) Redis ready!
|
|
4696
4696
|
info: (wab) KVBaseMongo successfully connected.
|
|
4697
4697
|
info: (wab) Mongoose DB Connected
|
|
4698
|
+
error: uncaughtException: Missing variables: FB_APP_ID, FB_APP_SECRET, META_GRAPH_URL
|
|
4699
|
+
Error: Missing variables: FB_APP_ID, FB_APP_SECRET, META_GRAPH_URL
|
|
4700
|
+
at new WhatsappService (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js:12:19)
|
|
4701
|
+
at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js:148:25)
|
|
4702
|
+
at Module._compile (node:internal/modules/cjs/loader:1126:14)
|
|
4703
|
+
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
|
|
4704
|
+
at Module.load (node:internal/modules/cjs/loader:1004:32)
|
|
4705
|
+
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
|
|
4706
|
+
at Module.require (node:internal/modules/cjs/loader:1028:19)
|
|
4707
|
+
at require (node:internal/modules/cjs/helpers:102:18)
|
|
4708
|
+
at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js:33:25)
|
|
4709
|
+
at Module._compile (node:internal/modules/cjs/loader:1126:14) {"date":"Mon Aug 04 2025 18:39:46 GMT+0200 (Ora legale dell’Europa centrale)","error":{},"exception":true,"os":{"loadavg":[1.87548828125,2.18212890625,2.3271484375],"uptime":32389},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":19006456,"external":23254094,"heapTotal":56983552,"heapUsed":29086832,"rss":79560704},"pid":34810,"uid":501,"version":"v16.17.0"},"stack":"Error: Missing variables: FB_APP_ID, FB_APP_SECRET, META_GRAPH_URL\n at new WhatsappService (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js:12:19)\n at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js:148:25)\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 Module.require (node:internal/modules/cjs/loader:1028:19)\n at require (node:internal/modules/cjs/helpers:102:18)\n at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js:33:25)\n at Module._compile (node:internal/modules/cjs/loader:1126:14)","trace":[{"column":19,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js","function":"new WhatsappService","line":12,"method":null,"native":false},{"column":25,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js","function":null,"line":148,"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":19,"file":"node:internal/modules/cjs/loader","function":"Module.require","line":1028,"method":"require","native":false},{"column":18,"file":"node:internal/modules/cjs/helpers","function":"require","line":102,"method":null,"native":false},{"column":25,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js","function":null,"line":33,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1126,"method":"_compile","native":false}]}
|
|
4710
|
+
error: uncaughtException: Missing variables: FB_APP_ID, FB_APP_SECRET, GRAPH_URL
|
|
4711
|
+
Error: Missing variables: FB_APP_ID, FB_APP_SECRET, GRAPH_URL
|
|
4712
|
+
at new WhatsappService (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js:12:19)
|
|
4713
|
+
at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js:148:25)
|
|
4714
|
+
at Module._compile (node:internal/modules/cjs/loader:1126:14)
|
|
4715
|
+
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
|
|
4716
|
+
at Module.load (node:internal/modules/cjs/loader:1004:32)
|
|
4717
|
+
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
|
|
4718
|
+
at Module.require (node:internal/modules/cjs/loader:1028:19)
|
|
4719
|
+
at require (node:internal/modules/cjs/helpers:102:18)
|
|
4720
|
+
at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js:33:25)
|
|
4721
|
+
at Module._compile (node:internal/modules/cjs/loader:1126:14) {"date":"Mon Aug 04 2025 18:40:28 GMT+0200 (Ora legale dell’Europa centrale)","error":{},"exception":true,"os":{"loadavg":[1.80224609375,2.1103515625,2.2919921875],"uptime":32431},"process":{"argv":["/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js"],"cwd":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute","execPath":"/Users/johnny/.nvm/versions/node/v16.17.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":18943576,"external":23230606,"heapTotal":57245696,"heapUsed":29114952,"rss":82313216},"pid":35082,"uid":501,"version":"v16.17.0"},"stack":"Error: Missing variables: FB_APP_ID, FB_APP_SECRET, GRAPH_URL\n at new WhatsappService (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js:12:19)\n at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js:148:25)\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 Module.require (node:internal/modules/cjs/loader:1028:19)\n at require (node:internal/modules/cjs/helpers:102:18)\n at Object.<anonymous> (/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js:33:25)\n at Module._compile (node:internal/modules/cjs/loader:1126:14)","trace":[{"column":19,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js","function":"new WhatsappService","line":12,"method":null,"native":false},{"column":25,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/tiledesk/WhatsappService.js","function":null,"line":148,"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":19,"file":"node:internal/modules/cjs/loader","function":"Module.require","line":1028,"method":"require","native":false},{"column":18,"file":"node:internal/modules/cjs/helpers","function":"require","line":102,"method":null,"native":false},{"column":25,"file":"/Users/johnny/Documents/Tiledesk/tiledesk-whatsapp-connector/whatsappRoute/index.js","function":null,"line":33,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1126,"method":"_compile","native":false}]}
|
|
4722
|
+
info: (wab) Starting Whatsapp App
|
|
4723
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4724
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4725
|
+
info: (wab) BASE_URL: https://3f2a5d6f5bef.ngrok-free.app
|
|
4726
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4727
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
4728
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
4729
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
4730
|
+
info: (wab) FB_APP_ID is present
|
|
4731
|
+
info: (wab) CONFIGURATION_ID is present
|
|
4732
|
+
info: (wab api) Starting api route
|
|
4733
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4734
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4735
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4736
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
4737
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
4738
|
+
info: (wab) Redis ready!
|
|
4739
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
4740
|
+
info: (wab) Mongoose DB Connected
|
|
4741
|
+
warn: (wab) settings not found for waba: 102060005944594
|
|
4742
|
+
warn: (wab) settings not found for request: {"entry":[{"changes":[{"field":"messages","value":{"contacts":[{"profile":{"name":"Mike"},"wa_id":"554788021973"}],"messages":[{"from":"554788021973","id":"wamid.HBgMNTU0Nzg4MDIxOTczFQIAEhgUM0ZCQTNCNDQzQTZCQUUyQUVGMTEA","text":{"body":"#td856a5c60"},"timestamp":"1754237805","type":"text"}],"messaging_product":"whatsapp","metadata":{"display_phone_number":"390836308794","phone_number_id":"110894941712700"}}}],"id":"102060005944594"}],"object":"whatsapp_business_account"}
|
|
4743
|
+
warn: (wab) settings not found for waba: 102060005944594
|
|
4744
|
+
warn: (wab) settings not found for request: {"entry":[{"changes":[{"field":"messages","value":{"contacts":[{"profile":{"name":"Mike"},"wa_id":"554788021973"}],"messages":[{"from":"554788021973","id":"wamid.HBgMNTU0Nzg4MDIxOTczFQIAEhgUM0ZGMTIyODk4MkY0NkQwOTRFQjQA","text":{"body":"tdbc709ee3"},"timestamp":"1754237769","type":"text"}],"messaging_product":"whatsapp","metadata":{"display_phone_number":"390836308794","phone_number_id":"110894941712700"}}}],"id":"102060005944594"}],"object":"whatsapp_business_account"}
|
|
4745
|
+
warn: (wab) settings not found for waba: 102060005944594
|
|
4746
|
+
warn: (wab) settings not found for request: {"entry":[{"changes":[{"field":"messages","value":{"contacts":[{"profile":{"name":"Parisha"},"wa_id":"919873009434"}],"messages":[{"from":"919873009434","id":"wamid.HBgMOTE5ODczMDA5NDM0FQIAEhgUM0Y5NDE5RUM1QjQwOTA5MkZFMDQA","text":{"body":"??"},"timestamp":"1754137342","type":"text"}],"messaging_product":"whatsapp","metadata":{"display_phone_number":"390836308794","phone_number_id":"110894941712700"}}}],"id":"102060005944594"}],"object":"whatsapp_business_account"}
|
|
4747
|
+
warn: (wab) settings not found for waba: 102060005944594
|
|
4748
|
+
warn: (wab) settings not found for request: {"entry":[{"changes":[{"field":"messages","value":{"contacts":[{"profile":{"name":"Mike"},"wa_id":"554788021973"}],"messages":[{"from":"554788021973","id":"wamid.HBgMNTU0Nzg4MDIxOTczFQIAEhgUM0ZDQ0RGNTk3QkQ1MzM2Q0M1RkMA","text":{"body":"olá"},"timestamp":"1754237726","type":"text"}],"messaging_product":"whatsapp","metadata":{"display_phone_number":"390836308794","phone_number_id":"110894941712700"}}}],"id":"102060005944594"}],"object":"whatsapp_business_account"}
|
|
4749
|
+
warn: (wab) settings not found for waba: 102060005944594
|
|
4750
|
+
warn: (wab) settings not found for request: {"entry":[{"changes":[{"field":"messages","value":{"contacts":[{"profile":{"name":"Mike"},"wa_id":"554788021973"}],"messages":[{"from":"554788021973","id":"wamid.HBgMNTU0Nzg4MDIxOTczFQIAEhgUM0Y4NDNEMzE0NjczNzM3RUJFOTcA","text":{"body":"#td856a5c60"},"timestamp":"1754237859","type":"text"}],"messaging_product":"whatsapp","metadata":{"display_phone_number":"390836308794","phone_number_id":"110894941712700"}}}],"id":"102060005944594"}],"object":"whatsapp_business_account"}
|
|
4751
|
+
warn: (wab) settings not found for waba: 102060005944594
|
|
4752
|
+
warn: (wab) settings not found for request: {"entry":[{"changes":[{"field":"messages","value":{"contacts":[{"profile":{"name":"Mike"},"wa_id":"554788021973"}],"messages":[{"from":"554788021973","id":"wamid.HBgMNTU0Nzg4MDIxOTczFQIAEhgUM0ZCMkI3RjRCMUE0OURGQzk3NjQA","text":{"body":"#tdbc709ee3 Send me to start testing your bot"},"timestamp":"1754237726","type":"text"}],"messaging_product":"whatsapp","metadata":{"display_phone_number":"390836308794","phone_number_id":"110894941712700"}}}],"id":"102060005944594"}],"object":"whatsapp_business_account"}
|
|
4753
|
+
info: (wab) Starting Whatsapp App
|
|
4754
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4755
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4756
|
+
info: (wab) BASE_URL: https://3f2a5d6f5bef.ngrok-free.app
|
|
4757
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4758
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
4759
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
4760
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
4761
|
+
info: (wab) FB_APP_ID is present
|
|
4762
|
+
info: (wab) CONFIGURATION_ID is present
|
|
4763
|
+
info: (wab api) Starting api route
|
|
4764
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4765
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4766
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4767
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
4768
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
4769
|
+
info: (wab) Redis ready!
|
|
4770
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
4771
|
+
info: (wab) Mongoose DB Connected
|
|
4772
|
+
info: (wab) Starting Whatsapp App
|
|
4773
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4774
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4775
|
+
info: (wab) BASE_URL: https://3f2a5d6f5bef.ngrok-free.app
|
|
4776
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4777
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
4778
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
4779
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
4780
|
+
info: (wab) FB_APP_ID is present
|
|
4781
|
+
info: (wab) CONFIGURATION_ID is present
|
|
4782
|
+
info: (wab api) Starting api route
|
|
4783
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4784
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4785
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4786
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
4787
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
4788
|
+
info: (wab) Redis ready!
|
|
4789
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
4790
|
+
info: (wab) Mongoose DB Connected
|
|
4791
|
+
info: (wab) Starting Whatsapp App
|
|
4792
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4793
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4794
|
+
info: (wab) BASE_URL: https://3f2a5d6f5bef.ngrok-free.app
|
|
4795
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4796
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
4797
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
4798
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
4799
|
+
info: (wab) FB_APP_ID is present
|
|
4800
|
+
info: (wab) CONFIGURATION_ID is present
|
|
4801
|
+
info: (wab api) Starting api route
|
|
4802
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4803
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4804
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4805
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
4806
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
4807
|
+
info: (wab) Redis ready!
|
|
4808
|
+
info: (wab) Mongoose DB Connected
|
|
4809
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
4810
|
+
info: (wab) Starting Whatsapp App
|
|
4811
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4812
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4813
|
+
info: (wab) BASE_URL: https://3f2a5d6f5bef.ngrok-free.app
|
|
4814
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4815
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
4816
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
4817
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
4818
|
+
info: (wab) FB_APP_ID is present
|
|
4819
|
+
info: (wab) CONFIGURATION_ID is present
|
|
4820
|
+
info: (wab api) Starting api route
|
|
4821
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4822
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4823
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4824
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
4825
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
4826
|
+
info: (wab) Redis ready!
|
|
4827
|
+
info: (wab) Mongoose DB Connected
|
|
4828
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
4829
|
+
info: (wab) Starting Whatsapp App
|
|
4830
|
+
info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4831
|
+
info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4832
|
+
info: (wab) BASE_URL: https://3f2a5d6f5bef.ngrok-free.app
|
|
4833
|
+
info: (wab) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4834
|
+
info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
|
|
4835
|
+
info: (wab) AMQP_MANAGER_URL is present
|
|
4836
|
+
info: (wab) JOB_TOPIC_EXCHANGE is present
|
|
4837
|
+
info: (wab) FB_APP_ID is present
|
|
4838
|
+
info: (wab) CONFIGURATION_ID is present
|
|
4839
|
+
info: (wab api) Starting api route
|
|
4840
|
+
info: (wab api) GRAPH_URL: https://graph.facebook.com/v23.0/
|
|
4841
|
+
info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4842
|
+
info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
|
|
4843
|
+
info: (wab api) AMQP_MANAGER_URL is present
|
|
4844
|
+
info: (wab api) JOB_TOPIC_EXCHANGE is present
|
|
4845
|
+
info: (wab) Mongoose DB Connected
|
|
4846
|
+
info: (wab) KVBaseMongo successfully connected.
|
|
4847
|
+
info: (wab) Redis ready!
|
package/package.json
CHANGED
package/template/configure.html
CHANGED
|
@@ -513,36 +513,42 @@
|
|
|
513
513
|
</script>
|
|
514
514
|
|
|
515
515
|
<script>
|
|
516
|
-
document.getElementById('connection-type')
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
516
|
+
let connection_select = document.getElementById('connection-type');
|
|
517
|
+
if (connection_select) {
|
|
518
|
+
connection_select.addEventListener('change', function () {
|
|
519
|
+
const type = this.value; // "oauth" o "manual"
|
|
520
|
+
const params = new URLSearchParams(window.location.search);
|
|
521
|
+
params.set('type', type);
|
|
522
|
+
window.location.href = window.location.pathname + '?' + params.toString();
|
|
523
|
+
})
|
|
524
|
+
}
|
|
522
525
|
</script>
|
|
523
526
|
|
|
524
527
|
<script>
|
|
525
|
-
document.getElementById('department-select')
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
528
|
+
let department_select = document.getElementById('department-select');
|
|
529
|
+
if (department_select) {
|
|
530
|
+
department_select.addEventListener('change', function() {
|
|
531
|
+
document.getElementById('loader').style.display = 'flex';
|
|
532
|
+
const dep_id = this.value;
|
|
533
|
+
const params = new URLSearchParams(window.location.search);
|
|
534
|
+
|
|
535
|
+
fetch('/update/department?' + params, {
|
|
536
|
+
method: 'PUT',
|
|
537
|
+
headers: {
|
|
538
|
+
'Content-Type': 'application/json'
|
|
539
|
+
},
|
|
540
|
+
body: JSON.stringify({
|
|
541
|
+
department_id: dep_id
|
|
542
|
+
})
|
|
537
543
|
})
|
|
544
|
+
.then(res => {
|
|
545
|
+
document.getElementById('loader').style.display = 'none';
|
|
546
|
+
}).catch(err => {
|
|
547
|
+
document.getElementById('loader').innerHTML = '<p>Errore durante il caricamento</p>';
|
|
548
|
+
console.error("Error: ", err)
|
|
549
|
+
});
|
|
538
550
|
})
|
|
539
|
-
|
|
540
|
-
document.getElementById('loader').style.display = 'none';
|
|
541
|
-
}).catch(err => {
|
|
542
|
-
document.getElementById('loader').innerHTML = '<p>Errore durante il caricamento</p>';
|
|
543
|
-
console.error("Error: ", err)
|
|
544
|
-
});
|
|
545
|
-
})
|
|
551
|
+
}
|
|
546
552
|
</script>
|
|
547
553
|
|
|
548
554
|
<script>
|