Created
December 2, 2023 10:04
-
-
Save shailen-naidoo/8841e28985649e125c31bd281574279e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 72c72 | |
| < /******/ return __webpack_require__.p + "js/" + ({"0":"chunk-common"}[chunkId]||chunkId) + "." + {"0":"88db0d0e","2":"03c3490d","3":"e5137a23","4":"a4950095","5":"e6b49680","7":"defacd84","8":"8e0b228d","9":"aa8f5968","10":"3e2b01b7","11":"4264ddf2","12":"ad764df8","13":"a61f6e68","14":"bd517efe","15":"e71ecfb0","16":"53d4e16d","17":"30c23269","18":"f462e2fd","19":"74546659","20":"1015f9ed","21":"69538f8a","22":"1666c882","23":"09871330","24":"6fa9b607","25":"f21b9ae4","26":"96d8b303","27":"b1f743b0","28":"eef4ac5a","29":"b0ff6374","30":"e3b832bc","31":"0704ed31","32":"ea7e910a","33":"8a346a78","34":"89853469","35":"e238bf23","36":"d08868f1","37":"8413aaf0","38":"66d8d677","39":"66ec0b89","40":"a10345ff","41":"f7ba6e36","42":"050fdffa","43":"f8258ce8","44":"c14fcc94","45":"398fb442","46":"37b99b87","47":"44741234","48":"2bb7d8e1","49":"6261fa18","50":"24d6e75a","51":"8184eba1","52":"5d348769","53":"0ba7e5df","54":"74fc655d","55":"f6ac783d","56":"d5c9bb90","57":"071cc90a","58":"a6a0c415","59":"75894c4c","60":"98604fd8","61":"19cfd543","62":"fd9b4c5d","63":"39f512c0","64":"8aef8441","65":"31178761","66":"0abe7e72","67":"073ce4b1","68":"271b073e","69":"fd779613","70":"ac51ef48","71":"1d8fd2dc","72":"faf1e178","73":"f09cac31","74":"e7671d22","75":"1a207cbd","76":"c1832db7","77":"7e82f13c","78":"78dbcd1f","79":"b4bcc05e","80":"daf6f4ff"}[chunkId] + ".js" | |
| --- | |
| > /******/ return __webpack_require__.p + "js/" + ({"0":"chunk-common"}[chunkId]||chunkId) + "." + {"0":"ad4ae467","2":"03c3490d","3":"e5137a23","4":"a4950095","5":"e6b49680","7":"defacd84","8":"8e0b228d","9":"d3a7df2c","10":"6609ef4e","11":"08d14ee0","12":"52424d00","13":"9897ee98","14":"a78558fd","15":"f16e026c","16":"73820eff","17":"8cb243a6","18":"2756e845","19":"d0267154","20":"034cdf09","21":"1f2d2cff","22":"a8bf22b6","23":"c06138ad","24":"352bd11c","25":"e69b3d09","26":"4873f0a5","27":"b57e8245","28":"58abdb58","29":"25bd7b16","30":"03be415e","31":"b763072e","32":"6d63df66","33":"33ab42ee","34":"900c63dd","35":"bd19bb13","36":"c08e04a8","37":"8413aaf0","38":"66d8d677","39":"66ec0b89","40":"5761e68e","41":"f7ba6e36","42":"3210f1b5","43":"f8258ce8","44":"c14fcc94","45":"398fb442","46":"37b99b87","47":"44741234","48":"2bb7d8e1","49":"6261fa18","50":"24d6e75a","51":"8184eba1","52":"5d348769","53":"0ba7e5df","54":"74fc655d","55":"f6ac783d","56":"d5c9bb90","57":"071cc90a","58":"a6a0c415","59":"75894c4c","60":"98604fd8","61":"19cfd543","62":"fd9b4c5d","63":"39f512c0","64":"8aef8441","65":"31178761","66":"0abe7e72","67":"073ce4b1","68":"33ffa15a","69":"fd779613","70":"ac51ef48","71":"1d8fd2dc","72":"faf1e178","73":"f09cac31","74":"e7671d22","75":"1a207cbd","76":"c1832db7","77":"7e82f13c","78":"78dbcd1f","79":"b4bcc05e","80":"daf6f4ff"}[chunkId] + ".js" | |
| 106c106 | |
| < /******/ var cssChunks = {"0":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1}; | |
| --- | |
| > /******/ var cssChunks = {"0":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1}; | |
| 110c110 | |
| < /******/ var href = "css/" + ({"0":"chunk-common"}[chunkId]||chunkId) + "." + {"0":"0a0f90dd","2":"31d6cfe0","3":"31d6cfe0","4":"31d6cfe0","5":"31d6cfe0","7":"fe59a2c1","8":"c5b0407e","9":"c6106dbb","10":"56bd29d6","11":"b32b4756","12":"f6dd9973","13":"2eb2a53b","14":"ef1d83e4","15":"34935a25","16":"1658dd98","17":"41a8b9e6","18":"225e559c","19":"44bae7fc","20":"521749b2","21":"d2270a81","22":"3cac6a8f","23":"31d6cfe0","24":"31d6cfe0","25":"31d6cfe0","26":"31d6cfe0","27":"31d6cfe0","28":"31d6cfe0","29":"31d6cfe0","30":"31d6cfe0","31":"31d6cfe0","32":"31d6cfe0","33":"31d6cfe0","34":"31d6cfe0","35":"31d6cfe0","36":"31d6cfe0","37":"31d6cfe0","38":"31d6cfe0","39":"31d6cfe0","40":"31d6cfe0","41":"31d6cfe0","42":"31d6cfe0","43":"31d6cfe0","44":"31d6cfe0","45":"31d6cfe0","46":"31d6cfe0","47":"31d6cfe0","48":"31d6cfe0","49":"31d6cfe0","50":"31d6cfe0","51":"31d6cfe0","52":"31d6cfe0","53":"31d6cfe0","54":"31d6cfe0","55":"31d6cfe0","56":"31d6cfe0","57":"31d6cfe0","58":"31d6cfe0","59":"31d6cfe0","60":"31d6cfe0","61":"31d6cfe0","62":"31d6cfe0","63":"31d6cfe0","64":"31d6cfe0","65":"31d6cfe0","66":"31d6cfe0","67":"31d6cfe0","68":"31d6cfe0","69":"31d6cfe0","70":"31d6cfe0","71":"31d6cfe0","72":"31d6cfe0","73":"31d6cfe0","74":"31d6cfe0","75":"31d6cfe0","76":"31d6cfe0","77":"31d6cfe0","78":"31d6cfe0","79":"31d6cfe0","80":"31d6cfe0"}[chunkId] + ".css"; | |
| --- | |
| > /******/ var href = "css/" + ({"0":"chunk-common"}[chunkId]||chunkId) + "." + {"0":"0a0f90dd","2":"31d6cfe0","3":"31d6cfe0","4":"31d6cfe0","5":"31d6cfe0","7":"fe59a2c1","8":"c5b0407e","9":"7e811b7d","10":"c6106dbb","11":"56bd29d6","12":"b32b4756","13":"f6dd9973","14":"2eb2a53b","15":"ef1d83e4","16":"34935a25","17":"1658dd98","18":"41a8b9e6","19":"225e559c","20":"44bae7fc","21":"521749b2","22":"d2270a81","23":"3cac6a8f","24":"31d6cfe0","25":"31d6cfe0","26":"31d6cfe0","27":"31d6cfe0","28":"31d6cfe0","29":"31d6cfe0","30":"31d6cfe0","31":"31d6cfe0","32":"31d6cfe0","33":"31d6cfe0","34":"31d6cfe0","35":"31d6cfe0","36":"31d6cfe0","37":"31d6cfe0","38":"31d6cfe0","39":"31d6cfe0","40":"31d6cfe0","41":"31d6cfe0","42":"31d6cfe0","43":"31d6cfe0","44":"31d6cfe0","45":"31d6cfe0","46":"31d6cfe0","47":"31d6cfe0","48":"31d6cfe0","49":"31d6cfe0","50":"31d6cfe0","51":"31d6cfe0","52":"31d6cfe0","53":"31d6cfe0","54":"31d6cfe0","55":"31d6cfe0","56":"31d6cfe0","57":"31d6cfe0","58":"31d6cfe0","59":"31d6cfe0","60":"31d6cfe0","61":"31d6cfe0","62":"31d6cfe0","63":"31d6cfe0","64":"31d6cfe0","65":"31d6cfe0","66":"31d6cfe0","67":"31d6cfe0","68":"31d6cfe0","69":"31d6cfe0","70":"31d6cfe0","71":"31d6cfe0","72":"31d6cfe0","73":"31d6cfe0","74":"31d6cfe0","75":"31d6cfe0","76":"31d6cfe0","77":"31d6cfe0","78":"31d6cfe0","79":"31d6cfe0","80":"31d6cfe0"}[chunkId] + ".css"; | |
| 750c750 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(9)]).then(__webpack_require__.bind(null, "9554")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, "9554")) | |
| 775c775 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, "093e")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, "093e")) | |
| 895c895 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(31)]).then(__webpack_require__.bind(null, "1d0e")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(32)]).then(__webpack_require__.bind(null, "1d0e")) | |
| 898c898 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(33)]).then(__webpack_require__.bind(null, "69a5")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(34)]).then(__webpack_require__.bind(null, "69a5")) | |
| 901c901 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(32)]).then(__webpack_require__.bind(null, "488c")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(33)]).then(__webpack_require__.bind(null, "488c")) | |
| 1088,1175c1088,1097 | |
| < | |
| < // EXPORTS | |
| < __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomerService; }); | |
| < | |
| < // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js | |
| < var defineProperty = __webpack_require__("9523"); | |
| < var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty); | |
| < | |
| < // EXTERNAL MODULE: ./node_modules/camelize/index.js | |
| < var camelize = __webpack_require__("654d"); | |
| < var camelize_default = /*#__PURE__*/__webpack_require__.n(camelize); | |
| < | |
| < // EXTERNAL MODULE: ./src/helpers/index.js | |
| < var helpers = __webpack_require__("ce96"); | |
| < | |
| < // EXTERNAL MODULE: ./src/helpers/http.js + 1 modules | |
| < var http = __webpack_require__("825e"); | |
| < | |
| < // EXTERNAL MODULE: ./src/models/index.js + 5 modules | |
| < var models = __webpack_require__("3a34"); | |
| < | |
| < // EXTERNAL MODULE: ./src/services/HTTPService/index.js | |
| < var HTTPService = __webpack_require__("778a"); | |
| < | |
| < // EXTERNAL MODULE: ./src/models/FICAVerificationModel/constants.js | |
| < var constants = __webpack_require__("7a36"); | |
| < | |
| < // CONCATENATED MODULE: ./src/models/FICAVerificationModel/index.js | |
| < | |
| < | |
| < class FICAVerificationModel_FICAVerificationModel { | |
| < constructor({ | |
| < id, | |
| < status, | |
| < riskRating, | |
| < requirements, | |
| < firstName, | |
| < surname, | |
| < idPassportNumber, | |
| < premiumCollectionMethod, | |
| < channel, | |
| < dateOfBirth, | |
| < customerId | |
| < } = {}) { | |
| < defineProperty_default()(this, "id", void 0); | |
| < defineProperty_default()(this, "status", void 0); | |
| < defineProperty_default()(this, "riskRating", void 0); | |
| < defineProperty_default()(this, "requirements", void 0); | |
| < defineProperty_default()(this, "firstName", void 0); | |
| < defineProperty_default()(this, "surname", void 0); | |
| < defineProperty_default()(this, "idPassportNumber", void 0); | |
| < defineProperty_default()(this, "premiumCollectionMethod", void 0); | |
| < defineProperty_default()(this, "channel", void 0); | |
| < defineProperty_default()(this, "dateOfBirth", void 0); | |
| < defineProperty_default()(this, "customerId", void 0); | |
| < this.id = id; | |
| < this.status = status; | |
| < this.riskRating = riskRating; | |
| < this.requirements = requirements; | |
| < this.firstName = firstName; | |
| < this.surname = surname; | |
| < this.idPassportNumber = idPassportNumber; | |
| < this.premiumCollectionMethod = premiumCollectionMethod; | |
| < this.channel = channel; | |
| < this.dateOfBirth = dateOfBirth; | |
| < this.customerId = customerId; | |
| < } | |
| < get isRefreshable() { | |
| < return this.status === constants["a" /* FICA_STATUS */].ERROR.value || this.status === constants["a" /* FICA_STATUS */].PENDING.value; | |
| < } | |
| < get readableRequirements() { | |
| < return this.requirements.map(requirement => constants["c" /* REQUIREMENTS */][requirement].label); | |
| < } | |
| < get isAcceptable() { | |
| < const allowablePassportNumberRegex = /^([A-Za-z]{2}\d{6})$/; | |
| < return this.status === constants["a" /* FICA_STATUS */].VERIFIED.value || allowablePassportNumberRegex.test(this.idPassportNumber) && this.status === constants["a" /* FICA_STATUS */].NONE.value; | |
| < } | |
| < get statusWithRequirements() { | |
| < if (this.requirements.length > 0) { | |
| < const requirementsLabel = this.requirements.map(requirement => constants["c" /* REQUIREMENTS */][requirement].label); | |
| < return `${constants["a" /* FICA_STATUS */][this.status].label}\nRequirements:\n${requirementsLabel.join('\n')}`; | |
| < } | |
| < return constants["a" /* FICA_STATUS */][this.status].label; | |
| < } | |
| < } | |
| < defineProperty_default()(FICAVerificationModel_FICAVerificationModel, "create", ficaVerification => { | |
| < return new FICAVerificationModel_FICAVerificationModel(ficaVerification); | |
| < }); | |
| --- | |
| > /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CustomerService; }); | |
| > /* harmony import */ var _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9523"); | |
| > /* harmony import */ var _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__); | |
| > /* harmony import */ var camelize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("654d"); | |
| > /* harmony import */ var camelize__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(camelize__WEBPACK_IMPORTED_MODULE_1__); | |
| > /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ce96"); | |
| > /* harmony import */ var _helpers_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("825e"); | |
| > /* harmony import */ var _models__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("3a34"); | |
| > /* harmony import */ var _HTTPService__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("778a"); | |
| > /* harmony import */ var _models_FICAVerificationModel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("ecd2"); | |
| 1177d1098 | |
| < // CONCATENATED MODULE: ./src/services/CustomerService/index.js | |
| 1184d1104 | |
| < | |
| 1186,1187c1106,1107 | |
| < defineProperty_default()(CustomerService, "createCustomer", customer => { | |
| < return http["a" /* default */].post('/api/v2/customers', Object(helpers["d" /* snakeize */])(customer)).then(res => models["e" /* CustomerModel */].create(camelize_default()(res.data))); | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "createCustomer", customer => { | |
| > return _helpers_http__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].post('/api/v2/customers', Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[/* snakeize */ "d"])(customer)).then(res => _models__WEBPACK_IMPORTED_MODULE_4__[/* CustomerModel */ "e"].create(camelize__WEBPACK_IMPORTED_MODULE_1___default()(res.data))); | |
| 1189,1190c1109,1110 | |
| < defineProperty_default()(CustomerService, "getCustomer", customerId => { | |
| < return HTTPService["a" /* HTTPService */].get(`/api/v2/customers/${customerId}`).then(res => models["e" /* CustomerModel */].create(camelize_default()(res.data))); | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "getCustomer", customerId => { | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].get(`/api/v2/customers/${customerId}`).then(res => _models__WEBPACK_IMPORTED_MODULE_4__[/* CustomerModel */ "e"].create(camelize__WEBPACK_IMPORTED_MODULE_1___default()(res.data))); | |
| 1192c1112 | |
| < defineProperty_default()(CustomerService, "updateCustomer", (customerId, customerModel) => { | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "updateCustomer", (customerId, customerModel) => { | |
| 1201c1121 | |
| < return HTTPService["a" /* HTTPService */].patch(`/api/v2/customers/${customerId}`, Object(helpers["d" /* snakeize */])(newCustomer)).then(res => models["e" /* CustomerModel */].create(camelize_default()(res.data))); | |
| --- | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].patch(`/api/v2/customers/${customerId}`, Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[/* snakeize */ "d"])(newCustomer)).then(res => _models__WEBPACK_IMPORTED_MODULE_4__[/* CustomerModel */ "e"].create(camelize__WEBPACK_IMPORTED_MODULE_1___default()(res.data))); | |
| 1203,1204c1123,1124 | |
| < defineProperty_default()(CustomerService, "appendNotes", (customerId, notes) => { | |
| < return HTTPService["a" /* HTTPService */].patch(`/api/v2/customers/${customerId}/notes`, { | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "appendNotes", (customerId, notes) => { | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].patch(`/api/v2/customers/${customerId}/notes`, { | |
| 1208c1128 | |
| < defineProperty_default()(CustomerService, "searchForCustomer", (firstName, surname, idPassportNumber, mobileNumber) => { | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "searchForCustomer", (firstName, surname, idPassportNumber, mobileNumber) => { | |
| 1222c1142 | |
| < return HTTPService["a" /* HTTPService */].get('/api/v2/customers/search', Object(helpers["d" /* snakeize */])({ | |
| --- | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].get('/api/v2/customers/search', Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[/* snakeize */ "d"])({ | |
| 1231c1151 | |
| < customers: data.customers.map(customer => models["e" /* CustomerModel */].create(camelize_default()(customer))) | |
| --- | |
| > customers: data.customers.map(customer => _models__WEBPACK_IMPORTED_MODULE_4__[/* CustomerModel */ "e"].create(camelize__WEBPACK_IMPORTED_MODULE_1___default()(customer))) | |
| 1234,1235c1154,1155 | |
| < defineProperty_default()(CustomerService, "canCreate", (idPassportNumber, mobileNumber) => { | |
| < return HTTPService["a" /* HTTPService */].get('/api/v2/customers/can-create', Object(helpers["d" /* snakeize */])({ | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "canCreate", (idPassportNumber, mobileNumber) => { | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].get('/api/v2/customers/can-create', Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[/* snakeize */ "d"])({ | |
| 1246,1247c1166,1167 | |
| < defineProperty_default()(CustomerService, "isIdValid", (idType, idPassportNumber, dateOfBirth) => { | |
| < return HTTPService["a" /* HTTPService */].get('/api/v2/customers/is-id-valid', { | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "isIdValid", (idType, idPassportNumber, dateOfBirth) => { | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].get('/api/v2/customers/is-id-valid', { | |
| 1255,1256c1175,1176 | |
| < defineProperty_default()(CustomerService, "isAllowed", (customerId, policyType) => { | |
| < return HTTPService["a" /* HTTPService */].get(`/api/v2/customers/${customerId}/policies/${policyType}/is-allowed`); | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "isAllowed", (customerId, policyType) => { | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].get(`/api/v2/customers/${customerId}/policies/${policyType}/is-allowed`); | |
| 1258,1259c1178,1179 | |
| < defineProperty_default()(CustomerService, "getFicaVerification", ficaVerificationId => { | |
| < return HTTPService["a" /* HTTPService */].get(`/api/v2/fica-verifications/${ficaVerificationId}`).then(res => FICAVerificationModel_FICAVerificationModel.create(camelize_default()(res.data))); | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "getFicaVerification", ficaVerificationId => { | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].get(`/api/v2/fica-verifications/${ficaVerificationId}`).then(res => _models_FICAVerificationModel__WEBPACK_IMPORTED_MODULE_6__[/* FICAVerificationModel */ "a"].create(camelize__WEBPACK_IMPORTED_MODULE_1___default()(res.data))); | |
| 1261,1262c1181,1182 | |
| < defineProperty_default()(CustomerService, "refreshFicaVerification", ficaVerificationId => { | |
| < return HTTPService["a" /* HTTPService */].put(`/api/v2/fica-verifications/${ficaVerificationId}/refresh`).then(res => FICAVerificationModel_FICAVerificationModel.create(camelize_default()(res.data))); | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "refreshFicaVerification", ficaVerificationId => { | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].put(`/api/v2/fica-verifications/${ficaVerificationId}/refresh`).then(res => _models_FICAVerificationModel__WEBPACK_IMPORTED_MODULE_6__[/* FICAVerificationModel */ "a"].create(camelize__WEBPACK_IMPORTED_MODULE_1___default()(res.data))); | |
| 1264,1265c1184,1185 | |
| < defineProperty_default()(CustomerService, "createFicaVerification", customerId => { | |
| < return HTTPService["a" /* HTTPService */].post(`/api/v2/customers/${customerId}/fica-verification`).then(res => FICAVerificationModel_FICAVerificationModel.create(camelize_default()(res.data))); | |
| --- | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "createFicaVerificationForCustomer", customerId => { | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].post(`/api/v2/customers/${customerId}/fica-verification`).then(res => _models_FICAVerificationModel__WEBPACK_IMPORTED_MODULE_6__[/* FICAVerificationModel */ "a"].create(camelize__WEBPACK_IMPORTED_MODULE_1___default()(res.data))); | |
| 1266a1187,1195 | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(CustomerService, "createFicaVerification", (idPassportNumber, firstName, surname, dateOfBirth, premiumCollectionMethod) => { | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_5__[/* HTTPService */ "a"].post('/api/v2/fica-verifications', Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[/* snakeize */ "d"])({ | |
| > idPassportNumber, | |
| > firstName, | |
| > surname, | |
| > dateOfBirth, | |
| > premiumCollectionMethod | |
| > })).then(res => _models_FICAVerificationModel__WEBPACK_IMPORTED_MODULE_6__[/* FICAVerificationModel */ "a"].create(camelize__WEBPACK_IMPORTED_MODULE_1___default()(res.data))); | |
| > }); | |
| 2282c2211 | |
| < component: () => __webpack_require__.e(/* import() */ 23).then(__webpack_require__.bind(null, "7240")), | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 24).then(__webpack_require__.bind(null, "7240")), | |
| 2294c2223 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(24)]).then(__webpack_require__.bind(null, "79b7")), | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(25)]).then(__webpack_require__.bind(null, "79b7")), | |
| 2306c2235 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(34)]).then(__webpack_require__.bind(null, "5596")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(9)]).then(__webpack_require__.bind(null, "5596")) | |
| 2312c2241 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(29)]).then(__webpack_require__.bind(null, "6239")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(30)]).then(__webpack_require__.bind(null, "6239")) | |
| 2316c2245 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(28)]).then(__webpack_require__.bind(null, "f408")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(29)]).then(__webpack_require__.bind(null, "f408")) | |
| 2328c2257 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, "786f")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(12)]).then(__webpack_require__.bind(null, "786f")) | |
| 2336c2265 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(16)]).then(__webpack_require__.bind(null, "b6a6")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(17)]).then(__webpack_require__.bind(null, "b6a6")) | |
| 2400c2329 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, "2abb")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(16)]).then(__webpack_require__.bind(null, "2abb")) | |
| 2404c2333 | |
| < component: () => __webpack_require__.e(/* import() */ 27).then(__webpack_require__.bind(null, "38d3")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 28).then(__webpack_require__.bind(null, "38d3")) | |
| 2408c2337 | |
| < component: () => __webpack_require__.e(/* import() */ 30).then(__webpack_require__.bind(null, "8ba9")), | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 31).then(__webpack_require__.bind(null, "8ba9")), | |
| 2418c2347 | |
| < component: () => __webpack_require__.e(/* import() */ 26).then(__webpack_require__.bind(null, "2599")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 27).then(__webpack_require__.bind(null, "2599")) | |
| 2435c2364 | |
| < component: () => __webpack_require__.e(/* import() */ 25).then(__webpack_require__.bind(null, "eb2f")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 26).then(__webpack_require__.bind(null, "eb2f")) | |
| 2447c2376 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(14)]).then(__webpack_require__.bind(null, "6587")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, "6587")) | |
| 2452c2381 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(18)]).then(__webpack_require__.bind(null, "e190")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(19)]).then(__webpack_require__.bind(null, "e190")) | |
| 2456c2385 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(13)]).then(__webpack_require__.bind(null, "e8c8")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(14)]).then(__webpack_require__.bind(null, "e8c8")) | |
| 2461c2390 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(21)]).then(__webpack_require__.bind(null, "2c37")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(22)]).then(__webpack_require__.bind(null, "2c37")) | |
| 2466c2395 | |
| < component: () => __webpack_require__.e(/* import() */ 22).then(__webpack_require__.bind(null, "5dde")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 23).then(__webpack_require__.bind(null, "5dde")) | |
| 2475c2404 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(17)]).then(__webpack_require__.bind(null, "0139")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(18)]).then(__webpack_require__.bind(null, "0139")) | |
| 2480c2409 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(19)]).then(__webpack_require__.bind(null, "3355")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(20)]).then(__webpack_require__.bind(null, "3355")) | |
| 2485c2414 | |
| < component: () => __webpack_require__.e(/* import() */ 20).then(__webpack_require__.bind(null, "35ce")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 21).then(__webpack_require__.bind(null, "35ce")) | |
| 2500c2429 | |
| < component: () => __webpack_require__.e(/* import() */ 12).then(__webpack_require__.bind(null, "f17e")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 13).then(__webpack_require__.bind(null, "f17e")) | |
| 4976c4905 | |
| < release: `lumkani-quasar-app-${sentryStage}@${"4.0.0-rc"}` | |
| --- | |
| > release: `lumkani-quasar-app-${sentryStage}@${"4.0.1"}` | |
| 4980c4909 | |
| < scope.setExtra('appVersion', "4.0.0-rc"); | |
| --- | |
| > scope.setExtra('appVersion', "4.0.1"); | |
| 5303c5232 | |
| < // EXTERNAL MODULE: ./src/components/TakePhotoButton/index.vue + 8 modules | |
| --- | |
| > // EXTERNAL MODULE: ./src/components/TakePhotoButton/index.vue + 7 modules | |
| 6698a6628,6631 | |
| > }, { | |
| > values(entries) { | |
| > return Object.values(entries); | |
| > } | |
| 8108c8041 | |
| < const text = `AgentApp/${"4.0.0-rc"} ${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.name}/${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.version} ${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.platform}`; | |
| --- | |
| > const text = `AgentApp/${"4.0.1"} ${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.name}/${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.version} ${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.platform}`; | |
| 8362a8296 | |
| > /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return RISK_RATING; }); | |
| 8386a8321,8342 | |
| > const RISK_RATING = Object(_helpers__WEBPACK_IMPORTED_MODULE_0__[/* createEnum */ "a"])({ | |
| > NONE: Object(_helpers__WEBPACK_IMPORTED_MODULE_0__[/* createEnum */ "a"])({ | |
| > label: 'None', | |
| > value: 'NONE' | |
| > }), | |
| > LOW: Object(_helpers__WEBPACK_IMPORTED_MODULE_0__[/* createEnum */ "a"])({ | |
| > label: 'Low', | |
| > value: 'LOW' | |
| > }), | |
| > MEDIUM: Object(_helpers__WEBPACK_IMPORTED_MODULE_0__[/* createEnum */ "a"])({ | |
| > label: 'Medium', | |
| > value: 'MEDIUM' | |
| > }), | |
| > HIGH: Object(_helpers__WEBPACK_IMPORTED_MODULE_0__[/* createEnum */ "a"])({ | |
| > label: 'High', | |
| > value: 'HIGH' | |
| > }), | |
| > VERY_HIGH: Object(_helpers__WEBPACK_IMPORTED_MODULE_0__[/* createEnum */ "a"])({ | |
| > label: 'Very High', | |
| > value: 'VERY_HIGH' | |
| > }) | |
| > }); | |
| 8578c8534 | |
| < const text = `AgentApp/${"4.0.0-rc"} ${Platform["b" /* default */].is.name}/${Platform["b" /* default */].is.version} ${Platform["b" /* default */].is.platform}`; | |
| --- | |
| > const text = `AgentApp/${"4.0.1"} ${Platform["b" /* default */].is.name}/${Platform["b" /* default */].is.version} ${Platform["b" /* default */].is.platform}`; | |
| 8915a8872 | |
| > ficaVerification: {}, | |
| 9215c9172 | |
| < }, _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(_class, "DataUpload", new _class('CustomerRegistrationDataUploadError')), _class)); | |
| --- | |
| > }, _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(_class, "DataUpload", new _class('CustomerRegistrationDataUploadError')), _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(_class, "FICAVerification", new _class('CustomerRegistrationFICAVerificationError')), _class)); | |
| 9643,9650d9599 | |
| < // CONCATENATED MODULE: ./src/helpers/file-reader.js | |
| < const readAsDataURL = file => new Promise((resolve, reject) => { | |
| < const reader = new FileReader(); | |
| < reader.onload = event => resolve(event.target.result); | |
| < reader.onerror = event => reject(event.target.error); | |
| < reader.readAsDataURL(file); | |
| < }); | |
| < | |
| 9655d9603 | |
| < | |
| 9677,9679c9625 | |
| < onChange: (vm, e) => readAsDataURL(e.target.files[0]).then(base64Image => vm.$emit('file', base64Image)).catch(error => vm.$snackbar.error({ | |
| < message: vm.$lk.parseErrorMessage(error) | |
| < })) | |
| --- | |
| > onChange: (vm, e) => vm.$emit('file', URL.createObjectURL(e.target.files[0])) | |
| 11384c11330 | |
| < // EXTERNAL MODULE: ./src/services/CustomerService/index.js + 1 modules | |
| --- | |
| > // EXTERNAL MODULE: ./src/services/CustomerService/index.js | |
| 11544,11545c11490,11491 | |
| < const update = (id, imageUrl) => { | |
| < const blob = FileService.dataUrlToBlob(imageUrl); | |
| --- | |
| > const update = async (id, imageUrl) => { | |
| > const blob = await FileService.dataUrlToBlob(imageUrl); | |
| 12273a12220,12300 | |
| > }); | |
| > | |
| > | |
| > /***/ }), | |
| > | |
| > /***/ "ecd2": | |
| > /***/ (function(module, __webpack_exports__, __webpack_require__) { | |
| > | |
| > "use strict"; | |
| > /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FICAVerificationModel; }); | |
| > /* harmony import */ var _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9523"); | |
| > /* harmony import */ var _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__); | |
| > /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("7a36"); | |
| > | |
| > | |
| > class FICAVerificationModel { | |
| > constructor({ | |
| > id, | |
| > status, | |
| > riskRating, | |
| > requirements, | |
| > firstName, | |
| > surname, | |
| > idPassportNumber, | |
| > premiumCollectionMethod, | |
| > channel, | |
| > dateOfBirth, | |
| > customerId | |
| > } = {}) { | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "id", void 0); | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "status", void 0); | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "riskRating", void 0); | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "requirements", void 0); | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "firstName", void 0); | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "surname", void 0); | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "idPassportNumber", void 0); | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "premiumCollectionMethod", void 0); | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "channel", void 0); | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "dateOfBirth", void 0); | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(this, "customerId", void 0); | |
| > this.id = id; | |
| > this.status = status; | |
| > this.riskRating = riskRating; | |
| > this.requirements = requirements; | |
| > this.firstName = firstName; | |
| > this.surname = surname; | |
| > this.idPassportNumber = idPassportNumber; | |
| > this.premiumCollectionMethod = premiumCollectionMethod; | |
| > this.channel = channel; | |
| > this.dateOfBirth = dateOfBirth; | |
| > this.customerId = customerId; | |
| > } | |
| > get isRefreshable() { | |
| > return this.status === _constants__WEBPACK_IMPORTED_MODULE_1__[/* FICA_STATUS */ "a"].ERROR.value || this.status === _constants__WEBPACK_IMPORTED_MODULE_1__[/* FICA_STATUS */ "a"].PENDING.value; | |
| > } | |
| > get readableRequirements() { | |
| > return this.requirements.map(requirement => _constants__WEBPACK_IMPORTED_MODULE_1__[/* REQUIREMENTS */ "c"][requirement].label); | |
| > } | |
| > get isAcceptable() { | |
| > const allowablePassportNumberRegex = /^([A-Za-z]{2}\d{6})$/; | |
| > return this.status === _constants__WEBPACK_IMPORTED_MODULE_1__[/* FICA_STATUS */ "a"].VERIFIED.value && this.riskRating === _constants__WEBPACK_IMPORTED_MODULE_1__[/* RISK_RATING */ "d"].LOW.value || allowablePassportNumberRegex.test(this.idPassportNumber) && this.status === _constants__WEBPACK_IMPORTED_MODULE_1__[/* FICA_STATUS */ "a"].NONE.value; | |
| > } | |
| > get ficaRegistrationMessage() { | |
| > if (this.isAcceptable) { | |
| > return 'You have been FICA verified'; | |
| > } | |
| > if (this === undefined || this !== null && this !== void 0 && this.isRefreshable) { | |
| > return 'Your FICA verification is still pending - an agent will call you back'; | |
| > } | |
| > return 'Unfortunately you do not qualify for the funeral policy with us at this time, ' + 'however, we are happy to finalise your fire policy with us.'; | |
| > } | |
| > get statusWithRequirements() { | |
| > if (this.requirements.length > 0) { | |
| > const requirementsLabel = this.requirements.map(requirement => _constants__WEBPACK_IMPORTED_MODULE_1__[/* REQUIREMENTS */ "c"][requirement].label); | |
| > return `${_constants__WEBPACK_IMPORTED_MODULE_1__[/* FICA_STATUS */ "a"][this.status].label}\nRequirements:\n${requirementsLabel.join('\n')}`; | |
| > } | |
| > return _constants__WEBPACK_IMPORTED_MODULE_1__[/* FICA_STATUS */ "a"][this.status].label; | |
| > } | |
| > } | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(FICAVerificationModel, "create", ficaVerification => { | |
| > return new FICAVerificationModel(ficaVerification); | |
| 12274a12302,12304 | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(FICAVerificationModel, "ficaDetailsMatchCustomerDetails", (customer, ficaVerification) => { | |
| > return customer.section1.idPassportNumber === ficaVerification.idPassportNumber && customer.section1.dateOfBirth === ficaVerification.dateOfBirth && customer.section1.firstName === ficaVerification.firstName && customer.section1.surname === ficaVerification.surname && _constants__WEBPACK_IMPORTED_MODULE_1__[/* PREMIUM_COLLECTION_METHOD */ "b"].fromCustomerPaymentMethod(customer.section2.expectedPaymentMethod).value === ficaVerification.premiumCollectionMethod; | |
| > }); | |
| 12471a12502,12508 | |
| > _app_node_modules_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_0___default()(PolicyService, "updateFuneralPlanType", (policyId, planType) => { | |
| > return _helpers_http__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].put(`/api/v2/policies/funeral/${policyId}/plan`, { | |
| > funeral_plan_type: planType | |
| > }).then(({ | |
| > data | |
| > }) => _models__WEBPACK_IMPORTED_MODULE_5__[/* PolicyModel */ "j"].create(camelize__WEBPACK_IMPORTED_MODULE_1___default()(data))); | |
| > }); | |
| 12501c12538 | |
| < //# sourceMappingURL=app.e94ede20.js.map | |
| \ No newline at end of file | |
| --- | |
| > //# sourceMappingURL=app.e30080d5.js.map | |
| \ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment