class AccountDetailTypeRepository {

	public void addToQue(AccountDetailTypeRequest request) {
		Map<String, Object> message = new HashMap<>();

		if (request.getRequestInfo().getAction().equalsIgnoreCase(Constants.ACTION_CREATE)) {
			message.put("accountdetailtype_create", request);
		} else {
			message.put("accountdetailtype_update", request);
		}
		accountDetailTypeQueueRepository.add(message);
	}

	@Autowired public  AccountDetailTypeRepository(AccountDetailTypeJdbcRepository accountDetailTypeJdbcRepository,
			MastersQueueRepository accountDetailTypeQueueRepository,
			FinancialConfigurationService financialConfigurationService,
			AccountDetailTypeESRepository accountDetailTypeESRepository,
			@Value("${persist.through.kafka}") String persistThroughKafka);

}