Compare commits

..

No commits in common. "18b616f0426d912767818d1dff07674c189be55e" and "c90c08bd677720ef5db3f41e0a205f531f5d2043" have entirely different histories.

20 changed files with 2305 additions and 6949 deletions

View file

@ -1,5 +1,5 @@
General Bots® is licensed under a dual license. To check which license General Bots is licensed under a dual license. To check which license
edition of General Bots® you have installed, please ask info@pragmatismo.io edition of General bots you have installed, please ask info@pragmatismo.io
informing your Customer ID. informing your Customer ID.
If you modify this Program, or any covered work, by combining it If you modify this Program, or any covered work, by combining it
@ -8,13 +8,13 @@ grant you additional permission to convey those packages (.gbapp,
.gbkb, .gbtheme, .gbot) under terms of your choice, provided that .gbkb, .gbtheme, .gbot) under terms of your choice, provided that
those terms do not place additional restrictions on the Program. those terms do not place additional restrictions on the Program.
You are free to create either open-source as well private You are free to create either open-source as well private
packages to the General Bots® platform. AGPL enforces contributions packages to the General Bots platform. AGPL enforces contributions
to the server core so everyone wins. to the server core so everyone wins.
The following terms are important regarding the General Bots® The following terms are important regarding the General Bots
Community Edition, licensed under AGPL V3: Community Edition, licensed under AGPL V3:
For General Bots® community edition which stands under AGPL license the For General Bots community edition which stands under AGPL license the
following terms are significantly: following terms are significantly:

View file

@ -1,3 +1,3 @@
General Bots® base library for building Node.js TypeScript Apps packages (.gbapp). General Bots base library for building Node.js TypeScript Apps packages (.gbapp).
See: https://github.com/pragmatismo-io/BotServer for main documentation. See: https://github.com/pragmatismo-io/BotServer for main documentation.

8790
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{ {
"name": "botlib", "name": "botlib",
"version": "5.0.0", "version": "1.9.5",
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp) and Libray packages (.gblib)", "description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp) and Libray packages (.gblib)",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index", "types": "dist/index",
@ -23,30 +23,27 @@
"build-lib": "tsc" "build-lib": "tsc"
}, },
"dependencies": { "dependencies": {
"async": "3.2.6", "async": "3.2.2",
"botbuilder": "4.23.0", "botbuilder": "4.14.1",
"botbuilder-adapter-facebook": "1.0.12", "botbuilder-ai": "4.14.1",
"botbuilder-ai": "4.23.0", "botbuilder-azure": "4.14.1",
"botbuilder-azure": "4.23.0", "botbuilder-dialogs": "4.14.1",
"botbuilder-dialogs": "4.23.0", "chrono-node": "2.3.2",
"botframework-connector": "4.23.0",
"chrono-node": "2.7.5",
"dotenv-extended": "2.9.0", "dotenv-extended": "2.9.0",
"iconv-lite": "0.6.3", "iconv-lite": "0.6.3",
"ms": "2.1.3", "ms": "2.1.3",
"pragmatismo-io-framework": "1.1.1", "pragmatismo-io-framework": "1.0.20",
"reflect-metadata": "0.2.2", "reflect-metadata": "0.1.13",
"sequelize": "6.37.3", "sequelize": "5.21.5",
"sequelize-cli": "6.6.2", "sequelize-typescript": "1.1.0",
"sequelize-typescript": "2.1.6", "underscore": "1.13.1",
"underscore": "1.13.7", "winston": "3.3.3"
"winston": "3.14.2"
}, },
"devDependencies": { "devDependencies": {
"@types/sequelize": "4.28.20", "@types/sequelize": "4.28.10",
"@types/winston": "2.4.4", "@types/winston": "2.4.4",
"ts-node": "10.9.2", "ts-node": "10.4.0",
"typedoc": "0.26.6", "typedoc": "0.22.8",
"typescript": "5.5.4" "typescript": "4.4.4"
} }
} }

View file

@ -1,32 +1,34 @@
/*****************************************************************************\ /******************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v ` _ `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
| | | | | ( )_) | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | (_) \___/' |
| Licensed under the AGPL-3.0. | | |
| | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| According to our dual licensing model, this program can be used either | | Licensed under the AGPL-3.0. |
| under the terms of the GNU Affero General Public License, version 3, | | |
| or under a proprietary license. | | According to our dual licensing model, this program can be used either |
| | | under the terms of the GNU Affero General Public License, version 3, |
| The texts of the GNU Affero General Public License with an additional | | or under a proprietary license. |
| permission and of our proprietary license can be found at and | | |
| in the LICENSE file you have received along with this program. | | The texts of the GNU Affero General Public License with an additional |
| | | permission and of our proprietary license can be found at and |
| This program is distributed in the hope that it will be useful, | | in the LICENSE file you have received along with this program. |
| but WITHOUT ANY WARRANTY, without even the implied warranty of | | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | This program is distributed in the hope that it will be useful, |
| GNU Affero General Public License for more details. | | but WITHOUT ANY WARRANTY without even the implied warranty of |
| | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | GNU Affero General Public License for more details. |
| The licensing of the program under the AGPLv3 does not imply a | | |
| trademark license. Therefore any rights, title and interest in | | "General Bots" is a registered trademark of Pragmatismo.io. |
| our trademarks remain entirely with us. | | 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. |
| |
\******************************************************************************/
'use strict' 'use strict'

View file

@ -1,30 +1,23 @@
const loggers = require("./logger"); const logger = require("./logger");
export class GBLog { export class GBLog {
public static getLogger() { return loggers; }
public static error(params): void { public static error(params): void {
loggers[0].error(params); logger.error(params);
loggers[1].error(params);
} }
public static warn(params): void { public static warn(params): void {
loggers[0].warn(params); logger.warn(params);
loggers[1].warn(params);
} }
public static info(params): void { public static info(params): void {
loggers[0].info(params); logger.info(params);
loggers[1].info(params);
} }
public static debug(params): void { public static debug(params): void {
loggers[0].debug(params); logger.debug(params);
loggers[1].debug(params);
} }
public static verbose(params): void { public static verbose(params): void {
loggers[0].verbose(params); logger.verbose(params);
loggers[1].verbose(params);
} }
public static silly(params): void { public static silly(params): void {
loggers[0].silly(params); logger.silly(params);
loggers[1].silly(params);
} }
} }

View file

@ -1,11 +1,13 @@
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,7 +23,7 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |
@ -30,7 +32,7 @@
import { BotAdapter, UserState } from "botbuilder"; import { BotAdapter, UserState } from "botbuilder";
import { DialogSet } from "botbuilder-dialogs"; import { DialogSet } from "botbuilder-dialogs";
import { IGBInstance } from "."; import { IGBInstance } from "./IGBinstance";
import { IGBCoreService } from "./IGBCoreService"; import { IGBCoreService } from "./IGBCoreService";
import { IGBConversationalService, IGBPackage } from "."; import { IGBConversationalService, IGBPackage } from ".";
import { AzureText } from "pragmatismo-io-framework"; import { AzureText } from "pragmatismo-io-framework";

View file

@ -1,32 +1,34 @@
/*****************************************************************************\ /******************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v ` _ `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
| | | | | ( )_) | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | (_) \___/' |
| Licensed under the AGPL-3.0. | | |
| | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| According to our dual licensing model, this program can be used either | | Licensed under the AGPL-3.0. |
| under the terms of the GNU Affero General Public License, version 3, | | |
| or under a proprietary license. | | According to our dual licensing model, this program can be used either |
| | | under the terms of the GNU Affero General Public License, version 3, |
| The texts of the GNU Affero General Public License with an additional | | or under a proprietary license. |
| permission and of our proprietary license can be found at and | | |
| in the LICENSE file you have received along with this program. | | The texts of the GNU Affero General Public License with an additional |
| | | permission and of our proprietary license can be found at and |
| This program is distributed in the hope that it will be useful, | | in the LICENSE file you have received along with this program. |
| but WITHOUT ANY WARRANTY, without even the implied warranty of | | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | This program is distributed in the hope that it will be useful, |
| GNU Affero General Public License for more details. | | but WITHOUT ANY WARRANTY without even the implied warranty of |
| | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | GNU Affero General Public License for more details. |
| The licensing of the program under the AGPLv3 does not imply a | | |
| trademark license. Therefore any rights, title and interest in | | "General Bots" is a registered trademark of Pragmatismo.io. |
| our trademarks remain entirely with us. | | 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. |
| |
\******************************************************************************/
'use strict' 'use strict'

View file

@ -1,11 +1,13 @@
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,7 +23,7 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |
@ -30,7 +32,7 @@
"use strict"; "use strict";
import { IGBInstance } from "."; import { IGBInstance } from "./IGBinstance";
import { GBMinInstance } from "./GBMinInstance"; import { GBMinInstance } from "./GBMinInstance";
export interface IGBAdminService { export interface IGBAdminService {

View file

@ -1,11 +1,13 @@
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,7 +23,7 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |
@ -41,7 +43,7 @@ export interface IGBConversationalService {
sendAudio(min: GBMinInstance, step: GBDialogStep, url: string); sendAudio(min: GBMinInstance, step: GBDialogStep, url: string);
prompt(min: GBMinInstance, step: GBDialogStep, text: string); prompt(min: GBMinInstance, step: GBDialogStep, text: string);
sendSms(min: GBMinInstance, mobile: string, text: string); sendSms(min: GBMinInstance, mobile: string, text: string);
routeNLP(step: GBDialogStep, min: GBMinInstance, text: string); routeNLP(step: GBDialogStep, min: GBMinInstance, text: string): Promise<boolean>;
getCurrentLanguage(step: GBDialogStep); getCurrentLanguage(step: GBDialogStep);
getNewMobileCode(); getNewMobileCode();
sendMarkdownToMobile(min: GBMinInstance, step: GBDialogStep, mobile: string, text: string); sendMarkdownToMobile(min: GBMinInstance, step: GBDialogStep, mobile: string, text: string);

View file

@ -1,11 +1,13 @@
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,7 +23,7 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |

View file

@ -1,11 +1,13 @@
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,7 +23,7 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |
@ -30,15 +32,15 @@
"use strict"; "use strict";
import { IGBInstance } from "."; import { IGBInstance } from "./IGBinstance";
import { GBMinInstance } from "./GBMinInstance"; import { GBMinInstance } from "./GBMinInstance";
export interface IGBDeployer { export interface IGBDeployer {
undeployPackageFromLocalPath(instance: IGBInstance, localPath: string): Promise<void>; undeployPackageFromLocalPath(instance: IGBInstance, localPath: string): Promise<void>;
deployPackage(min: GBMinInstance, localPath: string): Promise<void>; deployPackage(min: GBMinInstance, localPath: string): Promise<void>;
deployBlankBot(botId: string, mobile: string, email: string): Promise<IGBInstance>; deployBlankBot(botId: string): Promise<IGBInstance>;
botExists(botId: string): Promise<Boolean>; botExists(botId: string): Promise<Boolean>;
rebuildIndex(instance: IGBInstance, searchSchema: any): Promise<void>; rebuildIndex(instance: IGBInstance, searchSchema: any): Promise<void>;
refreshNLPEntity(instance: IGBInstance, listName, listData): Promise<void>; refreshNLPEntity(instance: IGBInstance, listName, listData) : Promise<void>;
getBotManifest(instance: IGBInstance): Promise<Buffer>; getBotManifest(instance: IGBInstance): Promise<Buffer>;
} }

View file

@ -1,11 +1,14 @@
import { BotAdapter } from 'botbuilder'
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,7 +24,7 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |
@ -30,7 +33,6 @@
"use strict" "use strict"
import { BotAdapter } from "botbuilder"
import { GBService } from "./GBService" import { GBService } from "./GBService"
export class IGBDialog { export class IGBDialog {

View file

@ -1,11 +1,13 @@
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,7 +23,7 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |

View file

@ -1,11 +1,13 @@
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,7 +23,7 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |
@ -84,6 +86,7 @@ export interface IGBInstance {
searchKey: string; searchKey: string;
searchIndex: string; searchIndex: string;
searchIndexer: string; searchIndexer: string;
nlpVsSearch: number;
searchScore: number; searchScore: number;
nlpScore: number; nlpScore: number;
storageUsername: string; storageUsername: string;

View file

@ -1,11 +1,13 @@
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,7 +23,7 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |

View file

@ -1,11 +1,13 @@
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,20 +23,21 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |
| | | |
\*****************************************************************************/ \*****************************************************************************/
'use strict';
import { IGBCoreService } from './IGBCoreService' import { IGBCoreService } from './IGBCoreService'
import { Sequelize } from 'sequelize-typescript' import { Sequelize } from 'sequelize-typescript'
import { GBMinInstance } from '.' import { GBMinInstance } from '.'
import { GBDialogStep } from './GBDialogStep'; import { GBDialogStep } from './GBDialogStep';
// TODO: Include "use strict" in all files.
export interface IGBPackage{ export interface IGBPackage{
/** /**

View file

@ -1,32 +1,34 @@
/*****************************************************************************\ /******************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v ` _ `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| ( ) ( ) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_) (_)`\___/' |
| | | | | ( )_) | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | (_) \___/' |
| Licensed under the AGPL-3.0. | | |
| | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| According to our dual licensing model, this program can be used either | | Licensed under the AGPL-3.0. |
| under the terms of the GNU Affero General Public License, version 3, | | |
| or under a proprietary license. | | According to our dual licensing model, this program can be used either |
| | | under the terms of the GNU Affero General Public License, version 3, |
| The texts of the GNU Affero General Public License with an additional | | or under a proprietary license. |
| permission and of our proprietary license can be found at and | | |
| in the LICENSE file you have received along with this program. | | The texts of the GNU Affero General Public License with an additional |
| | | permission and of our proprietary license can be found at and |
| This program is distributed in the hope that it will be useful, | | in the LICENSE file you have received along with this program. |
| but WITHOUT ANY WARRANTY, without even the implied warranty of | | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | This program is distributed in the hope that it will be useful, |
| GNU Affero General Public License for more details. | | but WITHOUT ANY WARRANTY without even the implied warranty of |
| | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | GNU Affero General Public License for more details. |
| The licensing of the program under the AGPLv3 does not imply a | | |
| trademark license. Therefore any rights, title and interest in | | "General Bots" is a registered trademark of Pragmatismo.io. |
| our trademarks remain entirely with us. | | 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. |
| |
\******************************************************************************/
"use strict"; "use strict";

View file

@ -1,11 +1,13 @@
/*****************************************************************************\ /*****************************************************************************\
| ® | | ( )_ _ |
| | | _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| | | ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
| | | | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | | | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| | | |
| General Bots Copyright (c) pragmatismo.cloud. All rights reserved. | | General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. | | Licensed under the AGPL-3.0. |
| | | |
| According to our dual licensing model, this program can be used either | | According to our dual licensing model, this program can be used either |
@ -21,7 +23,7 @@
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. | | GNU Affero General Public License for more details. |
| | | |
| "General Bots" is a registered trademark of pragmatismo.cloud. | | "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a | | The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in | | trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. | | our trademarks remain entirely with us. |
@ -61,22 +63,14 @@ const logger = createLogger({
format: format.combine( format: format.combine(
format.colorize(), format.colorize(),
format.simple(), format.simple(),
format.label({ label: 'GB' }), format.label({ label: 'GeneralBots' }),
format.timestamp(), format.timestamp(),
format.printf(nfo => { format.printf(nfo => {
return `${nfo.timestamp.replace(/\-|\.|\d\d\dZ|\:/gi, '' )} ${nfo.label} ${nfo.level} ${nfo.message}`; return `${nfo.timestamp} [${nfo.label}] ${nfo.level}: ${nfo.message}`;
}) })
), ),
levels: config.levels, levels: config.levels,
transports: [ transports: [new transports.Console()]
new transports.Console()]
}); });
const logger2 = createLogger({ module.exports = logger;
levels: config.levels,
transports: [new (transports.File)({
filename: 'GB.log.json', json: true
})]
});
module.exports = [logger, logger2];

View file

@ -1,7 +1,7 @@
{ {
"mode": "modules", "mode": "modules",
"out": "docs", "out": "docs",
"name": "General Bots® Open Core", "name": "General Bots Open Core",
"theme": "default", "theme": "default",
"ignoreCompilerErrors": "true", "ignoreCompilerErrors": "true",
"experimentalDecorators": "true", "experimentalDecorators": "true",