package com.icomsys.main_vm.biz.test.controller;

import com.icomsys.main_vm.biz.common.common.service.SequenceService;
import com.icomsys.main_vm.common.code.enumresource.PolicyResource;
import com.icomsys.main_vm.common.code.enumresource.RoleResource;
import com.icomsys.main_vm.common.code.enumresource.SolTypeResource;
import com.icomsys.main_vm.db.jpa.entity.conversation.TbProjectSetting;
import com.icomsys.main_vm.db.jpa.entity.scenario.TbLongtextManager;
import com.icomsys.main_vm.db.jpa.entity.scenario.TbScenarioHistory;
import com.icomsys.main_vm.db.jpa.entity.scenario.TbScenarioMaster;
import com.icomsys.main_vm.db.jpa.entity.system.*;
import com.icomsys.main_vm.db.jpa.repo.conversation.TbProjectSettingRepo;
import com.icomsys.main_vm.db.jpa.repo.scenario.TbLongtextManagerRepo;
import com.icomsys.main_vm.db.jpa.repo.scenario.TbScenarioHistoryRepo;
import com.icomsys.main_vm.db.jpa.repo.scenario.TbScenarioMasterRepo;
import com.icomsys.main_vm.db.jpa.repo.system.*;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;

@Service
@Slf4j
@RequiredArgsConstructor
public class CreateDataService {

    private final TbBotCommonCodeRepo tbBotCommonCodeRepo;
    private final TbBotUserRepo tbBotUserRepo;
    private final TbCustPolicyRepo tbCustPolicyRepo;
    private final TbIcsCustInfoRepo tbIcsCustInfoRepo;
    private final TbIcsOprMngInfoRepo tbIcsOprMngInfoRepo;
    private final TbServiceAuthGroupRepo tbServiceAuthGroupRepo;
    private final TbServiceGrouopRepo tbServiceGrouopRepo;
    private final TbServiceGroupPolicyRepo tbServiceGroupPolicyRepo;
    private final TbUserAuthGroupRepo tbUserAuthGroupRepo;
    private final TbUserCustRepo tbUserCustRepo;
    private final SequenceService sequenceService;
    private final PasswordEncoder passwordEncoder;
    private final TbScenarioMasterRepo tbScenarioMasterRepo;
    private final TbScenarioHistoryRepo tbScenarioHistoryRepo;
    private final TbLongtextManagerRepo tbLongtextManagerRepo;
    private final TbProjectSettingRepo tbProjectSettingRepo;


//    @Transactional
//    public void keyCreate() {
//        tbKeyGenerateRepo.save(TbKeyGenerate.builder().tableName("TB_BOT_USER").nextId(500L).build());
//        tbKeyGenerateRepo.save(TbKeyGenerate.builder().tableName("TB_SERVICE_AUTH_GROUP").nextId(500L).build());
//    }


    @Transactional
    public void createuserData() {
        if (!tbBotUserRepo.existsByUserId("sysadmin")) {
            TbBotUser save1 = TbBotUser.builder()
//                    .userSeq(sequenceService.UserSeqNext())
                    .userSeq(1L)
                    .custCode("ICS")
                    .lastUseServiceGroup("GROUP1")
                    .roleVal(RoleResource.SYSTEMADMIN.getName())
                    .userId("sysadmin")
                    .password(passwordEncoder.encode("a1234"))
                    .userName("ICOMSYSADMIN")
                    .eMail("test@test.com")
                    .mobileNo("010-1234-5678")
                    .loginCheck(0)
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build();
            tbBotUserRepo.save(save1);
        }
    }

    @Transactional
    public void userDataTest() {
        List<TbBotUser> aa = new ArrayList<>();
        for (int i = 0; i < 350; i++) {
            TbBotUser save1 = TbBotUser.builder()
//                    .userSeq(sequenceService.UserSeqNext())
                    .userSeq(1L + i)
                    .custCode("ICS")
                    .lastUseServiceGroup("GROUP1")
                    .roleVal(RoleResource.SYSTEMADMIN.getName())
                    .userId("sysadmin" + i)
                    .password(passwordEncoder.encode("a1234"))
                    .userName("testSystemAdmin" + i)
                    .eMail("test@test.com" + i)
                    .mobileNo("010-1234-5678")
                    .loginCheck(0)
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build();
            aa.add(save1);
        }
        tbBotUserRepo.saveAll(aa);
    }

    @Transactional
    public void createCust() {
        TbIcsCustInfo save1 = TbIcsCustInfo.builder()
                .custCode("ICS")
                .custName("ICOMSYS")
                .custTel("disable")
                .custServiceMent("disable")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build();
        tbIcsCustInfoRepo.save(save1);
    }

    @Transactional
    public void createServiceGroup() {
        TbServiceGrouop save1 = TbServiceGrouop.builder()
                .serviceGroup("GROUP1")
                .serviceGroupUpper("GROUP1")
                .custCode("ICS")
                .serviceType("M")
                .serviceGroupName("서비스그룹테스트1")
                .serviceGroupDesc("테스트용서비스그룹입니다.")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build();
        tbServiceGrouopRepo.save(save1);
        TbServiceGrouop save2 = TbServiceGrouop.builder()
                .serviceGroup("GROUP2")
                .serviceGroupUpper("GROUP1")
                .custCode("ICS")
                .serviceType("S")
                .serviceGroupName("서비스그룹테스트2")
                .serviceGroupDesc("테스트용서비스그룹입니다.")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build();
        tbServiceGrouopRepo.save(save2);

        TbServiceGrouop save3 = TbServiceGrouop.builder()
                .serviceGroup("GROUP3")
                .serviceGroupUpper("GROUP1")
                .custCode("ICS")
                .serviceType("S")
                .serviceGroupName("서비스그룹테스트3")
                .serviceGroupDesc("테스트용서비스그룹입니다.")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build();
        tbServiceGrouopRepo.save(save3);

        TbServiceGrouop save4 = TbServiceGrouop.builder()
                .serviceGroup("OURSTORE")
                .serviceGroupUpper("OURSTORE")
                .custCode("ICS")
                .serviceType("M")
                .serviceGroupName("우리가게")
                .serviceGroupDesc("우리가게테스트용")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build();
        tbServiceGrouopRepo.save(save4);
        TbServiceGrouop save5 = TbServiceGrouop.builder()
                .serviceGroup("OURUTONG")
                .serviceGroupUpper("OURSTORE")
                .custCode("ICS")
                .serviceType("S")
                .serviceGroupName("우리가게-유통업")
                .serviceGroupDesc("우리가게-유통업 테스트용")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build();
        tbServiceGrouopRepo.save(save5);
        TbServiceGrouop save6 = TbServiceGrouop.builder()
                .serviceGroup("OURYOSIC")
                .serviceGroupUpper("OURSTORE")
                .custCode("ICS")
                .serviceType("S")
                .serviceGroupName("우리가게-요식업")
                .serviceGroupDesc("우리가게-요식업 테스트용")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build();
        tbServiceGrouopRepo.save(save6);

        TbServiceGrouop save7 = TbServiceGrouop.builder()
                .serviceGroup("YOUSTORE")
                .serviceGroupUpper("YOUSTORE")
                .custCode("ICS")
                .serviceType("M")
                .serviceGroupName("너네가게")
                .serviceGroupDesc("너네가게테스트용")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build();
        tbServiceGrouopRepo.save(save7);
        TbServiceGrouop save8 = TbServiceGrouop.builder()
                .serviceGroup("YOUUTONG")
                .serviceGroupUpper("YOUSTORE")
                .custCode("ICS")
                .serviceType("S")
                .serviceGroupName("너네가게-유통업")
                .serviceGroupDesc("너네가게-유통업 테스트용")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build();
        tbServiceGrouopRepo.save(save8);
        TbServiceGrouop save9 = TbServiceGrouop.builder()
                .serviceGroup("YOUYOSIC")
                .serviceGroupUpper("YOUSTORE")
                .custCode("ICS")
                .serviceType("S")
                .serviceGroupName("너네가게-요식업")
                .serviceGroupDesc("너네가게-요식업 테스트용")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build();
        tbServiceGrouopRepo.save(save9);
    }


    @Transactional
    public void createUserCust() {

        TbUserCust save1 = TbUserCust.builder()
                .custCode("ICS")
                .serviceGroup("GROUP1")
                .userSeq(1L)
                .build();
        TbUserCust save2 = TbUserCust.builder()
                .custCode("ICS")
                .serviceGroup("GROUP2")
                .userSeq(1L)
                .build();
        TbUserCust save3 = TbUserCust.builder()
                .custCode("ICS")
                .serviceGroup("GROUP3")
                .userSeq(1L)
                .build();

        TbUserCust save4 = TbUserCust.builder()
                .custCode("ICS")
                .serviceGroup("OURSTORE")
                .userSeq(1L)
                .build();
        TbUserCust save5 = TbUserCust.builder()
                .custCode("ICS")
                .serviceGroup("OURUTONG")
                .userSeq(1L)
                .build();
        TbUserCust save6 = TbUserCust.builder()
                .custCode("ICS")
                .serviceGroup("OURYOSIC")
                .userSeq(1L)
                .build();

        TbUserCust save7 = TbUserCust.builder()
                .custCode("ICS")
                .serviceGroup("YOUSTORE")
                .userSeq(1L)
                .build();
        TbUserCust save8 = TbUserCust.builder()
                .custCode("ICS")
                .serviceGroup("YOUUTONG")
                .userSeq(1L)
                .build();
        TbUserCust save9 = TbUserCust.builder()
                .custCode("ICS")
                .serviceGroup("YOUYOSIC")
                .userSeq(1L)
                .build();
        tbUserCustRepo.save(save1);
        tbUserCustRepo.save(save2);
        tbUserCustRepo.save(save3);
        tbUserCustRepo.save(save4);
        tbUserCustRepo.save(save5);
        tbUserCustRepo.save(save6);
        tbUserCustRepo.save(save7);
        tbUserCustRepo.save(save8);
        tbUserCustRepo.save(save9);

    }

    @Transactional
    public void createCustPolicy() {
        List<TbCustPolicy> save1 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e -> save1.add(TbCustPolicy.builder()
                .serviceGroup("GROUP1")
                .policyVal(e.getName())
                .custCode("ICS")
                .build()));
        List<TbCustPolicy> save2 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e -> save2.add(TbCustPolicy.builder()
                .serviceGroup("GROUP2")
                .policyVal(e.getName())
                .custCode("ICS")
                .build()));
        List<TbCustPolicy> save3 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e -> save3.add(TbCustPolicy.builder()
                .serviceGroup("GROUP3")
                .policyVal(e.getName())
                .custCode("ICS")
                .build()));

        List<TbCustPolicy> save4 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e -> save4.add(TbCustPolicy.builder()
                .serviceGroup("OURSTORE")
                .policyVal(e.getName())
                .custCode("ICS")
                .build()));
        List<TbCustPolicy> save5 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e -> save5.add(TbCustPolicy.builder()
                .serviceGroup("OURUTONG")
                .policyVal(e.getName())
                .custCode("ICS")
                .build()));
        List<TbCustPolicy> save6 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e -> save6.add(TbCustPolicy.builder()
                .serviceGroup("OURYOSIC")
                .policyVal(e.getName())
                .custCode("ICS")
                .build()));
        List<TbCustPolicy> save7 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e -> save7.add(TbCustPolicy.builder()
                .serviceGroup("YOUSTORE")
                .policyVal(e.getName())
                .custCode("ICS")
                .build()));
        List<TbCustPolicy> save8 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e -> save8.add(TbCustPolicy.builder()
                .serviceGroup("YOUUTONG")
                .policyVal(e.getName())
                .custCode("ICS")
                .build()));
        List<TbCustPolicy> save9 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e -> save9.add(TbCustPolicy.builder()
                .serviceGroup("YOUYOSIC")
                .policyVal(e.getName())
                .custCode("ICS")
                .build()));

        tbCustPolicyRepo.saveAll(save1);
        tbCustPolicyRepo.saveAll(save2);
        tbCustPolicyRepo.saveAll(save3);
        tbCustPolicyRepo.saveAll(save4);
        tbCustPolicyRepo.saveAll(save5);
        tbCustPolicyRepo.saveAll(save6);
        tbCustPolicyRepo.saveAll(save7);
        tbCustPolicyRepo.saveAll(save8);
        tbCustPolicyRepo.saveAll(save9);
    }

    @Transactional
    public void createServiceAuthGroup() {
        if (!tbServiceAuthGroupRepo.existsById(1L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(1L)
                    .serviceGroup("GROUP1")
                    .custCode("ICS")
                    .policyGroupName("그룹1 전체권한")
                    .policyGroupDesc("저장테스트")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(2L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(2L)
                    .serviceGroup("GROUP2")
                    .custCode("ICS")
                    .policyGroupName("그룹2 전체권한")
                    .policyGroupDesc("저장테스트")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(3L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(3L)
                    .serviceGroup("GROUP3")
                    .custCode("ICS")
                    .policyGroupName("그룹3 전체권한")
                    .policyGroupDesc("저장테스트")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(4L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(4L)
                    .serviceGroup("OURSTORE")
                    .custCode("ICS")
                    .policyGroupName("우리가게전체권한")
                    .policyGroupDesc("저장테스트")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(5L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(5L)
                    .serviceGroup("OURUTONG")
                    .custCode("ICS")
                    .policyGroupName("우리가게유통업전체권한")
                    .policyGroupDesc("저장테스트")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(6L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(6L)
                    .serviceGroup("OURYOSIC")
                    .custCode("ICS")
                    .policyGroupName("우리가게요식업전체권한")
                    .policyGroupDesc("저장테스트")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(7L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(7L)
                    .serviceGroup("YOUSTORE")
                    .custCode("ICS")
                    .policyGroupName("너네가게전체권한")
                    .policyGroupDesc("저장테스트")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(8L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(8L)
                    .serviceGroup("YOUUTONG")
                    .custCode("ICS")
                    .policyGroupName("너네가게유통업전체권한")
                    .policyGroupDesc("저장테스트")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(9L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(9L)
                    .serviceGroup("YOUYOSIC")
                    .custCode("ICS")
                    .policyGroupName("너네가게요식업전체권한")
                    .policyGroupDesc("저장테스트")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
    }

    @Transactional
    public void createUserAuthGroup() {

        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder()
                .userSeq(1L)
                .authGroupSeq(1L)
                .serviceGroup("GROUP1")
                .custCode("ICS")
                .build());
        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder()
                .userSeq(1L)
                .authGroupSeq(2L)
                .serviceGroup("GROUP2")
                .custCode("ICS")
                .build());
        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder()
                .userSeq(1L)
                .authGroupSeq(3L)
                .serviceGroup("GROUP3")
                .custCode("ICS")
                .build());

        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder()
                .userSeq(1L)
                .authGroupSeq(4L)
                .serviceGroup("OURSTORE")
                .custCode("ICS")
                .build());

        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder()
                .userSeq(1L)
                .authGroupSeq(5L)
                .serviceGroup("OURUTONG")
                .custCode("ICS")
                .build());
        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder()
                .userSeq(1L)
                .authGroupSeq(6L)
                .serviceGroup("OURYOSIC")
                .custCode("ICS")
                .build());
        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder()
                .userSeq(1L)
                .authGroupSeq(7L)
                .serviceGroup("YOUSTORE")
                .custCode("ICS")
                .build());
        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder()
                .userSeq(1L)
                .authGroupSeq(8L)
                .serviceGroup("YOUUTONG")
                .custCode("ICS")
                .build());
        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder()
                .userSeq(1L)
                .authGroupSeq(9L)
                .serviceGroup("YOUYOSIC")
                .custCode("ICS")
                .build());
    }


    @Transactional
    public void createServuceGroupPolicy() {
        List<TbServiceGroupPolicy> saveList1 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e ->
                saveList1.add(TbServiceGroupPolicy.builder()
                        .authGroupSeq(1L)
                        .serviceGroup("GROUP1")
                        .policyVal(e.getName())
                        .custCode("ICS")
                        .build())
        );

        List<TbServiceGroupPolicy> saveList2 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e ->
                saveList2.add(TbServiceGroupPolicy.builder()
                        .authGroupSeq(2L)
                        .serviceGroup("GROUP2")
                        .policyVal(e.getName())
                        .custCode("ICS")
                        .build())
        );

        List<TbServiceGroupPolicy> saveList3 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e ->
                saveList3.add(TbServiceGroupPolicy.builder()
                        .authGroupSeq(3L)
                        .serviceGroup("GROUP3")
                        .policyVal(e.getName())
                        .custCode("ICS")
                        .build())
        );

        List<TbServiceGroupPolicy> saveList4 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e ->
                saveList4.add(TbServiceGroupPolicy.builder()
                        .authGroupSeq(4L)
                        .serviceGroup("OURSTORE")
                        .policyVal(e.getName())
                        .custCode("ICS")
                        .build())
        );
        List<TbServiceGroupPolicy> saveList5 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e ->
                saveList5.add(TbServiceGroupPolicy.builder()
                        .authGroupSeq(5L)
                        .serviceGroup("OURUTONG")
                        .policyVal(e.getName())
                        .custCode("ICS")
                        .build())
        );

        List<TbServiceGroupPolicy> saveList6 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e ->
                saveList6.add(TbServiceGroupPolicy.builder()
                        .authGroupSeq(6L)
                        .serviceGroup("OURYOSIC")
                        .policyVal(e.getName())
                        .custCode("ICS")
                        .build())
        );

        List<TbServiceGroupPolicy> saveList7 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e ->
                saveList7.add(TbServiceGroupPolicy.builder()
                        .authGroupSeq(7L)
                        .serviceGroup("YOUSTORE")
                        .policyVal(e.getName())
                        .custCode("ICS")
                        .build())
        );

        List<TbServiceGroupPolicy> saveList8 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e ->
                saveList8.add(TbServiceGroupPolicy.builder()
                        .authGroupSeq(8L)
                        .serviceGroup("YOUUTONG")
                        .policyVal(e.getName())
                        .custCode("ICS")
                        .build())
        );
        List<TbServiceGroupPolicy> saveList9 = new ArrayList<>();
        PolicyResource.ALL.stream().forEach(e ->
                saveList9.add(TbServiceGroupPolicy.builder()
                        .authGroupSeq(9L)
                        .serviceGroup("YOUYOSIC")
                        .policyVal(e.getName())
                        .custCode("ICS")
                        .build())
        );
        //        OURSTORE
//        OURUTONG
//        OURYOSIC
//        YOUSTORE
//        YOUUTONG
//        YOUYOSIC

        tbServiceGroupPolicyRepo.saveAll(saveList1);
        tbServiceGroupPolicyRepo.saveAll(saveList2);
        tbServiceGroupPolicyRepo.saveAll(saveList3);
        tbServiceGroupPolicyRepo.saveAll(saveList4);
        tbServiceGroupPolicyRepo.saveAll(saveList5);
        tbServiceGroupPolicyRepo.saveAll(saveList6);
        tbServiceGroupPolicyRepo.saveAll(saveList7);
        tbServiceGroupPolicyRepo.saveAll(saveList8);
        tbServiceGroupPolicyRepo.saveAll(saveList9);
    }


    @Transactional
    public void pagringdatacreate() {
        List<TbIcsCustInfo> ticis = new ArrayList<>();
        for (int i = 0; i < 350; i++) {
            ticis.add(TbIcsCustInfo.builder()
                    .custCode("ICS" + i)
                    .custName("TESTNAME" + i)
                    .custTel("disable" + i)
                    .custServiceMent("disable" + i)
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        tbIcsCustInfoRepo.saveAll(ticis);
    }

    @Transactional
    public void createOpr() {
        List<TbIcsOprMngInfo> oprs = new ArrayList<>();
//        String cust = "ICS";
        String solVal = SolTypeResource.RCP.getName();
//        List<String> group = .stream().map(e -> e.getServiceGroup())
//                .collect(Collectors.toList());
        for (TbServiceGrouop e : tbServiceGrouopRepo.findAll()) {
            oprs.add(TbIcsOprMngInfo
                    .builder()
                    .custCode(e.getCustCode())
                    .serviceGroup(e.getServiceGroup())
                    .solVal(SolTypeResource.RCP.getName())
                    .oprMngCode(e.getCustCode() + "_" + solVal + "_" + e.getServiceGroup())
                    .routeUrl("http://localhost:8092/bot/rcp/standard/process")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        tbIcsOprMngInfoRepo.saveAll(oprs);
    }


    @Transactional
    public void createCommon() {
        List<String> oprs = tbIcsOprMngInfoRepo.findAll().stream().map(e -> e.getOprMngCode())
                .collect(Collectors.toList());
        List<TbBotCommonCode> tbccs = new ArrayList<>();
        AtomicInteger ai = new AtomicInteger();
        for (String e : oprs) {
            int seq = ai.getAndIncrement();
            for (int i = 0; i < 90; i++) {
                tbccs.add(TbBotCommonCode.builder()
                        .minorCode(seq + "minorCode" + i)
                        .majorCode(seq + "majorCode" + i)
                        .oprMngCode(e)
                        .codeName(seq + "Test" + i)
                        .attribute1(seq + "attri1bute" + i)
                        .attribute2(seq + "attri2bute" + i)
                        .attribute3(seq + "attri3bute" + i)
                        .registId("sysadmin")
                        .registDate(LocalDateTime.now())
                        .updateId("sysadmin")
                        .updateDate(LocalDateTime.now())
                        .build());
            }
        }
        tbBotCommonCodeRepo.saveAll(tbccs);
    }

    @Transactional
    public void scenarioMaster() {
        if (!tbScenarioMasterRepo.existsById(1L)) {
            tbScenarioMasterRepo.save(TbScenarioMaster.builder()
                    .oprMngCode("UPLUS_RCP_AISTORE")
                    .scenarioName("예약 시나리오 테스트")
                    .useYn("Y")
                    .registId("uplus")
                    .registDate(LocalDateTime.now())
                    .updateId("uplus")
                    .updateDate(LocalDateTime.now())
                    .build());
        }

    }

    @Transactional
    public void scenarioHistory() {
        if (!tbScenarioHistoryRepo.existsById(1L)) {
            tbScenarioHistoryRepo.save(TbScenarioHistory.builder()
                    .masterSeq(1L)
                    .lastYn("Y")
                    .registId("uplus")
                    .registDate(LocalDateTime.now())
                    .build());
        }

    }

    @Transactional
    public void longtextManager() {
        tbLongtextManagerRepo.save(TbLongtextManager.builder()
                .rfSeq(2L)
                .tableCode(2)
                .columnCode(1)
                .textContents("{\"page\":{\"width\":16782,\"height\":23812,\"pageColor\":-1,\"pageWidth\":8391,\"pageHeight\":11906,\"pageLandscape\":false},\"connectors\":[{\"key\":\"65\",\"dataKey\":\"c06365bf-ae13-4368-ba2f-aeec1da555db\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":3027,\"y\":8846},{\"x\":4071,\"y\":8846}],\"beginItemKey\":\"0\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"3\",\"endConnectionPointIndex\":-1},{\"key\":\"66\",\"dataKey\":\"052ec6ca-af88-417c-a6ae-58ce8fe414a8\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":6807,\"y\":8846},{\"x\":7851,\"y\":8846}],\"beginItemKey\":\"3\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"6\",\"endConnectionPointIndex\":-1},{\"key\":\"67\",\"dataKey\":\"37234d68-85d7-477a-a38f-30eed58c1d7c\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":9219,\"y\":9386},{\"x\":9219,\"y\":10466}],\"beginItemKey\":\"6\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"10\",\"endConnectionPointIndex\":-1},{\"key\":\"68\",\"dataKey\":\"011b9f4d-2d7d-4115-b29b-8c9210803540\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":9219,\"y\":11546},{\"x\":9219,\"y\":12626}],\"beginItemKey\":\"10\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"15\",\"endConnectionPointIndex\":-1},{\"key\":\"69\",\"dataKey\":\"bbadf868-891f-4c34-b40b-6c65b50239a4\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":10587,\"y\":13166},{\"x\":11451,\"y\":13166}],\"beginItemKey\":\"15\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"17\",\"endConnectionPointIndex\":-1},{\"key\":\"70\",\"dataKey\":\"c8d28e9c-935d-433b-bb46-f054fdab6619\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":12819,\"y\":13706},{\"x\":12819,\"y\":15506}],\"beginItemKey\":\"17\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"2\",\"endConnectionPointIndex\":-1},{\"key\":\"71\",\"dataKey\":\"853d1893-f79d-4861-b581-abf2231d34c3\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":7851,\"y\":13166},{\"x\":6807,\"y\":13166}],\"beginItemKey\":\"15\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"31\",\"endConnectionPointIndex\":-1},{\"key\":\"72\",\"dataKey\":\"368f77f0-a307-49b4-a013-53e002f1b47d\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":5439,\"y\":12626},{\"x\":5439,\"y\":11906}],\"beginItemKey\":\"31\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"40\",\"endConnectionPointIndex\":-1},{\"key\":\"73\",\"dataKey\":\"9c7a716e-0107-43ab-ae12-456a668c5be2\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":5439,\"y\":10826},{\"x\":5439,\"y\":9386}],\"beginItemKey\":\"40\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"3\",\"endConnectionPointIndex\":-1},{\"key\":\"74\",\"dataKey\":\"757bbd79-b934-497c-9743-8a34ebfb734b\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":4071,\"y\":11366},{\"x\":3027,\"y\":11366}],\"beginItemKey\":\"40\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"43\",\"endConnectionPointIndex\":-1},{\"key\":\"75\",\"dataKey\":\"e5219d54-11f8-454e-b282-61f57ba0cf8e\",\"locked\":false,\"zIndex\":0,\"points\":[{\"x\":11451,\"y\":16046},{\"x\":3027,\"y\":11366}],\"beginItemKey\":\"2\",\"beginConnectionPointIndex\":-1,\"endItemKey\":\"43\",\"endConnectionPointIndex\":-1}],\"shapes\":[{\"key\":\"0\",\"dataKey\":1,\"customData\":{\"type\":\"Intent Node\",\"text\":\"\",\"ID\":1,\"nodeCode\":1,\"nodeName\":\"예약시작\",\"intentName\":\"예약\",\"ment\":\"예약을 진행하겠습니다.\"},\"locked\":false,\"zIndex\":0,\"type\":\"Intent Node\",\"text\":\"\",\"x\":291,\"y\":8306,\"width\":2736,\"height\":1080},{\"key\":\"2\",\"dataKey\":3,\"customData\":{\"type\":\"Speak Node\",\"text\":\"\",\"ID\":3,\"nodeCode\":3,\"nodeName\":\"예약완료멘트\",\"ment\":\"예약을 완료하였습니다.\"},\"locked\":false,\"zIndex\":0,\"type\":\"Speak Node\",\"text\":\"\",\"x\":11451,\"y\":15506,\"width\":2736,\"height\":1080},{\"key\":\"3\",\"dataKey\":4,\"customData\":{\"type\":\"Slot Node\",\"text\":\"\",\"ID\":4,\"nodeCode\":4,\"nodeName\":\"예약 시간 받기\",\"parameterId\":\"예약시간\",\"ment\":\"예약 시간을 말씀해주세요\",\"reMent\":\"죄송합니다. 한번더 예약 시간을 말씀해주세요\",\"reMentCnt\":\"3\",\"requiredQuestion\":true},\"locked\":false,\"zIndex\":0,\"type\":\"Slot Node\",\"text\":\"\",\"x\":4071,\"y\":8306,\"width\":2736,\"height\":1080},{\"key\":\"6\",\"dataKey\":5,\"customData\":{\"type\":\"API Node\",\"text\":\"\",\"ID\":5,\"nodeCode\":5,\"nodeName\":\"예약 가능 확인\",\"apiNode\":\"API 노드 테스트\"},\"locked\":false,\"zIndex\":0,\"type\":\"API Node\",\"text\":\"\",\"x\":7851,\"y\":8306,\"width\":2736,\"height\":1080},{\"key\":\"10\",\"dataKey\":6,\"customData\":{\"type\":\"Function Node\",\"text\":\"\",\"ID\":6,\"nodeCode\":6,\"nodeName\":\"예약 가능 여부 확인\",\"fParams\":[\"예약시간\",\"예약가능여부\"]},\"locked\":false,\"zIndex\":0,\"type\":\"Function Node\",\"text\":\"\",\"x\":7851,\"y\":10466,\"width\":2736,\"height\":1080},{\"key\":\"15\",\"dataKey\":7,\"customData\":{\"type\":\"Split Node\",\"text\":\"\",\"ID\":7,\"nodeCode\":7,\"nodeName\":\"예약 가능 여부 확인\",\"condition0\":\"#{예약가능여부} = 1\",\"condition1\":\"#{예약가능여부} = 2\",\"ment1\":\"해당 시간에는 예약이 마감되었습니다.\"},\"locked\":false,\"zIndex\":0,\"type\":\"Split Node\",\"text\":\"\",\"x\":7851,\"y\":12626,\"width\":2736,\"height\":1080},{\"key\":\"17\",\"dataKey\":8,\"customData\":{\"type\":\"API Node\",\"text\":\"\",\"ID\":8,\"nodeCode\":8,\"nodeName\":\"예약진행\"},\"locked\":false,\"zIndex\":0,\"type\":\"API Node\",\"text\":\"\",\"x\":11451,\"y\":12626,\"width\":2736,\"height\":1080},{\"key\":\"31\",\"dataKey\":10,\"customData\":{\"type\":\"Slot Node\",\"text\":\"\",\"ID\":10,\"nodeCode\":10,\"nodeName\":\"예약 실패 다시 예약 확인\",\"parameterId\":\"YESNO\",\"ment\":\"다른 시간에 예약 하시겠습니까?\",\"requiredQuestion\":true},\"locked\":false,\"zIndex\":0,\"type\":\"Slot Node\",\"text\":\"\",\"x\":4071,\"y\":12626,\"width\":2736,\"height\":1080},{\"key\":\"40\",\"dataKey\":11,\"customData\":{\"type\":\"Split Node\",\"text\":\"\",\"ID\":11,\"nodeCode\":11,\"nodeName\":\"예약 다시 받기\",\"condition0\":\"#{YESNO} = 'YES'\",\"condition1\":\"#{YESNO} = 'NO'\"},\"locked\":false,\"zIndex\":0,\"type\":\"Split Node\",\"text\":\"\",\"x\":4071,\"y\":10826,\"width\":2736,\"height\":1080},{\"key\":\"43\",\"dataKey\":12,\"customData\":{\"type\":\"Call Node\",\"text\":\"\",\"ID\":12,\"nodeCode\":12,\"nodeName\":\"호종료\",\"ment\":\"감사합니다. \"},\"locked\":false,\"zIndex\":0,\"type\":\"Call Node\",\"text\":\"\",\"x\":291,\"y\":10826,\"width\":2736,\"height\":1080}],\"scenarioParam\":{\"예약시간\":[4,6],\"예약가능여부\":[6],\"YESNO\":[10]}}")
                .checksum("0AiYZYQgCy3B8JAKtlKCgw==")
                .build());
    }

    @Transactional
    public void uplususercreate() {
        if (!tbBotUserRepo.existsById(2L)) {
            tbBotUserRepo.save(TbBotUser.builder()
                    .userSeq(2L)
                    .custCode("UPLUS")
                    .lastUseServiceGroup("OURSTOREAI")
                    .roleVal(RoleResource.USERADMIN.getName())
                    .userId("uplus")
                    .password(passwordEncoder.encode("1"))
                    .userName("유플러스어드민")
                    .loginCheck(0)
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbBotUserRepo.existsById(3L)) {
            tbBotUserRepo.save(TbBotUser.builder()
                    .userSeq(3L)
                    .custCode("UPLUS")
                    .lastUseServiceGroup("OURSTOREAI")
                    .roleVal(RoleResource.USER.getName())
                    .userId("uplususer1")
                    .password(passwordEncoder.encode("1"))
                    .userName("유플러스유저1")
                    .loginCheck(0)
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbBotUserRepo.existsById(4L)) {
            tbBotUserRepo.save(TbBotUser.builder()
                    .userSeq(4L)
                    .custCode("UPLUS")
                    .lastUseServiceGroup("OURSTOREAI")
                    .roleVal(RoleResource.USER.getName())
                    .userId("uplususer2")
                    .password(passwordEncoder.encode("1"))
                    .userName("유플러스유저2")
                    .loginCheck(0)
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }

        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemcustmanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemcustmanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemcustmanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemcustmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemcustmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemcustmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemgroupAuthmanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemgroupAuthmanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemgroupAuthmanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemgroupAuthmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemgroupAuthmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemgroupAuthmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemoprmngcodemanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemoprmngcodemanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemoprmngcodemanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemoprmngcodemanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemoprmngcodemanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemoprmngcodemanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemserviceGroupmanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemserviceGroupmanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemserviceGroupmanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemserviceGroupmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemserviceGroupmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemserviceGroupmanageRead").serviceGroup("OURSTOREAI").build());
//        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemuserAdminmanageFull").serviceGroup("AISTORE").build());
//        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemuserAdminmanageFull").serviceGroup("DAISO").build());
//        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemuserAdminmanageFull").serviceGroup("OURSTOREAI").build());
//        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemuserAdminmanageRead").serviceGroup("AISTORE").build());
//        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemuserAdminmanageRead").serviceGroup("DAISO").build());
//        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemuserAdminmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemusermanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemusermanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemusermanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemusermanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemusermanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("commonsystemusermanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("privacymasking").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("privacymasking").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("privacymasking").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationapiNodemanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationapiNodemanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationapiNodemanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationapiNodemanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationapiNodemanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationapiNodemanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationcmmNodemanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationcmmNodemanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationcmmNodemanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationcmmNodemanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationcmmNodemanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationcmmNodemanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationintentmanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationintentmanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationintentmanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationintentmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationintentmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationintentmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationscenariomanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationscenariomanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationscenariomanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationscenariomanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationscenariomanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationscenariomanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationscenariomanageRelease").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationscenariomanageRelease").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationscenariomanageRelease").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationsynonymmanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationsynonymmanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationsynonymmanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationsynonymmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationsynonymmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationsynonymmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestinferencemanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestinferencemanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestinferencemanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestinferencemanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestinferencemanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestinferencemanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestsimulatormanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestsimulatormanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestsimulatormanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestsimulatormanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestsimulatormanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestsimulatormanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTeststttestmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTeststttestmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTeststttestmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestttstestmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestttstestmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcplearningTestttstestmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringworkhistorymanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringworkhistorymanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpmonitoringworkhistorymanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagebgmmanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagebgmmanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagebgmmanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagebgmmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagebgmmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagebgmmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticscallinfomanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticscallinfomanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticscallinfomanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticscallRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticscallRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticscallRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsintentdaymanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsintentdaymanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsintentdaymanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsintentitemmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsintentitemmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsintentitemmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsintentRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsintentRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsintentRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsscenariodaymanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsscenariodaymanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsscenariodaymanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsscenarioitemmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsscenarioitemmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsscenarioitemmanageRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsscenarioRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsscenarioRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpstatisticsscenarioRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rootRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rootRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rootRead").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagettstagmanageFull").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagettstagmanageFull").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagettstagmanageFull").serviceGroup("OURSTOREAI").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagettstagmanageRead").serviceGroup("AISTORE").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagettstagmanageRead").serviceGroup("DAISO").build());
        tbCustPolicyRepo.save(TbCustPolicy.builder().custCode("UPLUS").policyVal("rcpoprmanagettstagmanageRead").serviceGroup("OURSTOREAI").build());

        tbIcsCustInfoRepo.save(TbIcsCustInfo.builder()
                .custCode("UPLUS")
                .custName("유플러스")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build());

        tbIcsOprMngInfoRepo.save(TbIcsOprMngInfo.builder()
                .custCode("UPLUS")
                .serviceGroup("AISTORE")
                .oprMngCode("UPLUS_RCP_AISTORE")
                .solVal("RCP")
                .useYn("Y")
                .routeUrl("http://localhost:8092/bot/rcp/standard/process")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build());
        tbIcsOprMngInfoRepo.save(TbIcsOprMngInfo.builder()
                .custCode("UPLUS")
                .serviceGroup("DAISO")
                .oprMngCode("UPLUS_RCP_DAISO")
                .solVal("RCP")
                .useYn("Y")
                .routeUrl("http://localhost:8092/bot/rcp/standard/process")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build());
        tbIcsOprMngInfoRepo.save(TbIcsOprMngInfo.builder()
                .custCode("UPLUS")
                .serviceGroup("OURSTOREAI")
                .oprMngCode("UPLUS_RCP_OURSTOREAI")
                .solVal("RCP")
                .useYn("Y")
                .routeUrl("http://localhost:8092/bot/rcp/standard/process")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .updateDate(LocalDateTime.now())
                .build());

//        tbIcsOprMngInfoRepo.save(TbIcsOprMngInfo.builder()
//                .custCode("UPLUS")
//                .serviceGroup("COMMON")
//                .oprMngCode("UPLUS_RCP_COMMON")
//                .solVal("RCP")
//                .useYn("Y")
//                .routeUrl("http://localhost:8092/bot/rcp/standard/process")
//                .registId("sysadmin")
//                .registDate(LocalDateTime.now())
//                .updateId("sysadmin")
//                .updateDate(LocalDateTime.now())
//                .build());


        if (!tbServiceAuthGroupRepo.existsById(10L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(10L)
                    .serviceGroup("OURSTOREAI")
                    .custCode("UPLUS")
                    .policyGroupName("우리가게AI 전체권한")
                    .policyGroupDesc("우리가게AI 전체권한")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(11L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(11L)
                    .serviceGroup("AISTORE")
                    .custCode("UPLUS")
                    .policyGroupName("요식업유저용전체권한")
                    .policyGroupDesc("요식업유저용전체권한")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(12L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(12L)
                    .serviceGroup("DAISO")
                    .custCode("UPLUS")
                    .policyGroupName("유통업유저용전체권한")
                    .policyGroupDesc("유통업유저용전체권한")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(13L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(13L)
                    .serviceGroup("AISTORE")
                    .custCode("UPLUS")
                    .policyGroupName("시나리오관리읽기권한")
                    .policyGroupDesc("테스트용 시나리오관리 읽기권한")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbServiceAuthGroupRepo.existsById(14L)) {
            tbServiceAuthGroupRepo.save(TbServiceAuthGroup.builder()
                    .authGroupSeq(14L)
                    .serviceGroup("AISTORE")
                    .custCode("UPLUS")
                    .policyGroupName("시나리오관리수정,배포권한")
                    .policyGroupDesc("테스트용 시나리오관리수정,배포권한")
                    .useYn("Y")
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("sysadmin")
                    .updateDate(LocalDateTime.now())
                    .build());
        }

        tbServiceGrouopRepo.save(TbServiceGrouop.builder()
                .serviceGroup("AISTORE")
                .serviceGroupUpper("OURSTOREAI")
                .custCode("UPLUS")
                .serviceType("S")
                .serviceGroupName("요식업")
                .serviceGroupDesc("유플러스 요식업")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .build());

        tbServiceGrouopRepo.save(TbServiceGrouop.builder()
                .serviceGroup("DAISO")
                .serviceGroupUpper("OURSTOREAI")
                .custCode("UPLUS")
                .serviceType("S")
                .serviceGroupName("유통업")
                .serviceGroupDesc("유플러스 유통업")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .build());

        tbServiceGrouopRepo.save(TbServiceGrouop.builder()
                .serviceGroup("OURSTOREAI")
                .serviceGroupUpper("OURSTOREAI")
                .custCode("UPLUS")
                .serviceType("M")
                .serviceGroupName("우리가게AI")
                .serviceGroupDesc("우리가게AI루트계정")
                .useYn("Y")
                .registId("sysadmin")
                .registDate(LocalDateTime.now())
                .updateId("sysadmin")
                .build());

//        tbServiceGrouopRepo.save(TbServiceGrouop.builder()
//                .serviceGroup("COMMON")
//                .serviceGroupUpper("OURSTOREAI")
//                .custCode("UPLUS")
//                .serviceType("S")
//                .serviceGroupName("공통")
//                .serviceGroupDesc("우리가게AI공통계정")
//                .useYn("Y")
//                .registId("sysadmin")
//                .registDate(LocalDateTime.now())
//                .updateId("sysadmin")
//                .build());

        if (!tbServiceGroupPolicyRepo.existsByAuthGroupSeq(10L)) {
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemcustmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemcustmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemgroupAuthmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemgroupAuthmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemoprmngcodemanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemoprmngcodemanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemserviceGroupmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemserviceGroupmanageRead").serviceGroup("OURSTOREAI").build());
//            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemuserAdminmanageFull").serviceGroup("OURSTOREAI").build());
//            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemuserAdminmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemusermanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("commonsystemusermanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("privacymasking").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationapiNodemanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationapiNodemanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationcmmNodemanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationcmmNodemanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationintentmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationintentmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationscenariomanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationscenariomanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationscenariomanageRelease").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationsynonymmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationsynonymmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcplearningTestinferencemanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcplearningTestinferencemanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcplearningTestRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcplearningTestsimulatormanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcplearningTestsimulatormanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcplearningTeststttestmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcplearningTestttstestmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpmonitoringRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpmonitoringworkhistorymanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpstatisticsdashboardmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpoprmanagebgmmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpoprmanagebgmmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpoprmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpstatisticscallinfomanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpstatisticscallRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpstatisticsintentdaymanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpstatisticsintentitemmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpstatisticsintentRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpstatisticsRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpstatisticsscenariodaymanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpstatisticsscenarioitemmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpstatisticsscenarioRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rootRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpoprmanagettstagmanageRead").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpoprmanagettstagmanageFull").serviceGroup("OURSTOREAI").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(10L).custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageFull").serviceGroup("OURSTOREAI").build());
        }


        if (!tbServiceGroupPolicyRepo.existsByAuthGroupSeq(11L)) {
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemcustmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemcustmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemgroupAuthmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemgroupAuthmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemoprmngcodemanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemoprmngcodemanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemserviceGroupmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemserviceGroupmanageRead").serviceGroup("AISTORE").build());
//            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemuserAdminmanageFull").serviceGroup("AISTORE").build());
//            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemuserAdminmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemusermanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("commonsystemusermanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("privacymasking").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationapiNodemanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationapiNodemanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationcmmNodemanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationcmmNodemanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationintentmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationintentmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationscenariomanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationscenariomanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationscenariomanageRelease").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationsynonymmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationsynonymmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcplearningTestinferencemanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcplearningTestinferencemanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcplearningTestRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcplearningTestsimulatormanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcplearningTestsimulatormanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcplearningTeststttestmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcplearningTestttstestmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpstatisticsdashboardmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpmonitoringRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpmonitoringworkhistorymanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpoprmanagebgmmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpoprmanagebgmmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpoprmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpstatisticscallinfomanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpstatisticscallRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpstatisticsintentdaymanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpstatisticsintentitemmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpstatisticsintentRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpstatisticsRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpstatisticsscenariodaymanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpstatisticsscenarioitemmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpstatisticsscenarioRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rootRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpoprmanagettstagmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpoprmanagettstagmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(11L).custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageFull").serviceGroup("AISTORE").build());
        }

        if (!tbServiceGroupPolicyRepo.existsByAuthGroupSeq(12L)) {
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemcustmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemcustmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemgroupAuthmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemgroupAuthmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemoprmngcodemanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemoprmngcodemanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemserviceGroupmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemserviceGroupmanageRead").serviceGroup("DAISO").build());
//            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemuserAdminmanageFull").serviceGroup("DAISO").build());
//            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemuserAdminmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemusermanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("commonsystemusermanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("privacymasking").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationapiNodemanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationapiNodemanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationcmmNodemanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationcmmNodemanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationintentmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationintentmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationscenariomanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationscenariomanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationscenariomanageRelease").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationsynonymmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationsynonymmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcplearningTestinferencemanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcplearningTestinferencemanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcplearningTestRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcplearningTestsimulatormanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcplearningTestsimulatormanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcplearningTeststttestmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcplearningTestttstestmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpmonitoringconsultingmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpmonitoringconversationMarkmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpmonitoringintentAnalysismanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpmonitoringoutscenariomanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpmonitoringRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpmonitoringworkhistorymanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpstatisticsdashboardmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpoprmanagebgmmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpoprmanagebgmmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpoprmanagenlpSettingmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpoprmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpstatisticscallinfomanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpstatisticscallRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpstatisticsintentdaymanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpstatisticsintentitemmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpstatisticsintentRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpstatisticsRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpstatisticsscenariodaymanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpstatisticsscenarioitemmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpstatisticsscenarioRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rootRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpoprmanagettstagmanageRead").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpoprmanagettstagmanageFull").serviceGroup("DAISO").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(12L).custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageFull").serviceGroup("DAISO").build());
        }


        if (!tbServiceGroupPolicyRepo.existsByAuthGroupSeq(13L)) {
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(13L).custCode("UPLUS").policyVal("rootRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(13L).custCode("UPLUS").policyVal("rcpconversationRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(13L).custCode("UPLUS").policyVal("rcpconversationintentmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(13L).custCode("UPLUS").policyVal("rcpconversationscenariomanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(13L).custCode("UPLUS").policyVal("rcpconversationsynonymmanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(13L).custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(13L).custCode("UPLUS").policyVal("rcpconversationapiNodemanageRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(13L).custCode("UPLUS").policyVal("rcpconversationcmmNodemanageRead").serviceGroup("AISTORE").build());
        }
        if (!tbServiceGroupPolicyRepo.existsByAuthGroupSeq(14L)) {
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(14L).custCode("UPLUS").policyVal("rootRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(14L).custCode("UPLUS").policyVal("rcpconversationRead").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(14L).custCode("UPLUS").policyVal("rcpconversationscenariomanageRelease").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(14L).custCode("UPLUS").policyVal("rcpconversationintentmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(14L).custCode("UPLUS").policyVal("rcpconversationscenariomanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(14L).custCode("UPLUS").policyVal("rcpconversationsynonymmanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(14L).custCode("UPLUS").policyVal("rcpconversationsystemEntitymanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(14L).custCode("UPLUS").policyVal("rcpconversationapiNodemanageFull").serviceGroup("AISTORE").build());
            tbServiceGroupPolicyRepo.save(TbServiceGroupPolicy.builder().authGroupSeq(14L).custCode("UPLUS").policyVal("rcpconversationcmmNodemanageFull").serviceGroup("AISTORE").build());
        }

        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder().authGroupSeq(10L).custCode("UPLUS").serviceGroup("OURSTOREAI").userSeq(2L).build());
        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder().authGroupSeq(11L).custCode("UPLUS").serviceGroup("AISTORE").userSeq(2L).build());
        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder().authGroupSeq(12L).custCode("UPLUS").serviceGroup("DAISO").userSeq(2L).build());
//        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder().authGroupSeq(13L).custCode("UPLUS").serviceGroup("COMMON").userSeq(2L).build());
        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder().authGroupSeq(13L).custCode("UPLUS").serviceGroup("AISTORE").userSeq(3L).build());
        tbUserAuthGroupRepo.save(TbUserAuthGroup.builder().authGroupSeq(14L).custCode("UPLUS").serviceGroup("AISTORE").userSeq(4L).build());

        tbUserCustRepo.save(TbUserCust.builder().custCode("UPLUS").serviceGroup("AISTORE").userSeq(3L).build());
        tbUserCustRepo.save(TbUserCust.builder().custCode("UPLUS").serviceGroup("AISTORE").userSeq(4L).build());

        tbUserCustRepo.save(TbUserCust.builder().custCode("UPLUS").serviceGroup("OURSTOREAI").userSeq(1L).build());
        tbUserCustRepo.save(TbUserCust.builder().custCode("UPLUS").serviceGroup("AISTORE").userSeq(1L).build());
        tbUserCustRepo.save(TbUserCust.builder().custCode("UPLUS").serviceGroup("DAISO").userSeq(1L).build());

        tbUserCustRepo.save(TbUserCust.builder().custCode("UPLUS").serviceGroup("OURSTOREAI").userSeq(2L).build());
        tbUserCustRepo.save(TbUserCust.builder().custCode("UPLUS").serviceGroup("AISTORE").userSeq(2L).build());
        tbUserCustRepo.save(TbUserCust.builder().custCode("UPLUS").serviceGroup("DAISO").userSeq(2L).build());
//        tbUserCustRepo.save(TbUserCust.builder().custCode("UPLUS").serviceGroup("COMMON").userSeq(2L).build());
//        tbUserCustRepo.save(TbUserCust.builder().custCode("UPLUS").serviceGroup("COMMON").userSeq(1L).build());

    }

    public void commonCodeinsert() {
        List<TbBotCommonCode> tbc = new ArrayList<>();

        List<String> cust = Arrays.asList("ICS","UPLUS");

        for(String e: cust){
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("BOOKMARK_ERR_CODE").minorCode("ETC").oprMngCode(e+"_RCP_OURSTOREAI").codeName("기타").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("BOOKMARK_ERR_CODE").minorCode("INTENT_ERR").oprMngCode(e+"_RCP_OURSTOREAI").codeName("인텐트 오류").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("BOOKMARK_ERR_CODE").minorCode("STT_ERR").oprMngCode(e+"_RCP_OURSTOREAI").codeName("STT 오류").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("BOOKMARK_ERR_CODE").minorCode("TTS_ERR").oprMngCode(e+"_RCP_OURSTOREAI").codeName("TTS 오류").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("INIT_END").oprMngCode(e+"_RCP_OURSTOREAI").codeName("인입 후 끊음").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("SCENARIO").oprMngCode(e+"_RCP_OURSTOREAI").codeName("시나리오 흐름").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("SILENT_FB").oprMngCode(e+"_RCP_OURSTOREAI").codeName("묵음 폴백").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("SPEAK_FB").oprMngCode(e+"_RCP_OURSTOREAI").codeName("발화 폴백").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("USER_END").oprMngCode(e+"_RCP_OURSTOREAI").codeName("고객 끊음").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("USER_REQ").oprMngCode(e+"_RCP_OURSTOREAI").codeName("사용자 요청").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
//            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_TYPE").minorCode("END").oprMngCode(e+"_RCP_OURSTOREAI").codeType("C_CD").description("호종료").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
//            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_TYPE").minorCode("ING").oprMngCode(e+"_RCP_OURSTOREAI").codeType("C_CD").description("호전환").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_CONVERSION").minorCode("TRANSFER").oprMngCode(e+"_RCP_OURSTOREAI").codeName("호전환").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_CONVERSION").minorCode("END").oprMngCode(e+"_RCP_OURSTOREAI").codeName("호종료").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_RESULT_CODE").minorCode("INTENT_FAIL").oprMngCode(e+"_RCP_OURSTOREAI").codeName("인텐트 실패").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_RESULT_CODE").minorCode("INTENT_SUCCESS").oprMngCode(e+"_RCP_OURSTOREAI").codeName("인텐트 성공").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_RESULT_CODE").minorCode("SCORE_FAIL").oprMngCode(e+"_RCP_OURSTOREAI").codeName("점수 미달").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("MEASURE_TYPE").minorCode("COMPLETE").oprMngCode(e+"_RCP_OURSTOREAI").codeName("조치 완료").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("MEASURE_TYPE").minorCode("DEL").oprMngCode(e+"_RCP_OURSTOREAI").codeName("삭제").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("BOOKMARK_ERR_CODE").minorCode("ETC").oprMngCode(e+"_RCP_OURSTOREAI").codeName("기타").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("BOOKMARK_ERR_CODE").minorCode("INTENT_ERR").oprMngCode(e+"_RCP_OURSTOREAI").codeName("인텐트 오류").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("BOOKMARK_ERR_CODE").minorCode("STT_ERR").oprMngCode(e+"_RCP_OURSTOREAI").codeName("STT 오류").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("BOOKMARK_ERR_CODE").minorCode("TTS_ERR").oprMngCode(e+"_RCP_OURSTOREAI").codeName("TTS 오류").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("INIT_END").oprMngCode(e+"_RCP_OURSTOREAI").codeName("인입 후 끊음").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("SCENARIO").oprMngCode(e+"_RCP_OURSTOREAI").codeName("시나리오 흐름").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("SILENT_FB").oprMngCode(e+"_RCP_OURSTOREAI").codeName("묵음 폴백").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("SPEAK_FB").oprMngCode(e+"_RCP_OURSTOREAI").codeName("발화 폴백").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("USER_END").oprMngCode(e+"_RCP_OURSTOREAI").codeName("고객 끊음").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_REASON").minorCode("USER_REQ").oprMngCode(e+"_RCP_OURSTOREAI").codeName("사용자 요청").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
//            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_TYPE").minorCode("END").oprMngCode(e+"_RCP_OURSTOREAI").codeType("C_CD").description("호종료").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
//            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("CALL_END_TYPE").minorCode("ING").oprMngCode(e+"_RCP_OURSTOREAI").codeType("C_CD").description("호전환").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_RESULT_CODE").minorCode("INTENT_FAIL").oprMngCode(e+"_RCP_OURSTOREAI").codeName("인텐트 실패").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_RESULT_CODE").minorCode("INTENT_SUCCESS").oprMngCode(e+"_RCP_OURSTOREAI").codeName("인텐트 성공").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_RESULT_CODE").minorCode("SCORE_FAIL").oprMngCode(e+"_RCP_OURSTOREAI").codeName("점수 미달").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("MEASURE_TYPE").minorCode("COMPLETE").oprMngCode(e+"_RCP_OURSTOREAI").codeName("조치 완료").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("MEASURE_TYPE").minorCode("DEL").oprMngCode(e+"_RCP_OURSTOREAI").codeName("삭제").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("ENTITY_TYPE").minorCode("NORMAL").oprMngCode(e+"_RCP_AISTORE").codeName("일반").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("ENTITY_TYPE").minorCode("SYNONYM").oprMngCode(e+"_RCP_AISTORE").codeName("동의어").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("ENTITY_TYPE").minorCode("SYSTEM").oprMngCode(e+"_RCP_AISTORE").codeName("시스템엔티티").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_GROUP").minorCode("AD").oprMngCode(e+"_RCP_AISTORE").codeName("방문").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_GROUP").minorCode("BH").oprMngCode(e+"_RCP_AISTORE").codeName("영업").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_GROUP").minorCode("CL").oprMngCode(e+"_RCP_AISTORE").codeName("호종료").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_GROUP").minorCode("EX").oprMngCode(e+"_RCP_AISTORE").codeName("예외").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_GROUP").minorCode("ME").oprMngCode(e+"_RCP_AISTORE").codeName("메뉴").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_GROUP").minorCode("PK").oprMngCode(e+"_RCP_AISTORE").codeName("주차").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_GROUP").minorCode("RV").oprMngCode(e+"_RCP_AISTORE").codeName("예약").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());
            tbc.add(TbBotCommonCode.builder().custCode(e).majorCode("INTENT_GROUP").minorCode("ST").oprMngCode(e+"_RCP_AISTORE").codeName("시설").registDate(LocalDateTime.now()).registId("sysadmin").updateDate(LocalDateTime.now()).updateId("sysadmin").build());

        }

        tbBotCommonCodeRepo.saveAll(tbc);

    }

    @Transactional
    public void tbProjectSettingdata() {
        if (!tbProjectSettingRepo.existsById("UPLUS_RCP_AISTORE")) {
            tbProjectSettingRepo.save(TbProjectSetting.builder()
                    .oprMngCode("UPLUS_RCP_AISTORE")
                    .similarityCriteria(0.81)
                    .classCriteria(0.81)
                    .classResultCriteria(0.85)
                    .fallbackMsg("무슨 말씀이신지 정확하게 이해하지 못했어요. 영업시간, 주소 안내 등 궁금한 내용을 다시 한 번 알려주세요.")
                    .greetingMsg("서비스 이용 및 품질향상을 위해 고객님의 음성이 활용됩니다. 무엇을 도와드릴까요?")
                    .ifMappingId(90922651L)
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("uplus")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbProjectSettingRepo.existsById("UPLUS_RCP_DAISO")) {
            tbProjectSettingRepo.save(TbProjectSetting.builder()
                    .oprMngCode("UPLUS_RCP_DAISO")
                    .similarityCriteria(0.85)
                    .classCriteria(0.6)
                    .classResultCriteria(0.4)
                    .fallbackMsg("무슨 말씀이신지 정확하게 이해하지 못했어요. 영업시간, 주소 안내 등 궁금한 내용을 다시 한 번 알려주세요.")
                    .greetingMsg("서비스 이용 및 품질향상을 위해 고객님의 음성이 활용됩니다. 무엇을 도와드릴까요?")
                    .ifMappingId(90925452L)
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("uplus")
                    .updateDate(LocalDateTime.now())
                    .build());
        }
        if (!tbProjectSettingRepo.existsById("UPLUS_RCP_OURSTOREAI")) {
            tbProjectSettingRepo.save(TbProjectSetting.builder()
                    .oprMngCode("UPLUS_RCP_OURSTOREAI")
                    .similarityCriteria(0.85)
                    .classCriteria(0.2)
                    .classResultCriteria(0.05)
                    .fallbackMsg("")
                    .greetingMsg("")
                    .ifMappingId(113903143L)
                    .registId("sysadmin")
                    .registDate(LocalDateTime.now())
                    .updateId("uplus")
                    .updateDate(LocalDateTime.now())
                    .build());
        }

//        if (!tbProjectSettingRepo.existsById("UPLUS_RCP_COMMON")) {
//            tbProjectSettingRepo.save(TbProjectSetting.builder()
//                    .oprMngCode("UPLUS_RCP_COMMON")
//                    .similarityCriteria(0.85)
//                    .classCriteria(0.6)
//                    .classResultCriteria(0.4)
//                    .fallbackMsg("무슨 말씀이신지 정확하게 이해하지 못했어요. 영업시간, 주소 안내 등 궁금한 내용을 다시 한 번 알려주세요.")
//                    .greetingMsg("서비스 이용 및 품질향상을 위해 고객님의 음성이 활용됩니다. 무엇을 도와드릴까요?")
//                    .ifMappingId(90922651L)
//                    .registId("sysadmin")
//                    .registDate(LocalDateTime.now())
//                    .updateId("uplus")
//                    .updateDate(LocalDateTime.now())
//                    .build());
//        }

    }


}
