text: module.exports =
  /******/ (function(modules) { // webpackBootstrap
  /******/ 	// The module cache
  /******/ 	var installedModules = {};
  /******/
  /******/ 	// The require function
  /******/ 	function __webpack_require__(moduleId) {
  /******/
  /******/ 		// Check if module is in cache
  /******/ 		if(installedModules[moduleId])
  /******/ 			return installedModules[moduleId].exports;
  /******/
  /******/ 		// Create a new module (and put it into the cache)
  /******/ 		var module = installedModules[moduleId] = {
  /******/ 			i: moduleId,
  /******/ 			l: false,
  /******/ 			exports: {}
  /******/ 		};
  /******/
  /******/ 		// Execute the module function
  /******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  /******/
  /******/ 		// Flag the module as loaded
  /******/ 		module.l = true;
  /******/
  /******/ 		// Return the exports of the module
  /******/ 		return module.exports;
  /******/ 	}
  /******/
  /******/
  /******/ 	// expose the modules object (__webpack_modules__)
  /******/ 	__webpack_require__.m = modules;
  /******/
  /******/ 	// expose the module cache
  /******/ 	__webpack_require__.c = installedModules;
  /******/
  /******/ 	// identity function for calling harmony imports with the correct context
  /******/ 	__webpack_require__.i = function(value) { return value; };
  /******/
  /******/ 	// define getter function for harmony exports
  /******/ 	__webpack_require__.d = function(exports, name, getter) {
  /******/ 		if(!__webpack_require__.o(exports, name)) {
  /******/ 			Object.defineProperty(exports, name, {
  /******/ 				configurable: false,
  /******/ 				enumerable: true,
  /******/ 				get: getter
  /******/ 			});
  /******/ 		}
  /******/ 	};
  /******/
  /******/ 	// getDefaultExport function for compatibility with non-harmony modules
  /******/ 	__webpack_require__.n = function(module) {
  /******/ 		var getter = module && module.__esModule ?
  /******/ 			function getDefault() { return module['default']; } :
  /******/ 			function getModuleExports() { return module; };
  /******/ 		__webpack_require__.d(getter, 'a', getter);
  /******/ 		return getter;
  /******/ 	};
  /******/
  /******/ 	// Object.prototype.hasOwnProperty.call
  /******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  /******/
  /******/ 	// __webpack_public_path__
  /******/ 	__webpack_require__.p = "";
  /******/
  /******/ 	// Load entry module and return exports
  /******/ 	return __webpack_require__(__webpack_require__.s = 11);
  /******/ })
  /************************************************************************/
  /******/ ([
  /* 0 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _unirest = __webpack_require__(12);\n\nvar _unirest2 = _interopRequireDefault(_unirest);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Request = function () {\n  function Request(client) {\n    _classCallCheck(this, Request);\n\n    this.Client = client;\n  }\n\n  _createClass(Request, [{\n    key: 'sendRequest',\n    value: function sendRequest(method, resource, parameters) {\n      var _this = this;\n\n      var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : { authenticate: true };\n\n      return new Promise(function (resolve, reject) {\n        var resourceUrl = _this.Client.getApiUrl() + resource;\n        var request = _this.setMethod(method, resourceUrl);\n        if (request === Error()) {\n          reject(request);\n        }\n\n        var header = {};\n        if (options.authenticate === true) {\n          if (_this.Client.getAuthToken() === null || _this.Client.getUserId() === null) {\n            reject('You will need to provide the authToken and userId for any of the authenticated methods.');\n          }\n\n          header = {\n            'X-Auth-Token': _this.Client.getAuthToken(),\n            'X-User-Id': _this.Client.getUserId()\n          };\n        }\n\n        switch (options.requestType) {\n          case 'queryString':\n            request.headers(header);\n            request.query(parameters);\n            break;\n          case 'file':\n            request.headers(header);\n            request.attach(parameters.filename, parameters.filepath);\n            break;\n          default:\n            header['Content-type'] = 'application/json';\n            request.headers(header);\n            request.send(parameters);\n        }\n\n        request.end(function (response) {\n          if (response.error) {\n            reject('Rocket Chat API error: ' + response.error);\n          }\n          if (response.statusCode === 200) {\n            if (response.body.data) {\n              resolve(response.body.data);\n            } else {\n              resolve(response.body);\n            }\n          }\n          if (response.body) {\n            if (response.body.error) {\n              reject('Rocket Chat API response Status Code ' + response.statusCode + ': ' + response.body.error);\n            }\n            if (response.body.status === 'error') {\n              reject('Rocket Chat API error: ' + response.body.message);\n            }\n          }\n        });\n      });\n    }\n  }, {\n    key: 'setMethod',\n    value: function setMethod(method, url) {\n      switch (method) {\n        case 'get':\n          return _unirest2.default.get(url);\n        case 'post':\n          return _unirest2.default.post(url);\n        case 'put':\n          return _unirest2.default.put(url);\n        case 'delete':\n          return _unirest2.default.delete(url);\n        case 'patch':\n          return _unirest2.default.patch(url);\n        case 'head':\n          return _unirest2.default.head(url);\n        default:\n          return new Error('Method doesn\\'t exist');\n      }\n    }\n  }]);\n\n  return Request;\n}();\n\nexports.default = Request;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9SZXF1ZXN0LmpzPzA0NzYiXSwibmFtZXMiOlsiUmVxdWVzdCIsImNsaWVudCIsIkNsaWVudCIsIm1ldGhvZCIsInJlc291cmNlIiwicGFyYW1ldGVycyIsIm9wdGlvbnMiLCJhdXRoZW50aWNhdGUiLCJQcm9taXNlIiwicmVzb2x2ZSIsInJlamVjdCIsInJlc291cmNlVXJsIiwiZ2V0QXBpVXJsIiwicmVxdWVzdCIsInNldE1ldGhvZCIsIkVycm9yIiwiaGVhZGVyIiwiZ2V0QXV0aFRva2VuIiwiZ2V0VXNlcklkIiwicmVxdWVzdFR5cGUiLCJoZWFkZXJzIiwicXVlcnkiLCJhdHRhY2giLCJmaWxlbmFtZSIsImZpbGVwYXRoIiw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AgIH1cbiAgICAgICAgICBpZihyZXNwb25zZS5ib2R5LnN0YXR1cyA9PT0gJ2Vycm9yJykge1xuICAgICAgICAgICAgcmVqZWN0KCdSb2NrZXQgQ2hhdCBBUEkgZXJyb3I6ICcgKyByZXNwb25zZS5ib2R5Lm1lc3NhZ2UpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfSk7XG4gICAgfSk7XG4gIH1cblxuICBzZXRNZXRob2QobWV0aG9kLCB1cmwpIHtcbiAgICBzd2l0Y2ggKG1ldGhvZCkge1xuICAgICAgY2FzZSAnZ2V0JzpcbiAgICAgICAgcmV0dXJuIHVuaXJlc3QuZ2V0KHVybCk7XG4gICAgICBjYXNlICdwb3N0JzpcbiAgICAgICAgcmV0dXJuIHVuaXJlc3QucG9zdCh1cmwpO1xuICAgICAgY2FzZSAncHV0JzpcbiAgICAgICAgcmV0dXJuIHVuaXJlc3QucHV0KHVybCk7XG4gICAgICBjYXNlICdkZWxldGUnOlxuICAgICAgICByZXR1cm4gdW5pcmVzdC5kZWxldGUodXJsKTtcbiAgICAgIGNhc2UgJ3BhdGNoJzpcbiAgICAgICAgcmV0dXJuIHVuaXJlc3QucGF0Y2godXJsKTtcbiAgICAgIGNhc2UgJ2hlYWQnOlxuICAgICAgICByZXR1cm4gdW5pcmVzdC5oZWFkKHVybCk7XG4gICAgICBkZWZhdWx0OlxuICAgICAgICByZXR1cm4gbmV3IEVycm9yKCdNZXRob2QgZG9lc25cXCd0IGV4aXN0Jyk7XG4gICAgfVxuICB9XG5cbn1cblxuXG5cbi8vIFdFQlBBQ0sgRk9PVEVSIC8vXG4vLyAuL1JlcXVlc3QuanMiXSwic291cmNlUm9vdCI6IiJ9");
  
  /***/ }),
  /* 1 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _Request2 = __webpack_require__(0);\n\nvar _Request3 = _interopRequireDefault(_Request2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Authentication = function (_Request) {\n  _inherits(Authentication, _Request);\n\n  function Authentication() {\n    _classCallCheck(this, Authentication);\n\n    return _possibleConstructorReturn(this, (Authentication.__proto__ || Object.getPrototypeOf(Authentication)).apply(this, arguments));\n  }\n\n  _createClass(Authentication, [{\n    key: 'logout',\n    value: function logout() {\n      return _get(Authentication.prototype.__proto__ || Object.getPrototypeOf(Authentication.prototype), 'sendRequest', this).call(this, 'get', '/logout');\n    }\n  }, {\n    key: 'me',\n    value: function me() {\n      return _get(Authentication.prototype.__proto__ || Object.getPrototypeOf(Authentication.prototype), 'sendRequest', this).call(this, 'get', '/me');\n    }\n  }]);\n\n  return Authentication;\n}(_Request3.default);\n\nexports.default = Authentication;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9BdXRoZW50aWNhdGlvbi5qcz8wY2I0Il0sIm5hbWVzIjpbIkF1dGhlbnRpY2F0aW9uIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7Ozs7Ozs7Ozs7OztJQUVxQkEsYzs7Ozs7Ozs7Ozs7NkJBRVY7QUFDUCx5SUFBeUIsS0FBekIsRUFBZ0MsU0FBaEM7QUFDRDs7O3lCQUVJO0FBQ0gseUlBQXlCLEtBQXpCLEVBQWdDLEtBQWhDO0FBQ0Q7Ozs7OztrQkFSa0JBLGMiLCJmaWxlIjoiMS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZXF1ZXN0IGZyb20gJy4vUmVxdWVzdCc7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIEF1dGhlbnRpY2F0aW9uIGV4dGVuZHMgUmVxdWVzdCB7XG5cbiAgbG9nb3V0KCkge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgnZ2V0JywgJy9sb2dvdXQnKTtcbiAgfVxuXG4gIG1lKCkge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgnZ2V0JywgJy9tZScpO1xuICB9XG5cbn1cblxuXG5cbi8vIFdFQlBBQ0sgRk9PVEVSIC8vXG4vLyAuL0F1dGhlbnRpY2F0aW9uLmpzIl0sInNvdXJjZVJvb3QiOiIifQ==");
  
  /***/ }),
  /* 2 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _Request2 = __webpack_require__(0);\n\nvar _Request3 = _interopRequireDefault(_Request2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Channels = function (_Request) {\n  _inherits(Channels, _Request);\n\n  function Channels() {\n    _classCallCheck(this, Channels);\n\n    return _possibleConstructorReturn(this, (Channels.__proto__ || Object.getPrototypeOf(Channels)).apply(this, arguments));\n  }\n\n  _createClass(Channels, [{\n    key: 'addAll',\n    value: function addAll(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.addAll', parameters);\n    }\n  }, {\n    key: 'addModerator',\n    value: function addModerator(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.addModerator', parameters);\n    }\n  }, {\n    key: 'addOwner',\n    value: function addOwner(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.addOwner', parameters);\n    }\n  }, {\n    key: 'archive',\n    value: function archive(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.archive', parameters);\n    }\n  }, {\n    key: 'cleanHistory',\n    value: function cleanHistory(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.cleanHistory', parameters);\n    }\n  }, {\n    key: 'close',\n    value: function close(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.close', parameters);\n    }\n  }, {\n    key: 'create',\n    value: function create(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.create', parameters);\n    }\n  }, {\n    key: 'getIntegrations',\n    value: function getIntegrations(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'get', '/channels.getIntegrations', parameters, { authenticate: true, requestType: 'queryString' });\n    }\n  }, {\n    key: 'history',\n    value: function history(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'get', '/channels.history', parameters, { authenticate: true, requestType: 'queryString' });\n    }\n  }, {\n    key: 'info',\n    value: function info(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'get', '/channels.info', parameters, { authenticate: true, requestType: 'queryString' });\n    }\n  }, {\n    key: 'invite',\n    value: function invite(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.invite', parameters);\n    }\n  }, {\n    key: 'kick',\n    value: function kick(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.kick', parameters);\n    }\n  }, {\n    key: 'leave',\n    value: function leave(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.leave', parameters);\n    }\n  }, {\n    key: 'listJoined',\n    value: function listJoined() {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'get', '/channels.list.joined');\n    }\n  }, {\n    key: 'list',\n    value: function list() {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'get', '/channels.list');\n    }\n  }, {\n    key: 'open',\n    value: function open(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.open', parameters);\n    }\n  }, {\n    key: 'removeModerator',\n    value: function removeModerator(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.removeModerator', parameters);\n    }\n  }, {\n    key: 'removeOwner',\n    value: function removeOwner(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.removeOwner', parameters);\n    }\n  }, {\n    key: 'rename',\n    value: function rename(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.rename', parameters);\n    }\n  }, {\n    key: 'setDescription',\n    value: function setDescription(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.setDescription', parameters);\n    }\n  }, {\n    key: 'setJoinCode',\n    value: function setJoinCode(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.setJoinCode', parameters);\n    }\n  }, {\n    key: 'setPurpose',\n    value: function setPurpose(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.setPurpose', parameters);\n    }\n  }, {\n    key: 'setReadOnly',\n    value: function setReadOnly(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.setReadOnly', parameters);\n    }\n  }, {\n    key: 'setTopic',\n    value: function setTopic(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.setTopic', parameters);\n    }\n  }, {\n    key: 'setType',\n    value: function setType(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.setType', parameters);\n    }\n  }, {\n    key: 'unarchive',\n    value: function unarchive(parameters) {\n      return _get(Channels.prototype.__proto__ || Object.getPrototypeOf(Channels.prototype), 'sendRequest', this).call(this, 'post', '/channels.unarchive', parameters);\n    }\n  }]);\n\n  return Channels;\n}(_Request3.default);\n\nexports.default = Channels;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9DaGFubmVscy5qcz9kYjQ4Il0sIm5hbWVzIjpbIkNoYW5uZWxzIiwicGFyYW1ldGVycyIsImF1dGhlbnRpY2F0ZSIsInJlcXVlc3RUeXBlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7Ozs7Ozs7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IH1cblxuICB1bmFyY2hpdmUocGFyYW1ldGVycykge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgncG9zdCcsICcvY2hhbm5lbHMudW5hcmNoaXZlJywgcGFyYW1ldGVycyk7XG4gIH1cbn1cblxuXG5cbi8vIFdFQlBBQ0sgRk9PVEVSIC8vXG4vLyAuL0NoYW5uZWxzLmpzIl0sInNvdXJjZVJvb3QiOiIifQ==");
  
  /***/ }),
  /* 3 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _Request2 = __webpack_require__(0);\n\nvar _Request3 = _interopRequireDefault(_Request2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Chat = function (_Request) {\n  _inherits(Chat, _Request);\n\n  function Chat() {\n    _classCallCheck(this, Chat);\n\n    return _possibleConstructorReturn(this, (Chat.__proto__ || Object.getPrototypeOf(Chat)).apply(this, arguments));\n  }\n\n  _createClass(Chat, [{\n    key: 'delete',\n    value: function _delete(parameters) {\n      return _get(Chat.prototype.__proto__ || Object.getPrototypeOf(Chat.prototype), 'sendRequest', this).call(this, 'post', '/chat.delete', parameters);\n    }\n  }, {\n    key: 'postMessage',\n    value: function postMessage(parameters) {\n      return _get(Chat.prototype.__proto__ || Object.getPrototypeOf(Chat.prototype), 'sendRequest', this).call(this, 'post', '/chat.postMessage', parameters);\n    }\n  }, {\n    key: 'update',\n    value: function update(parameters) {\n      return _get(Chat.prototype.__proto__ || Object.getPrototypeOf(Chat.prototype), 'sendRequest', this).call(this, 'post', '/chat.update', parameters);\n    }\n  }]);\n\n  return Chat;\n}(_Request3.default);\n\nexports.default = Chat;\n;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9DaGF0LmpzP2Y0ZWUiXSwibmFtZXMiOlsiQ2hhdCIsInBhcmFtZXRlcnMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTs7Ozs7Ozs7Ozs7O0lBRXFCQSxJOzs7Ozs7Ozs7Ozs0QkFFWkMsVSxFQUFZO0FBQ2pCLHFIQUF5QixNQUF6QixFQUFpQyxjQUFqQyxFQUFpREEsVUFBakQ7QUFDRDs7O2dDQUVXQSxVLEVBQVk7QUFDdEIscUhBQXlCLE1BQXpCLEVBQWlDLG1CQUFqQyxFQUFzREEsVUFBdEQ7QUFDRDs7OzJCQUVNQSxVLEVBQVk7QUFDakIscUhBQXlCLE1BQXpCLEVBQWlDLGNBQWpDLEVBQWlEQSxVQUFqRDtBQUNEOzs7Ozs7a0JBWmtCRCxJO0FBY3BCIiwiZmlsZSI6IjMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVxdWVzdCBmcm9tICcuL1JlcXVlc3QnO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBDaGF0IGV4dGVuZHMgUmVxdWVzdCB7XG5cbiAgZGVsZXRlKHBhcmFtZXRlcnMpIHtcbiAgICByZXR1cm4gc3VwZXIuc2VuZFJlcXVlc3QoJ3Bvc3QnLCAnL2NoYXQuZGVsZXRlJywgcGFyYW1ldGVycyk7XG4gIH1cblxuICBwb3N0TWVzc2FnZShwYXJhbWV0ZXJzKSB7XG4gICAgcmV0dXJuIHN1cGVyLnNlbmRSZXF1ZXN0KCdwb3N0JywgJy9jaGF0LnBvc3RNZXNzYWdlJywgcGFyYW1ldGVycyk7XG4gIH1cblxuICB1cGRhdGUocGFyYW1ldGVycykge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgncG9zdCcsICcvY2hhdC51cGRhdGUnLCBwYXJhbWV0ZXJzKTtcbiAgfVxuXG59O1xuXG5cblxuLy8gV0VCUEFDSyBGT09URVIgLy9cbi8vIC4vQ2hhdC5qcyJdLCJzb3VyY2VSb290IjoiIn0=");
  
  /***/ }),
  /* 4 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _Request2 = __webpack_require__(0);\n\nvar _Request3 = _interopRequireDefault(_Request2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Groups = function (_Request) {\n  _inherits(Groups, _Request);\n\n  function Groups() {\n    _classCallCheck(this, Groups);\n\n    return _possibleConstructorReturn(this, (Groups.__proto__ || Object.getPrototypeOf(Groups)).apply(this, arguments));\n  }\n\n  _createClass(Groups, [{\n    key: 'addAll',\n    value: function addAll(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.addAll', parameters);\n    }\n  }, {\n    key: 'addModerator',\n    value: function addModerator(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.addModerator', parameters);\n    }\n  }, {\n    key: 'addOwner',\n    value: function addOwner(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.addOwner', parameters);\n    }\n  }, {\n    key: 'archive',\n    value: function archive(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.archive', parameters);\n    }\n  }, {\n    key: 'close',\n    value: function close(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.close', parameters);\n    }\n  }, {\n    key: 'create',\n    value: function create(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.create', parameters);\n    }\n  }, {\n    key: 'getIntegrations',\n    value: function getIntegrations(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'get', '/groups.getIntegrations', parameters, { authenticate: true, requestType: 'queryString' });\n    }\n  }, {\n    key: 'history',\n    value: function history(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'get', '/groups.history', parameters, { authenticate: true, requestType: 'queryString' });\n    }\n  }, {\n    key: 'info',\n    value: function info(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'get', '/groups.info', parameters, { authenticate: true, requestType: 'queryString' });\n    }\n  }, {\n    key: 'invite',\n    value: function invite(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.invite', parameters);\n    }\n  }, {\n    key: 'kick',\n    value: function kick(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.kick', parameters);\n    }\n  }, {\n    key: 'leave',\n    value: function leave(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.leave', parameters);\n    }\n  }, {\n    key: 'list',\n    value: function list() {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'get', '/groups.list');\n    }\n  }, {\n    key: 'open',\n    value: function open(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.open', parameters);\n    }\n  }, {\n    key: 'removeModerator',\n    value: function removeModerator(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.removeModerator', parameters);\n    }\n  }, {\n    key: 'removeOwner',\n    value: function removeOwner(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.removeOwner', parameters);\n    }\n  }, {\n    key: 'rename',\n    value: function rename(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.rename', parameters);\n    }\n  }, {\n    key: 'setDescription',\n    value: function setDescription(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.setDescription', parameters);\n    }\n  }, {\n    key: 'setPurpose',\n    value: function setPurpose(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.setPurpose', parameters);\n    }\n  }, {\n    key: 'setReadOnly',\n    value: function setReadOnly(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.setReadOnly', parameters);\n    }\n  }, {\n    key: 'setTopic',\n    value: function setTopic(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.setTopic', parameters);\n    }\n  }, {\n    key: 'setType',\n    value: function setType(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.setType', parameters);\n    }\n  }, {\n    key: 'unarchive',\n    value: function unarchive(parameters) {\n      return _get(Groups.prototype.__proto__ || Object.getPrototypeOf(Groups.prototype), 'sendRequest', this).call(this, 'post', '/groups.unarchive', parameters);\n    }\n  }]);\n\n  return Groups;\n}(_Request3.default);\n\nexports.default = Groups;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9Hcm91cHMuanM/MTVjOSJdLCJuYW1lcyI6WyJHcm91cHMiLCJwYXJhbWV0ZXJzIiwiYXV0aGVudGljYXRlIiwicmVxdWVzdFR5cGUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTs7Ozs7Ozs7Ozs7O0lBRXFCQSxNOzs7Ozs7Ozs7OzsyQkFFWkMsVSxFQUFZO0FBQ2pCLHlIQUF5QixNQUF6QixFQUFpQyxnQkFBakMsRUFBbURBLFVBQW5EO0FBQ0Q7OztpQ0FFWUEsVSxFQUFZO0FBQ3ZCLHlIQUF5QixNQUF6QixFQUFpQyxzQkFBakMsRUFBeURBLFVBQXpEO0FBQ0Q7Ozs2QkFFUUEsVSxFQUFZO0FBQ25CLHlIQUF5QixNQUF6QixFQUFpQyxrQkFBakMsRUFBcURBLFVBQXJEO0FBQ0Q7Ozs0QkFFT0EsVSxFQUFZO0FBQ2xCLHlIQUF5QixNQUF6QixFQUFpQyxpQkFBakMsRUFBb0RBLFVBQXBEO0FBQ0Q7OzswQkFFS0EsVSxFQUFZO0FBQ2hCLHlIQUF5QixNQUF6QixFQUFpQyxlQUFqQyxFQUFrREEsVUFBbEQ7QUFDRDs7OzJCQUVNQSxVLEVBQVk7QUFDakIseUhBQXlCLE1BQXpCLEVBQWlDLGdCQUFqQyxFQUFtRE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
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _Request2 = __webpack_require__(0);\n\nvar _Request3 = _interopRequireDefault(_Request2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Im = function (_Request) {\n  _inherits(Im, _Request);\n\n  function Im() {\n    _classCallCheck(this, Im);\n\n    return _possibleConstructorReturn(this, (Im.__proto__ || Object.getPrototypeOf(Im)).apply(this, arguments));\n  }\n\n  _createClass(Im, [{\n    key: 'close',\n    value: function close(parameters) {\n      return _get(Im.prototype.__proto__ || Object.getPrototypeOf(Im.prototype), 'sendRequest', this).call(this, 'post', '/im.close', parameters);\n    }\n  }, {\n    key: 'history',\n    value: function history(parameters) {\n      return _get(Im.prototype.__proto__ || Object.getPrototypeOf(Im.prototype), 'sendRequest', this).call(this, 'get', '/im.history', parameters, { authenticate: true, requestType: 'queryString' });\n    }\n  }, {\n    key: 'listEveryone',\n    value: function listEveryone() {\n      return _get(Im.prototype.__proto__ || Object.getPrototypeOf(Im.prototype), 'sendRequest', this).call(this, 'get', '/im.list.everyone');\n    }\n  }, {\n    key: 'list',\n    value: function list() {\n      return _get(Im.prototype.__proto__ || Object.getPrototypeOf(Im.prototype), 'sendRequest', this).call(this, 'get', '/im.list');\n    }\n  }, {\n    key: 'messagesOthers',\n    value: function messagesOthers(parameters) {\n      return _get(Im.prototype.__proto__ || Object.getPrototypeOf(Im.prototype), 'sendRequest', this).call(this, 'get', '/im.messages.others', parameters, { authenticate: true, requestType: 'queryString' });\n    }\n  }, {\n    key: 'open',\n    value: function open(parameters) {\n      return _get(Im.prototype.__proto__ || Object.getPrototypeOf(Im.prototype), 'sendRequest', this).call(this, 'post', '/im.open', parameters);\n    }\n  }, {\n    key: 'setTopic',\n    value: function setTopic(parameters) {\n      return _get(Im.prototype.__proto__ || Object.getPrototypeOf(Im.prototype), 'sendRequest', this).call(this, 'post', '/im.setTopic', parameters);\n    }\n  }]);\n\n  return Im;\n}(_Request3.default);\n\nexports.default = Im;\n;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9JbS5qcz80MDc0Il0sIm5hbWVzIjpbIkltIiwicGFyYW1ldGVycyIsImF1dGhlbnRpY2F0ZSIsInJlcXVlc3RUeXBlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7Ozs7Ozs7Ozs7O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JldHVybiBzdXBlci5zZW5kUmVxdWVzdCgnZ2V0JywgJy9pbS5oaXN0b3J5JywgcGFyYW1ldGVycywgeyBhdXRoZW50aWNhdGU6IHRydWUsIHJlcXVlc3RUeXBlOiAncXVlcnlTdHJpbmcnIH0pO1xuICB9XG5cbiAgbGlzdEV2ZXJ5b25lKCkge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgnZ2V0JywgJy9pbS5saXN0LmV2ZXJ5b25lJyk7XG4gIH1cblxuICBsaXN0KCkge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgnZ2V0JywgJy9pbS5saXN0Jyk7XG4gIH1cblxuICBtZXNzYWdlc090aGVycyhwYXJhbWV0ZXJzKSB7XG4gICAgcmV0dXJuIHN1cGVyLnNlbmRSZXF1ZXN0KCdnZXQnLCAnL2ltLm1lc3NhZ2VzLm90aGVycycsIHBhcmFtZXRlcnMsIHsgYXV0aGVudGljYXRlOiB0cnVlLCByZXF1ZXN0VHlwZTogJ3F1ZXJ5U3RyaW5nJyB9KTtcbiAgfVxuXG4gIG9wZW4ocGFyYW1ldGVycykge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgncG9zdCcsICcvaW0ub3BlbicsIHBhcmFtZXRlcnMpO1xuICB9XG5cbiAgc2V0VG9waWMocGFyYW1ldGVycykge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgncG9zdCcsICcvaW0uc2V0VG9waWMnLCBwYXJhbWV0ZXJzKTtcbiAgfVxufTtcblxuXG5cbi8vIFdFQlBBQ0sgRk9PVEVSIC8vXG4vLyAuL0ltLmpzIl0sInNvdXJjZVJvb3QiOiIifQ==");
  
  /***/ }),
  /* 6 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _Request2 = __webpack_require__(0);\n\nvar _Request3 = _interopRequireDefault(_Request2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Integration = function (_Request) {\n  _inherits(Integration, _Request);\n\n  function Integration() {\n    _classCallCheck(this, Integration);\n\n    return _possibleConstructorReturn(this, (Integration.__proto__ || Object.getPrototypeOf(Integration)).apply(this, arguments));\n  }\n\n  _createClass(Integration, [{\n    key: 'create',\n    value: function create(parameters) {\n      return _get(Integration.prototype.__proto__ || Object.getPrototypeOf(Integration.prototype), 'sendRequest', this).call(this, 'post', '/integrations.create', parameters);\n    }\n  }, {\n    key: 'list',\n    value: function list() {\n      return _get(Integration.prototype.__proto__ || Object.getPrototypeOf(Integration.prototype), 'sendRequest', this).call(this, 'get', '/integrations.list');\n    }\n  }, {\n    key: 'remove',\n    value: function remove(parameters) {\n      return _get(Integration.prototype.__proto__ || Object.getPrototypeOf(Integration.prototype), 'sendRequest', this).call(this, 'post', '/integrations.remove', parameters);\n    }\n  }]);\n\n  return Integration;\n}(_Request3.default);\n\nexports.default = Integration;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9JbnRlZ3JhdGlvbi5qcz82MTUyIl0sIm5hbWVzIjpbIkludGVncmF0aW9uIiwicGFyYW1ldGVycyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBOzs7Ozs7Ozs7Ozs7SUFFcUJBLFc7Ozs7Ozs7Ozs7OzJCQUVaQyxVLEVBQVk7QUFDakIsbUlBQXlCLE1BQXpCLEVBQWlDLHNCQUFqQyxFQUF5REEsVUFBekQ7QUFDRDs7OzJCQUVNO0FBQ0wsbUlBQXlCLEtBQXpCLEVBQWdDLG9CQUFoQztBQUNEOzs7MkJBRU1BLFUsRUFBWTtBQUNqQixtSUFBeUIsTUFBekIsRUFBaUMsc0JBQWpDLEVBQXlEQSxVQUF6RDtBQUNEOzs7Ozs7a0JBWmtCRCxXIiwiZmlsZSI6IjYuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVxdWVzdCBmcm9tICcuL1JlcXVlc3QnO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBJbnRlZ3JhdGlvbiBleHRlbmRzIFJlcXVlc3Qge1xuXG4gIGNyZWF0ZShwYXJhbWV0ZXJzKSB7XG4gICAgcmV0dXJuIHN1cGVyLnNlbmRSZXF1ZXN0KCdwb3N0JywgJy9pbnRlZ3JhdGlvbnMuY3JlYXRlJywgcGFyYW1ldGVycyk7XG4gIH1cblxuICBsaXN0KCkge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgnZ2V0JywgJy9pbnRlZ3JhdGlvbnMubGlzdCcpO1xuICB9XG5cbiAgcmVtb3ZlKHBhcmFtZXRlcnMpIHtcbiAgICByZXR1cm4gc3VwZXIuc2VuZFJlcXVlc3QoJ3Bvc3QnLCAnL2ludGVncmF0aW9ucy5yZW1vdmUnLCBwYXJhbWV0ZXJzKTtcbiAgfVxuXG59XG5cblxuXG4vLyBXRUJQQUNLIEZPT1RFUiAvL1xuLy8gLi9JbnRlZ3JhdGlvbi5qcyJdLCJzb3VyY2VSb290IjoiIn0=");
  
  /***/ }),
  /* 7 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _Request2 = __webpack_require__(0);\n\nvar _Request3 = _interopRequireDefault(_Request2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Livechat = function (_Request) {\n  _inherits(Livechat, _Request);\n\n  function Livechat() {\n    _classCallCheck(this, Livechat);\n\n    return _possibleConstructorReturn(this, (Livechat.__proto__ || Object.getPrototypeOf(Livechat)).apply(this, arguments));\n  }\n\n  _createClass(Livechat, [{\n    key: 'getDepartment',\n    value: function getDepartment() {\n      var _id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n      return _get(Livechat.prototype.__proto__ || Object.getPrototypeOf(Livechat.prototype), 'sendRequest', this).call(this, 'get', '/livechat/department/' + _id);\n    }\n  }, {\n    key: 'registerDepartment',\n    value: function registerDepartment(parameters) {\n      return _get(Livechat.prototype.__proto__ || Object.getPrototypeOf(Livechat.prototype), 'sendRequest', this).call(this, 'post', '/livechat/department', parameters);\n    }\n  }, {\n    key: 'updateDepartment',\n    value: function updateDepartment(_id, parameters) {\n      return _get(Livechat.prototype.__proto__ || Object.getPrototypeOf(Livechat.prototype), 'sendRequest', this).call(this, 'put', '/livechat/department/' + _id, parameters);\n    }\n  }, {\n    key: 'deleteDepartment',\n    value: function deleteDepartment(_id, parameters) {\n      return _get(Livechat.prototype.__proto__ || Object.getPrototypeOf(Livechat.prototype), 'sendRequest', this).call(this, 'delete', '/livechat/department/' + _id, parameters);\n    }\n  }, {\n    key: 'smsIncoming',\n    value: function smsIncoming(service, parameters) {\n      return _get(Livechat.prototype.__proto__ || Object.getPrototypeOf(Livechat.prototype), 'sendRequest', this).call(this, 'post', '/livechat/sms-incoming/' + service, parameters);\n    }\n  }, {\n    key: 'getUsers',\n    value: function getUsers(type) {\n      var _id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\n      return _get(Livechat.prototype.__proto__ || Object.getPrototypeOf(Livechat.prototype), 'sendRequest', this).call(this, 'get', '/livechat/users/' + type + '/' + _id);\n    }\n  }, {\n    key: 'registerUser',\n    value: function registerUser(type, parameters) {\n      return _get(Livechat.prototype.__proto__ || Object.getPrototypeOf(Livechat.prototype), 'sendRequest', this).call(this, 'post', '/livechat/users/' + type, parameters);\n    }\n  }, {\n    key: 'deleteUser',\n    value: function deleteUser(type, _id, parameters) {\n      return _get(Livechat.prototype.__proto__ || Object.getPrototypeOf(Livechat.prototype), 'sendRequest', this).call(this, 'delete', '/livechat/users/' + type + '/' + _id, parameters);\n    }\n  }]);\n\n  return Livechat;\n}(_Request3.default);\n\nexports.default = Livechat;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9MaXZlY2hhdC5qcz9mMGM5Il0sIm5hbWVzIjpbIkxpdmVjaGF0IiwiX2lkIiwicGFyYW1ldGVycyIsInNlcnZpY2UiLCJ0eXBlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7Ozs7Ozs7Ozs7OztJQUVxQkEsUTs7Ozs7Ozs7Ozs7b0NBRUs7QUFBQSxVQUFWQyxHQUFVLHVFQUFKLEVBQUk7O0FBQ3RCLDZIQUF5QixLQUF6Qiw0QkFBd0RBLEdBQXhEO0FBQ0Q7Ozt1Q0FFa0JDLFUsRUFBWTtBQUM3Qiw2SEFBeUIsTUFBekIsRUFBaUMsc0JBQWpDLEVBQXlEQSxVQUF6RDtBQUNEOzs7cUNBRWdCRCxHLEVBQUtDLFUsRUFBWTtBQUNoQyw2SEFBeUIsS0FBekIsNEJBQXdERCxHQUF4RCxFQUErREMsVUFBL0Q7QUFDRDs7O3FDQUVnQkQsRyxFQUFLQyxVLEVBQVk7QUFDaEMsNkhB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8 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _Request2 = __webpack_require__(0);\n\nvar _Request3 = _interopRequireDefault(_Request2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Miscellaneous = function (_Request) {\n  _inherits(Miscellaneous, _Request);\n\n  function Miscellaneous(client) {\n    _classCallCheck(this, Miscellaneous);\n\n    return _possibleConstructorReturn(this, (Miscellaneous.__proto__ || Object.getPrototypeOf(Miscellaneous)).call(this, client));\n  }\n\n  _createClass(Miscellaneous, [{\n    key: 'info',\n    value: function info() {\n      return _get(Miscellaneous.prototype.__proto__ || Object.getPrototypeOf(Miscellaneous.prototype), 'sendRequest', this).call(this, 'get', '/info', {}, { authenticate: false });\n    }\n  }]);\n\n  return Miscellaneous;\n}(_Request3.default);\n\nexports.default = Miscellaneous;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9NaXNjZWxsYW5lb3VzLmpzPzAzYTUiXSwibmFtZXMiOlsiTWlzY2VsbGFuZW91cyIsImNsaWVudCIsImF1dGhlbnRpY2F0ZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBOzs7Ozs7Ozs7Ozs7SUFFcUJBLGE7OztBQUVuQix5QkFBWUMsTUFBWixFQUFvQjtBQUFBOztBQUFBLHlIQUNaQSxNQURZO0FBRW5COzs7OzJCQUVNO0FBQ0wsdUlBQXlCLEtBQXpCLEVBQWdDLE9BQWhDLEVBQXlDLEVBQXpDLEVBQTZDLEVBQUVDLGNBQWMsS0FBaEIsRUFBN0M7QUFDRDs7Ozs7O2tCQVJrQkYsYSIsImZpbGUiOiI4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlcXVlc3QgZnJvbSAnLi9SZXF1ZXN0JztcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgTWlzY2VsbGFuZW91cyBleHRlbmRzIFJlcXVlc3Qge1xuXG4gIGNvbnN0cnVjdG9yKGNsaWVudCkge1xuICAgIHN1cGVyKGNsaWVudCk7XG4gIH1cblxuICBpbmZvKCkge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgnZ2V0JywgJy9pbmZvJywge30sIHsgYXV0aGVudGljYXRlOiBmYWxzZSB9KTtcbiAgfVxuXG59XG5cblxuXG4vLyBXRUJQQUNLIEZPT1RFUiAvL1xuLy8gLi9NaXNjZWxsYW5lb3VzLmpzIl0sInNvdXJjZVJvb3QiOiIifQ==");
  
  /***/ }),
  /* 9 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _Request2 = __webpack_require__(0);\n\nvar _Request3 = _interopRequireDefault(_Request2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Settings = function (_Request) {\n  _inherits(Settings, _Request);\n\n  function Settings() {\n    _classCallCheck(this, Settings);\n\n    return _possibleConstructorReturn(this, (Settings.__proto__ || Object.getPrototypeOf(Settings)).apply(this, arguments));\n  }\n\n  _createClass(Settings, [{\n    key: 'get',\n    value: function get(_id) {\n      return _get(Settings.prototype.__proto__ || Object.getPrototypeOf(Settings.prototype), 'sendRequest', this).call(this, 'get', '/settings/' + _id);\n    }\n  }, {\n    key: 'update',\n    value: function update(_id, parameters) {\n      return _get(Settings.prototype.__proto__ || Object.getPrototypeOf(Settings.prototype), 'sendRequest', this).call(this, 'post', '/settings/' + _id, parameters);\n    }\n  }]);\n\n  return Settings;\n}(_Request3.default);\n\nexports.default = Settings;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9TZXR0aW5ncy5qcz8xMGZiIl0sIm5hbWVzIjpbIlNldHRpbmdzIiwiX2lkIiwicGFyYW1ldGVycyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBOzs7Ozs7Ozs7Ozs7SUFFcUJBLFE7Ozs7Ozs7Ozs7O3dCQUVmQyxHLEVBQUs7QUFDUCw2SEFBeUIsS0FBekIsaUJBQTZDQSxHQUE3QztBQUNEOzs7MkJBRU1BLEcsRUFBS0MsVSxFQUFZO0FBQ3RCLDZIQUF5QixNQUF6QixpQkFBOENELEdBQTlDLEVBQXFEQyxVQUFyRDtBQUNEOzs7Ozs7a0JBUmtCRixRIiwiZmlsZSI6IjkuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVxdWVzdCBmcm9tICcuL1JlcXVlc3QnO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBTZXR0aW5ncyBleHRlbmRzIFJlcXVlc3Qge1xuXG4gIGdldChfaWQpIHtcbiAgICByZXR1cm4gc3VwZXIuc2VuZFJlcXVlc3QoJ2dldCcsIGAvc2V0dGluZ3MvJHtfaWR9YCk7XG4gIH1cblxuICB1cGRhdGUoX2lkLCBwYXJhbWV0ZXJzKSB7XG4gICAgcmV0dXJuIHN1cGVyLnNlbmRSZXF1ZXN0KCdwb3N0JywgYC9zZXR0aW5ncy8ke19pZH1gLCBwYXJhbWV0ZXJzKTtcbiAgfVxuXG59XG5cblxuXG4vLyBXRUJQQUNLIEZPT1RFUiAvL1xuLy8gLi9TZXR0aW5ncy5qcyJdLCJzb3VyY2VSb290IjoiIn0=");
  
  /***/ }),
  /* 10 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _Request2 = __webpack_require__(0);\n\nvar _Request3 = _interopRequireDefault(_Request2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Users = function (_Request) {\n  _inherits(Users, _Request);\n\n  function Users() {\n    _classCallCheck(this, Users);\n\n    return _possibleConstructorReturn(this, (Users.__proto__ || Object.getPrototypeOf(Users)).apply(this, arguments));\n  }\n\n  _createClass(Users, [{\n    key: 'create',\n    value: function create(parameters) {\n      return _get(Users.prototype.__proto__ || Object.getPrototypeOf(Users.prototype), 'sendRequest', this).call(this, 'post', '/users.create', parameters);\n    }\n  }, {\n    key: 'delete',\n    value: function _delete(parameters) {\n      return _get(Users.prototype.__proto__ || Object.getPrototypeOf(Users.prototype), 'sendRequest', this).call(this, 'post', '/users.delete', parameters);\n    }\n  }, {\n    key: 'getPresence',\n    value: function getPresence() {\n      var parameters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n      return _get(Users.prototype.__proto__ || Object.getPrototypeOf(Users.prototype), 'sendRequest', this).call(this, 'get', '/users.getPresence', parameters, { authenticate: true, requestType: 'queryString' });\n    }\n  }, {\n    key: 'info',\n    value: function info(parameters) {\n      return _get(Users.prototype.__proto__ || Object.getPrototypeOf(Users.prototype), 'sendRequest', this).call(this, 'get', '/users.info', parameters, { authenticate: true, requestType: 'queryString' });\n    }\n  }, {\n    key: 'list',\n    value: function list() {\n      return _get(Users.prototype.__proto__ || Object.getPrototypeOf(Users.prototype), 'sendRequest', this).call(this, 'get', '/users.list', {});\n    }\n  }, {\n    key: 'setAvatar',\n    value: function setAvatar(parameters) {\n      var options = { authenticate: true };\n      if (parameters.filepath) {\n        options.requestType = 'file';\n      }\n      return _get(Users.prototype.__proto__ || Object.getPrototypeOf(Users.prototype), 'sendRequest', this).call(this, 'post', '/users.setAvatar', parameters, options);\n    }\n  }, {\n    key: 'update',\n    value: function update(parameters) {\n      return _get(Users.prototype.__proto__ || Object.getPrototypeOf(Users.prototype), 'sendRequest', this).call(this, 'post', '/users.update', parameters);\n    }\n  }]);\n\n  return Users;\n}(_Request3.default);\n\nexports.default = Users;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9Vc2Vycy5qcz9kMzQ5Il0sIm5hbWVzIjpbIlVzZXJzIiwicGFyYW1ldGVycyIsImF1dGhlbnRpY2F0ZSIsInJlcXVlc3RUeXBlIiwib3B0aW9ucyIsImZpbGVwYXRoIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7Ozs7Ozs7Ozs7OztJQUVxQkEsSzs7Ozs7Ozs7Ozs7MkJBRVpDLFUsRUFBWTtBQUNqQix1SEFBeUIsTUFBekIsRUFBaUMsZUFBakMsRUFBa0RBLFVBQWxEO0FBQ0Q7Ozs0QkFFTUEsVSxFQUFZO0FBQ2pCLHVIQUF5QixNQUF6QixFQUFpQyxlQUFqQyxFQUFrREEsVUFBbEQ7QUFDRDs7O2tDQUU0QjtBQUFBLFVBQWpCQSxVQUFpQix1RUFBSixFQUFJOztBQUMzQix1SEFBeUIsS0FBekIsRUFBZ0Msb0JBQWhDLEVBQXNEQSxVQUF0RCxFQUFrRSxFQUFFQyxjQUFjLElBQWhCLEVBQXNCQyxhQUFhLGFBQW5DLEVBQWxFO0FBQ0Q7Ozt5QkFFSUYsVSxFQUFZO0FBQ2YsdUhBQXlCLEtBQXpCLEVBQWdDLGFBQWhDLEVBQStDQSxVQUEvQyxFQUEyRCxFQUFFQyxjQUFjLElBQWhCLEVBQXNCQyxhQUFhLGFBQW5DLEVBQTNEO0FBQ0Q7OzsyQkFFTTtBQUNMLHVIQUF5QixLQUF6QixFQUFnQyxhQUFoQyxFQUErQyxFQUEvQztBQUNEOzs7OEJBRVNGLFUsRUFBWTtBQUNwQixVQUFJRyxVQUFVLEVBQUVGLGNBQWMsS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7IGF1dGhlbnRpY2F0ZTogdHJ1ZSwgcmVxdWVzdFR5cGU6ICdxdWVyeVN0cmluZycgfSk7XG4gIH1cblxuICBsaXN0KCkge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgnZ2V0JywgJy91c2Vycy5saXN0Jywge30pO1xuICB9XG5cbiAgc2V0QXZhdGFyKHBhcmFtZXRlcnMpIHtcbiAgICBsZXQgb3B0aW9ucyA9IHsgYXV0aGVudGljYXRlOiB0cnVlIH07XG4gICAgaWYgKHBhcmFtZXRlcnMuZmlsZXBhdGgpIHtcbiAgICAgIG9wdGlvbnMucmVxdWVzdFR5cGUgPSAnZmlsZSc7XG4gICAgfVxuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgncG9zdCcsICcvdXNlcnMuc2V0QXZhdGFyJywgcGFyYW1ldGVycywgb3B0aW9ucyk7XG4gIH1cblxuICB1cGRhdGUocGFyYW1ldGVycykge1xuICAgIHJldHVybiBzdXBlci5zZW5kUmVxdWVzdCgncG9zdCcsICcvdXNlcnMudXBkYXRlJywgcGFyYW1ldGVycyk7XG4gIH1cblxufVxuXG5cblxuLy8gV0VCUEFDSyBGT09URVIgLy9cbi8vIC4vVXNlcnMuanMiXSwic291cmNlUm9vdCI6IiJ9");
  
  /***/ }),
  /* 11 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.Client = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _Authentication2 = __webpack_require__(1);\n\nvar _Authentication3 = _interopRequireDefault(_Authentication2);\n\nvar _Users2 = __webpack_require__(10);\n\nvar _Users3 = _interopRequireDefault(_Users2);\n\nvar _Channels2 = __webpack_require__(2);\n\nvar _Channels3 = _interopRequireDefault(_Channels2);\n\nvar _Groups2 = __webpack_require__(4);\n\nvar _Groups3 = _interopRequireDefault(_Groups2);\n\nvar _Im2 = __webpack_require__(5);\n\nvar _Im3 = _interopRequireDefault(_Im2);\n\nvar _Chat2 = __webpack_require__(3);\n\nvar _Chat3 = _interopRequireDefault(_Chat2);\n\nvar _Settings2 = __webpack_require__(9);\n\nvar _Settings3 = _interopRequireDefault(_Settings2);\n\nvar _Integration2 = __webpack_require__(6);\n\nvar _Integration3 = _interopRequireDefault(_Integration2);\n\nvar _Livechat2 = __webpack_require__(7);\n\nvar _Livechat3 = _interopRequireDefault(_Livechat2);\n\nvar _Miscellaneous2 = __webpack_require__(8);\n\nvar _Miscellaneous3 = _interopRequireDefault(_Miscellaneous2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Client = exports.Client = function () {\n  function Client(args) {\n    _classCallCheck(this, Client);\n\n    this.setHost(args.host || 'localhost');\n    this.setPort(args.port || 80);\n    this.setScheme(args.scheme || 'http');\n    this.setUserName(args.username || null);\n    this.setPassword(args.password || null);\n    this.setAuthToken(args.token || null);\n    this.setUserId(args.userId || null);\n  }\n\n  _createClass(Client, [{\n    key: 'setHost',\n    value: function setHost(host) {\n      this.host = host;\n    }\n  }, {\n    key: 'getHost',\n    value: function getHost() {\n      return this.host;\n    }\n  }, {\n    key: 'setPort',\n    value: function setPort(port) {\n      this.port = port;\n    }\n  }, {\n    key: 'getPort',\n    value: function getPort() {\n      return this.port;\n    }\n  }, {\n    key: 'setScheme',\n    value: function setScheme(scheme) {\n      this.scheme = scheme;\n    }\n  }, {\n    key: 'getScheme',\n    value: function getScheme() {\n      return this.scheme;\n    }\n  }, {\n    key: 'getApiUrl',\n    value: function getApiUrl() {\n      return this.getScheme() + '://' + this.getHost() + ':' + this.getPort() + '/api/v1';\n    }\n  }, {\n    key: 'setUserId',\n    value: function setUserId(userId) {\n      this.userId = userId;\n    }\n  }, {\n    key: 'getUserId',\n    value: function getUserId() {\n      return this.userId;\n    }\n  }, {\n    key: 'setUserName',\n    value: function setUserName(username) {\n      this.username = username;\n    }\n  }, {\n    key: 'getUsername',\n    value: function getUsername() {\n      return this.username;\n    }\n  }, {\n    key: 'setPassword',\n    value: function setPassword(password) {\n      this.password = password;\n    }\n  }, {\n    key: 'getPassword',\n    value: function getPassword() {\n      return this.password;\n    }\n  }, {\n    key: 'setAuthToken',\n    value: function setAuthToken(authToken) {\n      this.authToken = authToken;\n    }\n  }, {\n    key: 'getAuthToken',\n    value: function getAuthToken() {\n      return this.authToken;\n    }\n  }, {\n    key: 'login',\n    value: function login() {\n      var _this = this;\n\n      return new Promise(function (resolve, reject) {\n        _this.Authentication().sendRequest('post', '/login', { username: _this.getUsername(), password: _this.getPassword() }, { authenticate: false }).then(function (result) {\n          _this.setAuthToken(result.authToken);\n          _this.setUserId(result.userId);\n          resolve(result);\n        }).catch(function (error) {\n          return reject(error);\n        });\n      });\n    }\n  }, {\n    key: 'Authentication',\n    value: function Authentication() {\n      return new _Authentication3.default(this);\n    }\n  }, {\n    key: 'Users',\n    value: function Users() {\n      return new _Users3.default(this);\n    }\n  }, {\n    key: 'Channels',\n    value: function Channels() {\n      return new _Channels3.default(this);\n    }\n  }, {\n    key: 'Groups',\n    value: function Groups() {\n      return new _Groups3.default(this);\n    }\n  }, {\n    key: 'Im',\n    value: function Im() {\n      return new _Im3.default(this);\n    }\n  }, {\n    key: 'Chat',\n    value: function Chat() {\n      return new _Chat3.default(this);\n    }\n  }, {\n    key: 'Settings',\n    value: function Settings() {\n      return new _Settings3.default(this);\n    }\n  }, {\n    key: 'Integration',\n    value: function Integration() {\n      return new _Integration3.default(this);\n    }\n  }, {\n    key: 'Livechat',\n    value: function Livechat() {\n      return new _Livechat3.default(this);\n    }\n  }, {\n    key: 'Miscellaneous',\n    value: function Miscellaneous() {\n      return new _Miscellaneous3.default(this);\n    }\n  }]);\n\n  return Client;\n}();\n\n;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9DbGllbnQuanM/YjM2NiJdLCJuYW1lcyI6WyJDbGllbnQiLCJhcmdzIiwic2V0SG9zdCIsImhvc3QiLCJzZXRQb3J0IiwicG9ydCIsInNldFNjaGVtZSIsInNjaGVtZSIsInNldFVzZXJOYW1lIiwidXNlcm5hbWUiLCJzZXRQYXNzd29yZCIsInBhc3N3b3JkIiwic2V0QXV0aFRva2VuIiwidG9rZW4iLCJzZXRVc2VySWQiLCJ1c2VySWQiLCJnZXRTY2hlbWUiLCJnZXRIb3N0IiwiZ2V0UG9ydCIsImF1dGhUb2tlbiIsIlByb21pc2UiLCJyZXNvbHZlIiwicmVqZWN0IiwiQXV0aGVudGljYXRpb24iLCJzZW5kUmVxdWVzdCIsImdldFVzZXJuYW1lIiwiZ2V0UGFzc3dvcmQiLCJhdXRoZW50aWNhdGUiLCJ0aGVuIiwicmVzdWx0IiwiY2F0Y2giLCJlcnJvciJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7Ozs7O0lBRWFBLE0sV0FBQUEsTTtBQUVYLGtCQUFZQyxJQUFaLEVBQWtCO0FBQUE7O0FBQ2hCLFNBQUtDLE9BQUwsQ0FBYUQsS0FBS0UsSUFBTCxJQUFhLFdBQTFCO0FBQ0EsU0FBS0MsT0FBTCxDQUFhSCxLQUFLSSxJQUFMLElBQWEsRUFBMUI7QUFDQSxTQUFLQ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IEltKCkge1xuICAgIHJldHVybiBuZXcgSW0odGhpcyk7XG4gIH1cblxuICBDaGF0KCkge1xuICAgIHJldHVybiBuZXcgQ2hhdCh0aGlzKTtcbiAgfVxuXG4gIFNldHRpbmdzKCkge1xuICAgIHJldHVybiBuZXcgU2V0dGluZ3ModGhpcyk7XG4gIH1cblxuICBJbnRlZ3JhdGlvbigpIHtcbiAgICByZXR1cm4gbmV3IEludGVncmF0aW9uKHRoaXMpO1xuICB9XG5cbiAgTGl2ZWNoYXQoKSB7XG4gICAgcmV0dXJuIG5ldyBMaXZlY2hhdCh0aGlzKTtcbiAgfVxuXG4gIE1pc2NlbGxhbmVvdXMoKSB7XG4gICAgcmV0dXJuIG5ldyBNaXNjZWxsYW5lb3VzKHRoaXMpO1xuICB9XG59O1xuXG5cblxuLy8gV0VCUEFDSyBGT09URVIgLy9cbi8vIC4vQ2xpZW50LmpzIl0sInNvdXJjZVJvb3QiOiIifQ==");
  
  /***/ }),
  /* 12 */
  /***/ (function(module, exports) {
  
  eval("module.exports = require(\"unirest\");//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vZXh0ZXJuYWwgXCJ1bmlyZXN0XCI/Y2MxMCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsImZpbGUiOiIxMi5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcInVuaXJlc3RcIik7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gZXh0ZXJuYWwgXCJ1bmlyZXN0XCJcbi8vIG1vZHVsZSBpZCA9IDEyXG4vLyBtb2R1bGUgY2h1bmtzID0gMCAxIl0sInNvdXJjZVJvb3QiOiIifQ==");
  
  /***/ })
  /******/ ]);