mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
wip
This commit is contained in:
@@ -20,7 +20,10 @@ class Dialogflow extends Task {
|
|||||||
assert(this.agent || !this.isCX, 'agent is required for dialogflow cx');
|
assert(this.agent || !this.isCX, 'agent is required for dialogflow cx');
|
||||||
assert(this.credentials, 'dialogflow credentials are required');
|
assert(this.credentials, 'dialogflow credentials are required');
|
||||||
|
|
||||||
if (!this.isCX) {
|
if (this.isCX) {
|
||||||
|
this.environment = this.data.environment || 'default';
|
||||||
|
}
|
||||||
|
else {
|
||||||
/* ES: set project id with environment and region (optionally) */
|
/* ES: set project id with environment and region (optionally) */
|
||||||
if (this.data.environment && this.data.region) {
|
if (this.data.environment && this.data.region) {
|
||||||
this.project = `${this.data.project}:${this.data.environment}:${this.data.region}`;
|
this.project = `${this.data.project}:${this.data.environment}:${this.data.region}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user