-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-changeme.js
40 lines (38 loc) · 1.37 KB
/
config-changeme.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Created by bmotlagh on 10/22/17.
*/
const config = {
ENV: process.env.NODE_ENV || 'dev',
SWAGGER: process.env.SWAGGER || 'localhost:4040',
MONGO: process.env.MONGO || 'mongodb://localhost:27017/ue-comment-ratings',
REPLICA: process.env.REPLICA || 'rs0',
UEAUTH: process.env.UEAUTH || 'https://domainqa.unitedeffects.com',
PRODUCT_SLUG: process.env.PRODUCT_SLUG || 'your_product_slug',
IMPLEMENTER: process.env.IMPLEMENTER || 'United Effects LLC',
BASE_ACCESS: process.env.BASE_ACCESS || 'guest',
CACHE: process.env.CACHE || '2 minutes',
/**
* Configure the below for your needs. Each type is a general target for comments. Dimensions allow
* a granular review.
*/
APPROVAL_STATUS_WORD: 'approved', //THIS MUST MATCH THE BELOW
COMMENT_STATUS: ['pending', 'approved', 'rejected'],
COMMENT_DEFAULT_STATUS: 'pending',
TARGET_TYPES: ['user', 'property', 'merchant'],
MAX_POSSIBLE_RATING: 5,
TARGET_DIMENSIONS: [
{
type: 'user',
dimensions: ['reliability', 'honesty', 'fairness']
},
{
type: 'property',
dimensions: ['accuracy', 'communication', 'cleanliness', 'location', 'value']
},
{
type: 'merchant',
dimensions: ['value', 'quality', 'service', 'accuracy']
}
]
};
module.exports = config;