{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\xypm-web\\src\\api\\mail.js","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\api\\mail.js","mtime":1675214575855},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import req from \"@/request.js\";\nvar portal = window.context.portal;\nexport default {\n  //获取邮件信息列表\n  getMialByPagination: function getMialByPagination(pagination, cb) {\n    req.post(portal + \"/mail/mail/mail/v1/listJson\", pagination).then(function (response) {\n      cb(response);\n    });\n  },\n  //获取邮箱分类树\n  getMailTreeList: function getMailTreeList(cb) {\n    req.get(portal + \"/mail/mail/mail/v1/getMailTreeData\").then(function (response) {\n      cb(response);\n    });\n  },\n  //获取邮箱详细信息\n  getMailById: function getMailById(id, cb) {\n    req.get(portal + \"/mail/mail/mail/v1/getJson?id=\" + id).then(function (response) {\n      cb(response);\n    });\n  },\n  //删除邮件\n  deleteMaliById: function deleteMaliById(data, cb) {\n    var s = \"\";\n    for (var i = 0; i < data.length; i++) {\n      s += s + data[i].id + \",\";\n    }\n    var type = data[0].type;\n    req.get(portal + \"/mail/mail/mail/v1/remove?ids=\" + s + \"&&type=\" + type).then(function (response) {\n      cb(response);\n    });\n  },\n  //删除单个邮件\n  deleteMaliOnes: function deleteMaliOnes(data, cb) {\n    req.get(portal + \"/mail/mail/mail/v1/remove?ids=\" + data.id + \"&&type=\" + data.type).then(function (response) {\n      cb(response);\n    });\n  },\n  //同步邮件\n  getSysncById: function getSysncById(id, cb) {\n    req.post(portal + \"/mail/mail/mail/v1/sync?id=\" + id).then(function (response) {\n      cb(response);\n    });\n  },\n  //发送邮件(保存邮件信息)\n  saveMail: function saveMail(data, cb) {\n    req.post(portal + '/mail/mail/mail/v1/send', data).then(function (response) {\n      cb(response);\n    });\n  },\n  //模糊查询联系人和用户信息\n  getUserlistByPagination: function getUserlistByPagination(query, cb) {\n    req.get(portal + \"/mail/mail/mailLinkman/v1/getMailAndUserData?query=\" + query).then(function (response) {\n      cb(response);\n    });\n  },\n  //邮件变成已读\n  setMailByisRead: function setMailByisRead(id, cb) {\n    req.get(portal + \"/mail/mail/mail/v1/isRead?id=\" + id).then(function (response) {\n      cb(response);\n    });\n  },\n  //获取外部邮件联系人列表\n  getMailLinkmanByPagination: function getMailLinkmanByPagination(pagination, cb) {\n    req.post(portal + \"/mail/mail/mailLinkman/v1/listJson\", pagination).then(function (response) {\n      cb(response);\n    });\n  },\n  //获取外部邮件联系人详细信息\n  getMailLinkmanById: function getMailLinkmanById(id, cb) {\n    req.get(portal + \"/mail/mail/mailLinkman/v1/getJson?id=\" + id).then(function (response) {\n      cb(response);\n    });\n  },\n  //保存外部邮件联系人\n  saveMailLinkman: function saveMailLinkman(data, cb) {\n    req.post(portal + '/mail/mail/mailLinkman/v1/save', data).then(function (response) {\n      cb(response);\n    });\n  },\n  //根据邮件名称获取邮件联系人\n  getMailLinkmanByMail: function getMailLinkmanByMail(mailId, cb) {\n    req.get(portal + \"/mail/mail/mailLinkman/v1/getLinkMan?mailId=\" + mailId).then(function (response) {\n      cb(response);\n    });\n  },\n  //删除邮件联系人\n  deleteMaliLinkmanById: function deleteMaliLinkmanById(data, cb) {\n    var s = \"\";\n    for (var i = 0; i < data.length; i++) {\n      s += s + data[i].id + \",\";\n    }\n    s = s.substring(0, s.length - 1);\n    req.remove(portal + \"/mail/mail/mailLinkman/v1/remove?ids=\" + s).then(function (response) {\n      cb(response);\n    });\n  },\n  //获取外部邮箱配置列表\n  getMailSettingByPagination: function getMailSettingByPagination(pagination, cb) {\n    req.post(portal + \"/mail/mail/mailSetting/v1/listJson\", pagination).then(function (response) {\n      cb(response);\n    });\n  },\n  //获取外部邮箱配置详细信息\n  getMailSettingById: function getMailSettingById(id, cb) {\n    req.get(portal + \"/mail/mail/mailSetting/v1/getJson?id=\" + id).then(function (response) {\n      cb(response);\n    });\n  },\n  //保存外部邮箱配置\n  saveMailSetting: function saveMailSetting(data, cb) {\n    req.post(portal + '/mail/mail/mailSetting/v1/save?isOriginPwd=' + data.isOriginPwd, data).then(function (response) {\n      cb(response);\n    });\n  },\n  //测试邮箱连接(编辑/新增情况)\n  testMailConnect: function testMailConnect(data, cb) {\n    req.post(portal + \"/mail/mail/mailSetting/v1/test?isOriginPwd=\" + data.isOriginPwd, data).then(function (response) {\n      cb(response);\n    });\n  },\n  //测试邮箱连接(根据id)\n  testMailConnectById: function testMailConnectById(id, cb) {\n    req.post(portal + \"/mail/mail/mailSetting/v1/test?id=\" + id).then(function (response) {\n      cb(response);\n    });\n  },\n  //删除外部邮箱配置\n  deleteMaliSettingById: function deleteMaliSettingById(data, cb) {\n    var s = \"\";\n    for (var i = 0; i < data.length; i++) {\n      s += s + data[i].id + \",\";\n    }\n    s = s.substring(0, s.length - 1);\n    req.remove(portal + \"/mail/mail/mailSetting/v1/remove?ids=\" + s).then(function (response) {\n      cb(response);\n    });\n  },\n  //设置默认邮箱配置\n  setMailSettingDefaultById: function setMailSettingDefaultById(id, cb) {\n    req.post(portal + \"/mail/mail/mailSetting/v1/setDefault?id=\" + id).then(function (response) {\n      cb(response);\n    });\n  }\n};",null]}