fix(KBService): remove unnecessary skip variable in file processing logic
All checks were successful
GBCI / build (push) Successful in 1m30s
All checks were successful
GBCI / build (push) Successful in 1m30s
This commit is contained in:
parent
8d83dc214a
commit
2ee0f0f7ec
2 changed files with 32 additions and 34 deletions
|
|
@ -568,8 +568,6 @@ export class GBMinService {
|
||||||
})
|
})
|
||||||
.bind(min);
|
.bind(min);
|
||||||
|
|
||||||
GBLog.info(`Defining meeting. `);
|
|
||||||
|
|
||||||
GBServer.globals.server
|
GBServer.globals.server
|
||||||
.all(`/${min.instance.botId}/meeting-token`, async (req, res) => {
|
.all(`/${min.instance.botId}/meeting-token`, async (req, res) => {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -177,45 +177,45 @@ export class MainService {
|
||||||
const botName = subscription.botName;
|
const botName = subscription.botName;
|
||||||
const language = subscription['customerLanguage'] || 'en-us';
|
const language = subscription['customerLanguage'] || 'en-us';
|
||||||
|
|
||||||
const webUrl = this.gboService.shareWithEmail(`process.env.DRIVE_ORG_PREFIX${botName}.gbai`, '/');
|
const webUrl = this.gboService.shareWithEmail(`${process.env.DRIVE_ORG_PREFIX}${botName}.gbai`, '/');
|
||||||
|
|
||||||
urlJoin(process.env.DRIVE_WEB, 'browser',);
|
urlJoin(process.env.DRIVE_WEB, 'browser',);
|
||||||
const botUrl = urlJoin(process.env.BOT_URL, botName);
|
const botUrl = urlJoin(process.env.BOT_URL, botName);
|
||||||
const botId = instance.botId;
|
const botId = instance.botId;
|
||||||
|
|
||||||
let message = `Seu bot ${botName} está disponível no endereço:
|
// let message = `Seu bot ${botName} está disponível no endereço:
|
||||||
<br/><a href="${urlJoin(process.env.BOT_URL, botName)}">${urlJoin(process.env.BOT_URL, botName)}</a>.
|
// <br/><a href="${urlJoin(process.env.BOT_URL, botName)}">${urlJoin(process.env.BOT_URL, botName)}</a>.
|
||||||
<br/>
|
// <br/>
|
||||||
<br/>Os pacotes do General Bots (ex: .gbkb, .gbtheme) para seu Bot devem ser editados no repositório de pacotes:
|
// <br/>Os pacotes do General Bots (ex: .gbkb, .gbtheme) para seu Bot devem ser editados no repositório de pacotes:
|
||||||
<br/>
|
// <br/>
|
||||||
<br/><a href="${webUrl}">${webUrl}</a>.
|
// <br/><a href="${webUrl}">${webUrl}</a>.
|
||||||
<br/>
|
// <br/>
|
||||||
<br/> Digite /publish do seu WhatsApp para publicar os pacotes. Seu número está autorizado na pasta ${botName}.gbot/Config.xlsx
|
// <br/> Digite /publish do seu WhatsApp para publicar os pacotes. Seu número está autorizado na pasta ${botName}.gbot/Config.xlsx
|
||||||
<br/>
|
// <br/>
|
||||||
<br/>O arquivo .zip em anexo pode ser importado no Teams conforme instruções em:
|
// <br/>O arquivo .zip em anexo pode ser importado no Teams conforme instruções em:
|
||||||
<br/><a href="https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/deploy-and-publish/apps-upload">https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/deploy-and-publish/apps-upload</a>.
|
// <br/><a href="https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/deploy-and-publish/apps-upload">https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/deploy-and-publish/apps-upload</a>.
|
||||||
<br/>
|
// <br/>
|
||||||
<br/>Log in to the Teams client with your Microsoft 365 account.
|
// <br/>Log in to the Teams client with your Microsoft 365 account.
|
||||||
<br/>Select Apps and choose Upload a custom app.
|
// <br/>Select Apps and choose Upload a custom app.
|
||||||
<br/>Select this .zip file attached to this e-mail. An install dialog displays.
|
// <br/>Select this .zip file attached to this e-mail. An install dialog displays.
|
||||||
<br/>Add your Bot to Teams.
|
// <br/>Add your Bot to Teams.
|
||||||
<br/>
|
// <br/>
|
||||||
<br/>Atenciosamente,
|
// <br/>Atenciosamente,
|
||||||
<br/>General Bots Online.
|
// <br/>General Bots Online.
|
||||||
<br/><a href="https://gb.pragmatismo.com.br">https://gb.pragmatismo.com.br</a>
|
// <br/><a href="https://gb.pragmatismo.com.br">https://gb.pragmatismo.com.br</a>
|
||||||
<br/>
|
// <br/>
|
||||||
<br/>E-mail remetido por Pragmatismo.
|
// <br/>E-mail remetido por Pragmatismo.
|
||||||
<br/>`;
|
// <br/>`;
|
||||||
|
|
||||||
message = await min.conversationalService.translate(
|
// message = await min.conversationalService.translate(
|
||||||
min,
|
// min,
|
||||||
message,
|
// message,
|
||||||
language
|
// language
|
||||||
);
|
// );
|
||||||
GBLog.info('Sending e-mails....');
|
// GBLog.info('Sending e-mails....');
|
||||||
|
|
||||||
const dk = new DialogKeywords();
|
// const dk = new DialogKeywords();
|
||||||
await dk.sendEmail({ pid: 0, to: subscription.customerEmail, subject: `Seu bot ${botName} está pronto!`, body: message });
|
// await dk.sendEmail({ pid: 0, to: subscription.customerEmail, subject: `Seu bot ${botName} está pronto!`, body: message });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue