{"version":3,"sources":["webpack:///./src/@core/comp-functions/forms/form-validation.js","webpack:///./src/views/apps/transportation-lines/TransportationLinesEdit.vue?b787","webpack:///src/views/apps/transportation-lines/TransportationLinesEdit.vue","webpack:///./src/views/apps/transportation-lines/TransportationLinesEdit.vue?7279","webpack:///./src/views/apps/transportation-lines/TransportationLinesEdit.vue","webpack:///./src/services/generalData.service.js"],"names":["formValidation","resetFormData","clearFormData","refFormObserver","ref","resetObserver","value","reset","getValidationState","dirty","validated","fieldRequired","required","changed","valid","result","resetForm","nextTick","clearForm","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","$t","scopedSlots","_u","key","fn","handleSubmit","on","$event","preventDefault","onSubmit","errors","length","$store","state","appConfig","isRTL","CustomType","option","id","model","TransportationLine","callback","$$v","$set","expression","getters","staticRenderFns","components","BCard","BForm","BRow","BCol","BFormInput","BFormInvalidFeedback","BFormGroup","BButton","ValidationProvider","ValidationObserver","vSelect","setup","fetchTransportationLine","router","data","fetchCustomTypesOptions","updateTransportationLine","TransportationLineData","JSON","parse","stringify","component","generalDataService","defaultMethods","defaultService","common","throwError","throwSuccess","toastSuccess","API_URL","process","fetchConnectionStrings","axios","get","params","then","response","catch","error","fetchConnectionString","ConnectionId","updateConnectionString","Promise","resolve","reject","put","cadenaConexionId","createConnectionString","post","deleteConnectionString","delete","testConnectionString","cadenaConexion","mensaje","fetchConditionFilters","fetchConditionFilter","ConditionId","createConditionFilter","updateConditionFilter","condicionFiltradoId","deleteConditionFilter","fetchConditionFilterType","fetchTypeObjectQuery","fetchObjectQuery","fetchColumnType","fetchLogicOperatorType","fetchQueryObjects","fetchQueryObject","QueryObjectId","createQueryObject","updateQueryObject","objetoConsultaId","fetchConnectionStringOptions","fetchQueryObjectColumns","fetchQueryObjectDatabase","limit","deleteQueryObject","fetchCustoms","fetchCustom","AduanaId","updateCustom","aduanaId","fetchBondenWarehouses","fetchBondenWarehouse","recintoFiscalId","updateBondenWarehouse","fetchTransportationLines","createTransportationLines","LineaTransporteId","lineaTransporteId","deleteTransportationLine","fetchActionImprovementProblems","createActionImprovementProblem","fetchActionImprovementProblem","accionMejoraProblemaId","updateActionImprovementProblem","deleteActionImprovementProblem","fetchIndicators","createIndicator","fetchIndicator","indicadorId","updateIndicator","deleteIndicator","fetchUsersExportExcel","responseType","fetchBanks","fetch","fetchBank","createBank","create","updateBank","update","fetchIsFromSource","fetchIsPermanent","fetchConditionFilterAuxiliar","fetchConditionFilterOptions","fetchConditionFilterOption","createConditionFilterOption","updateConditionFilterOption","deleteConditionFilterOption","remove"],"mappings":"kHAAA,kDAMe,SAASA,EAAeC,GAAyC,IAA1BC,EAA0B,uDAAV,aAM9DC,EAAkBC,iBAAI,MAOtBC,EAAgB,WACpBF,EAAgBG,MAAMC,SASlBC,EAAqB,SAAC,GAAyE,IAAvEC,EAAuE,EAAvEA,MAAOC,EAAgE,EAAhEA,UAAqBC,EAA2C,EAArDC,SAAyBC,EAA4B,EAA5BA,QAA4B,IAAnBC,aAAmB,MAAX,KAAW,EAC7FC,EAASN,GAASC,EAAYI,EAAQ,KAC5C,OAAQH,GAAkBE,EAAiBE,EAAP,MAQhCC,EAAY,WAChBf,IACAgB,uBAAS,WACPZ,QASEa,EAAY,WAChBhB,IACAe,uBAAS,WACPZ,QAIJ,MAAO,CACLF,kBACAE,gBACAG,qBACAQ,YACAE,e,2CC/DJ,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,YAAY,MAAMC,MAAM,CAAC,UAAU,KAAK,CAACH,EAAG,KAAK,CAACE,YAAY,QAAQ,CAACN,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIU,GAAG,kDAAkD,OAAON,EAAG,sBAAsB,CAACpB,IAAI,kBAAkB2B,YAAYX,EAAIY,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAAS9B,GACrW,IAAI+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AAMrB,GAAX,OAAwB8B,EAAewF,OAAO,kCAAmC,CAAEzH,OAAM,EAAMwB,EAAMrB,IACnI8H,GAA8B,SAACjI,EAAIG,GAAL,OAAkB8B,EAAeiG,OAAO,kCAAmC,CAAElI,OAAM,EAAMG,IAE7H,MAAO,CAELsC,yBACAQ,wBACAQ,yBACAN,yBACAQ,yBACAE,uBAEAG,wBACAC,uBACAE,wBACAC,wBACAE,wBAEAM,oBACAC,mBACAE,oBACAC,oBACAM,oBACAd,uBACAC,mBAEAc,eACAC,cACAE,eAEAE,wBACAC,uBACAE,wBAEAC,2BACA1E,0BACA2E,4BACAG,2BACA1E,2BAEA2E,iCACAC,iCACAC,gCACAE,iCACAC,iCAEAC,kBACAC,kBACAC,iBACAE,kBACAC,mBAEAtC,kBACAQ,+BACAX,2BACAI,yBACAQ,0BACAC,2BACA3D,0BAEAwF,yBAEAE,cACAE,aACAC,cACAE,cAEAE,qBACAC,oBACAC,gCACAC,+BACAC,8BACAC,+BACAC,+BACAC","file":"js/chunk-d905ba1a.6d83f28f.js","sourcesContent":["import { ref, nextTick } from '@vue/composition-api'\r\n\r\n// ===========================================================\r\n// ! This is coupled with \"veeValidate\" plugin\r\n// ===========================================================\r\n\r\nexport default function formValidation(resetFormData, clearFormData = () => {}) {\r\n // ------------------------------------------------\r\n // refFormObserver\r\n // ! This is for veeValidate Observer\r\n // * Used for veeValidate form observer\r\n // ------------------------------------------------\r\n const refFormObserver = ref(null)\r\n\r\n // ------------------------------------------------\r\n // resetObserver\r\n // ! This function is coupled with veeValidate\r\n // * It resets form observer\r\n // ------------------------------------------------\r\n const resetObserver = () => {\r\n refFormObserver.value.reset()\r\n }\r\n\r\n // ------------------------------------------------\r\n // getValidationState\r\n // ! This function is coupled with veeValidate\r\n // * It returns true/false based on validation\r\n // ------------------------------------------------\r\n // eslint-disable-next-line object-curly-newline\r\n const getValidationState = ({ dirty, validated, required: fieldRequired, changed, valid = null }) => {\r\n const result = dirty || validated ? valid : null\r\n return !fieldRequired && !changed ? null : result\r\n }\r\n\r\n // ------------------------------------------------\r\n // resetForm\r\n // ! This function is coupled with veeValidate\r\n // * This uses resetFormData arg to reset form data\r\n // ------------------------------------------------\r\n const resetForm = () => {\r\n resetFormData()\r\n nextTick(() => {\r\n resetObserver()\r\n })\r\n }\r\n\r\n // ------------------------------------------------\r\n // clearForm\r\n // ! This function is coupled with veeValidate\r\n // * This uses clearFormData arg to reset form data\r\n // ------------------------------------------------\r\n const clearForm = () => {\r\n clearFormData()\r\n nextTick(() => {\r\n resetObserver()\r\n })\r\n }\r\n\r\n return {\r\n refFormObserver,\r\n resetObserver,\r\n getValidationState,\r\n resetForm,\r\n clearForm,\r\n }\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:\"p-2\",attrs:{\"no-body\":\"\"}},[_c('h3',{staticClass:\"mb-2\"},[_vm._v(\" \"+_vm._s(_vm.$t('AppTransportationLines.Edit.editTransportLine'))+\" \")]),_c('validation-observer',{ref:\"refFormObserver\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('b-form',{on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.onSubmit)},\"reset\":function($event){$event.preventDefault();return _vm.resetForm($event)}}},[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"4\"}},[_c('validation-provider',{attrs:{\"name\":\"Customs\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b-form-group',{attrs:{\"label\":_vm.$t('AppTransportationLines.columns.typeCustom'),\"state\":errors.length > 0 ? false:null}},[_c('v-select',{attrs:{\"dir\":_vm.$store.state.appConfig.isRTL ? 'rtl' : 'ltr',\"clearable\":false,\"label\":\"texto\",\"options\":_vm.CustomType,\"reduce\":function (option) { return option.id; }},model:{value:(_vm.TransportationLine.aduanaTipoId),callback:function ($$v) {_vm.$set(_vm.TransportationLine, \"aduanaTipoId\", $$v)},expression:\"TransportationLine.aduanaTipoId\"}}),_c('b-form-invalid-feedback',{attrs:{\"state\":errors.length > 0 ? false:null}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])],1)]}}],null,true)})],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"4\"}},[_c('validation-provider',{attrs:{\"name\":\"Name\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b-form-group',{attrs:{\"label\":_vm.$t('AppTransportationLines.columns.name'),\"state\":errors.length > 0 ? false:null}},[_c('b-form-input',{model:{value:(_vm.TransportationLine.nombre),callback:function ($$v) {_vm.$set(_vm.TransportationLine, \"nombre\", $$v)},expression:\"TransportationLine.nombre\"}}),_c('b-form-invalid-feedback',{attrs:{\"state\":errors.length > 0 ? false:null}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])],1)]}}],null,true)})],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"4\"}},[_c('validation-provider',{attrs:{\"name\":\"Alias\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b-form-group',{attrs:{\"label\":_vm.$t('AppTransportationLines.columns.nickname'),\"state\":errors.length > 0 ? false:null}},[_c('b-form-input',{model:{value:(_vm.TransportationLine.alias),callback:function ($$v) {_vm.$set(_vm.TransportationLine, \"alias\", $$v)},expression:\"TransportationLine.alias\"}}),_c('b-form-invalid-feedback',{attrs:{\"state\":errors.length > 0 ? false:null}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])],1)]}}],null,true)})],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"4\"}},[_c('validation-provider',{attrs:{\"name\":\"Description\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b-form-group',{attrs:{\"label\":_vm.$t('AppTransportationLines.columns.description'),\"state\":errors.length > 0 ? false:null}},[_c('b-form-input',{model:{value:(_vm.TransportationLine.descripcion),callback:function ($$v) {_vm.$set(_vm.TransportationLine, \"descripcion\", $$v)},expression:\"TransportationLine.descripcion\"}}),_c('b-form-invalid-feedback',{attrs:{\"state\":errors.length > 0 ? false:null}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])],1)]}}],null,true)})],1)],1),_c('b-button',{staticClass:\"mb-1 mb-sm-0 mr-0 mr-sm-1\",attrs:{\"variant\":\"primary\",\"block\":_vm.$store.getters['app/currentBreakPoint'] === 'xs',\"type\":\"submit\"}},[_vm._v(\" \"+_vm._s(_vm.$t('Lists.saveChanges'))+\" \")])],1)]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransportationLinesEdit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransportationLinesEdit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransportationLinesEdit.vue?vue&type=template&id=863ec760&\"\nimport script from \"./TransportationLinesEdit.vue?vue&type=script&lang=js&\"\nexport * from \"./TransportationLinesEdit.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import axios from '@axios'\r\nimport common from '@/libs/common'\r\nimport defaultService from './_default.service'\r\n\r\nexport default function generalDataService() {\r\n const defaultMethods = defaultService('GeneralDatos')\r\n const {\r\n throwError,\r\n throwSuccess,\r\n toastSuccess,\r\n // toastError,\r\n } = common()\r\n const API_URL = `${process.env.VUE_APP_ADUACORE_API_URL}/api`\r\n // ===================================================================|\r\n // ConnectionStrings--------------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n\r\n const fetchConnectionStrings = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/CadenasConexion`, { params: data })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchConnectionString = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/CadenasConexion/${data.ConnectionId}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const updateConnectionString = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/GeneralDatos/CadenasConexion/${data.cadenaConexionId}`, data)\r\n .then(response => {\r\n resolve()\r\n throwSuccess(response)\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const createConnectionString = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/GeneralDatos/CadenasConexion`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject(error)\r\n throwError(error)\r\n })\r\n })\r\n const deleteConnectionString = (data, callback) => {\r\n axios\r\n .delete(`${API_URL}/GeneralDatos/CadenasConexion/${data}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const testConnectionString = cadenaConexion => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/GeneralDatos/CadenasConexion/Probar`, cadenaConexion)\r\n .then(response => {\r\n toastSuccess(response.data.mensaje)\r\n resolve(response.data)\r\n })\r\n .catch(error => {\r\n reject(error)\r\n throwError(error)\r\n // toastError(error.data.mensaje)\r\n })\r\n })\r\n // const testConnectionString = (callback, cadenaConexion) => {\r\n // axios\r\n // .post(`${API_URL}/GeneralDatos/CadenasConexion/Probar/${cadenaConexion}`)\r\n // .then(response => {\r\n // callback(response.data)\r\n // })\r\n // .catch(error => throwError(error))\r\n // }\r\n // ===================================================================|\r\n // ConfitionFilters---------------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchConditionFilters = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/CondicionesFiltrado`, { params: data })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchConditionFilter = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/CondicionesFiltrado/${data.ConditionId}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const createConditionFilter = (data, callback) => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/GeneralDatos/CondicionesFiltrado`, data)\r\n .then(response => {\r\n callback(response.data)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject(error)\r\n throwError(error)\r\n })\r\n })\r\n const updateConditionFilter = (data, callback) => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/GeneralDatos/CondicionesFiltrado/${data.condicionFiltradoId}`, data)\r\n .then(response => {\r\n callback(response.data)\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const deleteConditionFilter = (data, callback) => {\r\n axios\r\n .delete(`${API_URL}/GeneralDatos/CondicionesFiltrado/${data}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchConditionFilterType = callback => {\r\n axios\r\n .get(`${API_URL}/Opciones/CondicionFiltradoTipos`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchTypeObjectQuery = callback => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/objectoConsulta/Opciones`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchObjectQuery = callback => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/objectoConsulta/Opciones`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchColumnType = callback => {\r\n axios\r\n .get(`${API_URL}/Opciones/ColumnaTipoDato`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchLogicOperatorType = callback => {\r\n axios\r\n .get(`${API_URL}/Opciones/OperadorLogicoTipo`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n\r\n // ===================================================================|\r\n // QueryObjectColumns--------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchQueryObjects = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/ObjetosConsulta`, { params: data })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchQueryObject = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/ObjetosConsulta/${data.QueryObjectId}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const createQueryObject = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/GeneralDatos/ObjetosConsulta`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject(error)\r\n throwError(error)\r\n })\r\n })\r\n const updateQueryObject = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/GeneralDatos/ObjetosConsulta/${data.objetoConsultaId}`, data)\r\n .then(response => {\r\n resolve()\r\n throwSuccess(response)\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const fetchConnectionStringOptions = callback => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/CadenasConexion/Opciones`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchQueryObjectColumns = (callback, objetoConsultaId) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/ObjetosConsulta/${objetoConsultaId}/Columnas`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchQueryObjectDatabase = (callback, cadenaConexionId) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/ObjetosConsultaDeBaseDatos/${cadenaConexionId}`, { params: { limit: 10000 } })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const deleteQueryObject = (data, callback) => {\r\n axios\r\n .delete(`${API_URL}/GeneralDatos/ObjetosConsulta/${data}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n // ===================================================================|\r\n // Aduana -------------------------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchCustoms = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/Aduanas`, { params: data })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchCustom = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/Aduanas/${data.AduanaId}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const updateCustom = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/GeneralDatos/Aduanas/${data.aduanaId}`, data)\r\n .then(response => {\r\n resolve()\r\n throwSuccess(response)\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n // ===================================================================|\r\n // BondenWarehouse -----------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchBondenWarehouses = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/RecintoFiscal`, { params: data })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const fetchBondenWarehouse = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/RecintoFiscal/${data.recintoFiscalId}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const updateBondenWarehouse = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/GeneralDatos/RecintoFiscal/${data.id}`, data)\r\n .then(response => {\r\n resolve()\r\n throwSuccess(response)\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n // ===================================================================|\r\n // TransportationLines -----------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchTransportationLines = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/LineasTransporte`, { params: data })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const createTransportationLines = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/GeneralDatos/LineasTransporte`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject(error)\r\n throwError(error)\r\n })\r\n })\r\n const fetchTransportationLine = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/LineasTransporte/${data.LineaTransporteId}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const updateTransportationLine = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/GeneralDatos/LineasTransporte/${data.lineaTransporteId}`, data)\r\n .then(response => {\r\n resolve()\r\n throwSuccess(response)\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const deleteTransportationLine = data => new Promise((resolve, reject) => {\r\n axios\r\n .delete(`${API_URL}/GeneralDatos/LineaTransporte/${data.lineaTransporteId}`)\r\n .then(response => {\r\n resolve()\r\n throwSuccess(response)\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const fetchCustomTypesOptions = callback => {\r\n axios\r\n .get(`${API_URL}/Opciones/AduanaTipos`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n // ===================================================================|\r\n // ActionImprovementProblem-------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchActionImprovementProblems = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/AccionMejoraProblema`, { params: data })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const createActionImprovementProblem = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/GeneralDatos/AccionMejoraProblema`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject(error)\r\n throwError(error)\r\n })\r\n })\r\n const fetchActionImprovementProblem = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/AccionMejoraProblema/${data.accionMejoraProblemaId}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const updateActionImprovementProblem = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/GeneralDatos/AccionMejoraProblema/${data.accionMejoraProblemaId}`, data)\r\n .then(response => {\r\n resolve()\r\n throwSuccess(response)\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const deleteActionImprovementProblem = (data, callback) => {\r\n axios\r\n .delete(`${API_URL}/GeneralDatos/AccionMejoraProblema/${data}`)\r\n .then(response => {\r\n throwSuccess(response)\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n // ===================================================================|\r\n // Indicator-------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchIndicators = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/Indicador`, { params: data })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const createIndicator = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/GeneralDatos/Indicador`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject(error)\r\n throwError(error)\r\n })\r\n })\r\n const fetchIndicator = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/Indicador/${data.indicadorId}`)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n const updateIndicator = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/GeneralDatos/Indicador/${data.indicadorId}`, data)\r\n .then(response => {\r\n resolve()\r\n throwSuccess(response)\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const deleteIndicator = (data, callback) => {\r\n axios\r\n .delete(`${API_URL}/GeneralDatos/Indicador/${data}`)\r\n .then(response => {\r\n throwSuccess(response)\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n\r\n // ===================================================================|\r\n // Users --------------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchUsersExportExcel = (data, callback) => {\r\n axios\r\n .get(`${API_URL}/GeneralDatos/Usuarios/ExportarExcel`, { params: data, responseType: 'blob' })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n // ===================================================================|\r\n // Bank --------------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchBanks = (data, callback) => defaultMethods.fetch('Banco', {}, data, callback)\r\n const fetchBank = (id, callback) => defaultMethods.fetch('Banco/%{id}', { id }, {}, callback)\r\n const createBank = (data, callback) => defaultMethods.create('Banco', {}, true, data, callback)\r\n const updateBank = (id, data, callback) => defaultMethods.update('Banco/%{id}', { id }, true, data, callback)\r\n\r\n // ===================================================================|\r\n // ConditionFiltersOptions --------------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchIsFromSource = (id, callback) => defaultMethods.fetch('CondicionesFiltradoTipo/%{id}/EsDesdeUnaFuente', { id }, {}, callback)\r\n const fetchIsPermanent = (id, callback) => defaultMethods.fetch('CondicionesFiltradoTipo/%{id}/EsFijo', { id }, {}, callback)\r\n const fetchConditionFilterAuxiliar = (id, data, callback) => defaultMethods.fetch('CondicionesFiltrado/%{id}/CondicionAuxiliar', { id }, data, callback)\r\n const fetchConditionFilterOptions = (data, callback) => defaultMethods.fetch('CondicionFiltradoOpciones', {}, data, callback)\r\n const fetchConditionFilterOption = (id, callback) => defaultMethods.fetch('CondicionFiltradoOpciones/%{id}', { id }, {}, callback)\r\n const createConditionFilterOption = (data, callback) => defaultMethods.create('CondicionFiltradoOpciones', {}, true, data, callback)\r\n const updateConditionFilterOption = (id, data, callback) => defaultMethods.update('CondicionFiltradoOpciones/%{id}', { id }, true, data, callback)\r\n const deleteConditionFilterOption = (id, callback) => defaultMethods.remove('CondicionFiltradoOpciones/%{id}', { id }, true, callback)\r\n\r\n return {\r\n // ConnectionStrings\r\n fetchConnectionStrings,\r\n fetchConnectionString,\r\n createConnectionString,\r\n updateConnectionString,\r\n deleteConnectionString,\r\n testConnectionString,\r\n // ConditionFilters\r\n fetchConditionFilters,\r\n fetchConditionFilter,\r\n createConditionFilter,\r\n updateConditionFilter,\r\n deleteConditionFilter,\r\n // FetchQueryObjects\r\n fetchQueryObjects,\r\n fetchQueryObject,\r\n createQueryObject,\r\n updateQueryObject,\r\n deleteQueryObject,\r\n fetchTypeObjectQuery,\r\n fetchObjectQuery,\r\n // Aduana\r\n fetchCustoms,\r\n fetchCustom,\r\n updateCustom,\r\n // BondenWarehouse\r\n fetchBondenWarehouses,\r\n fetchBondenWarehouse,\r\n updateBondenWarehouse,\r\n // TransportationLines\r\n fetchTransportationLines,\r\n fetchTransportationLine,\r\n createTransportationLines,\r\n deleteTransportationLine,\r\n updateTransportationLine,\r\n // ActionImprovementProblem\r\n fetchActionImprovementProblems,\r\n createActionImprovementProblem,\r\n fetchActionImprovementProblem,\r\n updateActionImprovementProblem,\r\n deleteActionImprovementProblem,\r\n // Indicator\r\n fetchIndicators,\r\n createIndicator,\r\n fetchIndicator,\r\n updateIndicator,\r\n deleteIndicator,\r\n // Options\r\n fetchColumnType,\r\n fetchConnectionStringOptions,\r\n fetchConditionFilterType,\r\n fetchLogicOperatorType,\r\n fetchQueryObjectColumns,\r\n fetchQueryObjectDatabase,\r\n fetchCustomTypesOptions,\r\n // Users\r\n fetchUsersExportExcel,\r\n // Bank\r\n fetchBanks,\r\n fetchBank,\r\n createBank,\r\n updateBank,\r\n // FilterConditionOptions\r\n fetchIsFromSource,\r\n fetchIsPermanent,\r\n fetchConditionFilterAuxiliar,\r\n fetchConditionFilterOptions,\r\n fetchConditionFilterOption,\r\n createConditionFilterOption,\r\n updateConditionFilterOption,\r\n deleteConditionFilterOption,\r\n }\r\n}\r\n"],"sourceRoot":""}