class ChartOfAccountRepository {

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

		if (request.getRequestInfo().getAction().equalsIgnoreCase(Constants.ACTION_CREATE)) {
			message.put("chartofaccount_create", request);
		} else {
			message.put("chartofaccount_update", request);
		}
		chartOfAccountQueueRepository.add(message);
	}

}