<template>
  <div>
    <divHeader></divHeader>
    <nuxt :nuxtChildKey="this.$route.path"/>
    <sideNav />
    <divFooter></divFooter>
  </div>
</template>
<script>
import divHeader from '../components/header.vue';
import divFooter from '../components/footer.vue';
import sideNav from '../components/side-nav.vue';

export default {
  components: {
    divHeader,
    divFooter,
    sideNav
  },
  data() {
    return {
    }
  },
  created() {
    
  },
  beforeMount(){
    window.difyChatbotConfig = {
      token: 'yadT02u1aNiBBDLa',
      baseUrl: 'https://chat.cdtrucktralier.com',
      systemVariables: {
        // user_id: 'YOU CAN DEFINE USER ID HERE',
        // conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID',
      }
    }
    let a = document.createElement('script');
    a.setAttribute('src', 'https://chat.cdtrucktralier.com/embed.min.js');
    a.setAttribute('defer', true);
    a.setAttribute('id', 'yadT02u1aNiBBDLa');
    document.body.appendChild(a);
  },
  methods: {
    
  }
}

</script>

<style lang="scss" scoped>

</style>
