'use strict';
import { joeBlack, getCrudPersonTestData } from './dev/persons/person-mother.js';
import { getNewUuid } from '../../fd-toolbox/uuids.js';
import { createCrudTestData } from './crud-tests/crud-test-data-factory.js';
import { getSamsungPhoneBrand, getApplePhoneBrand } from '../../level2/server/dev/phone-brands/phone-brand-mother.js';
import { getFriendBobGrey, getFriendEddieTyan } from '../../level2/server/dev/friends/friend-mother.js';
import { getJobMicrosoftCSharp, getJobGoogleJava } from '../../level2/server/dev/jobs/job-mother.js';
import { createFriendDirectlyInDb } from '../../level2/server/dev/friends/friend-db.js';
import { createJob } from '../../level2/server/dev/jobs/job-db.js';
import { createPersonDirectlyInDb } from '../../level2/server/dev/persons/person-db.js';
import { createPersonToJobDirectlyInDb } from '../../level2/server/dev/persons/person-to-job-db.js';
import { createPersonToJob3 } from '../../level2/server/dev/persons/person-to-job-mother.js';
import { createPhoneBrand } from '../../level2/server/dev/phone-brands/phone-brand-db.js';
import { personIds } from '../../level2/server/dev/constants/person-ids.js';

var __defProp=Object['defineProperty'],__name=(_0x3296e9,_0x2a993d)=>__defProp(_0x3296e9,'name',{'value':_0x2a993d,'configurable':!![]});async function seedTestData(_0x262f8c,_0x4e0d99){const _0x4b7079=getNewUuid(),_0x40cc33=joeBlack(getNewUuid(),_0x262f8c),_0x11d973=getFriendBobGrey(getNewUuid(),_0x4b7079,_0x262f8c),_0x23886b=getFriendEddieTyan(getNewUuid(),_0x40cc33['id'],_0x262f8c),_0x2a406e=getJobMicrosoftCSharp(getNewUuid(),_0x262f8c),_0x2ef3bd=getJobGoogleJava(getNewUuid(),_0x262f8c),_0x524348=getSamsungPhoneBrand(getNewUuid(),_0x262f8c),_0x3610d2=getApplePhoneBrand(getNewUuid(),_0x262f8c),_0x5d4a62=getCrudPersonTestData(_0x4b7079,_0x262f8c,_0x11d973['id'],_0x23886b['id'],_0x2a406e['id'],_0x2ef3bd['id'],_0x524348['id'],_0x3610d2['id']),_0x5e53d3=_0x5d4a62['resource'];if(_0x4e0d99)_0x5e53d3['userId']=_0x4e0d99;const _0x153d1f=createCrudTestData(getApplePhoneBrand(getNewUuid(),_0x262f8c),getApplePhoneBrand(getNewUuid(),_0x262f8c));_0x153d1f['existingRelations']={'personList':[personIds['ericMalone'],personIds['joeBlack'],personIds['johnDoe']]},await createPhoneBrand(_0x524348),await createPhoneBrand(_0x3610d2),await createJob(_0x2a406e),await createJob(_0x2ef3bd),await createPersonDirectlyInDb(_0x5e53d3),await createPersonDirectlyInDb(_0x40cc33),await createFriendDirectlyInDb(_0x11d973),await createFriendDirectlyInDb(_0x23886b),await createPersonToJobDirectlyInDb(createPersonToJob3(getNewUuid(),_0x4b7079,_0x2a406e['id']));const _0x1cbdbc={'samBrownPerson':_0x5e53d3,'joeBlackPerson':_0x40cc33,'bobGreyFriend':_0x11d973,'eddieTyanFriend':_0x23886b,'microsoftJob':_0x2a406e,'googleJavaJob':_0x2ef3bd,'samsungPhone':_0x524348,'applePhone':_0x3610d2,'crudTestData':_0x5d4a62,'phoneBrandTestData':_0x153d1f};return _0x1cbdbc;}__name(seedTestData,'seedTestData');

export { seedTestData };
