Compare commits
10 commits
c90c08bd67
...
18b616f042
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18b616f042 | ||
| 08ee8756cc | |||
| be1e691f1c | |||
| 66757ed4cc | |||
| f12ba0f96f | |||
| ffd746ae94 | |||
| fbbcdeec4c | |||
| f404cf2383 | |||
| b806534735 | |||
| 25c502874f |
20 changed files with 6950 additions and 2306 deletions
10
LICENSE.txt
10
LICENSE.txt
|
|
@ -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:
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
8792
package-lock.json
generated
8792
package-lock.json
generated
File diff suppressed because it is too large
Load diff
39
package.json
39
package.json
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "botlib",
|
"name": "botlib",
|
||||||
"version": "1.9.5",
|
"version": "5.0.0",
|
||||||
"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,27 +23,30 @@
|
||||||
"build-lib": "tsc"
|
"build-lib": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "3.2.2",
|
"async": "3.2.6",
|
||||||
"botbuilder": "4.14.1",
|
"botbuilder": "4.23.0",
|
||||||
"botbuilder-ai": "4.14.1",
|
"botbuilder-adapter-facebook": "1.0.12",
|
||||||
"botbuilder-azure": "4.14.1",
|
"botbuilder-ai": "4.23.0",
|
||||||
"botbuilder-dialogs": "4.14.1",
|
"botbuilder-azure": "4.23.0",
|
||||||
"chrono-node": "2.3.2",
|
"botbuilder-dialogs": "4.23.0",
|
||||||
|
"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.0.20",
|
"pragmatismo-io-framework": "1.1.1",
|
||||||
"reflect-metadata": "0.1.13",
|
"reflect-metadata": "0.2.2",
|
||||||
"sequelize": "5.21.5",
|
"sequelize": "6.37.3",
|
||||||
"sequelize-typescript": "1.1.0",
|
"sequelize-cli": "6.6.2",
|
||||||
"underscore": "1.13.1",
|
"sequelize-typescript": "2.1.6",
|
||||||
"winston": "3.3.3"
|
"underscore": "1.13.7",
|
||||||
|
"winston": "3.14.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/sequelize": "4.28.10",
|
"@types/sequelize": "4.28.20",
|
||||||
"@types/winston": "2.4.4",
|
"@types/winston": "2.4.4",
|
||||||
"ts-node": "10.4.0",
|
"ts-node": "10.9.2",
|
||||||
"typedoc": "0.22.8",
|
"typedoc": "0.26.6",
|
||||||
"typescript": "4.4.4"
|
"typescript": "5.5.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,34 +1,32 @@
|
||||||
/******************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' 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. |
|
| |
|
||||||
| 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, |
|
||||||
| According to our dual licensing model, this program can be used either |
|
| or under a proprietary license. |
|
||||||
| 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 |
|
||||||
| The texts of the GNU Affero General Public License with an additional |
|
| in the LICENSE file you have received along with this program. |
|
||||||
| 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 |
|
||||||
| This program is distributed in the hope that it will be useful, |
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
| but WITHOUT ANY WARRANTY without even the implied warranty of |
|
| GNU Affero General Public License for more details. |
|
||||||
| 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.cloud. |
|
||||||
| |
|
| The licensing of the program under the AGPLv3 does not imply a |
|
||||||
| "General Bots" is a registered trademark of Pragmatismo.io. |
|
| trademark license. Therefore any rights, title and interest in |
|
||||||
| The licensing of the program under the AGPLv3 does not imply a |
|
| our trademarks remain entirely with us. |
|
||||||
| trademark license. Therefore any rights, title and interest in |
|
| |
|
||||||
| our trademarks remain entirely with us. |
|
\*****************************************************************************/
|
||||||
| |
|
|
||||||
\******************************************************************************/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|
|
||||||
21
src/GBLog.ts
21
src/GBLog.ts
|
|
@ -1,23 +1,30 @@
|
||||||
|
|
||||||
const logger = require("./logger");
|
const loggers = require("./logger");
|
||||||
|
|
||||||
export class GBLog {
|
export class GBLog {
|
||||||
|
public static getLogger() { return loggers; }
|
||||||
public static error(params): void {
|
public static error(params): void {
|
||||||
logger.error(params);
|
loggers[0].error(params);
|
||||||
|
loggers[1].error(params);
|
||||||
}
|
}
|
||||||
public static warn(params): void {
|
public static warn(params): void {
|
||||||
logger.warn(params);
|
loggers[0].warn(params);
|
||||||
|
loggers[1].warn(params);
|
||||||
}
|
}
|
||||||
public static info(params): void {
|
public static info(params): void {
|
||||||
logger.info(params);
|
loggers[0].info(params);
|
||||||
|
loggers[1].info(params);
|
||||||
}
|
}
|
||||||
public static debug(params): void {
|
public static debug(params): void {
|
||||||
logger.debug(params);
|
loggers[0].debug(params);
|
||||||
|
loggers[1].debug(params);
|
||||||
}
|
}
|
||||||
public static verbose(params): void {
|
public static verbose(params): void {
|
||||||
logger.verbose(params);
|
loggers[0].verbose(params);
|
||||||
|
loggers[1].verbose(params);
|
||||||
}
|
}
|
||||||
public static silly(params): void {
|
public static silly(params): void {
|
||||||
logger.silly(params);
|
loggers[0].silly(params);
|
||||||
|
loggers[1].silly(params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -23,7 +21,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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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. |
|
||||||
|
|
@ -32,7 +30,7 @@
|
||||||
|
|
||||||
import { BotAdapter, UserState } from "botbuilder";
|
import { BotAdapter, UserState } from "botbuilder";
|
||||||
import { DialogSet } from "botbuilder-dialogs";
|
import { DialogSet } from "botbuilder-dialogs";
|
||||||
import { IGBInstance } from "./IGBinstance";
|
import { IGBInstance } from ".";
|
||||||
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";
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,32 @@
|
||||||
/******************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' 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. |
|
| |
|
||||||
| 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, |
|
||||||
| According to our dual licensing model, this program can be used either |
|
| or under a proprietary license. |
|
||||||
| 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 |
|
||||||
| The texts of the GNU Affero General Public License with an additional |
|
| in the LICENSE file you have received along with this program. |
|
||||||
| 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 |
|
||||||
| This program is distributed in the hope that it will be useful, |
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
| but WITHOUT ANY WARRANTY without even the implied warranty of |
|
| GNU Affero General Public License for more details. |
|
||||||
| 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.cloud. |
|
||||||
| |
|
| The licensing of the program under the AGPLv3 does not imply a |
|
||||||
| "General Bots" is a registered trademark of Pragmatismo.io. |
|
| trademark license. Therefore any rights, title and interest in |
|
||||||
| The licensing of the program under the AGPLv3 does not imply a |
|
| our trademarks remain entirely with us. |
|
||||||
| trademark license. Therefore any rights, title and interest in |
|
| |
|
||||||
| our trademarks remain entirely with us. |
|
\*****************************************************************************/
|
||||||
| |
|
|
||||||
\******************************************************************************/
|
|
||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -23,7 +21,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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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. |
|
||||||
|
|
@ -32,7 +30,7 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import { IGBInstance } from "./IGBinstance";
|
import { IGBInstance } from ".";
|
||||||
import { GBMinInstance } from "./GBMinInstance";
|
import { GBMinInstance } from "./GBMinInstance";
|
||||||
|
|
||||||
export interface IGBAdminService {
|
export interface IGBAdminService {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -23,7 +21,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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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. |
|
||||||
|
|
@ -43,7 +41,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): Promise<boolean>;
|
routeNLP(step: GBDialogStep, min: GBMinInstance, text: string);
|
||||||
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);
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -23,7 +21,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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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. |
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -23,7 +21,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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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. |
|
||||||
|
|
@ -32,15 +30,15 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import { IGBInstance } from "./IGBinstance";
|
import { IGBInstance } from ".";
|
||||||
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): Promise<IGBInstance>;
|
deployBlankBot(botId: string, mobile: string, email: 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>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,11 @@
|
||||||
import { BotAdapter } from 'botbuilder'
|
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -24,7 +21,7 @@ import { BotAdapter } from 'botbuilder'
|
||||||
| 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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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. |
|
||||||
|
|
@ -33,6 +30,7 @@ import { BotAdapter } from 'botbuilder'
|
||||||
|
|
||||||
"use strict"
|
"use strict"
|
||||||
|
|
||||||
|
import { BotAdapter } from "botbuilder"
|
||||||
import { GBService } from "./GBService"
|
import { GBService } from "./GBService"
|
||||||
|
|
||||||
export class IGBDialog {
|
export class IGBDialog {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -23,7 +21,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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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. |
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -23,7 +21,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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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. |
|
||||||
|
|
@ -86,7 +84,6 @@ 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;
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -23,7 +21,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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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. |
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -23,21 +21,20 @@
|
||||||
| 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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
60
src/index.ts
60
src/index.ts
|
|
@ -1,34 +1,32 @@
|
||||||
/******************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' 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. |
|
| |
|
||||||
| 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, |
|
||||||
| According to our dual licensing model, this program can be used either |
|
| or under a proprietary license. |
|
||||||
| 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 |
|
||||||
| The texts of the GNU Affero General Public License with an additional |
|
| in the LICENSE file you have received along with this program. |
|
||||||
| 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 |
|
||||||
| This program is distributed in the hope that it will be useful, |
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
| but WITHOUT ANY WARRANTY without even the implied warranty of |
|
| GNU Affero General Public License for more details. |
|
||||||
| 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.cloud. |
|
||||||
| |
|
| The licensing of the program under the AGPLv3 does not imply a |
|
||||||
| "General Bots" is a registered trademark of Pragmatismo.io. |
|
| trademark license. Therefore any rights, title and interest in |
|
||||||
| The licensing of the program under the AGPLv3 does not imply a |
|
| our trademarks remain entirely with us. |
|
||||||
| trademark license. Therefore any rights, title and interest in |
|
| |
|
||||||
| our trademarks remain entirely with us. |
|
\*****************************************************************************/
|
||||||
| |
|
|
||||||
\******************************************************************************/
|
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
/*****************************************************************************\
|
/*****************************************************************************\
|
||||||
| ( )_ _ |
|
| █████ █████ ██ █ █████ █████ ████ ██ ████ █████ █████ ███ ® |
|
||||||
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
|
| ██ █ ███ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' v `\ /'_`\ |
|
| ██ ███ ████ █ ██ █ ████ █████ ██████ ██ ████ █ █ █ ██ |
|
||||||
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
|
| ██ ██ █ █ ██ █ █ ██ ██ ██ ██ ██ ██ █ ██ ██ █ █ |
|
||||||
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
|
| █████ █████ █ ███ █████ ██ ██ ██ ██ █████ ████ █████ █ ███ |
|
||||||
| | | ( )_) | |
|
|
||||||
| (_) \___/' |
|
|
||||||
| |
|
| |
|
||||||
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
|
| General Bots Copyright (c) pragmatismo.cloud. 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 |
|
||||||
|
|
@ -23,7 +21,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.io. |
|
| "General Bots" is a registered trademark of pragmatismo.cloud. |
|
||||||
| 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. |
|
||||||
|
|
@ -63,14 +61,22 @@ const logger = createLogger({
|
||||||
format: format.combine(
|
format: format.combine(
|
||||||
format.colorize(),
|
format.colorize(),
|
||||||
format.simple(),
|
format.simple(),
|
||||||
format.label({ label: 'GeneralBots' }),
|
format.label({ label: 'GB' }),
|
||||||
format.timestamp(),
|
format.timestamp(),
|
||||||
format.printf(nfo => {
|
format.printf(nfo => {
|
||||||
return `${nfo.timestamp} [${nfo.label}] ${nfo.level}: ${nfo.message}`;
|
return `${nfo.timestamp.replace(/\-|\.|\d\d\dZ|\:/gi, '' )} ${nfo.label} ${nfo.level} ${nfo.message}`;
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
levels: config.levels,
|
levels: config.levels,
|
||||||
transports: [new transports.Console()]
|
transports: [
|
||||||
|
new transports.Console()]
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = logger;
|
const logger2 = createLogger({
|
||||||
|
levels: config.levels,
|
||||||
|
transports: [new (transports.File)({
|
||||||
|
filename: 'GB.log.json', json: true
|
||||||
|
})]
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = [logger, logger2];
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue