require 'bundler'
Bundler.require :default
require 'active_support/core_ext/hash/deep_merge'
require 'active_support/core_ext/hash/keys'
require 'json'

require_rel '../support'

# Loading .env file
if File.exist?('.env')
  require 'dotenv/load'
else
  abort('Make sure you have .env file created and populated')
end

unless ENV['ACCOUNTING_MONTH'] && ENV['ACCOUNTING_YEAR']
  abort('ACCOUNTING_MONTH and ACCOUNTING_YEAR are required.')
end

# ActiveMQ Clean up
ActiveMQHelper.new.clean_up
