"use strict";

function _typeof(e) {
  return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
    return typeof e
  } : function(e) {
    return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
  })(e)
}
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.default = exports.OltWsUrl = exports.OltSerUrl = exports.IecUrl = exports.secExtUrl = exports.realTimeMetricWsURL = exports.onlineTestWsURL = void 0;
var endConf = _interopRequireWildcard(require("amos-processor/lib/config/endconf"));

function _getRequireWildcardCache() {
  if ("function" != typeof WeakMap) return null;
  var e = new WeakMap;
  return _getRequireWildcardCache = function() {
    return e
  }, e
}

function _interopRequireWildcard(e) {
  if (e && e.__esModule) return e;
  if (null === e || "object" !== _typeof(e) && "function" != typeof e) return {
    default: e
  };
  var t = _getRequireWildcardCache();
  if (t && t.has(e)) return t.get(e);
  var i, r, o = {},
    c = Object.defineProperty && Object.getOwnPropertyDescriptor;
  for (i in e) Object.prototype.hasOwnProperty.call(e, i) && ((r = c ? Object.getOwnPropertyDescriptor(e, i) : null) && (r.get || r.set) ? Object.defineProperty(o, i, r) : o[i] = e[i]);
  return o.default = e, t && t.set(e, o), o
}
var completePrefix = endConf.completePrefix,
  baseURI = endConf.baseURI,
  securityBaseURI = endConf.securityBaseURI,
  mockURI = "http://172.16.10.161:8087/",
  AmosConfig = endConf.AmosConfig,
  securityBaseWsURI = AmosConfig.wsURI.securityBaseURI,
  realTimeMetricDataWsURL = AmosConfig.wsURI.realTimeMetricDataURL,
  onlineDataTestWsURL = AmosConfig.wsURI.onlineTestWsURL,
  onlineTestWsURL = onlineDataTestWsURL;
exports.onlineTestWsURL = onlineDataTestWsURL;
var realTimeMetricWsURL = realTimeMetricDataWsURL;
exports.realTimeMetricWsURL = realTimeMetricDataWsURL;
var secExVerson = "v1",
  securityUrlWithVersion = "".concat(securityBaseURI, "/").concat(secExVerson),
  secExtUrl = {
    opMenusUrl: completePrefix(securityBaseURI, "permissionItem/allPermission-tree"),
    opSearchMenusUrl: completePrefix(securityBaseURI, "permissionItem/searchPermission-tree?nodeName={nodeName}&type={type}"),
    themesUrl: completePrefix(mockURI, "themes"),
    saveUserThemsUrl: completePrefix(mockURI, "themes"),
    uploadThemUrl: completePrefix(mockURI, "themes"),
    removeUserThemUrl: completePrefix(mockURI, "themes"),
    deskListUrl: completePrefix(securityBaseURI, "pfAppManager/appview/listDesk"),
    deskAddUrl: completePrefix(securityBaseURI, "pfAppManager/appview/addDesk"),
    deskEditUrl: completePrefix(securityBaseURI, "pfAppManager/appview/editDesk"),
    deskRemoveUrl: completePrefix(securityBaseURI, "pfAppManager/appview/delDesk"),
    currentUserUrl: completePrefix(securityBaseURI, "privilege/".concat(secExVerson, "/agencyuser/me")),
    systemMenusUrl: completePrefix(securityBaseURI, "privilege/".concat(secExVerson, "/permission/tree/me")),
    permissionsCompanyUrl: completePrefix(securityBaseURI, "privilege/".concat(secExVerson, "/agencyuser/me")),
    permissionsMenusUrl: completePrefix(securityBaseURI, "privilege/".concat(secExVerson, "/permission/tree/role?roleSeq={roleSeq}")),
    loginUrl: completePrefix(securityBaseURI, "".concat(secExVerson, "/system/login")),
    loginOutUrl: completePrefix(securityBaseURI, "".concat(secExVerson, "/system/loginOutr")),
    regionSelectUrl: completePrefix(baseURI, "iot/iot/safe/save/curCompany")
  };
exports.secExtUrl = secExtUrl;
var iecBaseURI = completePrefix(baseURI, "iec/"),
  IecUrl = {
    channelUrl: completePrefix(iecBaseURI, "channel"),
    deleteChannelUrl: completePrefix(iecBaseURI, "channel/serviceId/{id}"),
    channelListUrl: completePrefix(iecBaseURI, "channel/{type}"),
    channelPointUrl: completePrefix(iecBaseURI, "point/{channel}"),
    iecChannelPointUrl: completePrefix(iecBaseURI, "point/iec?channelNo={channelNo}&pointType={pointType}"),
    pointUrl: completePrefix(iecBaseURI, "point"),
    deletePointUrl: completePrefix(iecBaseURI, "point?ids={ids}"),
    iecDownloadIecTmplUrl: completePrefix(iecBaseURI, "point/export/model"),
    iecImportUrl: completePrefix(iecBaseURI, "point/import?serviceId={serviceId}&pointType={pointType}")
  };
exports.IecUrl = IecUrl;
var OltSerUrl = {
  scriptLangType: completePrefix(baseURI += "iot/", "dic/script-type"),
  communityProtocol: completePrefix(baseURI, "dic/community"),
  equiptemplateIndustry: completePrefix(baseURI, "dic/equiptemplate-industry"),
  addDevice: completePrefix(baseURI, "device/device-persistence"),
  fetchDeviceById: completePrefix(baseURI, "device/template-entity"),
  pageDevice: completePrefix(baseURI, "device/page-device"),
  realDevice: completePrefix(baseURI, "device/real-list"),
  getRealDevice: completePrefix(baseURI, "device/real-device"),
  fetchDeviceInterfaceById: completePrefix(baseURI, "device/template-interface"),
  fetchCapacityListInfoById: completePrefix(baseURI, "device/capacity-intfc-property"),
  fetchDeviceImg: completePrefix(baseURI, "images"),
  deviceAttributeUpdate: completePrefix(baseURI, "device/device-attribute-update"),
  deleteDeviceProperty: completePrefix(baseURI, "device/device-property-eliminate"),
  deviceInterfaceUpdate: completePrefix(baseURI, "device/device-interface-update"),
  deleteDeviceInterface: completePrefix(baseURI, "device/device-interface-eliminate"),
  deviceCapacityAdd: completePrefix(baseURI, "device/device-capacity-add"),
  deleteDeviceCapacity: completePrefix(baseURI, "device/device-capacity-eliminate"),
  capacityIntfUpdate: completePrefix(baseURI, "device/capacity-intf-update"),
  deleteCapacityInterface: completePrefix(baseURI, "device/capacity-interface-eliminate"),
  capacityPropertyUpdate: completePrefix(baseURI, "device/capacity-property-update"),
  capacityPropertyUrl: completePrefix(baseURI, "device/capacity-property"),
  deleteCapacityProperty: completePrefix(baseURI, "device/capacity-property-eliminate"),
  deviceBasicInfoUpdate: completePrefix(baseURI, "device/device-basic-info-update"),
  deleteDeviceById: completePrefix(baseURI, "device/device-eliminate"),
  getDeviceCount: completePrefix(baseURI, "device/device-count"),
  findEquipmentById: completePrefix(baseURI, "device/device-info"),
  getDeviceCountByType: completePrefix(baseURI, "device/equipTempTypeStatic"),
  getDeviceCountByIndustry: completePrefix(baseURI, "device/equipTempIndustryStatic"),
  fetchTemplateStatistics: completePrefix(baseURI, "device/eqpTempl/list"),
  fetchTemplatEquipments: completePrefix(baseURI, "device/eqpTempl/equipments"),
  ToDoDeviceTest: completePrefix(baseURI, "device/test"),
  fetchTemplatIntfc: completePrefix(baseURI, "intfc"),
  quotaSelecteds: completePrefix(baseURI, "device/quota-info"),
  editEquipmentName: completePrefix(baseURI, "device/equipment/property"),
  delEquipmentById: completePrefix(baseURI, "device/delEquipment"),
  fetchTemplatOrEqpIntfc: completePrefix(baseURI, "intfc"),
  fetchTemplatOrEqpQuota: completePrefix(baseURI, "device"),
  addEditEquipment: completePrefix(baseURI, "device/saveEquipment"),
  exportData: completePrefix(baseURI, "device/export"),
  fetchCapacityInterface: completePrefix(baseURI, "device/capacity-intfc"),
  updateEquipmentConfig: completePrefix(baseURI, "device/equipment/single-property"),
  getDeviceModeData: completePrefix(baseURI, "device/equipment/modelDate"),
  deviceInterfaceByid: completePrefix(baseURI, "intfc/attributes"),
  fetchInterfaceCount: completePrefix(baseURI, "intfc/statistics"),
  interfaceDataList: completePrefix(baseURI, "intfc/list"),
  interfaceSave: completePrefix(baseURI, "intfc/add"),
  interfaceDelete: completePrefix(baseURI, "intfc/delete"),
  intfcAttrSave: completePrefix(baseURI, "intfc/{id}/attribute/edit"),
  intfcAttrDelete: completePrefix(baseURI, "intfc/attribute/delete"),
  protocolSave: completePrefix(baseURI, "protocol/save"),
  protocolDataList: completePrefix(baseURI, "protocol/list"),
  protocolDetail: completePrefix(baseURI, "protocol/{id}/detail"),
  protocolDelete: completePrefix(baseURI, "protocol/delete"),
  fetchProtocolCount: completePrefix(baseURI, "protocol/statistics"),
  fetchSubgraphInfos: completePrefix(baseURI, "company/manger-tree"),
  fetchSubgraphInfoById: completePrefix(baseURI, "topo/subgraph-entity"),
  addSubgraph: completePrefix(baseURI, "topo/subgraph-persistence"),
  delSubgraph: completePrefix(baseURI, "topo/subgraph-eliminate"),
  addSubgraphData: completePrefix(baseURI, "topo/subgraph-data-persistence"),
  updateNodeName: completePrefix(baseURI, "topo/device-name-update"),
  getEquipmentData: completePrefix(baseURI, "device/equipment-entity"),
  addEquipmentAttribute: completePrefix(baseURI, "device/equipment-attribute"),
  deleteNodeById: completePrefix(baseURI, "topo/node-eliminate"),
  deleteConnectionById: completePrefix(baseURI, "topo/connection-eliminate"),
  getRealDataByDeviceId: completePrefix(baseURI, "topo/real-data"),
  fetchSubgraphEquipments: completePrefix(baseURI, "topo/subgraph-equipments"),
  fetchSingleSubgraphEquipments: completePrefix(baseURI, "topo/single-subgraph-equipments"),
  getSubviewByOrgCode: completePrefix(baseURI, "topo/subgraph-orgcode"),
  deleteLinkById: completePrefix(baseURI, "topo/link-eliminate"),
  editOrgImgUrl: completePrefix(baseURI, "topo/org-img"),
  fetchOrgImgs: completePrefix(baseURI, "topo/imgs"),
  oneOpenOrClose: completePrefix(baseURI, "topo/rule-switch"),
  fetchSimpleOrgImgs: completePrefix(baseURI, "topo/simple-imgs"),
  editSubviewImg: completePrefix(baseURI, "topo/subgraph-img"),
  fetchCompanyById: completePrefix(securityBaseURI, "privilege/".concat(secExVerson, "/company")),
  fetchTopoDevice: completePrefix(baseURI, "device/topo-device"),
  addeEditEqpImg: completePrefix(baseURI, "device/eqipment-img"),
  monitorRuleDataList: completePrefix(baseURI, "rule/list"),
  monitorRuleAddOrUpdate: completePrefix(baseURI, "rule/add-update"),
  monitorRuleDel: completePrefix(baseURI, "rule/monitor-del"),
  monitorRuleNameIsReplace: completePrefix(baseURI, "rule/name-replace"),
  monitorIsenable: completePrefix(baseURI, "rule/monitor-enable"),
  monitorRuleData: completePrefix(baseURI, "rule/task-list"),
  getHistoryAlarm: completePrefix(baseURI, "alarm/list"),
  deleteAlarm: completePrefix(baseURI, "alarm/delete"),
  getAlarmCount: completePrefix(baseURI, "alarm/presentAlarm-static"),
  getHistoryData: completePrefix(baseURI, "history/history-condition-data"),
  getDeviceTemplateByEgpId: completePrefix(baseURI, "history/template-entity"),
  rulelibListUrl: completePrefix(baseURI, "rulemanage/rule-list"),
  addSingleRule: completePrefix(baseURI, "rulemanage/rule"),
  editSingleRule: completePrefix(baseURI, "rulemanage/rule"),
  removeObjUrl: completePrefix(baseURI, "rulemanage/rule"),
  changeRule: completePrefix(baseURI, "rulemanage/rule-enabled"),
  changeAllRule: completePrefix(baseURI, "rulemanage/all-rule-enabled"),
  saveStageViewUrl: completePrefix(baseURI, "ruledeploy/rule-data"),
  initStageViewUrl: completePrefix(baseURI, "rulemanage/rule"),
  delViewNodeUrl: completePrefix(baseURI, "ruledeploy/nodevo"),
  updateNodeLabelUrl: completePrefix(baseURI, "ruledeploy/nodevoname"),
  addViewNodeUrl: completePrefix(baseURI, "ruledeploy/nodevo"),
  updateNodeUrl: completePrefix(baseURI, "ruledeploy/nodevo"),
  fetchNodeConfig: completePrefix(baseURI, "ruledeploy/nodevo"),
  getRuleElements: completePrefix(baseURI, "ruledeploy/elements"),
  getMonitorRuleUrl: completePrefix(baseURI, "rule/monitorRule-static"),
  getSectionsByParam: completePrefix(baseURI, "section/sections-entitys")
};
exports.OltSerUrl = OltSerUrl;
var OltWsUrl = {
  topoWs: completePrefix(securityBaseURI, "topo.ws")
};
exports.OltWsUrl = OltWsUrl;
var _default = OltSerUrl;
exports.default = OltSerUrl;
