/***********************************************************************************************************
 * Name         : CA_AccountTriggerHandler
 * Purpose      : Account Handler for CA
 **********************************************************************************************************/
public with sharing class CA_AccountTriggerHandler {
    public static void onBeforeInsert(List<Account> newList) {
        CA_AccountTriggerHelper.updateAccountName(newList);
    }

    public static void onBeforeUpdate(List<Account> newList, Map<Id, Account> oldMap) {
        CA_AccountTriggerHelper.updateAccountName(newList);
        CA_AccountTriggerHelper.handleHierarchyChanges(newList, oldMap);
    }
}
