Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firecert 498 #38

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions cli/examples/closed-captions-settings.yaml

This file was deleted.

8 changes: 8 additions & 0 deletions cli/examples/device-name-reset.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"scratch": {
"deviceName": {
"name": "newDeviceName"
}
}
}

9 changes: 9 additions & 0 deletions cli/examples/voice-guidance-settings-reset.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"scratch": {
"voiceGuidanceSettings": {
"enabled": true,
"speed": 13
}
}
}

1 change: 1 addition & 0 deletions server/package.json
Original file line number Diff line number Diff line change
@@ -53,6 +53,7 @@
"moment": "^2.29.1",
"nopt": "^5.0.0",
"tmp": "^0.2.1",
"shelljs": "^0.8.5",
"uuid": "^8.3.2",
"ws": "^8.2.3"
},
14 changes: 14 additions & 0 deletions server/src/index.mjs
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ import * as commandLine from './commandLine.mjs';
import { getUserIdFromReq } from './util.mjs';
import * as userManagement from './userManagement.mjs';
import * as stateManagement from './stateManagement.mjs';
import shell from 'shelljs'

// -------------------------------------------------- Web Socket --------------------------------------------------

@@ -59,6 +60,19 @@ server.on('upgrade', function upgrade(request, socket, head) {
}
});


//Fetch the yaml files from MFOS_Call_Flow repo
const yamlPath = ".././cli/examples";
shell.cd(yamlPath)
try{
shell.exec('git clone git+ssh://git@github.comcast.com/lightning-automation/MFOS_Call_Flow')
apadin002 marked this conversation as resolved.
Show resolved Hide resolved
}
catch(e){
console.log(e)
console.log("some error in loading yaml files...")
}


// Starter user(s)
logger.info('Adding user 123...'); stateManagement.addUser('123'); userManagement.addUser('123');
logger.info('Adding user 456...'); stateManagement.addUser('456'); userManagement.addUser('456');