const { StateLogic } = require("./State");
const { Status_UnitPubilcV3 } = require("./unit-public-v3/taskflow/Status");
const status_UnitPubilcV3=new Status_UnitPubilcV3();
const stateLogic=new StateLogic();

class BotLogic {
        constructor() { 
        
    }

    async getBotState(query,res){
        let check = await status_UnitPubilcV3.get_param_of_turn(query, res.result);
        let status = await status_UnitPubilcV3.Pretreatment(check[0]);
        let botStateLogic =await stateLogic.getBotState(status);
        return botStateLogic;
    }

}

exports.BotLogic = BotLogic;