text: ;(function(window) {
      'use strict';
  
      const MESSAGES = {
          'login': 'Login as any user on this computer and another user on another computer.',
          'create_session': 'Creating a session...',
          'connect': 'Connecting...',
          'connect_error': 'Something went wrong with the connection. Check internet connection or user info and try again.',
          'login_as': 'Logged in as ',
          'title_login': 'Choose a user to login with:',
          'title_callee': 'Choose users to call:',
          'calling': 'Calling...',
          'webrtc_not_avaible': 'WebRTC is not available in your browser',
          'no_internet': 'Please check your Internet connection and try again'
      };
  
      /** Test server / app by defaults */
      const creds = {
          'appId': '9',
          'authKey': 'hYDSGNYQrqVkfWd',
          'authSecret': 'LqN2pRL42Y2tEZL'
      };
  
      const config = {
          debug: true,
          webrtc: {
              answerTimeInterval: 30,
              dialingTimeInterval: 5,
              disconnectTimeInterval: 35,
              statsReportTimeInterval: 5
          },
           endpoints: {
                  api: "apibahrainquickblox.quickblox.com", // set custom API endpoint
                  chat: "chatbahrainquickblox.quickblox.com" // set custom Chat endpoint
           },
      };
  
      /**
       * Could set appCreds and endpoints throw URL string by search part
       * ?appId={Number}&authKey={String}&authSecret={String}&endpoints.api={String}&endpoints.chat={String}
       */
  
      /**
       * Get value of key from search string of url
       * 
       * @param  {string} q - name of query
       * @returns {string|number} - value of query
       */
      function getQueryVar(q) {
          var query = window.location.search.substring(1),
              vars = query.split('&'),
              answ = null;
  
          vars.forEach(function(el, i){
              var pair = el.split('=');
  
              if(pair[0] === q) {
                  answ = pair[1];
              }
          });
  
          return answ;
      };
  
  Object.assign(creds, null);
  Object.assign(config, null);
  
   
  
      window.CONFIG = {
          'CREDENTIALS': creds,
          'APP_CONFIG': config,
          'MESSAGES': MESSAGES
      };
  }(window));
  