tw = if(input.tBotcl, referencies.states.getIdByEng("onClientHands"), referencies.states.getIdByEng("employee"));
te = if(input.tBotcl, null, input.employee);
tcl = if(input.tBotcl, input.client, null);
insertConfig = insert into changeConfig
[
...
tBwhere = tw
tBEmployee = te
tBClient = tcl
...