sysone-api-mapper 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{apiCall:()=>A,apiMapper:()=>z,axiosInstance:()=>n,endpoints:()=>E});const r=require("axios"),n=e.n(r)().create({});var o;function i(e){return i="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},i(e)}function a(e,t,r){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l="PARTY_MODULE",u="INTERMEDIARY_MODULE",c="COMMERCIAL_STRUCTURE_MODULE",s="POLICY_MODULE",d="GET",p="POST",m="PUT",E=(a(a(a(a(a(a(a(a(a(a(o={GET_ACTIVITIES:"GET_ACTIVITIES",GET_PRACTICES:"GET_PRACTICES",SEARCH_INDIVIDUALS:"SEARCH_INDIVIDUALS",CREATE_INDIVIDUAL:"CREATE_INDIVIDUAL",GET_IDENTIFICATION_TYPES:"GET_IDENTIFICATION_TYPES",GET_RELATIONS:"GET_RELATIONS",GET_NOTES:"GET_NOTES",GET_FILES:"GET_FILES",GET_SECTORS:"GET_SECTORS",GET_FISCAL_CATEGORIES:"GET_FISCAL_CATEGORIES",GET_MAIL_TYPES:"GET_MAIL_TYPES",GET_PHONE_TYPES:"GET_PHONE_TYPES",UPDATE_NOTES:"UPDATE_NOTES",UPDATE_FILES:"UPDATE_FILES",ADD_RELATION_WITH_EXISTING_PARTY:"ADD_RELATION_WITH_EXISTING_PARTY",GET_RELATIONS_BY_PARTY_CODE:"GET_RELATIONS_BY_PARTY_CODE",REMOVE_RELATION:"REMOVE_RELATION",GET_FILE:"GET_FILE",GET_ORGANIZATION_TYPES:"GET_ORGANIZATION_TYPES",SEARCH_ORGANIZATION:"SEARCH_ORGANIZATION",CREATE_ORGANIZATION:"CREATE_ORGANIZATION",GET_ORGANIZATION_BY_CODE:"GET_ORGANIZATION_BY_CODE",UPDATE_ORGANIZATION:"UPDATE_ORGANIZATION",ADD_RELATION_WITH_NEW_ORGANIZATION:"ADD_RELATION_WITH_NEW_ORGANIZATION",GET_PERSON_BY_CODE:"GET_PERSON_BY_CODE",GET_GENDERS:"GET_GENDERS",GET_MARITAL_STATUSES:"GET_MARITAL_STATUSES",GET_WORKER_TYPES:"GET_WORKER_TYPES",GET_ECONOMIC_CLASSES:"GET_ECONOMIC_CLASSES",SEARCH_PERSON:"SEARCH_PERSON",UPDATE_PERSON:"UPDATE_PERSON",GET_RELATION_TYPES:"GET_RELATION_TYPES",ADD_RELATION_WITH_NEW_PERSON:"ADD_RELATION_WITH_NEW_PERSON",GET_POLICY_PROCESSES:"GET_POLICY_PROCESSES",GET_COUNTRIES:"GET_COUNTRIES",GET_COUNTRY_BY_CODE:"GET_COUNTRY_BY_CODE",GET_PROVINCES:"GET_PROVINCES",GET_CITIES:"GET_CITIES",GET_POSTAL_CODES:"GET_POSTAL_CODES",GET_ADDRESSES_BY_PARTY_CODE:"GET_ADDRESSES_BY_PARTY_CODE",GET_ADDRESS_TYPES:"GET_ADDRESS_TYPES",GET_PAYMENT_METHODS_BY_PARTY_CODE:"GET_PAYMENT_METHODS_BY_PARTY_CODE",GET_CREDIT_CARD_TYPES:"GET_CREDIT_CARD_TYPES",GET_CARD_PROVIDERS:"GET_CARD_PROVIDERS",UPDATE_PAYMENTS:"UPDATE_PAYMENTS",GET_BANKS:"GET_BANKS",GET_CURRENCIES:"GET_CURRENCIES",GET_BANK_ACCOUNT_TYPES:"GET_BANK_ACCOUNT_TYPES",GET_BANK_BRANCHES:"GET_BANK_BRANCHES",GET_PERSON_INTERMEDIARY_BY_CODE:"GET_PERSON_INTERMEDIARY_BY_CODE",GET_ORGANIZATION_INTERMEDIARY_BY_CODE:"GET_ORGANIZATION_INTERMEDIARY_BY_CODE",GET_INTERMEDIARIES_GROUPS:"GET_INTERMEDIARIES_GROUPS",GET_INTERMEDIARIES_ROLES:"GET_INTERMEDIARIES_ROLES",GET_INTERMEDIARY_STRUCTURES:"GET_INTERMEDIARY_STRUCTURES",SEARCH_INTERMEDIARIES:"SEARCH_INTERMEDIARIES",SEARCH_ACCOUNT_OFFICERS:"SEARCH_ACCOUNT_OFFICERS",GET_INTERMEDIARIES_STATES:"GET_INTERMEDIARIES_STATES",GET_INTERMEDIARIES_TYPES:"GET_INTERMEDIARIES_TYPES",CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY:"CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY",CREATE_INTERMEDIARY_WITH_WITH_PERSON:"CREATE_INTERMEDIARY_WITH_WITH_PERSON",CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION:"CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION",UPDATE_INTERMEDIARY:"UPDATE_INTERMEDIARY",CREATE_COMMERCIAL_STRUCTURE:"CREATE_COMMERCIAL_STRUCTURE",GET_COMMERCIAL_STRUCTURE_STATUSES:"GET_COMMERCIAL_STRUCTURE_STATUSES",SEARCH_COMMERCIAL_STRUCTURE:"SEARCH_COMMERCIAL_STRUCTURE",GET_COMMERCIAL_STRUCTURES_BY_CODE:"GET_COMMERCIAL_STRUCTURES_BY_CODE",UPDATE_COMMERCIAL_STRUCTURE:"UPDATE_COMMERCIAL_STRUCTURE",UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES:"UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES",GET_POLICY_SECTIONS:"GET_POLICY_SECTIONS",GET_POLICY_SUBSECTIONS:"GET_POLICY_SUBSECTIONS"},"GET_POLICY_PROCESSES","GET_POLICY_PROCESSES"),"GET_POLICY_PRODUCTS","GET_POLICY_PRODUCTS"),"GET_VALIDITY_TYPES","GET_VALIDITY_TYPES"),"GET_POLICY_CARACTERS","GET_POLICY_CARACTERS"),"GET_POLICY_TYPE_OF_DOCUMENTATION","GET_POLICY_TYPE_OF_DOCUMENTATION"),"GET_PAYMENT_FREQUENCIES","GET_PAYMENT_FREQUENCIES"),"GET_ASSOCIATE_TERMS_CONDITION","GET_ASSOCIATE_TERMS_CONDITION"),"GET_ASSOCIATE_EXPENSES","GET_ASSOCIATE_EXPENSES"),"GET_ASSOCIATE_COVERAGE","GET_ASSOCIATE_COVERAGE"),"GET_COVERAGES","GET_COVERAGES"),a(a(a(a(a(a(a(a(a(a(o,"GET_EXPENSEVALUES","GET_EXPENSEVALUES"),"GET_MORTALITY_TABLE","GET_MORTALITY_TABLE"),"CREATE_POLICY_STEP1","CREATE_POLICY_STEP1"),"CREATE_POLICY_STEP2","CREATE_POLICY_STEP2"),"CREATE_POLICY_STEP3","CREATE_POLICY_STEP3"),"CREATE_POLICY_STEP4","CREATE_POLICY_STEP4"),"CREATE_POLICY_STEP5","CREATE_POLICY_STEP5"),"CREATE_POLICY_STEP6","CREATE_POLICY_STEP6"),"CREATE_POLICY_STEP7","CREATE_POLICY_STEP7"),"CREATE_POLICY_STEP8","CREATE_POLICY_STEP8"),a(a(a(a(a(a(a(a(a(a(o,"CREATE_POLICY_STEP9","CREATE_POLICY_STEP9"),"CREATE_POLICY_STEP10","CREATE_POLICY_STEP10"),"CREATE_POLICY_STEP11","CREATE_POLICY_STEP11"),"GET_STEP1_DATA","GET_STEP1_DATA"),"GET_STEP2_DATA","GET_STEP2_DATA"),"GET_STEP3_DATA","GET_STEP3_DATA"),"GET_STEP4_DATA","GET_STEP4_DATA"),"GET_STEP5_DATA","GET_STEP5_DATA"),"GET_STEP6_DATA","GET_STEP6_DATA"),"GET_STEP7_DATA","GET_STEP7_DATA"),a(a(a(a(a(a(a(a(a(a(o,"GET_STEP9_DATA","GET_STEP9_DATA"),"GET_STEP11_DATA","GET_STEP11_DATA"),"GET_STEP11_FILE","GET_STEP11_FILE"),"UPDATE_POLICY_STEP1","UPDATE_POLICY_STEP1"),"GET_ISURED_PERSONS","GET_ISURED_PERSONS"),"UPDATE_PARTY","UPDATE_PARTY"),"GET_POLICY_DETAILS","GET_POLICY_DETAILS"),"UPDATE_PAYMENTS","UPDATE_PAYMENTS"),"CREATE_POLICY_RISK","CREATE_POLICY_RISK"),"ACTIVATE_POLICY","ACTIVATE_POLICY"),a(a(a(a(a(a(a(a(a(a(o,"COMPLETE_POLICY","COMPLETE_POLICY"),"SET_POLICY_BUILDING","SET_POLICY_BUILDING"),"SEARCH_POLICIES","SEARCH_POLICIES"),"SEARCH_POLICY_GENERAL_CONDITIONS","SEARCH_POLICY_GENERAL_CONDITIONS"),"GET_ASSURED_LIST","GET_ASSURED_LIST"),"GET_ADHERENTS","GET_ADHERENTS"),"GET_ADHERENTS_BY_OWNER","GET_ADHERENTS_BY_OWNER"),"GET_OWNERS","GET_OWNERS"),"GET_POLICY_ROLES","GET_POLICY_ROLES"),"CREATE_PRODUCT","CREATE_PRODUCT")),v=[{endpoint:E.SEARCH_INDIVIDUALS,serviceName:"individuals",url:"party/v1/individuals",method:d,module:l},{endpoint:E.CREATE_INDIVIDUAL,serviceName:"individuals",url:"party/v1/individuals",method:p,module:l},{endpoint:E.GET_ACTIVITIES,serviceName:"activities",url:"party/v1/activities/{0}",method:d,module:l},{endpoint:E.GET_PRACTICES,serviceName:"practices",url:"party/v1/practices/{0}",method:d,module:l},{endpoint:E.GET_SECTORS,serviceName:"sectors",url:"party/v1/sectors",method:d,module:l},{endpoint:E.GET_FISCAL_CATEGORIES,serviceName:"fiscal-categories",url:"party/v1/fiscal-categories?party-type-code={0}&country-code={1}",method:d,module:l},{endpoint:E.GET_MAIL_TYPES,serviceName:"mail-types",url:"party/v1/mail-types",method:d,module:l},{endpoint:E.GET_PHONE_TYPES,serviceName:"phone-types",url:"party/v1/phone-types",method:d,module:l},{endpoint:E.GET_IDENTIFICATION_TYPES,serviceName:"identification-types",url:"party/v1/identification-types?party-type-code={0}&country-code={1}",method:d,module:l},{endpoint:E.GET_RELATIONS,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:d,module:l},{endpoint:E.GET_NOTES,serviceName:"parties/notes",url:"party/v1/parties/{0}/notes",method:d,module:l},{endpoint:E.GET_FILES,serviceName:"parties/files",url:"party/v1/parties/{0}/files",method:d,module:l},{endpoint:E.UPDATE_NOTES,serviceName:"parties/notes",url:"party/v1/parties/{0}/notes",method:m,module:l},{endpoint:E.UPDATE_FILES,serviceName:"parties/files",url:"party/v1/parties/{0}/files",method:m,module:l},{endpoint:E.ADD_RELATION_WITH_EXISTING_PARTY,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:m,module:l},{endpoint:E.GET_RELATIONS_BY_PARTY_CODE,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:d,module:l},{endpoint:E.REMOVE_RELATION,serviceName:"parties/relations/disable",url:"party/v1/parties/{0}/relations/disable",method:m,module:l},{endpoint:E.GET_FILE,serviceName:"parties/file",url:"party/v1/parties/{0}/file/{1}",method:d,module:l},{endpoint:E.SEARCH_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations",method:d,module:l},{endpoint:E.GET_ORGANIZATION_TYPES,serviceName:"organisation-types",url:"party/v1/organisation-types",method:d,module:l},{endpoint:E.CREATE_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations",method:p,module:l},{endpoint:E.UPDATE_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations/{0}",method:m,module:l},{endpoint:E.GET_ORGANIZATION_BY_CODE,serviceName:"organisations",url:"party/v1/organisations/{0}",method:d,module:l},{endpoint:E.ADD_RELATION_WITH_NEW_ORGANIZATION,serviceName:"organisations/relations",url:"party/v1/organisations/{0}/relations",method:m,module:l},{endpoint:E.UPDATE_PERSON,serviceName:"individuals",url:"party/v1/individuals/{0}",method:m,module:l},{endpoint:E.SEARCH_PERSON,serviceName:"individuals",url:"party/v1/individuals",method:d,module:l},{endpoint:E.GET_PERSON_BY_CODE,serviceName:"individuals",url:"party/v1/individuals/{0}",method:d,module:l},{endpoint:E.GET_GENDERS,serviceName:"genders",url:"party/v1/genders",method:d,module:l},{endpoint:E.GET_MARITAL_STATUSES,serviceName:"marital-statuses",url:"party/v1/marital-statuses",method:d,module:l},{endpoint:E.GET_WORKER_TYPES,serviceName:"worker-types",url:"party/v1/worker-types",method:d,module:l},{endpoint:E.GET_ECONOMIC_CLASSES,serviceName:"economic-classes",url:"party/v1/economic-classes",method:d,module:l},{endpoint:E.GET_RELATION_TYPES,serviceName:"relation-types",url:"party/v1/relation-types/{0}",method:d,module:l},{endpoint:E.ADD_RELATION_WITH_NEW_PERSON,serviceName:"individuals/relations",url:"party/v1/individuals/{0}/relations",method:m,module:l},{endpoint:E.GET_POLICY_PROCESSES,serviceName:"policy-statuses",url:"policy/v1/policy-statuses",method:d,module:l},{endpoint:E.GET_COUNTRIES,serviceName:"countries",url:"location/v1/countries",method:d,module:l},{endpoint:E.GET_COUNTRY_BY_CODE,serviceName:"countries",url:"location/v1/countries/{0}",method:d,module:l},{endpoint:E.GET_PROVINCES,serviceName:"countries/provinces",url:"location/v1/countries/{0}/provinces",method:d,module:l},{endpoint:E.GET_CITIES,serviceName:"provinces/cities",url:"location/v1/provinces/{0}/cities",method:d,module:l},{endpoint:E.GET_POSTAL_CODES,serviceName:"cities/postal-codes",url:"location/v1/cities/{0}/postal-codes",method:d,module:l},{endpoint:E.GET_ADDRESSES_BY_PARTY_CODE,serviceName:"party/addresses",url:"location/v1/party/{0}/addresses",method:d,module:l},{endpoint:E.GET_ADDRESS_TYPES,serviceName:"address-types",url:"location/v1/address-types",method:d,module:l},{endpoint:E.GET_PAYMENT_METHODS_BY_PARTY_CODE,serviceName:"parties/payment-methods",url:"party/v1/parties/{0}/payment-methods",method:d,module:l},{endpoint:E.GET_CREDIT_CARD_TYPES,serviceName:"credit-card-types",url:"finance/v1/credit-card-types",method:d,module:l},{endpoint:E.GET_CARD_PROVIDERS,serviceName:"card-providers",url:"finance/v1/card-providers",method:d,module:l},{endpoint:E.UPDATE_PAYMENTS,serviceName:"parties/payment-methods",url:"party/v1/parties/{0}/payment-methods",method:m,module:l},{endpoint:E.GET_BANKS,serviceName:"banks",url:"finance/v1/banks",method:d,module:l},{endpoint:E.GET_CURRENCIES,serviceName:"currencies",url:"finance/v1/currencies",method:d,module:l},{endpoint:E.GET_BANK_ACCOUNT_TYPES,serviceName:"bank-account-types",url:"finance/v1/bank-account-types",method:d,module:l},{endpoint:E.GET_BANK_BRANCHES,serviceName:"banks/branches",url:"finance/v1/banks/{0}/branches",method:d,module:l},{endpoint:E.SEARCH_INTERMEDIARIES,serviceName:"intermediary",url:"intermediary/v1/intermediary",method:d,module:u},{endpoint:E.GET_PERSON_INTERMEDIARY_BY_CODE,serviceName:"intermediary-individual",url:"intermediary/v1/intermediary-individual/{0}",method:d,module:u},{endpoint:E.GET_ORGANIZATION_INTERMEDIARY_BY_CODE,serviceName:"intermediary-organisation",url:"intermediary/v1/intermediary-organisation/{0}",method:d,module:u},{endpoint:E.GET_INTERMEDIARIES_GROUPS,serviceName:"intermediary-groups",url:"intermediary/v1/intermediary-groups",method:d,module:u},{endpoint:E.GET_INTERMEDIARIES_ROLES,serviceName:"intermediary-roles",url:"intermediary/v1/intermediary-roles",method:d,module:u},{endpoint:E.GET_INTERMEDIARY_STRUCTURES,serviceName:"intermediary-structures",url:"intermediary/v1/intermediary/{0}/commercial-structures",method:d,module:u},{endpoint:E.GET_INTERMEDIARIES_STATES,serviceName:"commercial-structure-statuses",url:"intermediary/v1/commercial-structure-statuses",method:d,module:u},{endpoint:E.GET_INTERMEDIARIES_TYPES,serviceName:"intermediary-types",url:"intermediary/v1/intermediary-types",method:d,module:u},{endpoint:E.CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY,serviceName:"intermediary-party-association",url:"intermediary/v1/intermediary-party-association",method:p,module:u},{endpoint:E.CREATE_INTERMEDIARY_WITH_WITH_PERSON,serviceName:"intermediary-individual",url:"intermediary/v1/intermediary-individual",method:p,module:u},{endpoint:E.CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION,serviceName:"intermediary-organisation",url:"intermediary/v1/intermediary-organisation",method:p,module:u},{endpoint:E.UPDATE_INTERMEDIARY,serviceName:"intermediary",url:"intermediary/v1/intermediary/{0}",method:m,module:u},{endpoint:E.SEARCH_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures",method:d,module:c},{endpoint:E.CREATE_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures",method:p,module:c},{endpoint:E.GET_COMMERCIAL_STRUCTURE_STATUSES,serviceName:"commercial-structure-statuses",url:"intermediary/v1/commercial-structure-statuses",method:d,module:c},{endpoint:E.GET_COMMERCIAL_STRUCTURES_BY_CODE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures/{0}",method:d,module:c},{endpoint:E.UPDATE_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures/{0}",method:m,module:c},{endpoint:E.UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES,serviceName:"commercial-structures/intermediaries",url:"intermediary/v1/commercial-structures/{0}/intermediaries",method:m,module:c},{endpoint:E.SEARCH_POLICIES,serviceName:"policies",url:"policy/v1/policies",method:d,module:s},{endpoint:E.GET_POLICY_SECTIONS,serviceName:"sections",url:"product/v1/sections",method:d,module:s},{endpoint:E.GET_POLICY_SUBSECTIONS,serviceName:"sections/subsections",url:"product/v1/sections/{0}/subsections",method:d,module:s},{endpoint:E.GET_POLICY_PROCESSES,serviceName:"policy-statuses",url:"policy/v1/policy-statuses",method:d,module:s},{endpoint:E.GET_POLICY_PRODUCTS,serviceName:"subsections/products",url:"product/v1/subsections/{0}/products",method:d,module:s},{endpoint:E.GET_VALIDITY_TYPES,serviceName:"policy-validities",url:"policy/v1/policy-validities",method:d,module:s},{endpoint:E.GET_POLICY_CARACTERS,serviceName:"wording-types",url:"product/v1/wording-types",method:d,module:s},{endpoint:E.SEARCH_POLICY_GENERAL_CONDITIONS,serviceName:"wordings",url:"/product/v1/products/{0}/wordings",method:d,module:s},{endpoint:E.GET_POLICY_TYPE_OF_DOCUMENTATION,serviceName:"file-types",url:"policy/v1/file-types",method:d,module:s},{endpoint:E.GET_PAYMENT_FREQUENCIES,serviceName:"payment-frequencies",url:"policy/v1/payment-frequencies",method:d,module:s},{endpoint:E.GET_ASSOCIATE_TERMS_CONDITION,serviceName:"terms",url:"policy/v1/policies/{0}/terms",method:d,module:s},{endpoint:E.GET_ASSOCIATE_EXPENSES,serviceName:"expenses",url:"policy/v1/policies/{0}/expenses",method:d,module:s},{endpoint:E.GET_ASSOCIATE_COVERAGE,serviceName:"coverages",url:"policy-life/v1/policies/{0}/coverages",method:d,module:s},{endpoint:E.GET_COVERAGES,serviceName:"coverages",url:"product/v1/products/{0}/coverages",method:d,module:s},{endpoint:E.GET_EXPENSEVALUES,serviceName:"expenses",url:"/product/v1/products/{0}/expenses",method:d,module:s},{endpoint:E.GET_MORTALITY_TABLE,serviceName:"mortality-tables",url:"policy-life/v1/mortality-tables",method:d,module:s},{endpoint:E.CREATE_POLICY_STEP1,serviceName:"policies",url:"policy/v1/policies",method:p,module:s},{endpoint:E.CREATE_POLICY_STEP2,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP3,serviceName:"policies/collections",url:"policy/v1/policies/{0}/collections",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP4,serviceName:"policies/commercial-structures",url:"policy/v1/policies/{0}/commercial-structures",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP5,serviceName:"policies/products",url:"policy-life/v1/policies/{0}/products",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP6,serviceName:"policies/coverages",url:"policy-life/v1/policies/{0}/coverages",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP7,serviceName:"policies/insurables",url:"policy-life/v1/policies/{0}/insurables",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP8,serviceName:"policies/expenses",url:"policy/v1/policies/{0}/expenses",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP9,serviceName:"policies/wordings",url:"policy/v1/policies/{0}/wordings",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP10,serviceName:"policies/terms",url:"policy/v1/policies/{0}/terms",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP11,serviceName:"policies/documentation",url:"policy/v1/policies/{0}/documentation",method:m,module:s},{endpoint:E.GET_STEP1_DATA,serviceName:"policies",url:"policy/v1/policies/{0}",method:d,module:s},{endpoint:E.GET_STEP2_DATA,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:d,module:s},{endpoint:E.GET_STEP3_DATA,serviceName:"policies/collections",url:"policy/v1/policies/{0}/collections",method:d,module:s},{endpoint:E.GET_STEP4_DATA,serviceName:"policies/commercial-structures",url:"policy/v1/policies/{0}/commercial-structures",method:d,module:s},{endpoint:E.GET_STEP5_DATA,serviceName:"policies/products",url:"policy/v1/policies/{0}/products",method:d,module:s},{endpoint:E.GET_STEP6_DATA,serviceName:"policies/coverages",url:"policy-life/v1/policies/{0}/coverages",method:d,module:s},{endpoint:E.GET_STEP7_DATA,serviceName:"policies/insurables",url:"policy-life/v1/policies/{0}/insurables",method:d,module:s},{endpoint:E.GET_STEP9_DATA,serviceName:"policies/wordings",url:"policy/v1/policies/{0}/wordings",method:d,module:s},{endpoint:E.GET_STEP11_DATA,serviceName:"policies/documentation",url:"policy/v1/policies/{0}/documentation",method:d,module:s},{endpoint:E.GET_STEP11_FILE,serviceName:"policies/file",url:"policy/v1/policies/{0}/file/{1}",method:d,module:s},{endpoint:E.UPDATE_POLICY_STEP1,serviceName:"policies",url:"policy/v1/policies/{0}",method:m,module:s},{endpoint:E.GET_ISURED_PERSONS,serviceName:"insurables",url:"policy-life/v1/products/{0}/insurables",method:d,module:s},{endpoint:E.UPDATE_PARTY,serviceName:"parties",url:"policy/v1/parties/{0}",method:m,module:s},{endpoint:E.GET_POLICY_DETAILS,serviceName:"policies/details",url:"policy-life/v1/policies/{0}/details",method:d,module:s},{endpoint:E.UPDATE_PAYMENTS,serviceName:"policies/collections",url:"policy/v1/policies/collections",method:m,module:s},{endpoint:E.CREATE_POLICY_RISK,serviceName:"policies",url:"policy-life/v1/policies/{0}/insureds",method:p,module:s},{endpoint:E.ACTIVATE_POLICY,serviceName:"policies/activate",url:"policy-life/v1/policies/{0}/activate",method:m,module:s},{endpoint:E.COMPLETE_POLICY,serviceName:"policies/complete",url:"/policy-life/v1/policies/{0}/complete",method:m,module:s},{endpoint:E.SET_POLICY_BUILDING,serviceName:"policies/build",url:"policy-life/v1/policies/{0}/build",method:m,module:s},{endpoint:E.GET_POLICY_ROLES,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:d,module:s},{endpoint:E.GET_ASSURED_LIST,serviceName:"insureds",url:"policy-life/v1/policies/{0}/insureds",method:d,module:s},{endpoint:E.GET_ADHERENTS,serviceName:"adherents",url:"policy-life/v1/adherents/{0}",method:d,module:s},{endpoint:E.GET_OWNERS,serviceName:"owners",url:"policy-life/v1/owners/{0}",method:d,module:s},{endpoint:E.GET_ADHERENTS_BY_OWNER,serviceName:"owners/adherents",url:"policy-life/v1/owners/{0}/adherents",method:d,module:s},{endpoint:E.SEARCH_ACCOUNT_OFFICERS,serviceName:"account-officers",url:"intermediary/v1/account-officers",method:d,module:u},{endpoint:E.CREATE_PRODUCT,serviceName:"configurator-product-creation",url:"policy-life/v1/products",method:p,module:"CONFIGURATOR_MODULE"}];function h(e){return h="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},h(e)}function f(){f=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof T?t:T,a=Object.create(i.prototype),l=new b(n||[]);return o(a,"_invoke",{value:C(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",m="suspendedYield",E="executing",v="completed",y={};function T(){}function _(){}function A(){}var N={};c(N,a,(function(){return this}));var S=Object.getPrototypeOf,I=S&&S(S(G([])));I&&I!==r&&n.call(I,a)&&(N=I);var g=A.prototype=T.prototype=Object.create(N);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,l){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==h(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=p;return function(i,a){if(o===E)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=P(l,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function G(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(h(t)+" is not iterable")}return _.prototype=A,o(g,"constructor",{value:A,configurable:!0}),o(A,"constructor",{value:_,configurable:!0}),_.displayName=c(A,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,c(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},t.awrap=function(e){return{__await:e}},O(R.prototype),c(R.prototype,l,(function(){return this})),t.AsyncIterator=R,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new R(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(g),c(g,u,"Generator"),c(g,a,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=G,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:G(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function y(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}var T=function(e,t){try{var n={title:"",errors:[]};if(t instanceof r.AxiosError){var o,i,a=t.response,l=a.status,u=null===(o=JSON.parse(localStorage.getItem("modules_info")).find((function(t){return t.code===e.module})))||void 0===o||null===(o=o.services)||void 0===o||null===(o=o.find((function(t){return t.name.toUpperCase()===e.serviceName.toUpperCase()&&t.httpMethod.toUpperCase()===e.method.toUpperCase()})))||void 0===o?void 0:o.errors.find((function(e){return e.httpStatus===l}));n.title=(null==u?void 0:u.content)||a.data.message;var c=null===(i=a.data.errorMessages)||void 0===i?void 0:i.map((function(e){var t,r=null==u||null===(t=u.subErrors)||void 0===t?void 0:t.find((function(t){return t.errorType===e.fieldError&&t.fieldName===e.fieldName}));return(null==r?void 0:r.content)||(null==e?void 0:e.error)}));n.errors=c||[]}else n.title=t.message}catch(t){throw console.error(t),t}},_=function(e,t){return t?e.replace(/{(\d+)}/g,(function(e,r){return t[r]?t[r]:e})):e},A=function(){var e,t=(e=f().mark((function e(t,r){var o,i,a,l,u=arguments;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=u.length>2&&void 0!==u[2]?u[2]:null,i=v.find((function(e){return e.endpoint===t})),e.prev=2,i){e.next=5;break}throw new Error("Service does not exists");case 5:a=_(i.url,r),e.t0=i.method,e.next=e.t0===d?9:e.t0===p?13:e.t0===m?17:"DELETE"===e.t0?21:25;break;case 9:return e.next=11,n.get(a,{params:o});case 11:case 15:case 19:case 23:return l=e.sent,e.abrupt("return",l.data);case 13:return e.next=15,n.post(a,o);case 17:return e.next=19,n.put(a,o);case 21:return e.next=23,n.delete(a,o);case 25:throw l=null,new Error("Request error: Method not allowed. Only use GET, POST, PUT, DELETE");case 27:e.next=33;break;case 29:throw e.prev=29,e.t1=e.catch(2),T(i,e.t1),e.t1;case 33:case"end":return e.stop()}}),e,null,[[2,29]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){y(i,n,o,a,l,"next",e)}function l(e){y(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}();function N(e){return N="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},N(e)}function S(){S=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new b(n||[]);return o(a,"_invoke",{value:C(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",m="suspendedYield",E="executing",v="completed",h={};function f(){}function y(){}function T(){}var _={};c(_,a,(function(){return this}));var A=Object.getPrototypeOf,I=A&&A(A(G([])));I&&I!==r&&n.call(I,a)&&(_=I);var g=T.prototype=f.prototype=Object.create(_);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,l){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==N(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=p;return function(i,a){if(o===E)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=P(l,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function G(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(N(t)+" is not iterable")}return y.prototype=T,o(g,"constructor",{value:T,configurable:!0}),o(T,"constructor",{value:y,configurable:!0}),y.displayName=c(T,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,c(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},t.awrap=function(e){return{__await:e}},O(R.prototype),c(R.prototype,l,(function(){return this})),t.AsyncIterator=R,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new R(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(g),c(g,u,"Generator"),c(g,a,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=G,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:G(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function I(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}var g=function(){var e,t=(e=S().mark((function e(t){var r,n;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={values:null==t||null===(r=t.claims)||void 0===r?void 0:r.map((function(e){return{claimNumber:e.claimNumber.toString(),policyNumber:e.policyNumber,creationDate:e.claimDate,status:{name:e.status,code:"N/A"}}}))},e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){I(i,n,o,a,l,"next",e)}function l(e){I(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function O(e){return O="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},O(e)}function R(){R=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new b(n||[]);return o(a,"_invoke",{value:C(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",m="suspendedYield",E="executing",v="completed",h={};function f(){}function y(){}function T(){}var _={};c(_,a,(function(){return this}));var A=Object.getPrototypeOf,N=A&&A(A(G([])));N&&N!==r&&n.call(N,a)&&(_=N);var S=T.prototype=f.prototype=Object.create(_);function I(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function r(o,i,a,l){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==O(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=p;return function(i,a){if(o===E)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=P(l,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function G(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(O(t)+" is not iterable")}return y.prototype=T,o(S,"constructor",{value:T,configurable:!0}),o(T,"constructor",{value:y,configurable:!0}),y.displayName=c(T,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},I(g.prototype),c(g.prototype,l,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=G,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:G(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function C(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function P(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){C(i,n,o,a,l,"next",e)}function l(e){C(i,n,o,a,l,"throw",e)}a(void 0)}))}}var D=function(){var e=P(R().mark((function e(t){var r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={total:t.insureds.length,totalActive:null,values:t.insureds.map((function(e){return{code:e.code,number:e.id,firstName:e.firstName||e.name,lastName:e.lastName,type:{code:"T"===e.role.code?"OWNER":"ADHERENT",name:"T"===e.role.code?"Titular":"Adherente"},status:{code:"ACTIVE",name:"Activo"},insuredAmount:e.insuredAmount,inclusionDate:e.entranceDate,exclusionDate:e.cancellationDate,identification:{value:e.identification.number,type:{name:e.identification.type.name,code:e.identification.type.code}}}}))},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=P(R().mark((function e(t){var r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={values:t.endorsements.map((function(e){return{number:e.number,validityFrom:e.dateFrom?moment(e.dateFrom,"DD/MM/YYYY").toISOString():null,validityTo:e.dateTo?moment(e.dateTo,"DD/MM/YYYY").toISOString():null,activeDate:"N/A",type:{code:"N/A",name:e.detail,group:{code:"N/A",name:"N/A"}}}})),total:t.endorsements.length},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=P(R().mark((function e(t){var r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={values:t.policies.map((function(e){var t,r,n,o,i,a,l,u;return{number:e.number,validityFrom:e.issueDate?moment(e.issueDate,"DD/MM/YYYY").toISOString():null,validityTo:"N/A",ingress:e.issueDate?moment(e.issueDate,"DD/MM/YYYY").toISOString():null,holder:{name:(null===(t=e.holder)||void 0===t?void 0:t.name)||(null===(r=e.holder)||void 0===r?void 0:r.firstName),identifications:{values:[{value:(null===(n=e.holder)||void 0===n||null===(n=n.identification)||void 0===n?void 0:n.number)||null,type:{name:(null===(o=e.holder)||void 0===o||null===(o=o.identification)||void 0===o||null===(o=o.type)||void 0===o?void 0:o.name)||null,code:(null===(i=e.holder)||void 0===i||null===(i=i.identification)||void 0===i||null===(i=i.type)||void 0===i?void 0:i.code)||null},default:!0}]}},code:"N/A",alias:"N/A",product:{code:(null===(a=e.section)||void 0===a?void 0:a.code.toString())||null,name:(null===(l=e.section)||void 0===l?void 0:l.name)||null,subsection:{name:"N/A",code:"N/A",section:{name:"N/A",code:"N/A"}}},process:{name:(null===(u=e.status)||void 0===u?void 0:u.name)||null,code:"N/A"}}})),total:t.totalRecord||null},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),G=function(){var e=P(R().mark((function e(t){var r,n,o,i,a,l,u,c,s,d,p,m,E,v,h,f,y,T,_,A,N,S,I,g,O,C,P,D,L,b,G,w;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w={policyData:{number:(null==t?void 0:t.number)||null,alias:"N/A",currency:{name:(null==t||null===(r=t.currency)||void 0===r?void 0:r.name)||null,code:(null==t||null===(n=t.currency)||void 0===n?void 0:n.code)||null,mnemonic:"N/A",symbol:(null==t||null===(o=t.currency)||void 0===o?void 0:o.symbol)||null},validity:{type:{name:(null==t||null===(i=t.currency)||void 0===i?void 0:i.name)||null,code:(null==t||null===(a=t.currency)||void 0===a?void 0:a.code)||null,months:"N/A"},dateFrom:null!=t&&t.vigencyDateFrom?moment(t.vigencyDateFrom,"YYYY/MM/DD").toISOString():null,dateTo:null!=t&&t.vigencyDateTo?moment(t.vigencyDateTo,"YYYY/MM/DD").toISOString():null},creationDate:null!=t&&t.issueDate?moment(t.issueDate,"YYYY/MM/DD").toISOString():null,renewable:!0,process:{name:(null==t||null===(l=t.status)||void 0===l?void 0:l.name)||null,code:"N/A"}},roleData:{holder:{partyCode:(null==t||null===(u=t.holder)||void 0===u?void 0:u.code)||null,name:null!=t&&null!==(c=t.holder)&&void 0!==c&&c.firstName&&null!=t&&null!==(s=t.holder)&&void 0!==s&&s.lastName?"".concat(t.holder.firstName," ").concat(t.holder.lastName):(null==t||null===(d=t.holder)||void 0===d?void 0:d.name)||null,identification:{value:(null==t||null===(p=t.holder)||void 0===p||null===(p=p.identification)||void 0===p?void 0:p.number)||null,type:{code:(null==t||null===(m=t.holder)||void 0===m||null===(m=m.identification)||void 0===m||null===(m=m.type)||void 0===m?void 0:m.code)||null,name:(null==t||null===(E=t.holder)||void 0===E||null===(E=E.identification)||void 0===E||null===(E=E.type)||void 0===E?void 0:E.name)||null}}},contacts:[{partyCode:"N/A",name:"N/A",identification:{value:"N/A",type:{name:"N/A",code:"N/A"}}}],legalResponsible:{partyCode:"N/A",name:"N/A",identification:{value:"N/A",type:{name:"N/A",code:"N/A"}}}},collectionData:{holderDistribution:0,insuredDistribution:0,paymentFrequency:{name:(null==t||null===(v=t.paymentMethod)||void 0===v||null===(v=v.periodicity)||void 0===v?void 0:v.name)||null,code:"N/A"},paymentMethodData:{cashMethodData:"CASH"===(null==t||null===(h=t.paymentMethod)||void 0===h?void 0:h.name)?{values:[{code:"N/A",name:(null==t||null===(f=t.currency)||void 0===f?void 0:f.name)||null}]}:null,bankAccountData:"CBU"===(null==t||null===(y=t.paymentMethod)||void 0===y?void 0:y.name)?{values:[{code:"BA-1",number:"1",cbu:(null==t||null===(T=t.paymentMethod)||void 0===T?void 0:T.bankAccountNumber)||null,alias:"N/A",currency:{code:"N/A",name:(null==t||null===(_=t.currency)||void 0===_?void 0:_.name)||null},bankBranch:{name:"N/A",code:"N/A",bank:{name:"N/A",code:"N/A"}},bankAccountType:{name:"N/A",code:"N/A"}}]}:null,creditCardData:"CREDIT"===(null==t||null===(A=t.paymentMethod)||void 0===A?void 0:A.name)?{values:[{code:"N/A",ownerName:"N/A",cardType:{name:"N/A",code:"N/A"},cardProvider:{name:"N/A",code:"N/A"},number:"N/A",securityCode:"N/A",dateTo:"N/A"}]}:null}},commercialStructureData:{data:{name:"N/A",code:"N/A",version:0,description:"N/A",status:{name:"N/A",code:"N/A"}},intermediaries:{values:[{code:(null==t||null===(N=t.intermediary)||void 0===N||null===(N=N.code)||void 0===N?void 0:N.toString())||null,name:(null==t||null===(S=t.intermediary)||void 0===S?void 0:S.name)||null,licence:"N/A",role:{name:"N/A",code:"N/A"},status:{name:"N/A",code:"N/A"}}]}},productData:{name:(null==t||null===(I=t.product)||void 0===I?void 0:I.name)||null,code:(null==t||null===(g=t.product)||void 0===g?void 0:g.code)||null,version:0,subsection:{name:"N/A",code:"N/A",section:{name:(null==t||null===(O=t.section)||void 0===O?void 0:O.name)||null,code:(null==t||null===(C=t.section)||void 0===C?void 0:C.code)||null}},status:{name:(null==t||null===(P=t.status)||void 0===P?void 0:P.name)||null,code:"N/A"}},coverageData:{coverages:(null==t||null===(D=t.insured)||void 0===D||null===(D=D.coverages)||void 0===D?void 0:D.map((function(e){return{coverage:{name:(null==e?void 0:e.name)||null,code:"N/A",calculatorType:{name:"N/A",code:"N/A"},type:{name:"N/A",code:"N/A"}},values:[{type:{name:"N/A",code:"N/A"},maxValue:"N/A",minValue:"N/A"}],mortalityTable:{name:"N/A",code:"N/A"},ageType:{name:"N/A",code:"N/A"}}})))||[]},expenseData:{values:[]},wordingData:{wordings:[]},termData:{values:[]},documentationData:{files:[],comments:"N/A"},endorsementData:{number:(null==t?void 0:t.endorsementNumber)||0,validityFrom:"N/A",validityTo:"N/A",type:{name:"N/A",code:"N/A"}},insurableData:{minimumQuantityInsured:0,estimatedDeadline:(null==t||null===(L=t.insured)||void 0===L?void 0:L.entranceDate)||null,minimumAge:0,maximumAge:0,maximumQuantityInsuredByEvent:0,maximumAmountToIndemnify:"N/A",insurables:null!=t&&t.insured?[{type:{name:(null==t||null===(b=t.insured)||void 0===b||null===(b=b.type)||void 0===b?void 0:b.name)||null,code:(null==t||null===(G=t.insured)||void 0===G||null===(G=G.type)||void 0===G?void 0:G.code)||null},wording:"N/A",minimumEntryAge:0,maximumEntryAge:0,endingAgePrincipalCoverage:0,endingAgeAditionalCoverage:0}]:null}},e.abrupt("return",w);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=P(R().mark((function e(t){var r,n,o,i,a,l,u,c,s,d,p,m,E,v,h,f,y,T,_,A,N,S,I,g,O,C,P,D,L,b,G,w;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w={policyData:{number:(null==t?void 0:t.number)||null,alias:"N/A",currency:{name:(null==t||null===(r=t.currency)||void 0===r?void 0:r.name)||null,code:(null==t||null===(n=t.currency)||void 0===n?void 0:n.code)||null,mnemonic:"N/A",symbol:(null==t||null===(o=t.currency)||void 0===o?void 0:o.symbol)||null},validity:{type:{name:(null==t||null===(i=t.currency)||void 0===i?void 0:i.name)||null,code:(null==t||null===(a=t.currency)||void 0===a?void 0:a.code)||null,months:"N/A"},dateFrom:null!=t&&t.vigencyDateFrom?moment(t.vigencyDateFrom,"YYYY/MM/DD").toISOString():null,dateTo:null!=t&&t.vigencyDateTo?moment(t.vigencyDateTo,"YYYY/MM/DD").toISOString():null},creationDate:null!=t&&t.issueDate?moment(t.issueDate,"YYYY/MM/DD").toISOString():null,renewable:!0,process:{name:(null==t||null===(l=t.status)||void 0===l?void 0:l.name)||null,code:"N/A"}},roleData:{holder:{partyCode:(null==t||null===(u=t.holder)||void 0===u?void 0:u.code)||null,name:null!=t&&null!==(c=t.holder)&&void 0!==c&&c.firstName&&null!=t&&null!==(s=t.holder)&&void 0!==s&&s.lastName?"".concat(t.holder.firstName," ").concat(t.holder.lastName):(null==t||null===(d=t.holder)||void 0===d?void 0:d.name)||null,identification:{value:(null==t||null===(p=t.holder)||void 0===p||null===(p=p.identification)||void 0===p?void 0:p.number)||null,type:{code:(null==t||null===(m=t.holder)||void 0===m||null===(m=m.identification)||void 0===m||null===(m=m.type)||void 0===m?void 0:m.code)||null,name:(null==t||null===(E=t.holder)||void 0===E||null===(E=E.identification)||void 0===E||null===(E=E.type)||void 0===E?void 0:E.name)||null}}},contacts:[{partyCode:"N/A",name:"N/A",identification:{value:"N/A",type:{name:"N/A",code:"N/A"}}}],legalResponsible:{partyCode:"N/A",name:"N/A",identification:{value:"N/A",type:{name:"N/A",code:"N/A"}}}},collectionData:{holderDistribution:0,insuredDistribution:0,paymentFrequency:{name:(null==t||null===(v=t.paymentMethod)||void 0===v||null===(v=v.periodicity)||void 0===v?void 0:v.name)||null,code:"N/A"},paymentMethodData:{cashMethodData:"CASH"===(null==t||null===(h=t.paymentMethod)||void 0===h?void 0:h.name)?{values:[{code:"N/A",name:(null==t||null===(f=t.currency)||void 0===f?void 0:f.name)||null}]}:null,bankAccountData:"CBU"===(null==t||null===(y=t.paymentMethod)||void 0===y?void 0:y.name)?{values:[{code:"BA-1",number:"1",cbu:(null==t||null===(T=t.paymentMethod)||void 0===T?void 0:T.bankAccountNumber)||null,alias:"N/A",currency:{code:"N/A",name:(null==t||null===(_=t.currency)||void 0===_?void 0:_.name)||null},bankBranch:{name:"N/A",code:"N/A",bank:{name:"N/A",code:"N/A"}},bankAccountType:{name:"N/A",code:"N/A"}}]}:null,creditCardData:"CREDIT"===(null==t||null===(A=t.paymentMethod)||void 0===A?void 0:A.name)?{values:[{code:"N/A",ownerName:"N/A",cardType:{name:"N/A",code:"N/A"},cardProvider:{name:"N/A",code:"N/A"},number:"N/A",securityCode:"N/A",dateTo:"N/A"}]}:null}},commercialStructureData:{data:{name:"N/A",code:"N/A",version:0,description:"N/A",status:{name:"N/A",code:"N/A"}},intermediaries:{values:[{code:(null==t||null===(N=t.intermediary)||void 0===N||null===(N=N.code)||void 0===N?void 0:N.toString())||null,name:(null==t||null===(S=t.intermediary)||void 0===S?void 0:S.name)||null,licence:"N/A",role:{name:"N/A",code:"N/A"},status:{name:"N/A",code:"N/A"}}]}},productData:{name:(null==t||null===(I=t.product)||void 0===I?void 0:I.name)||null,code:(null==t||null===(g=t.product)||void 0===g?void 0:g.code)||null,version:0,subsection:{name:"N/A",code:"N/A",section:{name:(null==t||null===(O=t.section)||void 0===O?void 0:O.name)||null,code:(null==t||null===(C=t.section)||void 0===C?void 0:C.code)||null}},status:{name:(null==t||null===(P=t.status)||void 0===P?void 0:P.name)||null,code:"N/A"}},coverageData:{coverages:(null==t||null===(D=t.insured)||void 0===D||null===(D=D.coverages)||void 0===D?void 0:D.map((function(e){return{coverage:{name:(null==e?void 0:e.name)||null,code:"N/A",calculatorType:{name:"N/A",code:"N/A"},type:{name:"N/A",code:"N/A"}},values:[{type:{name:"N/A",code:"N/A"},maxValue:"N/A",minValue:"N/A"}],mortalityTable:{name:"N/A",code:"N/A"},ageType:{name:"N/A",code:"N/A"}}})))||[]},expenseData:{values:[]},wordingData:{wordings:[]},termData:{values:[]},documentationData:{files:[],comments:"N/A"},endorsementData:{number:(null==t?void 0:t.endorsementNumber)||0,validityFrom:"N/A",validityTo:"N/A",type:{name:"N/A",code:"N/A"}},insurableData:{minimumQuantityInsured:0,estimatedDeadline:(null==t||null===(L=t.insured)||void 0===L?void 0:L.entranceDate)||null,minimumAge:0,maximumAge:0,maximumQuantityInsuredByEvent:0,maximumAmountToIndemnify:"N/A",insurables:null!=t&&t.insured?[{type:{name:(null==t||null===(b=t.insured)||void 0===b||null===(b=b.type)||void 0===b?void 0:b.name)||null,code:(null==t||null===(G=t.insured)||void 0===G||null===(G=G.type)||void 0===G?void 0:G.code)||null},wording:"N/A",minimumEntryAge:0,maximumEntryAge:0,endingAgePrincipalCoverage:0,endingAgeAditionalCoverage:0}]:null}},e.abrupt("return",w);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Y(e){return Y="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},Y(e)}function M(){M=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new D(n||[]);return o(a,"_invoke",{value:O(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",m="suspendedYield",E="executing",v="completed",h={};function f(){}function y(){}function T(){}var _={};c(_,a,(function(){return this}));var A=Object.getPrototypeOf,N=A&&A(A(L([])));N&&N!==r&&n.call(N,a)&&(_=N);var S=T.prototype=f.prototype=Object.create(_);function I(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function r(o,i,a,l){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==Y(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===E)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=R(l,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Y(t)+" is not iterable")}return y.prototype=T,o(S,"constructor",{value:T,configurable:!0}),o(T,"constructor",{value:y,configurable:!0}),y.displayName=c(T,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},I(g.prototype),c(g.prototype,l,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=L,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function x(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function U(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){x(i,n,o,a,l,"next",e)}function l(e){x(i,n,o,a,l,"throw",e)}a(void 0)}))}}var j=function(){var e=U(M().mark((function e(t){var r;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={quotations:t.quotations.map((function(e){var t,r;return{code:e.quotationNumber||null,creationDate:"N/A",email:"N/A",expirationDate:"N/A",number:e.activityCode||null,paymentFrequency:{name:"N/A",code:"N/A"},product:{code:(null===(t=e.productCode)||void 0===t?void 0:t.toString())||null,name:"N/A",subsection:{code:"N/A",name:"N/A",section:{code:(null===(r=e.sectionCode)||void 0===r?void 0:r.toString())||null,name:"N/A"}},version:0},status:{code:"N/A",name:"N/A"}}})),total:t.quotations.length},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=U(M().mark((function e(t){var r,n,o,i;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={code:(null===(r=t.quotationNumber)||void 0===r?void 0:r.toString())||null,number:t.activityCode||0,creationDate:t.vigencyDateFrom||null,expirationDate:t.vigencyDateTo||null,validity:{code:"N/A",name:"N/A",months:"N/A"},status:{code:"N/A",name:"N/A"},paymentFrequency:{name:"N/A",code:"N/A",months:0},email:"N/A",phone:"N/A",intermediary:{code:"N/A",name:"N/A",roles:{}},commercialStructure:{data:{name:"N/A",code:"N/A",version:0,description:"N/A",status:{name:"N/A",code:"N/A"}},intermediaries:{values:[{code:"N/A",name:"N/A",licence:"N/A",role:{name:"N/A",code:"N/A"},status:{name:"N/A",code:"N/A"},group:{name:"N/A",code:"N/A"}}]}},product:{name:"N/A",code:(null==t||null===(n=t.productCode)||void 0===n?void 0:n.toString())||null,version:0,subsection:{name:"N/A",code:"N/A",section:{name:"N/A",code:(null==t||null===(o=t.sectionCode)||void 0===o?void 0:o.toString())||null,type:{name:"N/A",code:"N/A"},category:{name:"N/A",code:"N/A"}}},status:{code:"N/A",name:"N/A"},currency:{name:"N/A",code:"N/A",mnemonic:"N/A",symbol:"N/A"}},productSegment:{coverages:[],expenses:[],name:"N/A",code:"N/A",version:0,description:"N/A"},values:{risks:[{code:"N/A",coverages:[{code:"N/A",name:"N/A",deductible:{name:"N/A",code:"N/A",value:0,appliedValue:0},economicValues:[{type:{name:"N/A",code:"N/A"},value:0}],coverageValues:[{type:{name:"N/A",code:"N/A"},value:0}]}],data:{},adherents:[{code:"N/A",coverages:[{code:"N/A",name:"N/A",deductible:{name:"N/A",code:"N/A",value:0,appliedValue:0},economicValues:[{type:"N/A",code:"N/A"}],coverageValues:[{type:{name:"N/A",code:"N/A"},value:0}]}],data:{}}]}],expenses:[{type:{name:"N/A",code:"N/A"},value:0}],groupedEconomicValues:[{type:{name:"N/A",code:"N/A"},value:0}],commercialAgreement:{}}},e.abrupt("return",i);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F="GET",B="POST",H={GET_INSUREDS:{default:{url:"policy-life/v1/policies/{0}/insureds",method:F,source:"https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy/{0}/{1}/policy-insured",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-insureds",requestMapper:function(e){return{number:(t=e).code||void 0,firstName:t.name||void 0,page:t.page||void 0,pageSize:t.pageSize||void 0};var t},responseMapper:function(e){return D(e)}}},GET_ENDORSEMENTS:{default:{url:"policy/v1/policies/{0}/endorsements",method:F,source:"https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1endorsements/get",requestMapper:null,responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy/{0}/{1}/endorsements",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-endorsements",requestMapper:null,responseMapper:function(e){return L(e)}}},GET_POLICIES:{default:{url:"policy/v1/policies?processCode=ACTIVE&commercialStructuresCodes[]=EC-1&commercialStructuresCodes[]=EC-12&pageSize=1&page=1&sort=MODIFIED_DATE_DESC",method:F,source:"https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy?pageNumber=1&sort=TomadorCodigo&orderType=desc&pageSize=25&allPolicies",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-pagenumber-pagenumber-sort-sort-ordertype-ordertype-pagesize-p",requestMapper:null,responseMapper:function(e){return b(e)}}},GET_POLICY_INDIVIDUAL_DETAIL:{default:{url:"policy-life/v1/policies/{0}/details",method:F,source:"https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy-individual/{0}/{1}/detail",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",requestMapper:null,responseMapper:function(e){return G(e)}}},GET_POLICY_COLLECTIVE_DETAIL:{default:{url:"policy-life/v1/policies/{0}/details",method:F,source:"https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy-individual/{0}/{1}/detail",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",requestMapper:null,responseMapper:function(e){return w(e)}}},GET_CLAIMS:{default:{url:"claim/v1/claims",method:F,source:"https://apidoc.sysone.com/claim/v1/open-api.html",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"claim/v1/claim",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=claim-api&operation=get-v1-claim-pagenumber-pagenumber-pagesize-pagesize",requestMapper:null,responseMapper:function(e){return g(e)}}},GET_QUOTATIONS:{default:{url:"quotation/v1/quotations?page=1&pageSize=3",method:F,source:"https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"quotation/v1/quotation/variable-plan",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-quotation-variable-plan",requestMapper:function(e){return e},responseMapper:function(e){return j(e)}}},GET_QUOTATION_BY_CODE:{default:{url:"quotation/v1/quotations/{0}",method:F,source:"https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations~1%7Bcode%7D/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"quotation/v1/quotation/standard-plan/{0}",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-quotation-standard-plan-number",requestMapper:function(e){return e},responseMapper:function(e){return k(e)}}},GET_PAYMENT_METHODS:{},POST_INSURED_UPDATE:{default:{url:"policy-life/v1/policies/{0}/insureds",method:B,requestMapper:null,source:"https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/post",responseMapper:function(e){return e}},cnp:{url:"v1/policy-collective/{0}/{1}/insureds",method:B,requestMapper:null,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=post-v1-policy-collective-policy-number-section-code-insureds",responseMapper:function(e){return{salary:"string"==typeof(t=e).salary?t.salary:String(t.salary),identification:"string"==typeof t.identification?t.identification:String(t.identification)};var t}}},CREATE_INSURED:{}};function q(e){return q="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},q(e)}function V(){V=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new D(n||[]);return o(a,"_invoke",{value:O(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",m="suspendedYield",E="executing",v="completed",h={};function f(){}function y(){}function T(){}var _={};c(_,a,(function(){return this}));var A=Object.getPrototypeOf,N=A&&A(A(L([])));N&&N!==r&&n.call(N,a)&&(_=N);var S=T.prototype=f.prototype=Object.create(_);function I(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function r(o,i,a,l){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==q(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===E)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=R(l,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(q(t)+" is not iterable")}return y.prototype=T,o(S,"constructor",{value:T,configurable:!0}),o(T,"constructor",{value:y,configurable:!0}),y.displayName=c(T,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},I(g.prototype),c(g.prototype,l,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=L,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){X(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function K(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function X(e,t,r){return(t=function(e){var t=function(e){if("object"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==q(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Q={default:{baseURL:"https://app-dev.sysone.com/",headers:X(X(X({},"X-Tenant","sysone"),"X-User","sysone"),"X-Api-Key","PYRxE7iBUFCFcDmTwIFGEkvSMzJ88hSU4uWG0DL0ebk1CYVamsa6phIlsECQQMqkM0XXtZ5K1L85cyr3MgkIhtjlIh4niBsagiVRjzIaqNKxSU2N8Y7KaZLItDB2oDTc")},cnp:{baseURL:"http://api-test.cnp.com.ar/",headers:X(X(X(X({},"X-Chanel","cnp"),"X-Agent","1191"),"X-Client","cnp"),"Ocp-Apim-Subscription-Key","5e0a100bd5804b058fc119729177cefd")}},z=function(){var e,t=(e=V().mark((function e(t,r,o){var i,a,l,u,c,s,d,p,m,E,v,h,f,y=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=y.length>3&&void 0!==y[3]?y[3]:null,e.prev=1,c=null!==(a=(u=H[t])[r])&&void 0!==a?a:u.default,s=null!==(l=Q[r])&&void 0!==l?l:Q.default,console.log("config",s),console.log("config",u),d=J(c.url,o),e.t0=c.method,e.next=e.t0===F?11:e.t0===B?17:"PUT"===e.t0?23:"DELETE"===e.t0?27:31;break;case 11:return m=c.requestMapper(i),E=m.mappedParams,e.next=15,n.get(d,Z(Z({},s),{},{mappedParams:E}));case 15:case 21:case 25:case 29:return p=e.sent,e.abrupt("return",c.responseMapper(p.data));case 17:return m=c.requestMapper(i),h=(v=m).mappedPostParams,f=v.mappedPostBody,e.next=21,n.post(d,h,f);case 23:return e.next=25,n.put(d,i);case 27:return e.next=29,n.delete(d,i);case 31:throw p=null,new Error("Request error: Method not allowed. Only use GET, POST, PUT, DELETE");case 33:e.next=38;break;case 35:throw e.prev=35,e.t1=e.catch(1),e.t1;case 38:case"end":return e.stop()}}),e,null,[[1,35]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){K(i,n,o,a,l,"next",e)}function l(e){K(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}(),J=function(e,t){return t?e.replace(/{(\d+)}/g,(function(e,r){return t[r]?t[r]:e})):e};module.exports=t})();
|
|
2
|
+
(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{apiCall:()=>A,apiMapper:()=>z,axiosInstance:()=>n,endpoints:()=>E});const r=require("axios"),n=e.n(r)().create({});var o;function i(e){return i="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},i(e)}function a(e,t,r){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l="PARTY_MODULE",u="INTERMEDIARY_MODULE",c="COMMERCIAL_STRUCTURE_MODULE",s="POLICY_MODULE",d="GET",p="POST",m="PUT",E=(a(a(a(a(a(a(a(a(a(a(o={GET_ACTIVITIES:"GET_ACTIVITIES",GET_PRACTICES:"GET_PRACTICES",SEARCH_INDIVIDUALS:"SEARCH_INDIVIDUALS",CREATE_INDIVIDUAL:"CREATE_INDIVIDUAL",GET_IDENTIFICATION_TYPES:"GET_IDENTIFICATION_TYPES",GET_RELATIONS:"GET_RELATIONS",GET_NOTES:"GET_NOTES",GET_FILES:"GET_FILES",GET_SECTORS:"GET_SECTORS",GET_FISCAL_CATEGORIES:"GET_FISCAL_CATEGORIES",GET_MAIL_TYPES:"GET_MAIL_TYPES",GET_PHONE_TYPES:"GET_PHONE_TYPES",UPDATE_NOTES:"UPDATE_NOTES",UPDATE_FILES:"UPDATE_FILES",ADD_RELATION_WITH_EXISTING_PARTY:"ADD_RELATION_WITH_EXISTING_PARTY",GET_RELATIONS_BY_PARTY_CODE:"GET_RELATIONS_BY_PARTY_CODE",REMOVE_RELATION:"REMOVE_RELATION",GET_FILE:"GET_FILE",GET_ORGANIZATION_TYPES:"GET_ORGANIZATION_TYPES",SEARCH_ORGANIZATION:"SEARCH_ORGANIZATION",CREATE_ORGANIZATION:"CREATE_ORGANIZATION",GET_ORGANIZATION_BY_CODE:"GET_ORGANIZATION_BY_CODE",UPDATE_ORGANIZATION:"UPDATE_ORGANIZATION",ADD_RELATION_WITH_NEW_ORGANIZATION:"ADD_RELATION_WITH_NEW_ORGANIZATION",GET_PERSON_BY_CODE:"GET_PERSON_BY_CODE",GET_GENDERS:"GET_GENDERS",GET_MARITAL_STATUSES:"GET_MARITAL_STATUSES",GET_WORKER_TYPES:"GET_WORKER_TYPES",GET_ECONOMIC_CLASSES:"GET_ECONOMIC_CLASSES",SEARCH_PERSON:"SEARCH_PERSON",UPDATE_PERSON:"UPDATE_PERSON",GET_RELATION_TYPES:"GET_RELATION_TYPES",ADD_RELATION_WITH_NEW_PERSON:"ADD_RELATION_WITH_NEW_PERSON",GET_POLICY_PROCESSES:"GET_POLICY_PROCESSES",GET_COUNTRIES:"GET_COUNTRIES",GET_COUNTRY_BY_CODE:"GET_COUNTRY_BY_CODE",GET_PROVINCES:"GET_PROVINCES",GET_CITIES:"GET_CITIES",GET_POSTAL_CODES:"GET_POSTAL_CODES",GET_ADDRESSES_BY_PARTY_CODE:"GET_ADDRESSES_BY_PARTY_CODE",GET_ADDRESS_TYPES:"GET_ADDRESS_TYPES",GET_PAYMENT_METHODS_BY_PARTY_CODE:"GET_PAYMENT_METHODS_BY_PARTY_CODE",GET_CREDIT_CARD_TYPES:"GET_CREDIT_CARD_TYPES",GET_CARD_PROVIDERS:"GET_CARD_PROVIDERS",UPDATE_PAYMENTS:"UPDATE_PAYMENTS",GET_BANKS:"GET_BANKS",GET_CURRENCIES:"GET_CURRENCIES",GET_BANK_ACCOUNT_TYPES:"GET_BANK_ACCOUNT_TYPES",GET_BANK_BRANCHES:"GET_BANK_BRANCHES",GET_PERSON_INTERMEDIARY_BY_CODE:"GET_PERSON_INTERMEDIARY_BY_CODE",GET_ORGANIZATION_INTERMEDIARY_BY_CODE:"GET_ORGANIZATION_INTERMEDIARY_BY_CODE",GET_INTERMEDIARIES_GROUPS:"GET_INTERMEDIARIES_GROUPS",GET_INTERMEDIARIES_ROLES:"GET_INTERMEDIARIES_ROLES",GET_INTERMEDIARY_STRUCTURES:"GET_INTERMEDIARY_STRUCTURES",SEARCH_INTERMEDIARIES:"SEARCH_INTERMEDIARIES",SEARCH_ACCOUNT_OFFICERS:"SEARCH_ACCOUNT_OFFICERS",GET_INTERMEDIARIES_STATES:"GET_INTERMEDIARIES_STATES",GET_INTERMEDIARIES_TYPES:"GET_INTERMEDIARIES_TYPES",CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY:"CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY",CREATE_INTERMEDIARY_WITH_WITH_PERSON:"CREATE_INTERMEDIARY_WITH_WITH_PERSON",CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION:"CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION",UPDATE_INTERMEDIARY:"UPDATE_INTERMEDIARY",CREATE_COMMERCIAL_STRUCTURE:"CREATE_COMMERCIAL_STRUCTURE",GET_COMMERCIAL_STRUCTURE_STATUSES:"GET_COMMERCIAL_STRUCTURE_STATUSES",SEARCH_COMMERCIAL_STRUCTURE:"SEARCH_COMMERCIAL_STRUCTURE",GET_COMMERCIAL_STRUCTURES_BY_CODE:"GET_COMMERCIAL_STRUCTURES_BY_CODE",UPDATE_COMMERCIAL_STRUCTURE:"UPDATE_COMMERCIAL_STRUCTURE",UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES:"UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES",GET_POLICY_SECTIONS:"GET_POLICY_SECTIONS",GET_POLICY_SUBSECTIONS:"GET_POLICY_SUBSECTIONS"},"GET_POLICY_PROCESSES","GET_POLICY_PROCESSES"),"GET_POLICY_PRODUCTS","GET_POLICY_PRODUCTS"),"GET_VALIDITY_TYPES","GET_VALIDITY_TYPES"),"GET_POLICY_CARACTERS","GET_POLICY_CARACTERS"),"GET_POLICY_TYPE_OF_DOCUMENTATION","GET_POLICY_TYPE_OF_DOCUMENTATION"),"GET_PAYMENT_FREQUENCIES","GET_PAYMENT_FREQUENCIES"),"GET_ASSOCIATE_TERMS_CONDITION","GET_ASSOCIATE_TERMS_CONDITION"),"GET_ASSOCIATE_EXPENSES","GET_ASSOCIATE_EXPENSES"),"GET_ASSOCIATE_COVERAGE","GET_ASSOCIATE_COVERAGE"),"GET_COVERAGES","GET_COVERAGES"),a(a(a(a(a(a(a(a(a(a(o,"GET_EXPENSEVALUES","GET_EXPENSEVALUES"),"GET_MORTALITY_TABLE","GET_MORTALITY_TABLE"),"CREATE_POLICY_STEP1","CREATE_POLICY_STEP1"),"CREATE_POLICY_STEP2","CREATE_POLICY_STEP2"),"CREATE_POLICY_STEP3","CREATE_POLICY_STEP3"),"CREATE_POLICY_STEP4","CREATE_POLICY_STEP4"),"CREATE_POLICY_STEP5","CREATE_POLICY_STEP5"),"CREATE_POLICY_STEP6","CREATE_POLICY_STEP6"),"CREATE_POLICY_STEP7","CREATE_POLICY_STEP7"),"CREATE_POLICY_STEP8","CREATE_POLICY_STEP8"),a(a(a(a(a(a(a(a(a(a(o,"CREATE_POLICY_STEP9","CREATE_POLICY_STEP9"),"CREATE_POLICY_STEP10","CREATE_POLICY_STEP10"),"CREATE_POLICY_STEP11","CREATE_POLICY_STEP11"),"GET_STEP1_DATA","GET_STEP1_DATA"),"GET_STEP2_DATA","GET_STEP2_DATA"),"GET_STEP3_DATA","GET_STEP3_DATA"),"GET_STEP4_DATA","GET_STEP4_DATA"),"GET_STEP5_DATA","GET_STEP5_DATA"),"GET_STEP6_DATA","GET_STEP6_DATA"),"GET_STEP7_DATA","GET_STEP7_DATA"),a(a(a(a(a(a(a(a(a(a(o,"GET_STEP9_DATA","GET_STEP9_DATA"),"GET_STEP11_DATA","GET_STEP11_DATA"),"GET_STEP11_FILE","GET_STEP11_FILE"),"UPDATE_POLICY_STEP1","UPDATE_POLICY_STEP1"),"GET_ISURED_PERSONS","GET_ISURED_PERSONS"),"UPDATE_PARTY","UPDATE_PARTY"),"GET_POLICY_DETAILS","GET_POLICY_DETAILS"),"UPDATE_PAYMENTS","UPDATE_PAYMENTS"),"CREATE_POLICY_RISK","CREATE_POLICY_RISK"),"ACTIVATE_POLICY","ACTIVATE_POLICY"),a(a(a(a(a(a(a(a(a(a(o,"COMPLETE_POLICY","COMPLETE_POLICY"),"SET_POLICY_BUILDING","SET_POLICY_BUILDING"),"SEARCH_POLICIES","SEARCH_POLICIES"),"SEARCH_POLICY_GENERAL_CONDITIONS","SEARCH_POLICY_GENERAL_CONDITIONS"),"GET_ASSURED_LIST","GET_ASSURED_LIST"),"GET_ADHERENTS","GET_ADHERENTS"),"GET_ADHERENTS_BY_OWNER","GET_ADHERENTS_BY_OWNER"),"GET_OWNERS","GET_OWNERS"),"GET_POLICY_ROLES","GET_POLICY_ROLES"),"CREATE_PRODUCT","CREATE_PRODUCT")),v=[{endpoint:E.SEARCH_INDIVIDUALS,serviceName:"individuals",url:"party/v1/individuals",method:d,module:l},{endpoint:E.CREATE_INDIVIDUAL,serviceName:"individuals",url:"party/v1/individuals",method:p,module:l},{endpoint:E.GET_ACTIVITIES,serviceName:"activities",url:"party/v1/activities/{0}",method:d,module:l},{endpoint:E.GET_PRACTICES,serviceName:"practices",url:"party/v1/practices/{0}",method:d,module:l},{endpoint:E.GET_SECTORS,serviceName:"sectors",url:"party/v1/sectors",method:d,module:l},{endpoint:E.GET_FISCAL_CATEGORIES,serviceName:"fiscal-categories",url:"party/v1/fiscal-categories?party-type-code={0}&country-code={1}",method:d,module:l},{endpoint:E.GET_MAIL_TYPES,serviceName:"mail-types",url:"party/v1/mail-types",method:d,module:l},{endpoint:E.GET_PHONE_TYPES,serviceName:"phone-types",url:"party/v1/phone-types",method:d,module:l},{endpoint:E.GET_IDENTIFICATION_TYPES,serviceName:"identification-types",url:"party/v1/identification-types?party-type-code={0}&country-code={1}",method:d,module:l},{endpoint:E.GET_RELATIONS,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:d,module:l},{endpoint:E.GET_NOTES,serviceName:"parties/notes",url:"party/v1/parties/{0}/notes",method:d,module:l},{endpoint:E.GET_FILES,serviceName:"parties/files",url:"party/v1/parties/{0}/files",method:d,module:l},{endpoint:E.UPDATE_NOTES,serviceName:"parties/notes",url:"party/v1/parties/{0}/notes",method:m,module:l},{endpoint:E.UPDATE_FILES,serviceName:"parties/files",url:"party/v1/parties/{0}/files",method:m,module:l},{endpoint:E.ADD_RELATION_WITH_EXISTING_PARTY,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:m,module:l},{endpoint:E.GET_RELATIONS_BY_PARTY_CODE,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:d,module:l},{endpoint:E.REMOVE_RELATION,serviceName:"parties/relations/disable",url:"party/v1/parties/{0}/relations/disable",method:m,module:l},{endpoint:E.GET_FILE,serviceName:"parties/file",url:"party/v1/parties/{0}/file/{1}",method:d,module:l},{endpoint:E.SEARCH_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations",method:d,module:l},{endpoint:E.GET_ORGANIZATION_TYPES,serviceName:"organisation-types",url:"party/v1/organisation-types",method:d,module:l},{endpoint:E.CREATE_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations",method:p,module:l},{endpoint:E.UPDATE_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations/{0}",method:m,module:l},{endpoint:E.GET_ORGANIZATION_BY_CODE,serviceName:"organisations",url:"party/v1/organisations/{0}",method:d,module:l},{endpoint:E.ADD_RELATION_WITH_NEW_ORGANIZATION,serviceName:"organisations/relations",url:"party/v1/organisations/{0}/relations",method:m,module:l},{endpoint:E.UPDATE_PERSON,serviceName:"individuals",url:"party/v1/individuals/{0}",method:m,module:l},{endpoint:E.SEARCH_PERSON,serviceName:"individuals",url:"party/v1/individuals",method:d,module:l},{endpoint:E.GET_PERSON_BY_CODE,serviceName:"individuals",url:"party/v1/individuals/{0}",method:d,module:l},{endpoint:E.GET_GENDERS,serviceName:"genders",url:"party/v1/genders",method:d,module:l},{endpoint:E.GET_MARITAL_STATUSES,serviceName:"marital-statuses",url:"party/v1/marital-statuses",method:d,module:l},{endpoint:E.GET_WORKER_TYPES,serviceName:"worker-types",url:"party/v1/worker-types",method:d,module:l},{endpoint:E.GET_ECONOMIC_CLASSES,serviceName:"economic-classes",url:"party/v1/economic-classes",method:d,module:l},{endpoint:E.GET_RELATION_TYPES,serviceName:"relation-types",url:"party/v1/relation-types/{0}",method:d,module:l},{endpoint:E.ADD_RELATION_WITH_NEW_PERSON,serviceName:"individuals/relations",url:"party/v1/individuals/{0}/relations",method:m,module:l},{endpoint:E.GET_POLICY_PROCESSES,serviceName:"policy-statuses",url:"policy/v1/policy-statuses",method:d,module:l},{endpoint:E.GET_COUNTRIES,serviceName:"countries",url:"location/v1/countries",method:d,module:l},{endpoint:E.GET_COUNTRY_BY_CODE,serviceName:"countries",url:"location/v1/countries/{0}",method:d,module:l},{endpoint:E.GET_PROVINCES,serviceName:"countries/provinces",url:"location/v1/countries/{0}/provinces",method:d,module:l},{endpoint:E.GET_CITIES,serviceName:"provinces/cities",url:"location/v1/provinces/{0}/cities",method:d,module:l},{endpoint:E.GET_POSTAL_CODES,serviceName:"cities/postal-codes",url:"location/v1/cities/{0}/postal-codes",method:d,module:l},{endpoint:E.GET_ADDRESSES_BY_PARTY_CODE,serviceName:"party/addresses",url:"location/v1/party/{0}/addresses",method:d,module:l},{endpoint:E.GET_ADDRESS_TYPES,serviceName:"address-types",url:"location/v1/address-types",method:d,module:l},{endpoint:E.GET_PAYMENT_METHODS_BY_PARTY_CODE,serviceName:"parties/payment-methods",url:"party/v1/parties/{0}/payment-methods",method:d,module:l},{endpoint:E.GET_CREDIT_CARD_TYPES,serviceName:"credit-card-types",url:"finance/v1/credit-card-types",method:d,module:l},{endpoint:E.GET_CARD_PROVIDERS,serviceName:"card-providers",url:"finance/v1/card-providers",method:d,module:l},{endpoint:E.UPDATE_PAYMENTS,serviceName:"parties/payment-methods",url:"party/v1/parties/{0}/payment-methods",method:m,module:l},{endpoint:E.GET_BANKS,serviceName:"banks",url:"finance/v1/banks",method:d,module:l},{endpoint:E.GET_CURRENCIES,serviceName:"currencies",url:"finance/v1/currencies",method:d,module:l},{endpoint:E.GET_BANK_ACCOUNT_TYPES,serviceName:"bank-account-types",url:"finance/v1/bank-account-types",method:d,module:l},{endpoint:E.GET_BANK_BRANCHES,serviceName:"banks/branches",url:"finance/v1/banks/{0}/branches",method:d,module:l},{endpoint:E.SEARCH_INTERMEDIARIES,serviceName:"intermediary",url:"intermediary/v1/intermediary",method:d,module:u},{endpoint:E.GET_PERSON_INTERMEDIARY_BY_CODE,serviceName:"intermediary-individual",url:"intermediary/v1/intermediary-individual/{0}",method:d,module:u},{endpoint:E.GET_ORGANIZATION_INTERMEDIARY_BY_CODE,serviceName:"intermediary-organisation",url:"intermediary/v1/intermediary-organisation/{0}",method:d,module:u},{endpoint:E.GET_INTERMEDIARIES_GROUPS,serviceName:"intermediary-groups",url:"intermediary/v1/intermediary-groups",method:d,module:u},{endpoint:E.GET_INTERMEDIARIES_ROLES,serviceName:"intermediary-roles",url:"intermediary/v1/intermediary-roles",method:d,module:u},{endpoint:E.GET_INTERMEDIARY_STRUCTURES,serviceName:"intermediary-structures",url:"intermediary/v1/intermediary/{0}/commercial-structures",method:d,module:u},{endpoint:E.GET_INTERMEDIARIES_STATES,serviceName:"commercial-structure-statuses",url:"intermediary/v1/commercial-structure-statuses",method:d,module:u},{endpoint:E.GET_INTERMEDIARIES_TYPES,serviceName:"intermediary-types",url:"intermediary/v1/intermediary-types",method:d,module:u},{endpoint:E.CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY,serviceName:"intermediary-party-association",url:"intermediary/v1/intermediary-party-association",method:p,module:u},{endpoint:E.CREATE_INTERMEDIARY_WITH_WITH_PERSON,serviceName:"intermediary-individual",url:"intermediary/v1/intermediary-individual",method:p,module:u},{endpoint:E.CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION,serviceName:"intermediary-organisation",url:"intermediary/v1/intermediary-organisation",method:p,module:u},{endpoint:E.UPDATE_INTERMEDIARY,serviceName:"intermediary",url:"intermediary/v1/intermediary/{0}",method:m,module:u},{endpoint:E.SEARCH_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures",method:d,module:c},{endpoint:E.CREATE_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures",method:p,module:c},{endpoint:E.GET_COMMERCIAL_STRUCTURE_STATUSES,serviceName:"commercial-structure-statuses",url:"intermediary/v1/commercial-structure-statuses",method:d,module:c},{endpoint:E.GET_COMMERCIAL_STRUCTURES_BY_CODE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures/{0}",method:d,module:c},{endpoint:E.UPDATE_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures/{0}",method:m,module:c},{endpoint:E.UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES,serviceName:"commercial-structures/intermediaries",url:"intermediary/v1/commercial-structures/{0}/intermediaries",method:m,module:c},{endpoint:E.SEARCH_POLICIES,serviceName:"policies",url:"policy/v1/policies",method:d,module:s},{endpoint:E.GET_POLICY_SECTIONS,serviceName:"sections",url:"product/v1/sections",method:d,module:s},{endpoint:E.GET_POLICY_SUBSECTIONS,serviceName:"sections/subsections",url:"product/v1/sections/{0}/subsections",method:d,module:s},{endpoint:E.GET_POLICY_PROCESSES,serviceName:"policy-statuses",url:"policy/v1/policy-statuses",method:d,module:s},{endpoint:E.GET_POLICY_PRODUCTS,serviceName:"subsections/products",url:"product/v1/subsections/{0}/products",method:d,module:s},{endpoint:E.GET_VALIDITY_TYPES,serviceName:"policy-validities",url:"policy/v1/policy-validities",method:d,module:s},{endpoint:E.GET_POLICY_CARACTERS,serviceName:"wording-types",url:"product/v1/wording-types",method:d,module:s},{endpoint:E.SEARCH_POLICY_GENERAL_CONDITIONS,serviceName:"wordings",url:"/product/v1/products/{0}/wordings",method:d,module:s},{endpoint:E.GET_POLICY_TYPE_OF_DOCUMENTATION,serviceName:"file-types",url:"policy/v1/file-types",method:d,module:s},{endpoint:E.GET_PAYMENT_FREQUENCIES,serviceName:"payment-frequencies",url:"policy/v1/payment-frequencies",method:d,module:s},{endpoint:E.GET_ASSOCIATE_TERMS_CONDITION,serviceName:"terms",url:"policy/v1/policies/{0}/terms",method:d,module:s},{endpoint:E.GET_ASSOCIATE_EXPENSES,serviceName:"expenses",url:"policy/v1/policies/{0}/expenses",method:d,module:s},{endpoint:E.GET_ASSOCIATE_COVERAGE,serviceName:"coverages",url:"policy-life/v1/policies/{0}/coverages",method:d,module:s},{endpoint:E.GET_COVERAGES,serviceName:"coverages",url:"product/v1/products/{0}/coverages",method:d,module:s},{endpoint:E.GET_EXPENSEVALUES,serviceName:"expenses",url:"/product/v1/products/{0}/expenses",method:d,module:s},{endpoint:E.GET_MORTALITY_TABLE,serviceName:"mortality-tables",url:"policy-life/v1/mortality-tables",method:d,module:s},{endpoint:E.CREATE_POLICY_STEP1,serviceName:"policies",url:"policy/v1/policies",method:p,module:s},{endpoint:E.CREATE_POLICY_STEP2,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP3,serviceName:"policies/collections",url:"policy/v1/policies/{0}/collections",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP4,serviceName:"policies/commercial-structures",url:"policy/v1/policies/{0}/commercial-structures",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP5,serviceName:"policies/products",url:"policy-life/v1/policies/{0}/products",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP6,serviceName:"policies/coverages",url:"policy-life/v1/policies/{0}/coverages",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP7,serviceName:"policies/insurables",url:"policy-life/v1/policies/{0}/insurables",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP8,serviceName:"policies/expenses",url:"policy/v1/policies/{0}/expenses",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP9,serviceName:"policies/wordings",url:"policy/v1/policies/{0}/wordings",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP10,serviceName:"policies/terms",url:"policy/v1/policies/{0}/terms",method:m,module:s},{endpoint:E.CREATE_POLICY_STEP11,serviceName:"policies/documentation",url:"policy/v1/policies/{0}/documentation",method:m,module:s},{endpoint:E.GET_STEP1_DATA,serviceName:"policies",url:"policy/v1/policies/{0}",method:d,module:s},{endpoint:E.GET_STEP2_DATA,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:d,module:s},{endpoint:E.GET_STEP3_DATA,serviceName:"policies/collections",url:"policy/v1/policies/{0}/collections",method:d,module:s},{endpoint:E.GET_STEP4_DATA,serviceName:"policies/commercial-structures",url:"policy/v1/policies/{0}/commercial-structures",method:d,module:s},{endpoint:E.GET_STEP5_DATA,serviceName:"policies/products",url:"policy/v1/policies/{0}/products",method:d,module:s},{endpoint:E.GET_STEP6_DATA,serviceName:"policies/coverages",url:"policy-life/v1/policies/{0}/coverages",method:d,module:s},{endpoint:E.GET_STEP7_DATA,serviceName:"policies/insurables",url:"policy-life/v1/policies/{0}/insurables",method:d,module:s},{endpoint:E.GET_STEP9_DATA,serviceName:"policies/wordings",url:"policy/v1/policies/{0}/wordings",method:d,module:s},{endpoint:E.GET_STEP11_DATA,serviceName:"policies/documentation",url:"policy/v1/policies/{0}/documentation",method:d,module:s},{endpoint:E.GET_STEP11_FILE,serviceName:"policies/file",url:"policy/v1/policies/{0}/file/{1}",method:d,module:s},{endpoint:E.UPDATE_POLICY_STEP1,serviceName:"policies",url:"policy/v1/policies/{0}",method:m,module:s},{endpoint:E.GET_ISURED_PERSONS,serviceName:"insurables",url:"policy-life/v1/products/{0}/insurables",method:d,module:s},{endpoint:E.UPDATE_PARTY,serviceName:"parties",url:"policy/v1/parties/{0}",method:m,module:s},{endpoint:E.GET_POLICY_DETAILS,serviceName:"policies/details",url:"policy-life/v1/policies/{0}/details",method:d,module:s},{endpoint:E.UPDATE_PAYMENTS,serviceName:"policies/collections",url:"policy/v1/policies/collections",method:m,module:s},{endpoint:E.CREATE_POLICY_RISK,serviceName:"policies",url:"policy-life/v1/policies/{0}/insureds",method:p,module:s},{endpoint:E.ACTIVATE_POLICY,serviceName:"policies/activate",url:"policy-life/v1/policies/{0}/activate",method:m,module:s},{endpoint:E.COMPLETE_POLICY,serviceName:"policies/complete",url:"/policy-life/v1/policies/{0}/complete",method:m,module:s},{endpoint:E.SET_POLICY_BUILDING,serviceName:"policies/build",url:"policy-life/v1/policies/{0}/build",method:m,module:s},{endpoint:E.GET_POLICY_ROLES,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:d,module:s},{endpoint:E.GET_ASSURED_LIST,serviceName:"insureds",url:"policy-life/v1/policies/{0}/insureds",method:d,module:s},{endpoint:E.GET_ADHERENTS,serviceName:"adherents",url:"policy-life/v1/adherents/{0}",method:d,module:s},{endpoint:E.GET_OWNERS,serviceName:"owners",url:"policy-life/v1/owners/{0}",method:d,module:s},{endpoint:E.GET_ADHERENTS_BY_OWNER,serviceName:"owners/adherents",url:"policy-life/v1/owners/{0}/adherents",method:d,module:s},{endpoint:E.SEARCH_ACCOUNT_OFFICERS,serviceName:"account-officers",url:"intermediary/v1/account-officers",method:d,module:u},{endpoint:E.CREATE_PRODUCT,serviceName:"configurator-product-creation",url:"policy-life/v1/products",method:p,module:"CONFIGURATOR_MODULE"}];function h(e){return h="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},h(e)}function f(){f=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof T?t:T,a=Object.create(i.prototype),l=new b(n||[]);return o(a,"_invoke",{value:C(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",m="suspendedYield",E="executing",v="completed",y={};function T(){}function _(){}function A(){}var N={};c(N,a,(function(){return this}));var S=Object.getPrototypeOf,I=S&&S(S(G([])));I&&I!==r&&n.call(I,a)&&(N=I);var O=A.prototype=T.prototype=Object.create(N);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,l){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==h(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=p;return function(i,a){if(o===E)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=P(l,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function G(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(h(t)+" is not iterable")}return _.prototype=A,o(O,"constructor",{value:A,configurable:!0}),o(A,"constructor",{value:_,configurable:!0}),_.displayName=c(A,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,c(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},g(R.prototype),c(R.prototype,l,(function(){return this})),t.AsyncIterator=R,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new R(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(O),c(O,u,"Generator"),c(O,a,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=G,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:G(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function y(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}var T=function(e,t){try{var n={title:"",errors:[]};if(t instanceof r.AxiosError){var o,i,a=t.response,l=a.status,u=null===(o=JSON.parse(localStorage.getItem("modules_info")).find((function(t){return t.code===e.module})))||void 0===o||null===(o=o.services)||void 0===o||null===(o=o.find((function(t){return t.name.toUpperCase()===e.serviceName.toUpperCase()&&t.httpMethod.toUpperCase()===e.method.toUpperCase()})))||void 0===o?void 0:o.errors.find((function(e){return e.httpStatus===l}));n.title=(null==u?void 0:u.content)||a.data.message;var c=null===(i=a.data.errorMessages)||void 0===i?void 0:i.map((function(e){var t,r=null==u||null===(t=u.subErrors)||void 0===t?void 0:t.find((function(t){return t.errorType===e.fieldError&&t.fieldName===e.fieldName}));return(null==r?void 0:r.content)||(null==e?void 0:e.error)}));n.errors=c||[]}else n.title=t.message}catch(t){throw console.error(t),t}},_=function(e,t){return t?e.replace(/{(\d+)}/g,(function(e,r){return t[r]?t[r]:e})):e},A=function(){var e,t=(e=f().mark((function e(t,r){var o,i,a,l,u=arguments;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=u.length>2&&void 0!==u[2]?u[2]:null,i=v.find((function(e){return e.endpoint===t})),e.prev=2,i){e.next=5;break}throw new Error("Service does not exists");case 5:a=_(i.url,r),e.t0=i.method,e.next=e.t0===d?9:e.t0===p?13:e.t0===m?17:"DELETE"===e.t0?21:25;break;case 9:return e.next=11,n.get(a,{params:o});case 11:case 15:case 19:case 23:return l=e.sent,e.abrupt("return",l.data);case 13:return e.next=15,n.post(a,o);case 17:return e.next=19,n.put(a,o);case 21:return e.next=23,n.delete(a,o);case 25:throw l=null,new Error("Request error: Method not allowed. Only use GET, POST, PUT, DELETE");case 27:e.next=33;break;case 29:throw e.prev=29,e.t1=e.catch(2),T(i,e.t1),e.t1;case 33:case"end":return e.stop()}}),e,null,[[2,29]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){y(i,n,o,a,l,"next",e)}function l(e){y(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}();function N(e){return N="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},N(e)}function S(){S=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new b(n||[]);return o(a,"_invoke",{value:C(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",m="suspendedYield",E="executing",v="completed",h={};function f(){}function y(){}function T(){}var _={};c(_,a,(function(){return this}));var A=Object.getPrototypeOf,I=A&&A(A(G([])));I&&I!==r&&n.call(I,a)&&(_=I);var O=T.prototype=f.prototype=Object.create(_);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,l){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==N(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=p;return function(i,a){if(o===E)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=P(l,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function G(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(N(t)+" is not iterable")}return y.prototype=T,o(O,"constructor",{value:T,configurable:!0}),o(T,"constructor",{value:y,configurable:!0}),y.displayName=c(T,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,c(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},g(R.prototype),c(R.prototype,l,(function(){return this})),t.AsyncIterator=R,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new R(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(O),c(O,u,"Generator"),c(O,a,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=G,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:G(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function I(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}var O=function(){var e,t=(e=S().mark((function e(t){var r,n;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={values:null==t||null===(r=t.claims)||void 0===r?void 0:r.map((function(e){return{claimNumber:e.claimNumber.toString(),policyNumber:e.policyNumber,creationDate:e.claimDate,status:{name:e.status,code:"N/A"}}}))},e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){I(i,n,o,a,l,"next",e)}function l(e){I(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function g(e){return g="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},g(e)}function R(){R=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new b(n||[]);return o(a,"_invoke",{value:C(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",m="suspendedYield",E="executing",v="completed",h={};function f(){}function y(){}function T(){}var _={};c(_,a,(function(){return this}));var A=Object.getPrototypeOf,N=A&&A(A(G([])));N&&N!==r&&n.call(N,a)&&(_=N);var S=T.prototype=f.prototype=Object.create(_);function I(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,l){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==g(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=p;return function(i,a){if(o===E)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=P(l,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function G(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(g(t)+" is not iterable")}return y.prototype=T,o(S,"constructor",{value:T,configurable:!0}),o(T,"constructor",{value:y,configurable:!0}),y.displayName=c(T,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},I(O.prototype),c(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=G,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:G(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function C(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function P(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){C(i,n,o,a,l,"next",e)}function l(e){C(i,n,o,a,l,"throw",e)}a(void 0)}))}}var D=function(){var e=P(R().mark((function e(t){var r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={total:t.insureds.length,totalActive:null,values:t.insureds.map((function(e){return{code:e.code,number:e.id,firstName:e.firstName||e.name,lastName:e.lastName,type:{code:"T"===e.role.code?"OWNER":"ADHERENT",name:"T"===e.role.code?"Titular":"Adherente"},status:{code:"ACTIVE",name:"Activo"},insuredAmount:e.insuredAmount,inclusionDate:e.entranceDate,exclusionDate:e.cancellationDate,identification:{value:e.identification.number,type:{name:e.identification.type.name,code:e.identification.type.code}}}}))},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=P(R().mark((function e(t){var r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={values:t.endorsements.map((function(e){return{number:e.number,validityFrom:e.dateFrom?moment(e.dateFrom,"DD/MM/YYYY").toISOString():null,validityTo:e.dateTo?moment(e.dateTo,"DD/MM/YYYY").toISOString():null,activeDate:"N/A",type:{code:"N/A",name:e.detail,group:{code:"N/A",name:"N/A"}}}})),total:t.endorsements.length},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=P(R().mark((function e(t){var r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={values:t.policies.map((function(e){var t,r,n,o,i,a,l,u;return{number:e.number,validityFrom:e.issueDate?moment(e.issueDate,"DD/MM/YYYY").toISOString():null,validityTo:"N/A",ingress:e.issueDate?moment(e.issueDate,"DD/MM/YYYY").toISOString():null,holder:{name:(null===(t=e.holder)||void 0===t?void 0:t.name)||(null===(r=e.holder)||void 0===r?void 0:r.firstName),identifications:{values:[{value:(null===(n=e.holder)||void 0===n||null===(n=n.identification)||void 0===n?void 0:n.number)||null,type:{name:(null===(o=e.holder)||void 0===o||null===(o=o.identification)||void 0===o||null===(o=o.type)||void 0===o?void 0:o.name)||null,code:(null===(i=e.holder)||void 0===i||null===(i=i.identification)||void 0===i||null===(i=i.type)||void 0===i?void 0:i.code)||null},default:!0}]}},code:"N/A",alias:"N/A",product:{code:(null===(a=e.section)||void 0===a?void 0:a.code.toString())||null,name:(null===(l=e.section)||void 0===l?void 0:l.name)||null,subsection:{name:"N/A",code:"N/A",section:{name:"N/A",code:"N/A"}}},process:{name:(null===(u=e.status)||void 0===u?void 0:u.name)||null,code:"N/A"}}})),total:t.totalRecord||null},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),G=function(){var e=P(R().mark((function e(t){var r,n,o,i,a,l,u,c,s,d,p,m,E,v,h,f,y,T,_,A,N,S,I,O,g,C,P,D,L,b,G,w;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w={policyData:{number:(null==t?void 0:t.number)||null,alias:"N/A",currency:{name:(null==t||null===(r=t.currency)||void 0===r?void 0:r.name)||null,code:(null==t||null===(n=t.currency)||void 0===n?void 0:n.code)||null,mnemonic:"N/A",symbol:(null==t||null===(o=t.currency)||void 0===o?void 0:o.symbol)||null},validity:{type:{name:(null==t||null===(i=t.currency)||void 0===i?void 0:i.name)||null,code:(null==t||null===(a=t.currency)||void 0===a?void 0:a.code)||null,months:"N/A"},dateFrom:null!=t&&t.vigencyDateFrom?moment(t.vigencyDateFrom,"YYYY/MM/DD").toISOString():null,dateTo:null!=t&&t.vigencyDateTo?moment(t.vigencyDateTo,"YYYY/MM/DD").toISOString():null},creationDate:null!=t&&t.issueDate?moment(t.issueDate,"YYYY/MM/DD").toISOString():null,renewable:!0,process:{name:(null==t||null===(l=t.status)||void 0===l?void 0:l.name)||null,code:"N/A"}},roleData:{holder:{partyCode:(null==t||null===(u=t.holder)||void 0===u?void 0:u.code)||null,name:null!=t&&null!==(c=t.holder)&&void 0!==c&&c.firstName&&null!=t&&null!==(s=t.holder)&&void 0!==s&&s.lastName?"".concat(t.holder.firstName," ").concat(t.holder.lastName):(null==t||null===(d=t.holder)||void 0===d?void 0:d.name)||null,identification:{value:(null==t||null===(p=t.holder)||void 0===p||null===(p=p.identification)||void 0===p?void 0:p.number)||null,type:{code:(null==t||null===(m=t.holder)||void 0===m||null===(m=m.identification)||void 0===m||null===(m=m.type)||void 0===m?void 0:m.code)||null,name:(null==t||null===(E=t.holder)||void 0===E||null===(E=E.identification)||void 0===E||null===(E=E.type)||void 0===E?void 0:E.name)||null}}},contacts:[{partyCode:"N/A",name:"N/A",identification:{value:"N/A",type:{name:"N/A",code:"N/A"}}}],legalResponsible:{partyCode:"N/A",name:"N/A",identification:{value:"N/A",type:{name:"N/A",code:"N/A"}}}},collectionData:{holderDistribution:0,insuredDistribution:0,paymentFrequency:{name:(null==t||null===(v=t.paymentMethod)||void 0===v||null===(v=v.periodicity)||void 0===v?void 0:v.name)||null,code:"N/A"},paymentMethodData:{cashMethodData:"CASH"===(null==t||null===(h=t.paymentMethod)||void 0===h?void 0:h.name)?{values:[{code:"N/A",name:(null==t||null===(f=t.currency)||void 0===f?void 0:f.name)||null}]}:null,bankAccountData:"CBU"===(null==t||null===(y=t.paymentMethod)||void 0===y?void 0:y.name)?{values:[{code:"BA-1",number:"1",cbu:(null==t||null===(T=t.paymentMethod)||void 0===T?void 0:T.bankAccountNumber)||null,alias:"N/A",currency:{code:"N/A",name:(null==t||null===(_=t.currency)||void 0===_?void 0:_.name)||null},bankBranch:{name:"N/A",code:"N/A",bank:{name:"N/A",code:"N/A"}},bankAccountType:{name:"N/A",code:"N/A"}}]}:null,creditCardData:"CREDIT"===(null==t||null===(A=t.paymentMethod)||void 0===A?void 0:A.name)?{values:[{code:"N/A",ownerName:"N/A",cardType:{name:"N/A",code:"N/A"},cardProvider:{name:"N/A",code:"N/A"},number:"N/A",securityCode:"N/A",dateTo:"N/A"}]}:null}},commercialStructureData:{data:{name:"N/A",code:"N/A",version:0,description:"N/A",status:{name:"N/A",code:"N/A"}},intermediaries:{values:[{code:(null==t||null===(N=t.intermediary)||void 0===N||null===(N=N.code)||void 0===N?void 0:N.toString())||null,name:(null==t||null===(S=t.intermediary)||void 0===S?void 0:S.name)||null,licence:"N/A",role:{name:"N/A",code:"N/A"},status:{name:"N/A",code:"N/A"}}]}},productData:{name:(null==t||null===(I=t.product)||void 0===I?void 0:I.name)||null,code:(null==t||null===(O=t.product)||void 0===O?void 0:O.code)||null,version:0,subsection:{name:"N/A",code:"N/A",section:{name:(null==t||null===(g=t.section)||void 0===g?void 0:g.name)||null,code:(null==t||null===(C=t.section)||void 0===C?void 0:C.code)||null}},status:{name:(null==t||null===(P=t.status)||void 0===P?void 0:P.name)||null,code:"N/A"}},coverageData:{coverages:(null==t||null===(D=t.insured)||void 0===D||null===(D=D.coverages)||void 0===D?void 0:D.map((function(e){return{coverage:{name:(null==e?void 0:e.name)||null,code:"N/A",calculatorType:{name:"N/A",code:"N/A"},type:{name:"N/A",code:"N/A"}},values:[{type:{name:"N/A",code:"N/A"},maxValue:"N/A",minValue:"N/A"}],mortalityTable:{name:"N/A",code:"N/A"},ageType:{name:"N/A",code:"N/A"}}})))||[]},expenseData:{values:[]},wordingData:{wordings:[]},termData:{values:[]},documentationData:{files:[],comments:"N/A"},endorsementData:{number:(null==t?void 0:t.endorsementNumber)||0,validityFrom:"N/A",validityTo:"N/A",type:{name:"N/A",code:"N/A"}},insurableData:{minimumQuantityInsured:0,estimatedDeadline:(null==t||null===(L=t.insured)||void 0===L?void 0:L.entranceDate)||null,minimumAge:0,maximumAge:0,maximumQuantityInsuredByEvent:0,maximumAmountToIndemnify:"N/A",insurables:null!=t&&t.insured?[{type:{name:(null==t||null===(b=t.insured)||void 0===b||null===(b=b.type)||void 0===b?void 0:b.name)||null,code:(null==t||null===(G=t.insured)||void 0===G||null===(G=G.type)||void 0===G?void 0:G.code)||null},wording:"N/A",minimumEntryAge:0,maximumEntryAge:0,endingAgePrincipalCoverage:0,endingAgeAditionalCoverage:0}]:null}},e.abrupt("return",w);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=P(R().mark((function e(t){var r,n,o,i,a,l,u,c,s,d,p,m,E,v,h,f,y,T,_,A,N,S,I,O,g,C,P,D,L,b,G,w;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w={policyData:{number:(null==t?void 0:t.number)||null,alias:"N/A",currency:{name:(null==t||null===(r=t.currency)||void 0===r?void 0:r.name)||null,code:(null==t||null===(n=t.currency)||void 0===n?void 0:n.code)||null,mnemonic:"N/A",symbol:(null==t||null===(o=t.currency)||void 0===o?void 0:o.symbol)||null},validity:{type:{name:(null==t||null===(i=t.currency)||void 0===i?void 0:i.name)||null,code:(null==t||null===(a=t.currency)||void 0===a?void 0:a.code)||null,months:"N/A"},dateFrom:null!=t&&t.vigencyDateFrom?moment(t.vigencyDateFrom,"YYYY/MM/DD").toISOString():null,dateTo:null!=t&&t.vigencyDateTo?moment(t.vigencyDateTo,"YYYY/MM/DD").toISOString():null},creationDate:null!=t&&t.issueDate?moment(t.issueDate,"YYYY/MM/DD").toISOString():null,renewable:!0,process:{name:(null==t||null===(l=t.status)||void 0===l?void 0:l.name)||null,code:"N/A"}},roleData:{holder:{partyCode:(null==t||null===(u=t.holder)||void 0===u?void 0:u.code)||null,name:null!=t&&null!==(c=t.holder)&&void 0!==c&&c.firstName&&null!=t&&null!==(s=t.holder)&&void 0!==s&&s.lastName?"".concat(t.holder.firstName," ").concat(t.holder.lastName):(null==t||null===(d=t.holder)||void 0===d?void 0:d.name)||null,identification:{value:(null==t||null===(p=t.holder)||void 0===p||null===(p=p.identification)||void 0===p?void 0:p.number)||null,type:{code:(null==t||null===(m=t.holder)||void 0===m||null===(m=m.identification)||void 0===m||null===(m=m.type)||void 0===m?void 0:m.code)||null,name:(null==t||null===(E=t.holder)||void 0===E||null===(E=E.identification)||void 0===E||null===(E=E.type)||void 0===E?void 0:E.name)||null}}},contacts:[{partyCode:"N/A",name:"N/A",identification:{value:"N/A",type:{name:"N/A",code:"N/A"}}}],legalResponsible:{partyCode:"N/A",name:"N/A",identification:{value:"N/A",type:{name:"N/A",code:"N/A"}}}},collectionData:{holderDistribution:0,insuredDistribution:0,paymentFrequency:{name:(null==t||null===(v=t.paymentMethod)||void 0===v||null===(v=v.periodicity)||void 0===v?void 0:v.name)||null,code:"N/A"},paymentMethodData:{cashMethodData:"CASH"===(null==t||null===(h=t.paymentMethod)||void 0===h?void 0:h.name)?{values:[{code:"N/A",name:(null==t||null===(f=t.currency)||void 0===f?void 0:f.name)||null}]}:null,bankAccountData:"CBU"===(null==t||null===(y=t.paymentMethod)||void 0===y?void 0:y.name)?{values:[{code:"BA-1",number:"1",cbu:(null==t||null===(T=t.paymentMethod)||void 0===T?void 0:T.bankAccountNumber)||null,alias:"N/A",currency:{code:"N/A",name:(null==t||null===(_=t.currency)||void 0===_?void 0:_.name)||null},bankBranch:{name:"N/A",code:"N/A",bank:{name:"N/A",code:"N/A"}},bankAccountType:{name:"N/A",code:"N/A"}}]}:null,creditCardData:"CREDIT"===(null==t||null===(A=t.paymentMethod)||void 0===A?void 0:A.name)?{values:[{code:"N/A",ownerName:"N/A",cardType:{name:"N/A",code:"N/A"},cardProvider:{name:"N/A",code:"N/A"},number:"N/A",securityCode:"N/A",dateTo:"N/A"}]}:null}},commercialStructureData:{data:{name:"N/A",code:"N/A",version:0,description:"N/A",status:{name:"N/A",code:"N/A"}},intermediaries:{values:[{code:(null==t||null===(N=t.intermediary)||void 0===N||null===(N=N.code)||void 0===N?void 0:N.toString())||null,name:(null==t||null===(S=t.intermediary)||void 0===S?void 0:S.name)||null,licence:"N/A",role:{name:"N/A",code:"N/A"},status:{name:"N/A",code:"N/A"}}]}},productData:{name:(null==t||null===(I=t.product)||void 0===I?void 0:I.name)||null,code:(null==t||null===(O=t.product)||void 0===O?void 0:O.code)||null,version:0,subsection:{name:"N/A",code:"N/A",section:{name:(null==t||null===(g=t.section)||void 0===g?void 0:g.name)||null,code:(null==t||null===(C=t.section)||void 0===C?void 0:C.code)||null}},status:{name:(null==t||null===(P=t.status)||void 0===P?void 0:P.name)||null,code:"N/A"}},coverageData:{coverages:(null==t||null===(D=t.insured)||void 0===D||null===(D=D.coverages)||void 0===D?void 0:D.map((function(e){return{coverage:{name:(null==e?void 0:e.name)||null,code:"N/A",calculatorType:{name:"N/A",code:"N/A"},type:{name:"N/A",code:"N/A"}},values:[{type:{name:"N/A",code:"N/A"},maxValue:"N/A",minValue:"N/A"}],mortalityTable:{name:"N/A",code:"N/A"},ageType:{name:"N/A",code:"N/A"}}})))||[]},expenseData:{values:[]},wordingData:{wordings:[]},termData:{values:[]},documentationData:{files:[],comments:"N/A"},endorsementData:{number:(null==t?void 0:t.endorsementNumber)||0,validityFrom:"N/A",validityTo:"N/A",type:{name:"N/A",code:"N/A"}},insurableData:{minimumQuantityInsured:0,estimatedDeadline:(null==t||null===(L=t.insured)||void 0===L?void 0:L.entranceDate)||null,minimumAge:0,maximumAge:0,maximumQuantityInsuredByEvent:0,maximumAmountToIndemnify:"N/A",insurables:null!=t&&t.insured?[{type:{name:(null==t||null===(b=t.insured)||void 0===b||null===(b=b.type)||void 0===b?void 0:b.name)||null,code:(null==t||null===(G=t.insured)||void 0===G||null===(G=G.type)||void 0===G?void 0:G.code)||null},wording:"N/A",minimumEntryAge:0,maximumEntryAge:0,endingAgePrincipalCoverage:0,endingAgeAditionalCoverage:0}]:null}},e.abrupt("return",w);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Y(e){return Y="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},Y(e)}function M(){M=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new D(n||[]);return o(a,"_invoke",{value:g(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",m="suspendedYield",E="executing",v="completed",h={};function f(){}function y(){}function T(){}var _={};c(_,a,(function(){return this}));var A=Object.getPrototypeOf,N=A&&A(A(L([])));N&&N!==r&&n.call(N,a)&&(_=N);var S=T.prototype=f.prototype=Object.create(_);function I(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,l){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==Y(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function g(t,r,n){var o=p;return function(i,a){if(o===E)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=R(l,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Y(t)+" is not iterable")}return y.prototype=T,o(S,"constructor",{value:T,configurable:!0}),o(T,"constructor",{value:y,configurable:!0}),y.displayName=c(T,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},I(O.prototype),c(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=L,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function x(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function U(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){x(i,n,o,a,l,"next",e)}function l(e){x(i,n,o,a,l,"throw",e)}a(void 0)}))}}var j=function(){var e=U(M().mark((function e(t){var r;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={quotations:t.quotations.map((function(e){var t,r;return{code:e.quotationNumber||null,creationDate:"N/A",email:"N/A",expirationDate:"N/A",number:e.activityCode||null,paymentFrequency:{name:"N/A",code:"N/A"},product:{code:(null===(t=e.productCode)||void 0===t?void 0:t.toString())||null,name:"N/A",subsection:{code:"N/A",name:"N/A",section:{code:(null===(r=e.sectionCode)||void 0===r?void 0:r.toString())||null,name:"N/A"}},version:0},status:{code:"N/A",name:"N/A"}}})),total:t.quotations.length},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=U(M().mark((function e(t){var r,n,o,i;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={code:(null===(r=t.quotationNumber)||void 0===r?void 0:r.toString())||null,number:t.activityCode||0,creationDate:t.vigencyDateFrom||null,expirationDate:t.vigencyDateTo||null,validity:{code:"N/A",name:"N/A",months:"N/A"},status:{code:"N/A",name:"N/A"},paymentFrequency:{name:"N/A",code:"N/A",months:0},email:"N/A",phone:"N/A",intermediary:{code:"N/A",name:"N/A",roles:{}},commercialStructure:{data:{name:"N/A",code:"N/A",version:0,description:"N/A",status:{name:"N/A",code:"N/A"}},intermediaries:{values:[{code:"N/A",name:"N/A",licence:"N/A",role:{name:"N/A",code:"N/A"},status:{name:"N/A",code:"N/A"},group:{name:"N/A",code:"N/A"}}]}},product:{name:"N/A",code:(null==t||null===(n=t.productCode)||void 0===n?void 0:n.toString())||null,version:0,subsection:{name:"N/A",code:"N/A",section:{name:"N/A",code:(null==t||null===(o=t.sectionCode)||void 0===o?void 0:o.toString())||null,type:{name:"N/A",code:"N/A"},category:{name:"N/A",code:"N/A"}}},status:{code:"N/A",name:"N/A"},currency:{name:"N/A",code:"N/A",mnemonic:"N/A",symbol:"N/A"}},productSegment:{coverages:[],expenses:[],name:"N/A",code:"N/A",version:0,description:"N/A"},values:{risks:[{code:"N/A",coverages:[{code:"N/A",name:"N/A",deductible:{name:"N/A",code:"N/A",value:0,appliedValue:0},economicValues:[{type:{name:"N/A",code:"N/A"},value:0}],coverageValues:[{type:{name:"N/A",code:"N/A"},value:0}]}],data:{},adherents:[{code:"N/A",coverages:[{code:"N/A",name:"N/A",deductible:{name:"N/A",code:"N/A",value:0,appliedValue:0},economicValues:[{type:"N/A",code:"N/A"}],coverageValues:[{type:{name:"N/A",code:"N/A"},value:0}]}],data:{}}]}],expenses:[{type:{name:"N/A",code:"N/A"},value:0}],groupedEconomicValues:[{type:{name:"N/A",code:"N/A"},value:0}],commercialAgreement:{}}},e.abrupt("return",i);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F="GET",B="POST",H={GET_INSUREDS:{default:{url:"policy-life/v1/policies/{0}/insureds",method:F,source:"https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy/{0}/{1}/policy-insured",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-insureds",requestMapper:function(e){return{number:(t=e).code||void 0,firstName:t.name||void 0,page:t.page||void 0,pageSize:t.pageSize||void 0};var t},responseMapper:function(e){return D(e)}}},GET_ENDORSEMENTS:{default:{url:"policy/v1/policies/{0}/endorsements",method:F,source:"https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1endorsements/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy/{0}/{1}/endorsements",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-policy-number-section-code-endorsements",requestMapper:null,responseMapper:function(e){return L(e)}}},GET_POLICIES:{default:{url:"policy/v1/policies",method:F,source:"https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-pagenumber-pagenumber-sort-sort-ordertype-ordertype-pagesize-p",requestMapper:function(e){return{mappedParams:(t=e,{sort:t.sort||"TomadorCodigo",orderType:t.orderType||"desc",page:t.page||void 0,pageSize:t.pageSize||void 0,allPolicies:t.allPolicies||!0})};var t},responseMapper:function(e){return b(e)}}},GET_POLICY_LIFE_INDIVIDUAL_DETAIL:{default:{url:"policy-life/v1/policies/{0}/details",method:F,source:"https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy-individual/{0}/{1}/detail",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",requestMapper:null,responseMapper:function(e){return G(e)}}},GET_POLICY_LIFE_COLLECTIVE_DETAIL:{default:{url:"policy-life/v1/policies/{0}/details",method:F,source:"https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy-individual/{0}/{1}/detail",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",requestMapper:null,responseMapper:function(e){return w(e)}}},GET_POLICY_HOME_INDIVIDUAL_DETAIL:{default:{url:"policy-home/v1/policies/{0}/details",method:F,source:"https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy-individual/{0}/{1}/detail",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",requestMapper:null,responseMapper:function(e){return G(e)}}},GET_POLICY_HOME_COLLECTIVE_DETAIL:{default:{url:"policy-home/v1/policies/{0}/details",method:F,source:"https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy-individual/{0}/{1}/detail",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",requestMapper:null,responseMapper:function(e){return w(e)}}},GET_CLAIMS:{default:{url:"claim/v1/claims",method:F,source:"https://apidoc.sysone.com/claim/v1/open-api.html",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"claim/v1/claim",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=claim-api&operation=get-v1-claim-pagenumber-pagenumber-pagesize-pagesize",requestMapper:null,responseMapper:function(e){return O(e)}}},GET_QUOTATIONS:{default:{url:"quotation/v1/quotations",method:F,source:"https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"quotation/v1/quotation/variable-plan",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-quotation-variable-plan",requestMapper:function(e){return e},responseMapper:function(e){return j(e)}}},GET_QUOTATION_BY_CODE:{default:{url:"quotation/v1/quotations/{0}",method:F,source:"https://apidoc.sysone.com/quotation/v1/open-api.html#/paths/~1v1~1quotations~1%7Bcode%7D/get",requestMapper:function(e){return{mappedParams:e}},responseMapper:function(e){return e}},cnp:{url:"quotation/v1/quotation/standard-plan/{0}",method:F,source:"https://developers-test.cnp.com.ar/api-details#api=quotation-api&operation=get-v1-quotation-standard-plan-number",requestMapper:function(e){return e},responseMapper:function(e){return k(e)}}},GET_PAYMENT_METHODS:{},POST_INSURED_UPDATE:{default:{url:"policy-life/v1/policies/{0}/insureds",method:B,requestMapper:null,source:"https://apidoc.sysone.com/policy-life/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1insureds/post",responseMapper:function(e){return e}},cnp:{url:"v1/policy-collective/{0}/{1}/insureds",method:B,requestMapper:null,source:"https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=post-v1-policy-collective-policy-number-section-code-insureds",responseMapper:function(e){return{salary:"string"==typeof(t=e).salary?t.salary:String(t.salary),identification:"string"==typeof t.identification?t.identification:String(t.identification)};var t}}},CREATE_INSURED:{}};function q(e){return q="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},q(e)}function V(){V=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new D(n||[]);return o(a,"_invoke",{value:g(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",m="suspendedYield",E="executing",v="completed",h={};function f(){}function y(){}function T(){}var _={};c(_,a,(function(){return this}));var A=Object.getPrototypeOf,N=A&&A(A(L([])));N&&N!==r&&n.call(N,a)&&(_=N);var S=T.prototype=f.prototype=Object.create(_);function I(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,l){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==q(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function g(t,r,n){var o=p;return function(i,a){if(o===E)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=R(l,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(q(t)+" is not iterable")}return y.prototype=T,o(S,"constructor",{value:T,configurable:!0}),o(T,"constructor",{value:y,configurable:!0}),y.displayName=c(T,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},I(O.prototype),c(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=L,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){X(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function K(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function X(e,t,r){return(t=function(e){var t=function(e){if("object"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==q(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Q={default:{baseURL:"https://app-dev.sysone.com/",headers:X(X(X({},"X-Tenant","sysone"),"X-User","sysone"),"X-Api-Key","PYRxE7iBUFCFcDmTwIFGEkvSMzJ88hSU4uWG0DL0ebk1CYVamsa6phIlsECQQMqkM0XXtZ5K1L85cyr3MgkIhtjlIh4niBsagiVRjzIaqNKxSU2N8Y7KaZLItDB2oDTc")},cnp:{baseURL:"http://api-test.cnp.com.ar/",headers:X(X(X(X({},"X-Chanel","cnp"),"X-Agent","1191"),"X-Client","cnp"),"Ocp-Apim-Subscription-Key","5e0a100bd5804b058fc119729177cefd")}},z=function(){var e,t=(e=V().mark((function e(t,r,o){var i,a,l,u,c,s,d,p,m,E,v,h,f,y=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=y.length>3&&void 0!==y[3]?y[3]:null,e.prev=1,c=null!==(a=(u=H[t])[r])&&void 0!==a?a:u.default,s=null!==(l=Q[r])&&void 0!==l?l:Q.default,d=J(c.url,o),e.t0=c.method,e.next=e.t0===F?9:e.t0===B?15:"PUT"===e.t0?21:"DELETE"===e.t0?25:29;break;case 9:return m=c.requestMapper(i),E=m.mappedParams,e.next=13,n.get(d,Z(Z({},s),{},{params:E}));case 13:case 19:case 23:case 27:return p=e.sent,e.abrupt("return",c.responseMapper(p.data));case 15:return m=c.requestMapper(i),h=(v=m).mappedPostParams,f=v.mappedPostBody,e.next=19,n.post(d,h,f);case 21:return e.next=23,n.put(d,i);case 25:return e.next=27,n.delete(d,i);case 29:throw p=null,new Error("Request error: Method not allowed. Only use GET, POST, PUT, DELETE");case 31:e.next=36;break;case 33:throw e.prev=33,e.t1=e.catch(1),e.t1;case 36:case"end":return e.stop()}}),e,null,[[1,33]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){K(i,n,o,a,l,"next",e)}function l(e){K(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}(),J=function(e,t){return t?e.replace(/{(\d+)}/g,(function(e,r){return t[r]?t[r]:e})):e};module.exports=t})();
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClaims_CNP } from "./modules/claim";
|
|
2
|
-
import { getEndorsements_CNP, getInsureds_CNP, getInsureds_CNP_Request, getPolicies_CNP, getPolicyCollectiveDetail_CNP, getPolicyDetail_CNP, postInsureds_CNP } from "./modules/policy";
|
|
2
|
+
import { getEndorsements_CNP, getInsureds_CNP, getInsureds_CNP_Request, getPolicies_CNP, getPolicies_CNP_Request, getPolicyCollectiveDetail_CNP, getPolicyDetail_CNP, postInsureds_CNP } from "./modules/policy";
|
|
3
3
|
import { getQuotationByCode, getQuotationsList } from "./modules/quotation";
|
|
4
4
|
|
|
5
5
|
export const methods = {
|
|
@@ -32,7 +32,7 @@ export const tenantsConfig = {
|
|
|
32
32
|
url: 'policy/v1/policies/{0}/endorsements',
|
|
33
33
|
method: methods.GET,
|
|
34
34
|
source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1endorsements/get',
|
|
35
|
-
requestMapper:
|
|
35
|
+
requestMapper: request => ({ mappedParams: request }),
|
|
36
36
|
responseMapper: (response) => response,
|
|
37
37
|
},
|
|
38
38
|
cnp: {
|
|
@@ -55,12 +55,12 @@ export const tenantsConfig = {
|
|
|
55
55
|
url: 'policy/v1/policy',
|
|
56
56
|
method: methods.GET,
|
|
57
57
|
source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-pagenumber-pagenumber-sort-sort-ordertype-ordertype-pagesize-p",
|
|
58
|
-
requestMapper:
|
|
58
|
+
requestMapper: request => ({ mappedParams: getPolicies_CNP_Request(request) }),
|
|
59
59
|
responseMapper: (response) => getPolicies_CNP(response),
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
GET_POLICY_LIFE_INDIVIDUAL_DETAIL: {
|
|
64
64
|
default: {
|
|
65
65
|
url: 'policy-life/v1/policies/{0}/details',
|
|
66
66
|
method: methods.GET,
|
|
@@ -77,7 +77,7 @@ export const tenantsConfig = {
|
|
|
77
77
|
},
|
|
78
78
|
},
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
GET_POLICY_LIFE_COLLECTIVE_DETAIL: {
|
|
81
81
|
default: {
|
|
82
82
|
url: 'policy-life/v1/policies/{0}/details',
|
|
83
83
|
method: methods.GET,
|
|
@@ -94,6 +94,40 @@ export const tenantsConfig = {
|
|
|
94
94
|
},
|
|
95
95
|
},
|
|
96
96
|
|
|
97
|
+
GET_POLICY_HOME_INDIVIDUAL_DETAIL: {
|
|
98
|
+
default: {
|
|
99
|
+
url: 'policy-home/v1/policies/{0}/details',
|
|
100
|
+
method: methods.GET,
|
|
101
|
+
source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
|
|
102
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
103
|
+
responseMapper: (response) => response,
|
|
104
|
+
},
|
|
105
|
+
cnp: {
|
|
106
|
+
url: 'policy/v1/policy-individual/{0}/{1}/detail',
|
|
107
|
+
method: methods.GET,
|
|
108
|
+
source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
|
|
109
|
+
requestMapper: null,
|
|
110
|
+
responseMapper: (response) => getPolicyDetail_CNP(response),
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
GET_POLICY_HOME_COLLECTIVE_DETAIL: {
|
|
115
|
+
default: {
|
|
116
|
+
url: 'policy-home/v1/policies/{0}/details',
|
|
117
|
+
method: methods.GET,
|
|
118
|
+
source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies~1%7Bcode%7D~1details/get',
|
|
119
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
120
|
+
responseMapper: (response) => response,
|
|
121
|
+
},
|
|
122
|
+
cnp: {
|
|
123
|
+
url: 'policy/v1/policy-individual/{0}/{1}/detail',
|
|
124
|
+
method: methods.GET,
|
|
125
|
+
source: "https://developers-test.cnp.com.ar/api-details#api=policy-api&operation=get-v1-policy-individual-policy-number-section-code-detail",
|
|
126
|
+
requestMapper: null,
|
|
127
|
+
responseMapper: (response) => getPolicyCollectiveDetail_CNP(response),
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
|
|
97
131
|
GET_CLAIMS: {
|
|
98
132
|
default: {
|
|
99
133
|
url: 'claim/v1/claims',
|