# Resolved:
#	deploy/default.gbui/public/index.html
This commit is contained in:
Jorge Ramos 2018-08-18 23:51:26 -03:00
commit d8080f9696
4 changed files with 6 additions and 5 deletions

View file

@ -141,7 +141,7 @@ export class GBMinService {
let options = {
url:
"https://westus.api.cognitive.microsoft.com/sts/v1.0/issueToken",
"https://api.cognitive.microsoft.com/sts/v1.0/issueToken",
method: "POST",
headers: {
"Ocp-Apim-Subscription-Key": instance.speechKey
@ -191,9 +191,9 @@ export class GBMinService {
GBKBPackage, GBCustomerSatisfactionPackage, GBWhatsappPackage].forEach(sysPackage => {
logger.trace(`Loading sys package: ${sysPackage.name}...`);
let p = Object.create(sysPackage.prototype) as IGBPackage;
p.loadBot(min);
e.sysPackages.push(p);
//e.sysPackages.push(p);
if (sysPackage.name === "GBWhatsappPackage") {
p.loadBot(min);
let url = "/instances/:botId/whatsapp";
server.post(url, (req, res) => {
p["channel"].received(req, res);

View file

@ -52,7 +52,7 @@
</head>
<body style="background-color: lightgrey;">
<div id="root" class="loader"></div>
<div id="root"></div>
</body>
</html>

View file

@ -204,7 +204,7 @@ export class WhatsappDirectLine extends GBService {
// Ignore own messages.
// TODO: this.botId instead of "general-bot-9672a8d3"
activities = activities.filter((m) => { return m.from.id === "general-bot-9672a8d3" && m.type === "message" });
activities = activities.filter((m) => { return (m.from.id === "GeneralBot-Netshoes" || m.from.id.includes("4vqtLx3cFJgBAELkRib2K8")) && m.type === "message" });
if (activities.length) {

View file

@ -5,6 +5,7 @@
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"keyofStringsOnly": true,
"mapRoot": "./dist/",
"module": "commonjs",
"moduleResolution": "node",