"use strict";
(() => {
var exports = {};
exports.id = 4916;
exports.ids = [4916];
exports.modules = {

/***/ 9648:
/***/ ((module) => {

module.exports = import("axios");;

/***/ }),

/***/ 8316:
/***/ ((module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ handler)
/* harmony export */ });
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9648);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([axios__WEBPACK_IMPORTED_MODULE_0__]);
axios__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];

async function handler(req, res) {
    const { id  } = req.query;
    const token = req.headers.authorization;
    const config = {
        method: "get",
        url: "https://dashboard-apis.iotacademy.ir" + "/inout-setting/" + id,
        ContentType: "application/x-www-form-urlencoded",
        headers: {
            Authorization: token
        }
    };
    const items = await (0,axios__WEBPACK_IMPORTED_MODULE_0__["default"])(config).then(function(response) {
        return response;
    }).catch(function(error) {
        return error;
    });
    res.status(200).json(items.data);
}

__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });

/***/ })

};
;

// load runtime
var __webpack_require__ = require("../../../webpack-api-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = (__webpack_exec__(8316));
module.exports = __webpack_exports__;

})();