-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.js
121 lines (114 loc) · 5.46 KB
/
config.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
var fs = require('fs');
var objectMerge = require('object-merge');
// environment configs from configEnv.js
var static_string_server = fs.readFileSync("./configEnv.json");
// code configs
var code_obj =
{
"db_request": "request",
"db_response": "response",
"db_mailLog": "mail_log",
"db_examineer_exam": "examineer_exam",
"db_examineer_metadata": "examineer_metadata",
"db_graphics": "graphics",
"db_authors": "authors",
"db_working": "working",
"db_examineer_response": "examineer_response",
"db_testdb": "testdb",
"db_raw_elements": "raw_elements",
"db_graphics_metadata": "graphics_metadata",
"db_user": "nodejs",
"db_pass": "nodejs",
"db_exam_db": "examineer_exam",
"db_elements_metadata": "elements_metadata",
"db_playlist": "playlists",
"global_db": "global",
"db_publist": "publist",
"db_workbooks": "workbooks",
"db_worksheets": "worksheets",
"db_wbpublished": "wbpublished",
"db_wbforum":"wbforum",
"db_ticketRaise": "tickets",
"allow_emails_for_signup": "00allowed",
"quizapp_link": "https://examineer.in/quizApp/quiz-app/#/",
"////// Server req msg ": "",
"email_already_exist": "email already exist",
"email_free": "email free",
"some_error_here": "Some error here !",
"User_already_exist": "User already exist",
"A_new_member_join_our_group": "A new member join our group !",
"Message_sent": "Message sent: ",
"Account_created": "Account created, check your inbox for account activation",
"Collb_verified": "Id has been verified !",
"mail_send_fail": "Unable to send mail",
"password_not_match": "password not match",
"Email_Password_Invaild": "Email & Password Invaild",
"Unable_to_process": "Unable to process !",
"Account_active": "Your account has not been activated. Check your inbox ?",
"Account_block" : "Your account has been blocked",
"Account_request_pending" : "Your account request is not accepted yet.",
"Account_request_rejected" : "Your account request has been rejected.",
"mail_sent1": " Reset link send to : ",
"mail_sentAccountReq": "Your request has been registered,Please check your email for further process !!",
"email_not_found": "User not found !",
"password_reset": "Password Reset",
"password_change": " password change !",
"invaild_request": " Invaild request !",
"password_mismatch": "Password mismatch !",
"feild_empty": "All field are mandatory",
"account_active_msg": " Your account is active",
"collb_accept_msg": " You have been successfully added as a collabrators",
"collb_reject_msg": " You have been rejected your collabrators request",
"custome_error_page_jade": "mail_temp/custom_error_page.jade",
"custome_error_page_string": "Custome Error Page",
"something_bad_happened_string": "Something Bad Happened !",
"account_already_active_string": "Your account already valid ",
"account_already_rejected": "You have already rejected the collabrator request ! ",
"account_already_verified": "You have already accepted the collabrator request ! ",
"invaild_activation_request_string": "Either your account is active or request is invalid",
"short_name_not_allowed": "This short name not allowed, try another !",
"////// SMTP oauth config ": "",
"sendmail_auth_emails": "",
"sendmail_auth_pass": "",
"sendmail_auth_servicetype": "",
"sendmail_auth_portnumber": "",
"mail_temp_path_forgotpassword": "views/mail_temp/forgotPassword_email.jade",
"mail_temp_path_accountReq": "views/mail_temp/accountReq_email.jade",
"mail_temp_path_newReq": "views/mail_temp/newAccountReq.jade",
"mail_approved_request": "views/mail_temp/accountApprove.jade",
"mail_request_rejected": "views/mail_temp/accountReqRejected.jade",
"////// Jade mail temp link ": "",
"activation_email": "views/mail_temp/activation_email.jade",
"verify_collabs": "views/mail_temp/verify_collbs.jade",
"remove_collabs": "views/mail_temp/remove_collbs.jade",
"pass_reset_jade": "page_temp/pass_reset.jade",
"ticket_raised": "views/mail_temp/ticketRaise_email.jade",
"ticket_resolved": "views/mail_temp/ticketResolve_email.jade",
"wbPublish_accept": "views/mail_temp/wbPublishAcceptReq.jade",
"wbPublish_reject": "views/mail_temp/wbPublishRejectReq.jade",
"wbPublish_blocked": "views/mail_temp/wbPublishBlockReq.jade",
"wbPublish_unblock": "views/mail_temp/wbPublishUnblockReq.jade",
"////// Mail Api prefix ": "",
"activeAccount": "authoractiveAccount",
"password_rest_temp": "authorpasswordresttemp",
"acceptCollbs": "author_acceptCollbReq",
"rejectCollbs": "author_rejectptCollbReq",
"////// Mail static header string ": "",
"mail_from_string": "",
"mail_from": "",
"mail_subject": "Account Activation ✔",
"mail_subject1": "Forgot Password ✔",
"mail_subject2": "Verify Collaborators ✔",
"////// Mail static msg ": "",
"emailServerMeta": {
"support_email": "",
"footer_line": "",
"copyright": ""
},
"loginVideoName":"",
"loginVideoPath":"author_public/images/login/",
"wbLogoImagesPath":"author_public/images/subjectLogo"
}
var server_obj = JSON.parse(static_string_server);
var merge_output = objectMerge(server_obj, code_obj);
exports.merge_output = merge_output;