diff --git a/packages/admin.gbapp/dialogs/AdminDialog.ts b/packages/admin.gbapp/dialogs/AdminDialog.ts index 806d47651..f125a9e62 100644 --- a/packages/admin.gbapp/dialogs/AdminDialog.ts +++ b/packages/admin.gbapp/dialogs/AdminDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/admin.gbapp/index.ts b/packages/admin.gbapp/index.ts index 6beaf2a78..dc934b0a2 100644 --- a/packages/admin.gbapp/index.ts +++ b/packages/admin.gbapp/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/admin.gbapp/models/AdminModel.ts b/packages/admin.gbapp/models/AdminModel.ts index 3bf594216..86954d99d 100644 --- a/packages/admin.gbapp/models/AdminModel.ts +++ b/packages/admin.gbapp/models/AdminModel.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/admin.gbapp/services/GBAdminService.ts b/packages/admin.gbapp/services/GBAdminService.ts index 40274ebbe..88ce52366 100644 --- a/packages/admin.gbapp/services/GBAdminService.ts +++ b/packages/admin.gbapp/services/GBAdminService.ts @@ -7,7 +7,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/analytics.gblib/index.ts b/packages/analytics.gblib/index.ts index c21f20b3d..c4a75aa84 100644 --- a/packages/analytics.gblib/index.ts +++ b/packages/analytics.gblib/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/analytics.gblib/models/index.ts b/packages/analytics.gblib/models/index.ts index da3d1dd1e..84c926bf2 100644 --- a/packages/analytics.gblib/models/index.ts +++ b/packages/analytics.gblib/models/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/analytics.gblib/services/AnalyticsService.ts b/packages/analytics.gblib/services/AnalyticsService.ts index 0d1b9c0a9..bb16cd2cf 100644 --- a/packages/analytics.gblib/services/AnalyticsService.ts +++ b/packages/analytics.gblib/services/AnalyticsService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/azuredeployer.gbapp/dialogs/StartDialog.ts b/packages/azuredeployer.gbapp/dialogs/StartDialog.ts index e3f2d48c9..ab00d1952 100644 --- a/packages/azuredeployer.gbapp/dialogs/StartDialog.ts +++ b/packages/azuredeployer.gbapp/dialogs/StartDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/azuredeployer.gbapp/index.ts b/packages/azuredeployer.gbapp/index.ts index 49eb57ef1..6ec9646d9 100644 --- a/packages/azuredeployer.gbapp/index.ts +++ b/packages/azuredeployer.gbapp/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/azuredeployer.gbapp/services/AzureDeployerService.ts b/packages/azuredeployer.gbapp/services/AzureDeployerService.ts index e6012cc09..7c9360473 100644 --- a/packages/azuredeployer.gbapp/services/AzureDeployerService.ts +++ b/packages/azuredeployer.gbapp/services/AzureDeployerService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | @@ -53,6 +53,7 @@ import MicrosoftGraph from '@microsoft/microsoft-graph-client'; import { Spinner } from 'cli-spinner'; import * as publicIp from 'public-ip'; import { AccessToken, TokenCredential } from '@azure/core-auth'; +import { GBUtil } from '../../../src/util.js'; const WebSiteResponseTimeout = 900; const iconUrl = 'https://github.com/pragmatismo-io/BotServer/blob/master/docs/images/generalbots-logo-squared.png'; @@ -453,11 +454,6 @@ export class AzureDeployerService implements IGBInstallationDeployer { // const nlpa = await this.createNLPAuthoring(name, `${name}-nlpa`, instance.cloudLocation); // instance.nlpEndpoint = nlp.properties.endpoint; - const sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; GBLog.info(`Deploying Bot...`); instance.botEndpoint = 'TODO: remove this column.'; @@ -479,7 +475,7 @@ export class AzureDeployerService implements IGBInstallationDeployer { ); GBLog.info(`Waiting one minute to finish NLP service and keys creation...`); - await sleep(60000); + await GBUtil.sleep(60000); // keys = await this.cognitiveClient.accounts.listKeys(name, textAnalytics.name); // instance.textAnalyticsKey = keys.key1; keys = await this.cognitiveClient.accounts.listKeys(name, spellChecker.name); @@ -585,13 +581,8 @@ export class AzureDeployerService implements IGBInstallationDeployer { return; } - const sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; - await sleep(30000); + await GBUtil.sleep(30000); // MSFT has changed without warnings. diff --git a/packages/basic.gblib/index.ts b/packages/basic.gblib/index.ts index 24ee30933..6abf12153 100644 --- a/packages/basic.gblib/index.ts +++ b/packages/basic.gblib/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/basic.gblib/models/Model.ts b/packages/basic.gblib/models/Model.ts index 2f81967fb..7e205a7be 100644 --- a/packages/basic.gblib/models/Model.ts +++ b/packages/basic.gblib/models/Model.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/basic.gblib/services/ChartServices.ts b/packages/basic.gblib/services/ChartServices.ts index fd54bb17b..4c8c8c9eb 100644 --- a/packages/basic.gblib/services/ChartServices.ts +++ b/packages/basic.gblib/services/ChartServices.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/basic.gblib/services/DebuggerService.ts b/packages/basic.gblib/services/DebuggerService.ts index 8c5bcdc3b..cb46aebfe 100644 --- a/packages/basic.gblib/services/DebuggerService.ts +++ b/packages/basic.gblib/services/DebuggerService.ts @@ -7,7 +7,7 @@ | | | ( )_) | | | (_) \___/' | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model,this program can be used either | diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index b673e9fc9..3ca57210c 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -7,7 +7,7 @@ | | | ( )_) | | | (_) \___/' | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model,this program can be used either | @@ -60,6 +60,7 @@ import { ActivityTypes } from 'botbuilder'; const { List, Buttons } = pkg; import mime from 'mime-types'; import { GBLogEx } from '../../core.gbapp/services/GBLogEx.js'; +import { GBUtil } from '../../../src/util.js'; /** * Default check interval for user replay @@ -861,16 +862,11 @@ export class DialogKeywords { // Wait for the user to answer. - let sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; min.cbMap[userId] = {}; min.cbMap[userId]['promise'] = '!GBHEAR'; while (min.cbMap[userId].promise === '!GBHEAR') { - await sleep(DEFAULT_HEAR_POLL_INTERVAL); + await GBUtil.sleep(DEFAULT_HEAR_POLL_INTERVAL); } const answer = min.cbMap[userId].promise; diff --git a/packages/basic.gblib/services/GBVMService.ts b/packages/basic.gblib/services/GBVMService.ts index 21574f695..b09b10dc7 100644 --- a/packages/basic.gblib/services/GBVMService.ts +++ b/packages/basic.gblib/services/GBVMService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/basic.gblib/services/ImageProcessingServices.ts b/packages/basic.gblib/services/ImageProcessingServices.ts index 6f97b9094..5a2d784d6 100644 --- a/packages/basic.gblib/services/ImageProcessingServices.ts +++ b/packages/basic.gblib/services/ImageProcessingServices.ts @@ -7,7 +7,7 @@ | | | ( )_) | | | (_) \___/' | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model,this program can be used either | diff --git a/packages/basic.gblib/services/KeywordsExpressions.ts b/packages/basic.gblib/services/KeywordsExpressions.ts index e5c774ac7..ad1f4e819 100644 --- a/packages/basic.gblib/services/KeywordsExpressions.ts +++ b/packages/basic.gblib/services/KeywordsExpressions.ts @@ -7,7 +7,7 @@ | | | ( )_) | | | (_) \__/' | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model,this program can be used either | diff --git a/packages/basic.gblib/services/ScheduleServices.ts b/packages/basic.gblib/services/ScheduleServices.ts index fa3da1327..b3c2a6dd8 100644 --- a/packages/basic.gblib/services/ScheduleServices.ts +++ b/packages/basic.gblib/services/ScheduleServices.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/basic.gblib/services/SystemKeywords.ts b/packages/basic.gblib/services/SystemKeywords.ts index 03d9f512a..fe33e2553 100644 --- a/packages/basic.gblib/services/SystemKeywords.ts +++ b/packages/basic.gblib/services/SystemKeywords.ts @@ -6,7 +6,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | @@ -71,6 +71,7 @@ import { } from '@azure/storage-blob'; import { md5 } from 'js-md5'; +import { GBUtil } from '../../../src/util.js'; /** * @fileoverview General Bots server core. @@ -1729,25 +1730,20 @@ export class SystemKeywords { result = await fetch(url, options); - const sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; if (result.status === 401) { GBLog.info(`Waiting 5 secs. before retrynig HTTP 401 GET: ${url}`); - await sleep(5 * 1000); + await GBUtil.sleep(5 * 1000); throw new Error(`BASIC: HTTP:${result.status} retry: ${result.statusText}.`); } if (result.status === 429) { GBLog.info(`Waiting 1min. before retrying HTTP 429 GET: ${url}`); - await sleep(60 * 1000); + await GBUtil.sleep(60 * 1000); throw new Error(`BASIC: HTTP:${result.status} retry: ${result.statusText}.`); } if (result.status === 503) { GBLog.info(`Waiting 1h before retrynig GET 503: ${url}`); - await sleep(60 * 60 * 1000); + await GBUtil.sleep(60 * 60 * 1000); throw new Error(`BASIC: HTTP:${result.status} retry: ${result.statusText}.`); } diff --git a/packages/basic.gblib/services/WebAutomationServices.ts b/packages/basic.gblib/services/WebAutomationServices.ts index 65c6cbff8..e81f45691 100644 --- a/packages/basic.gblib/services/WebAutomationServices.ts +++ b/packages/basic.gblib/services/WebAutomationServices.ts @@ -7,7 +7,7 @@ | | | ( )_) | | | (_) \___/' | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model,this program can be used either | diff --git a/packages/console.gblib/index.ts b/packages/console.gblib/index.ts index 094389fd5..8e0885470 100644 --- a/packages/console.gblib/index.ts +++ b/packages/console.gblib/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/dialogs/BroadcastDialog.ts b/packages/core.gbapp/dialogs/BroadcastDialog.ts index 9d1891423..e6037a4fa 100644 --- a/packages/core.gbapp/dialogs/BroadcastDialog.ts +++ b/packages/core.gbapp/dialogs/BroadcastDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/dialogs/LanguageDialog.ts b/packages/core.gbapp/dialogs/LanguageDialog.ts index f940f2f09..804d502ff 100644 --- a/packages/core.gbapp/dialogs/LanguageDialog.ts +++ b/packages/core.gbapp/dialogs/LanguageDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/dialogs/SwitchBot.ts b/packages/core.gbapp/dialogs/SwitchBot.ts index c3d2a0389..45b100dcd 100644 --- a/packages/core.gbapp/dialogs/SwitchBot.ts +++ b/packages/core.gbapp/dialogs/SwitchBot.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/dialogs/WelcomeDialog.ts b/packages/core.gbapp/dialogs/WelcomeDialog.ts index 22b81579c..bf25c9411 100644 --- a/packages/core.gbapp/dialogs/WelcomeDialog.ts +++ b/packages/core.gbapp/dialogs/WelcomeDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/dialogs/WhoAmIDialog.ts b/packages/core.gbapp/dialogs/WhoAmIDialog.ts index 61661b179..ebd6d21eb 100644 --- a/packages/core.gbapp/dialogs/WhoAmIDialog.ts +++ b/packages/core.gbapp/dialogs/WhoAmIDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/index.ts b/packages/core.gbapp/index.ts index 76227050f..47e85c26f 100644 --- a/packages/core.gbapp/index.ts +++ b/packages/core.gbapp/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/models/GBError.ts b/packages/core.gbapp/models/GBError.ts index b6a303345..8b10158a9 100644 --- a/packages/core.gbapp/models/GBError.ts +++ b/packages/core.gbapp/models/GBError.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/models/GBModel.ts b/packages/core.gbapp/models/GBModel.ts index 2f1ce44d8..26945ea17 100644 --- a/packages/core.gbapp/models/GBModel.ts +++ b/packages/core.gbapp/models/GBModel.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/services/GBConfigService.ts b/packages/core.gbapp/services/GBConfigService.ts index 310e0b43f..f2f27e783 100644 --- a/packages/core.gbapp/services/GBConfigService.ts +++ b/packages/core.gbapp/services/GBConfigService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/services/GBConversationalService.ts b/packages/core.gbapp/services/GBConversationalService.ts index 0dc702602..d907cabe4 100644 --- a/packages/core.gbapp/services/GBConversationalService.ts +++ b/packages/core.gbapp/services/GBConversationalService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | @@ -61,6 +61,7 @@ import TextToSpeechV1 from 'ibm-watson/text-to-speech/v1.js'; import { IamAuthenticator } from 'ibm-watson/auth/index.js'; import * as marked from 'marked'; import Translate from '@google-cloud/translate'; +import { GBUtil } from '../../../src/util.js'; /** * Provides basic services for handling messages and dispatching to back-end @@ -613,11 +614,6 @@ export class GBConversationalService { // tslint:enable:no-unsafe-any public async sendMarkdownToMobile(min: GBMinInstance, step: GBDialogStep, mobile: string, text: string) { - let sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; enum State { InText, InImage, @@ -681,7 +677,7 @@ export class GBConversationalService { } else { await this.sendToMobile(min, mobile, currentText, conversationId); } - await sleep(3000); + await GBUtil.sleep(3000); currentText = ''; state = State.InText; } else if (c === '!') { @@ -701,7 +697,7 @@ export class GBConversationalService { } else { await this.sendToMobile(min, mobile, currentText, conversationId); } - await sleep(3000); + await GBUtil.sleep(3000); } currentText = ''; state = State.InEmbedAddressBegin; @@ -715,7 +711,7 @@ export class GBConversationalService { ? currentEmbedUrl : urlJoin(GBServer.globals.publicAddress, currentEmbedUrl); await this.sendFile(min, step, mobile, url, null); - await sleep(5000); + await GBUtil.sleep(5000); currentEmbedUrl = ''; } else { currentEmbedUrl = currentEmbedUrl.concat(c); @@ -734,7 +730,7 @@ export class GBConversationalService { } else { await this.sendToMobile(min, mobile, currentText, conversationId); } - await sleep(2900); + await GBUtil.sleep(2900); } currentText = ''; state = State.InImageCaption; @@ -763,7 +759,7 @@ export class GBConversationalService { : urlJoin(GBServer.globals.publicAddress, currentImage); await this.sendFile(min, step, mobile, url, currentCaption); currentCaption = ''; - await sleep(4500); + await GBUtil.sleep(4500); currentImage = ''; } else { currentImage = currentImage.concat(c); @@ -1206,12 +1202,6 @@ export class GBConversationalService { public async broadcast(min: GBMinInstance, message: string) { GBLog.info(`Sending broadcast notifications...`); - let sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; - const service = new SecService(); const users = await service.getAllUsers(min.instance.instanceId); await CollectionUtil.asyncForEach(users, async user => { diff --git a/packages/core.gbapp/services/GBCoreService.ts b/packages/core.gbapp/services/GBCoreService.ts index 895b332a8..040cff544 100644 --- a/packages/core.gbapp/services/GBCoreService.ts +++ b/packages/core.gbapp/services/GBCoreService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/services/GBDeployer.ts b/packages/core.gbapp/services/GBDeployer.ts index df5b7ae7a..d47478776 100644 --- a/packages/core.gbapp/services/GBDeployer.ts +++ b/packages/core.gbapp/services/GBDeployer.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | @@ -38,8 +38,6 @@ import Path from 'path'; import express from 'express'; import child_process from 'child_process'; import rimraf from 'rimraf'; - -import vhost from 'vhost'; import urlJoin from 'url-join'; import Fs from 'fs'; import { GBError, GBLog, GBMinInstance, IGBCoreService, IGBDeployer, IGBInstance, IGBPackage } from 'botlib'; @@ -57,6 +55,7 @@ import { TeamsService } from '../../teams.gblib/services/TeamsService.js'; import MicrosoftGraph from '@microsoft/microsoft-graph-client'; import { GBLogEx } from './GBLogEx.js'; import { DialogKeywords } from '../../basic.gblib/services/DialogKeywords.js'; +import { GBUtil } from '../../../src/util.js'; /** * Deployer service for bots, themes, ai and more. @@ -330,12 +329,7 @@ export class GBDeployer implements IGBDeployer { if (res.status !== 200 && res.status !== 202) { throw res.bodyAsText; } - const sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; - sleep(5000); + GBUtil.sleep(5000); } /** diff --git a/packages/core.gbapp/services/GBImporterService.ts b/packages/core.gbapp/services/GBImporterService.ts index 20f762bae..374fc32bd 100644 --- a/packages/core.gbapp/services/GBImporterService.ts +++ b/packages/core.gbapp/services/GBImporterService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/services/GBLogEx.ts b/packages/core.gbapp/services/GBLogEx.ts index b86873d38..e49ec55e3 100644 --- a/packages/core.gbapp/services/GBLogEx.ts +++ b/packages/core.gbapp/services/GBLogEx.ts @@ -7,7 +7,7 @@ | | | ( )_) | | | (_) \___/' | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/core.gbapp/services/GBMinService.ts b/packages/core.gbapp/services/GBMinService.ts index a4723a84a..79b1d6649 100644 --- a/packages/core.gbapp/services/GBMinService.ts +++ b/packages/core.gbapp/services/GBMinService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | @@ -92,6 +92,7 @@ import { createKoaHttpServer } from '../../basic.gblib/index.js'; import { DebuggerService } from '../../basic.gblib/services/DebuggerService.js'; import { ImageProcessingServices } from '../../basic.gblib/services/ImageProcessingServices.js'; import { ScheduleServices } from '../../basic.gblib/services/ScheduleServices.js'; +import { GBUtil } from '../../../src/util.js'; /** * Minimal service layer for a bot and encapsulation of BOT Framework calls. @@ -369,11 +370,6 @@ export class GBMinService { GBServer.globals.debugConversationId = conversationId; const steps = process.env.TEST_MESSAGE.split(';'); - const sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; await CollectionUtil.asyncForEach(steps, async step => { client.apis.Conversations.Conversations_PostActivity({ @@ -389,7 +385,7 @@ export class GBMinService { } }); - await sleep(3000); + await GBUtil.sleep(3000); }); // Generates MS Teams manifest. diff --git a/packages/core.gbapp/services/GBSSR.ts b/packages/core.gbapp/services/GBSSR.ts index e386ec364..32c671f6b 100644 --- a/packages/core.gbapp/services/GBSSR.ts +++ b/packages/core.gbapp/services/GBSSR.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | @@ -48,6 +48,7 @@ import urlJoin from 'url-join'; import { GBDeployer } from './GBDeployer.js'; import { GBMinService } from './GBMinService.js'; import { DialogKeywords } from '../../basic.gblib/services/DialogKeywords.js'; +import { GBUtil } from '../../../src/util.js'; const puppeteer = require('puppeteer-extra'); const hidden = require('puppeteer-extra-plugin-stealth'); const { executablePath } = require('puppeteer'); @@ -178,13 +179,7 @@ export class GBSSR { waitUntil: 'networkidle0' }); - const sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; - - await sleep(6000); + await GBUtil.sleep(6000); // Inject on page to relative resources load properly. diff --git a/packages/customer-satisfaction.gbapp/dialogs/FeedbackDialog.ts b/packages/customer-satisfaction.gbapp/dialogs/FeedbackDialog.ts index 88c61079a..a44e47329 100644 --- a/packages/customer-satisfaction.gbapp/dialogs/FeedbackDialog.ts +++ b/packages/customer-satisfaction.gbapp/dialogs/FeedbackDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/customer-satisfaction.gbapp/dialogs/QualityDialog.ts b/packages/customer-satisfaction.gbapp/dialogs/QualityDialog.ts index e3769e237..4d56128e0 100644 --- a/packages/customer-satisfaction.gbapp/dialogs/QualityDialog.ts +++ b/packages/customer-satisfaction.gbapp/dialogs/QualityDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | @@ -86,12 +86,6 @@ export class QualityDialog extends IGBDialog { content: Messages[locale].great_thanks } }); - let sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; - await service.insertQuestionAlternate(min.instance.instanceId, user.lastQuestion, user.lastQuestionId); // Updates values to perform Bot Analytics. diff --git a/packages/customer-satisfaction.gbapp/index.ts b/packages/customer-satisfaction.gbapp/index.ts index 1e1a7db1e..320ab3aad 100644 --- a/packages/customer-satisfaction.gbapp/index.ts +++ b/packages/customer-satisfaction.gbapp/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/customer-satisfaction.gbapp/models/index.ts b/packages/customer-satisfaction.gbapp/models/index.ts index 4e080fc19..78cab35e6 100644 --- a/packages/customer-satisfaction.gbapp/models/index.ts +++ b/packages/customer-satisfaction.gbapp/models/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/customer-satisfaction.gbapp/services/CSService.ts b/packages/customer-satisfaction.gbapp/services/CSService.ts index 847aa0efd..21cdec73d 100644 --- a/packages/customer-satisfaction.gbapp/services/CSService.ts +++ b/packages/customer-satisfaction.gbapp/services/CSService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/public/css/pragmatismo.css b/packages/default.gbui/public/css/pragmatismo.css index b27d10531..669913ba3 100644 --- a/packages/default.gbui/public/css/pragmatismo.css +++ b/packages/default.gbui/public/css/pragmatismo.css @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/public/index.html b/packages/default.gbui/public/index.html index 7c772e02d..bfec86e2e 100644 --- a/packages/default.gbui/public/index.html +++ b/packages/default.gbui/public/index.html @@ -7,7 +7,7 @@ | | | ( )_) | | | (_) \___/' | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/GBUIApp.js b/packages/default.gbui/src/GBUIApp.js index 8b176ffaf..24a395a65 100644 --- a/packages/default.gbui/src/GBUIApp.js +++ b/packages/default.gbui/src/GBUIApp.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/components/ChatPane.js b/packages/default.gbui/src/components/ChatPane.js index 124bbc814..2f4c2094e 100644 --- a/packages/default.gbui/src/components/ChatPane.js +++ b/packages/default.gbui/src/components/ChatPane.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/components/Footer.js b/packages/default.gbui/src/components/Footer.js index 6a6b249c7..7906e7fd7 100644 --- a/packages/default.gbui/src/components/Footer.js +++ b/packages/default.gbui/src/components/Footer.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/components/GBCss.js b/packages/default.gbui/src/components/GBCss.js index 3c095dcc7..3fed5db7c 100644 --- a/packages/default.gbui/src/components/GBCss.js +++ b/packages/default.gbui/src/components/GBCss.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/components/NavBar.js b/packages/default.gbui/src/components/NavBar.js index da363bf19..5dfec81c8 100644 --- a/packages/default.gbui/src/components/NavBar.js +++ b/packages/default.gbui/src/components/NavBar.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/components/SEO.js b/packages/default.gbui/src/components/SEO.js index 2fe3bfdb0..68b20b4e2 100644 --- a/packages/default.gbui/src/components/SEO.js +++ b/packages/default.gbui/src/components/SEO.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/components/SidebarMenu.js b/packages/default.gbui/src/components/SidebarMenu.js index fe54586f8..63f91d514 100644 --- a/packages/default.gbui/src/components/SidebarMenu.js +++ b/packages/default.gbui/src/components/SidebarMenu.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/index.js b/packages/default.gbui/src/index.js index 5b999b2e3..964b71963 100644 --- a/packages/default.gbui/src/index.js +++ b/packages/default.gbui/src/index.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/players/GBBulletPlayer.js b/packages/default.gbui/src/players/GBBulletPlayer.js index da617089a..d255e547a 100644 --- a/packages/default.gbui/src/players/GBBulletPlayer.js +++ b/packages/default.gbui/src/players/GBBulletPlayer.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/players/GBImagePlayer.js b/packages/default.gbui/src/players/GBImagePlayer.js index 2db965284..5d7a89472 100644 --- a/packages/default.gbui/src/players/GBImagePlayer.js +++ b/packages/default.gbui/src/players/GBImagePlayer.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/players/GBLoginPlayer.js b/packages/default.gbui/src/players/GBLoginPlayer.js index 25e2fafb6..42883a5d8 100644 --- a/packages/default.gbui/src/players/GBLoginPlayer.js +++ b/packages/default.gbui/src/players/GBLoginPlayer.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/players/GBMarkdownPlayer.js b/packages/default.gbui/src/players/GBMarkdownPlayer.js index c08d92871..7ffdfbf6e 100644 --- a/packages/default.gbui/src/players/GBMarkdownPlayer.js +++ b/packages/default.gbui/src/players/GBMarkdownPlayer.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/players/GBUrlPlayer.js b/packages/default.gbui/src/players/GBUrlPlayer.js index 813bff28e..c02ba1366 100644 --- a/packages/default.gbui/src/players/GBUrlPlayer.js +++ b/packages/default.gbui/src/players/GBUrlPlayer.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/default.gbui/src/players/GBVideoPlayer.js b/packages/default.gbui/src/players/GBVideoPlayer.js index 70a2c0d66..d8d497a51 100644 --- a/packages/default.gbui/src/players/GBVideoPlayer.js +++ b/packages/default.gbui/src/players/GBVideoPlayer.js @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/google-chat.gblib/index.ts b/packages/google-chat.gblib/index.ts index 236c1e195..64c94ee65 100644 --- a/packages/google-chat.gblib/index.ts +++ b/packages/google-chat.gblib/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/google-chat.gblib/services/GoogleChatDirectLine.ts b/packages/google-chat.gblib/services/GoogleChatDirectLine.ts index df3136aec..65b339c1b 100644 --- a/packages/google-chat.gblib/services/GoogleChatDirectLine.ts +++ b/packages/google-chat.gblib/services/GoogleChatDirectLine.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/gpt.gblib/index.ts b/packages/gpt.gblib/index.ts index b973b57f5..9afc57d4a 100644 --- a/packages/gpt.gblib/index.ts +++ b/packages/gpt.gblib/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/gpt.gblib/models/Model.ts b/packages/gpt.gblib/models/Model.ts index 1682f909d..1e4e0c90f 100644 --- a/packages/gpt.gblib/models/Model.ts +++ b/packages/gpt.gblib/models/Model.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/gpt.gblib/services/ChatServices.ts b/packages/gpt.gblib/services/ChatServices.ts index 0667693d3..e23c843c0 100644 --- a/packages/gpt.gblib/services/ChatServices.ts +++ b/packages/gpt.gblib/services/ChatServices.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/gpt.gblib/services/CodeServices.ts b/packages/gpt.gblib/services/CodeServices.ts index ed8ad6d9f..a6b07608f 100644 --- a/packages/gpt.gblib/services/CodeServices.ts +++ b/packages/gpt.gblib/services/CodeServices.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/gpt.gblib/services/ImageServices.ts b/packages/gpt.gblib/services/ImageServices.ts index 1ed689057..1112ce9c6 100644 --- a/packages/gpt.gblib/services/ImageServices.ts +++ b/packages/gpt.gblib/services/ImageServices.ts @@ -7,7 +7,7 @@ | | | ( )_) | | | (_) \___/' | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model,this program can be used either | diff --git a/packages/hubspot.gblib/index.ts b/packages/hubspot.gblib/index.ts index 843a40f74..49b398ec4 100644 --- a/packages/hubspot.gblib/index.ts +++ b/packages/hubspot.gblib/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/hubspot.gblib/services/HubSpotServices.ts b/packages/hubspot.gblib/services/HubSpotServices.ts index 0c59ef431..980b497ff 100644 --- a/packages/hubspot.gblib/services/HubSpotServices.ts +++ b/packages/hubspot.gblib/services/HubSpotServices.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/kb.gbapp/dialogs/AskDialog.ts b/packages/kb.gbapp/dialogs/AskDialog.ts index bcd87ffac..23c5905a6 100644 --- a/packages/kb.gbapp/dialogs/AskDialog.ts +++ b/packages/kb.gbapp/dialogs/AskDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/kb.gbapp/dialogs/FaqDialog.ts b/packages/kb.gbapp/dialogs/FaqDialog.ts index ae879187b..2c65d8c2b 100644 --- a/packages/kb.gbapp/dialogs/FaqDialog.ts +++ b/packages/kb.gbapp/dialogs/FaqDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/kb.gbapp/dialogs/MenuDialog.ts b/packages/kb.gbapp/dialogs/MenuDialog.ts index 2802e2f58..81814ad4d 100644 --- a/packages/kb.gbapp/dialogs/MenuDialog.ts +++ b/packages/kb.gbapp/dialogs/MenuDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/kb.gbapp/index.ts b/packages/kb.gbapp/index.ts index f60f5d534..6644c1bf3 100644 --- a/packages/kb.gbapp/index.ts +++ b/packages/kb.gbapp/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/kb.gbapp/models/index.ts b/packages/kb.gbapp/models/index.ts index 9f3b904b9..19934faff 100644 --- a/packages/kb.gbapp/models/index.ts +++ b/packages/kb.gbapp/models/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/kb.gbapp/services/KBService.ts b/packages/kb.gbapp/services/KBService.ts index 66b987f25..437596226 100644 --- a/packages/kb.gbapp/services/KBService.ts +++ b/packages/kb.gbapp/services/KBService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/security.gbapp/dialogs/OAuthDialog.ts b/packages/security.gbapp/dialogs/OAuthDialog.ts index 715b9f13a..f21e7d3e8 100644 --- a/packages/security.gbapp/dialogs/OAuthDialog.ts +++ b/packages/security.gbapp/dialogs/OAuthDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/security.gbapp/dialogs/ProfileDialog.ts b/packages/security.gbapp/dialogs/ProfileDialog.ts index b46fe8a17..d3199c161 100644 --- a/packages/security.gbapp/dialogs/ProfileDialog.ts +++ b/packages/security.gbapp/dialogs/ProfileDialog.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/security.gbapp/index.ts b/packages/security.gbapp/index.ts index 04c920277..5f3c0ffe1 100644 --- a/packages/security.gbapp/index.ts +++ b/packages/security.gbapp/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/security.gbapp/models/index.ts b/packages/security.gbapp/models/index.ts index 56a9a4b5a..242c4b331 100644 --- a/packages/security.gbapp/models/index.ts +++ b/packages/security.gbapp/models/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/sharepoint.gblib/index.ts b/packages/sharepoint.gblib/index.ts index a65d0494e..c872666ca 100644 --- a/packages/sharepoint.gblib/index.ts +++ b/packages/sharepoint.gblib/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/sharepoint.gblib/services/SharePointService.ts b/packages/sharepoint.gblib/services/SharePointService.ts index c21d9625a..9fe8f9a14 100644 --- a/packages/sharepoint.gblib/services/SharePointService.ts +++ b/packages/sharepoint.gblib/services/SharePointService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/teams.gblib/index.ts b/packages/teams.gblib/index.ts index ec0bed65a..4ef2b4e24 100644 --- a/packages/teams.gblib/index.ts +++ b/packages/teams.gblib/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/teams.gblib/services/TeamsService.ts b/packages/teams.gblib/services/TeamsService.ts index 307db14f5..2c6ef7a99 100644 --- a/packages/teams.gblib/services/TeamsService.ts +++ b/packages/teams.gblib/services/TeamsService.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/whatsapp.gblib/index.ts b/packages/whatsapp.gblib/index.ts index 523a89784..422e176e8 100644 --- a/packages/whatsapp.gblib/index.ts +++ b/packages/whatsapp.gblib/index.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index 0ffe4ae72..87da513c5 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | @@ -50,6 +50,7 @@ import { DialogKeywords } from '../../basic.gblib/services/DialogKeywords.js'; import { ChatServices } from '../../gpt.gblib/services/ChatServices.js'; import { GBAdminService } from '../../admin.gbapp/services/GBAdminService.js'; import e from 'express'; +import { GBUtil } from '../../../src/util.js'; const { WAState, List, Buttons, Client, MessageMedia } = pkg; /** @@ -180,13 +181,8 @@ export class WhatsappDirectLine extends GBService { // Keeps the chat list cleaned. const chats = await client.getChats(); await CollectionUtil.asyncForEach(chats, async chat => { - const sleep = ms => { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - }; const wait = Math.floor(Math.random() * 5000) + 1000; - await sleep(wait); + await GBUtil.sleep(wait); if (chat.isGroup) { // await chat.clearMessages(); } else if (!chat.pinned) { diff --git a/src/RootData.ts b/src/RootData.ts index c62361490..56eb80831 100644 --- a/src/RootData.ts +++ b/src/RootData.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/src/app.ts b/src/app.ts index f01ea04c6..3ee408ea6 100644 --- a/src/app.ts +++ b/src/app.ts @@ -5,7 +5,7 @@ | ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | | █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | | | -| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | | Licensed under the AGPL-3.0. | | | | According to our dual licensing model, this program can be used either | diff --git a/src/util.ts b/src/util.ts index b7d893886..de99ddfc9 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,6 +1,48 @@ +/*****************************************************************************\ +| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® | +| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | +| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ | +| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ | +| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ | +| | +| General Bots Copyright (c) pragmatismo.com.br. All rights reserved. | +| Licensed under the AGPL-3.0. | +| | +| According to our dual licensing model, this program can be used either | +| under the terms of the GNU Affero General Public License, version 3, | +| or under a proprietary license. | +| | +| The texts of the GNU Affero General Public License with an additional | +| permission and of our proprietary license can be found at and | +| in the LICENSE file you have received along with this program. | +| | +| This program is distributed in the hope that it will be useful, | +| but WITHOUT ANY WARRANTY, without even the implied warranty of | +| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | +| GNU Affero General Public License for more details. | +| | +| "General Bots" is a registered trademark of pragmatismo.com.br. | +| The licensing of the program under the AGPLv3 does not imply a | +| trademark license. Therefore any rights, title and interest in | +| our trademarks remain entirely with us. | +| | +\*****************************************************************************/ +/** + * @fileoverview General Bots local utility. + */ -const caseInsensitive = (listOrRow) => { +'use strict'; + +export class GBUtil { + + public static sleep(ms) { + return new Promise(resolve => { + setTimeout(resolve, ms); + }); + }; + + public static caseInsensitive(listOrRow) { if (!listOrRow) { @@ -23,3 +65,5 @@ const caseInsensitive = (listOrRow) => { return createCaseInsensitiveProxy(listOrRow); } }; + +} \ No newline at end of file