'use strict'

/**
 * Dependencies
 */
const session = require('express-session')
const ESStore = require('express-elasticsearch-session')(session)

/**
 * Module Dependencies
 */
const Config = require('../config')

/**
 * ElasticSearch Session Store
 */
const elasticConfig = Config.elasticsearch
const { host, port, index: indexName } = elasticConfig
const store = new ESStore({ host: `http://${host}:${port}`, index: indexName, type: 'session', logLevel: process.env.NODE_ENV === 'production' ? 'info' : 'debug' })

/**
 * Export
 */
module.exports = store

@@ -373,16 +373,18 @@
 SStore(%7B
+%0A 
  host: %60
@@ -407,16 +407,18 @@
 %7Bport%7D%60,
+%0A 
  index: 
@@ -427,16 +427,18 @@
 dexName,
+%0A 
  type: '
@@ -446,16 +446,18 @@
 ession',
+%0A 
  logLeve
@@ -515,17 +515,17 @@
  'debug'
- 
+%0A
 %7D)%0A%0A/**%0A

split store configuration to multiple lines