forked from salesforce-misc/violet-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.js
18 lines (13 loc) · 851 Bytes
/
server.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict';
var violetSrvr = require('violet/lib/violetSrvr')();
violetSrvr.listAppsAt('/');
var srvrInstance = violetSrvr.createAndListen(process.env.PORT || 8080);
violetSrvr = require('violet/lib/violetClientTx')(violetSrvr, srvrInstance);
// violetSrvr.loadScript('tutorials/introduction.js', 'einstein');
// violetSrvr.loadScript('scripts/diabetes-stoplight.js', 'hls');
// violetSrvr.loadScript('scripts/sf-cases-customer.js', 'einstein');
// violetSrvr.loadScript('scripts/sf-cases-employee.js', 'einstein');
// violetSrvr.loadScript('scripts/sf-knowledge-base.js', 'einstein');
// violetSrvr.loadScript('apps/restaurants/script.js,apps/dfSessions/script.js,scripts/kioskExtras.js', 'einstein');
violetSrvr.loadScript(process.env.SCRIPT_NAME || 'scripts/sf-leadsAndOpportunities.js', 'einstein');
console.log('Waiting for requests...');