-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCode.Config.js
More file actions
55 lines (48 loc) · 2.06 KB
/
Code.Config.js
File metadata and controls
55 lines (48 loc) · 2.06 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Common.VERSION = "91.11"; // Fix for (!) logic operand
Common.EDITOR = "Docs";
Common.CURRENT_YEAR = (new Date()).getFullYear();
Common.DEV_MODE = false; // production: false
Common.SHOWSUBSCRIPTION = false; // production: false
Common.TESTUSER = false; // production: false
Common.CLEARPROPS = false; // production: false
Common.LOGGING = true; // production: false
Common.USE_ACCOUNT = ''; // blank
Common.USE_ACCOUNT_USES = 97;
Common.USE_DOC = false; // production: false dev: replace with doc id (e.g. '17YP2ADHgqjfHGvvZ-9r1kGYX54t8FrBIbZEBlYQyVPw')
Common.USE_REPLACERS = { "${ClientCompany}" : "asdf" };
Common.getScriptProps = (property) => {
return PropertiesService.getScriptProperties().getProperty(property);
}
const consoleLog = Common.consoleLog;
const insertText = Common.insertText;
const insertDate = Common.insertDate;
const insertDropdown = Common.insertDropdown;
const insertSalesforce = Common.insertSalesforce;
const insertHubspot = Common.insertHubspot;
const insertChatgpt = Common.insertChatgpt;
const showDocMerge = Common.showDocMerge;
const showChatbot = Common.showChatbot;
const showMarketplace = Common.showMarketplace;
const showSettings = Common.showSettings;
const showConstants = Common.showConstants;
const Salesforce_Callback = Common.Salesforce_Callback;
const Hubspot_Callback = Common.Hubspot_Callback;
function getTestConfig() {
return {
version: Common.VERSION,
editor: Common.EDITOR,
dev_mode: Common.DEV_MODE,
showsubscription: Common.SHOWSUBSCRIPTION,
testuser: Common.TESTUSER,
clearprops: Common.CLEARPROPS,
logging: Common.LOGGING,
user_account: Common.USE_ACCOUNT,
use_account_uses: Common.USE_ACCOUNT_USES,
use_doc: Common.USE_DOC,
use_replacers: Common.USE_REPLACERS,
minimum_uses: Common.MINIMUM_USES,
discount_uses: Common.DISCOUNT_USES,
discount_span: Common.DISCOUNT_SPAN,
discount_rate: Common.DISCOUNT_RATE
}
}