"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.rollbar = void 0;

var _env = _interopRequireDefault(require("./env"));

var _config = _interopRequireDefault(require("../../config/config.json"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Internal dependencies
 */
const Rollbar = require('rollbar');

const rollbar = new Rollbar({
  accessToken: '99c8f982d64f47049fde6f6f9d567070',
  captureUncaught: true,
  captureUnhandledRejections: true,

  /* eslint-disable camelcase */
  payload: {
    platform: 'client',
    cli_version: _env.default.app.version,
    os_name: _env.default.os.name,
    node_version: _env.default.node.version,
    environment: _config.default.environment
  }
  /* eslint-enable camelcase */

});
exports.rollbar = rollbar;