Commit - 20250414-165351446
This commit is contained in:
parent
14382cff4b
commit
f583d82f18
@ -43,26 +43,6 @@ const ActivitiesData = [
|
|||||||
|
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
description: 'Contract review with Umbrella Corp',
|
|
||||||
|
|
||||||
scheduled_at: new Date('2023-11-04T09:00:00Z'),
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
description: 'Negotiation meeting with Hooli',
|
|
||||||
|
|
||||||
scheduled_at: new Date('2023-11-05T15:00:00Z'),
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const ContactsData = [
|
const ContactsData = [
|
||||||
@ -101,37 +81,13 @@ const ContactsData = [
|
|||||||
|
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
first_name: 'Diana',
|
|
||||||
|
|
||||||
last_name: 'Miller',
|
|
||||||
|
|
||||||
email: 'diana.miller@example.com',
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
first_name: 'Ethan',
|
|
||||||
|
|
||||||
last_name: 'Wilson',
|
|
||||||
|
|
||||||
email: 'ethan.wilson@example.com',
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const LeadsData = [
|
const LeadsData = [
|
||||||
{
|
{
|
||||||
name: 'Acme Corp',
|
name: 'Acme Corp',
|
||||||
|
|
||||||
status: 'lost',
|
status: 'contacted',
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
|
|
||||||
@ -155,30 +111,6 @@ const LeadsData = [
|
|||||||
{
|
{
|
||||||
name: 'Initech',
|
name: 'Initech',
|
||||||
|
|
||||||
status: 'contacted',
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: 'Umbrella Corp',
|
|
||||||
|
|
||||||
status: 'new',
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: 'Hooli',
|
|
||||||
|
|
||||||
status: 'lost',
|
status: 'lost',
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
@ -219,26 +151,6 @@ const MetricsData = [
|
|||||||
|
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
name: 'Marketing ROI',
|
|
||||||
|
|
||||||
value: 150,
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: 'Employee Productivity',
|
|
||||||
|
|
||||||
value: 95,
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const NotesData = [
|
const NotesData = [
|
||||||
@ -265,22 +177,6 @@ const NotesData = [
|
|||||||
|
|
||||||
// type code here for "relation_one" field
|
// type code here for "relation_one" field
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
content: 'Umbrella Corp has budget constraints.',
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
content: 'Hooli is expanding their operations.',
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
|
|
||||||
// type code here for "relation_one" field
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const BranchesData = [
|
const BranchesData = [
|
||||||
@ -295,14 +191,6 @@ const BranchesData = [
|
|||||||
{
|
{
|
||||||
name: 'Suburban Office',
|
name: 'Suburban Office',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
name: 'Riverside Office',
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: 'Lakeside Office',
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Similar logic for "relation_many"
|
// Similar logic for "relation_many"
|
||||||
@ -340,28 +228,6 @@ async function associateUserWithBranch() {
|
|||||||
if (User2?.setBranch) {
|
if (User2?.setBranch) {
|
||||||
await User2.setBranch(relatedBranch2);
|
await User2.setBranch(relatedBranch2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedBranch3 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const User3 = await Users.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (User3?.setBranch) {
|
|
||||||
await User3.setBranch(relatedBranch3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch4 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const User4 = await Users.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (User4?.setBranch) {
|
|
||||||
await User4.setBranch(relatedBranch4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateActivityWithLead() {
|
async function associateActivityWithLead() {
|
||||||
@ -397,28 +263,6 @@ async function associateActivityWithLead() {
|
|||||||
if (Activity2?.setLead) {
|
if (Activity2?.setLead) {
|
||||||
await Activity2.setLead(relatedLead2);
|
await Activity2.setLead(relatedLead2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedLead3 = await Leads.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Leads.count())),
|
|
||||||
});
|
|
||||||
const Activity3 = await Activities.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Activity3?.setLead) {
|
|
||||||
await Activity3.setLead(relatedLead3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedLead4 = await Leads.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Leads.count())),
|
|
||||||
});
|
|
||||||
const Activity4 = await Activities.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (Activity4?.setLead) {
|
|
||||||
await Activity4.setLead(relatedLead4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateActivityWithBranch() {
|
async function associateActivityWithBranch() {
|
||||||
@ -454,28 +298,6 @@ async function associateActivityWithBranch() {
|
|||||||
if (Activity2?.setBranch) {
|
if (Activity2?.setBranch) {
|
||||||
await Activity2.setBranch(relatedBranch2);
|
await Activity2.setBranch(relatedBranch2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedBranch3 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Activity3 = await Activities.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Activity3?.setBranch) {
|
|
||||||
await Activity3.setBranch(relatedBranch3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch4 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Activity4 = await Activities.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (Activity4?.setBranch) {
|
|
||||||
await Activity4.setBranch(relatedBranch4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateContactWithLead() {
|
async function associateContactWithLead() {
|
||||||
@ -511,28 +333,6 @@ async function associateContactWithLead() {
|
|||||||
if (Contact2?.setLead) {
|
if (Contact2?.setLead) {
|
||||||
await Contact2.setLead(relatedLead2);
|
await Contact2.setLead(relatedLead2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedLead3 = await Leads.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Leads.count())),
|
|
||||||
});
|
|
||||||
const Contact3 = await Contacts.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Contact3?.setLead) {
|
|
||||||
await Contact3.setLead(relatedLead3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedLead4 = await Leads.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Leads.count())),
|
|
||||||
});
|
|
||||||
const Contact4 = await Contacts.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (Contact4?.setLead) {
|
|
||||||
await Contact4.setLead(relatedLead4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateContactWithBranch() {
|
async function associateContactWithBranch() {
|
||||||
@ -568,28 +368,6 @@ async function associateContactWithBranch() {
|
|||||||
if (Contact2?.setBranch) {
|
if (Contact2?.setBranch) {
|
||||||
await Contact2.setBranch(relatedBranch2);
|
await Contact2.setBranch(relatedBranch2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedBranch3 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Contact3 = await Contacts.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Contact3?.setBranch) {
|
|
||||||
await Contact3.setBranch(relatedBranch3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch4 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Contact4 = await Contacts.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (Contact4?.setBranch) {
|
|
||||||
await Contact4.setBranch(relatedBranch4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateLeadWithOwner() {
|
async function associateLeadWithOwner() {
|
||||||
@ -625,27 +403,40 @@ async function associateLeadWithOwner() {
|
|||||||
if (Lead2?.setOwner) {
|
if (Lead2?.setOwner) {
|
||||||
await Lead2.setOwner(relatedOwner2);
|
await Lead2.setOwner(relatedOwner2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const relatedOwner3 = await Users.findOne({
|
async function associateLeadWithBranch() {
|
||||||
offset: Math.floor(Math.random() * (await Users.count())),
|
const relatedBranch0 = await Branches.findOne({
|
||||||
|
offset: Math.floor(Math.random() * (await Branches.count())),
|
||||||
});
|
});
|
||||||
const Lead3 = await Leads.findOne({
|
const Lead0 = await Leads.findOne({
|
||||||
order: [['id', 'ASC']],
|
order: [['id', 'ASC']],
|
||||||
offset: 3,
|
offset: 0,
|
||||||
});
|
});
|
||||||
if (Lead3?.setOwner) {
|
if (Lead0?.setBranch) {
|
||||||
await Lead3.setOwner(relatedOwner3);
|
await Lead0.setBranch(relatedBranch0);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedOwner4 = await Users.findOne({
|
const relatedBranch1 = await Branches.findOne({
|
||||||
offset: Math.floor(Math.random() * (await Users.count())),
|
offset: Math.floor(Math.random() * (await Branches.count())),
|
||||||
});
|
});
|
||||||
const Lead4 = await Leads.findOne({
|
const Lead1 = await Leads.findOne({
|
||||||
order: [['id', 'ASC']],
|
order: [['id', 'ASC']],
|
||||||
offset: 4,
|
offset: 1,
|
||||||
});
|
});
|
||||||
if (Lead4?.setOwner) {
|
if (Lead1?.setBranch) {
|
||||||
await Lead4.setOwner(relatedOwner4);
|
await Lead1.setBranch(relatedBranch1);
|
||||||
|
}
|
||||||
|
|
||||||
|
const relatedBranch2 = await Branches.findOne({
|
||||||
|
offset: Math.floor(Math.random() * (await Branches.count())),
|
||||||
|
});
|
||||||
|
const Lead2 = await Leads.findOne({
|
||||||
|
order: [['id', 'ASC']],
|
||||||
|
offset: 2,
|
||||||
|
});
|
||||||
|
if (Lead2?.setBranch) {
|
||||||
|
await Lead2.setBranch(relatedBranch2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -682,85 +473,6 @@ async function associateLeadWithBranch() {
|
|||||||
if (Lead2?.setBranch) {
|
if (Lead2?.setBranch) {
|
||||||
await Lead2.setBranch(relatedBranch2);
|
await Lead2.setBranch(relatedBranch2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedBranch3 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Lead3 = await Leads.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Lead3?.setBranch) {
|
|
||||||
await Lead3.setBranch(relatedBranch3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch4 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Lead4 = await Leads.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (Lead4?.setBranch) {
|
|
||||||
await Lead4.setBranch(relatedBranch4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function associateLeadWithBranch() {
|
|
||||||
const relatedBranch0 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Lead0 = await Leads.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 0,
|
|
||||||
});
|
|
||||||
if (Lead0?.setBranch) {
|
|
||||||
await Lead0.setBranch(relatedBranch0);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch1 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Lead1 = await Leads.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 1,
|
|
||||||
});
|
|
||||||
if (Lead1?.setBranch) {
|
|
||||||
await Lead1.setBranch(relatedBranch1);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch2 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Lead2 = await Leads.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 2,
|
|
||||||
});
|
|
||||||
if (Lead2?.setBranch) {
|
|
||||||
await Lead2.setBranch(relatedBranch2);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch3 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Lead3 = await Leads.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Lead3?.setBranch) {
|
|
||||||
await Lead3.setBranch(relatedBranch3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch4 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Lead4 = await Leads.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (Lead4?.setBranch) {
|
|
||||||
await Lead4.setBranch(relatedBranch4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateMetricWithBranch() {
|
async function associateMetricWithBranch() {
|
||||||
@ -796,28 +508,6 @@ async function associateMetricWithBranch() {
|
|||||||
if (Metric2?.setBranch) {
|
if (Metric2?.setBranch) {
|
||||||
await Metric2.setBranch(relatedBranch2);
|
await Metric2.setBranch(relatedBranch2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedBranch3 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Metric3 = await Metrics.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Metric3?.setBranch) {
|
|
||||||
await Metric3.setBranch(relatedBranch3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch4 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Metric4 = await Metrics.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (Metric4?.setBranch) {
|
|
||||||
await Metric4.setBranch(relatedBranch4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateMetricWithBranch() {
|
async function associateMetricWithBranch() {
|
||||||
@ -853,28 +543,6 @@ async function associateMetricWithBranch() {
|
|||||||
if (Metric2?.setBranch) {
|
if (Metric2?.setBranch) {
|
||||||
await Metric2.setBranch(relatedBranch2);
|
await Metric2.setBranch(relatedBranch2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedBranch3 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Metric3 = await Metrics.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Metric3?.setBranch) {
|
|
||||||
await Metric3.setBranch(relatedBranch3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch4 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Metric4 = await Metrics.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (Metric4?.setBranch) {
|
|
||||||
await Metric4.setBranch(relatedBranch4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateNoteWithLead() {
|
async function associateNoteWithLead() {
|
||||||
@ -910,28 +578,6 @@ async function associateNoteWithLead() {
|
|||||||
if (Note2?.setLead) {
|
if (Note2?.setLead) {
|
||||||
await Note2.setLead(relatedLead2);
|
await Note2.setLead(relatedLead2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedLead3 = await Leads.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Leads.count())),
|
|
||||||
});
|
|
||||||
const Note3 = await Notes.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Note3?.setLead) {
|
|
||||||
await Note3.setLead(relatedLead3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedLead4 = await Leads.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Leads.count())),
|
|
||||||
});
|
|
||||||
const Note4 = await Notes.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (Note4?.setLead) {
|
|
||||||
await Note4.setLead(relatedLead4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function associateNoteWithBranch() {
|
async function associateNoteWithBranch() {
|
||||||
@ -967,28 +613,6 @@ async function associateNoteWithBranch() {
|
|||||||
if (Note2?.setBranch) {
|
if (Note2?.setBranch) {
|
||||||
await Note2.setBranch(relatedBranch2);
|
await Note2.setBranch(relatedBranch2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedBranch3 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Note3 = await Notes.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 3,
|
|
||||||
});
|
|
||||||
if (Note3?.setBranch) {
|
|
||||||
await Note3.setBranch(relatedBranch3);
|
|
||||||
}
|
|
||||||
|
|
||||||
const relatedBranch4 = await Branches.findOne({
|
|
||||||
offset: Math.floor(Math.random() * (await Branches.count())),
|
|
||||||
});
|
|
||||||
const Note4 = await Notes.findOne({
|
|
||||||
order: [['id', 'ASC']],
|
|
||||||
offset: 4,
|
|
||||||
});
|
|
||||||
if (Note4?.setBranch) {
|
|
||||||
await Note4.setBranch(relatedBranch4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
@ -20,7 +20,7 @@ export default function WebSiteFooter({
|
|||||||
|
|
||||||
const style = FooterStyle.WITH_PROJECT_NAME;
|
const style = FooterStyle.WITH_PROJECT_NAME;
|
||||||
|
|
||||||
const design = FooterDesigns.DEFAULT_DESIGN;
|
const design = FooterDesigns.DESIGN_DIVERSITY;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
@ -21,7 +21,7 @@ export default function WebSiteHeader({
|
|||||||
|
|
||||||
const style = HeaderStyle.PAGES_RIGHT;
|
const style = HeaderStyle.PAGES_RIGHT;
|
||||||
|
|
||||||
const design = HeaderDesigns.DEFAULT_DESIGN;
|
const design = HeaderDesigns.DESIGN_DIVERSITY;
|
||||||
return (
|
return (
|
||||||
<header id='websiteHeader' className='overflow-hidden'>
|
<header id='websiteHeader' className='overflow-hidden'>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@ -139,7 +139,7 @@ export default function WebSite() {
|
|||||||
<FeaturesSection
|
<FeaturesSection
|
||||||
projectName={'Test 444'}
|
projectName={'Test 444'}
|
||||||
image={['Dashboard showcasing CRM features']}
|
image={['Dashboard showcasing CRM features']}
|
||||||
withBg={1}
|
withBg={0}
|
||||||
features={features_points}
|
features={features_points}
|
||||||
mainText={`Discover Key Features of ${projectName}`}
|
mainText={`Discover Key Features of ${projectName}`}
|
||||||
subTitle={`Unlock the full potential of your legal operations with ${projectName}. Streamline processes, enhance collaboration, and drive efficiency.`}
|
subTitle={`Unlock the full potential of your legal operations with ${projectName}. Streamline processes, enhance collaboration, and drive efficiency.`}
|
||||||
|
|||||||
@ -139,7 +139,7 @@ export default function WebSite() {
|
|||||||
<FeaturesSection
|
<FeaturesSection
|
||||||
projectName={'Test 444'}
|
projectName={'Test 444'}
|
||||||
image={['Dashboard showcasing CRM features']}
|
image={['Dashboard showcasing CRM features']}
|
||||||
withBg={1}
|
withBg={0}
|
||||||
features={features_points}
|
features={features_points}
|
||||||
mainText={`Discover Key Features of ${projectName}`}
|
mainText={`Discover Key Features of ${projectName}`}
|
||||||
subTitle={`Unlock the full potential of your legal operations with ${projectName}. Streamline processes, enhance collaboration, and drive efficiency.`}
|
subTitle={`Unlock the full potential of your legal operations with ${projectName}. Streamline processes, enhance collaboration, and drive efficiency.`}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user