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A4BA,EAA2B1hG,GACrDiQ,EAAI2tF,EAAS39F,OAAQgQ,IACzBsuF,EAAUX,EAAS3tF,GAChBnT,EAAoBC,EAAEqkG,EAAiB7C,IAAY6C,EAAgB7C,IACrE6C,EAAgB7C,GAAS,KAE1B6C,EAAgB7C,GAAW,EAE5B,OAAOzhG,EAAoB6gG,EAAE1qF,EAC9B,EAEI4uF,EAAqBx3C,KAAK,4BAA8BA,KAAK,6BAA+B,GAChGw3C,EAAmBh+F,QAAQ49F,EAAqBj1F,KAAK,KAAM,IAC3Dq1F,EAAmB9hG,KAAO0hG,EAAqBj1F,KAAK,KAAMq1F,EAAmB9hG,KAAKyM,KAAKq1F,G,ICpFvF,IAAIC,EAAsBhlG,EAAoB6gG,OAAExlC,EAAW,CAAC,MAAM,WAAa,OAAOr7D,EAAoB,MAAQ,IAClHglG,EAAsBhlG,EAAoB6gG,EAAEmE,E","sources":["webpack://client_admin/./node_modules/moment/locale/ sync ^\\.\\/.*$","webpack://client_admin/./src/apiServices/schedulerService.js","webpack://client_admin/./src/apiServices/channelGroupService.js","webpack://client_admin/./src/app.config.js","webpack://client_admin/./src/components/channels/Territories/TerritoriesUtils.js","webpack://client_admin/./src/components/notifications/Notifications.js","webpack://client_admin/./src/components/scheduler/DailySchedule.js","webpack://client_admin/./src/components/scheduler/IntervalMap.js","webpack://client_admin/./src/components/webLeadScheduler/WebLeadIntervalMap.js","webpack://client_admin/./src/store/index.js","webpack://client_admin/./src/router/routes.js","webpack://client_admin/./src/router/index.js","webpack://client_admin/./src/registerServiceWorker.js","webpack://client_admin/./src/App.vue","webpack://client_admin/./src/utils/mixins/useViewSizes.js","webpack://client_admin/./src/components/notifications/NotificationDisplayManager.vue","webpack://client_admin/./src/components/notifications/NotificationDisplayManager.vue?2da9","webpack://client_admin/./src/App.vue?7ccd","webpack://client_admin/./src/errorHandlers.js","webpack://client_admin/./src/services/sentry.js","webpack://client_admin/./src/plugins/yupCustomValidators.js","webpack://client_admin/./src/main.js","webpack://client_admin/./src/plugins/axios.js","webpack://client_admin/./src/plugins/errorTracker.js","webpack://client_admin/./src/plugins/event-bus.js","webpack://client_admin/./src/plugins/filters.js","webpack://client_admin/./src/services/AzureInstance.js","webpack://client_admin/./src/services/auth/auth.service.js","webpack://client_admin/./src/services/auth/roles.js","webpack://client_admin/./src/store/helpers.js","webpack://client_admin/./src/store/modules/_template.js","webpack://client_admin/./src/store/modules/appHealth.js","webpack://client_admin/./src/store/modules/auth.js","webpack://client_admin/./src/store/modules/billing.js","webpack://client_admin/./src/store/modules/callCorporateFilter.js","webpack://client_admin/./src/store/modules/calls.js","webpack://client_admin/./src/store/modules/campaigns.js","webpack://client_admin/./src/store/modules/channelGroups.js","webpack://client_admin/./src/store/modules/channels.js","webpack://client_admin/./src/store/modules/client.js","webpack://client_admin/./src/store/modules/clientRules.js","webpack://client_admin/./src/store/modules/creditDialer.js","webpack://client_admin/./src/store/modules/dashboard.js","webpack://client_admin/./src/store/modules/farmersVendorImport.js","webpack://client_admin/./src/apiServices/featureFlagService.js","webpack://client_admin/./src/store/modules/featureFlagStore.js","webpack://client_admin/./src/store/modules/index.js","webpack://client_admin/./src/store/modules/leadCredit.js","webpack://client_admin/./src/store/modules/leadDetail.js","webpack://client_admin/./src/services/campaignService.js","webpack://client_admin/./src/store/modules/leadType.js","webpack://client_admin/./src/store/modules/leads.js","webpack://client_admin/./src/components/signup/LookupTool/packagePriorities.js","webpack://client_admin/./src/components/signup/LookupTool/consolidateGeoMapEstimates.js","webpack://client_admin/./src/store/modules/lookupTool.js","webpack://client_admin/./src/store/modules/lookupValue.js","webpack://client_admin/./src/store/modules/notifications.js","webpack://client_admin/./src/store/modules/options.js","webpack://client_admin/./src/store/modules/packages.js","webpack://client_admin/./src/store/modules/promo.js","webpack://client_admin/./src/store/modules/promos.js","webpack://client_admin/./src/store/modules/reactivation.js","webpack://client_admin/./src/store/modules/request.js","webpack://client_admin/./src/store/modules/responsive.js","webpack://client_admin/./src/components/webLeadScheduler/WebLeadScheduleManager.js","webpack://client_admin/./src/store/modules/scheduler.js","webpack://client_admin/./src/store/modules/signup.js","webpack://client_admin/./src/store/modules/subsidy.js","webpack://client_admin/./src/store/modules/toastr.js","webpack://client_admin/./src/store/modules/transactions.js","webpack://client_admin/./src/store/modules/upsells.js","webpack://client_admin/./src/store/modules/vacations.js","webpack://client_admin/./src/store/modules/vendors.js","webpack://client_admin/./src/utils/mixins/callTypes.js","webpack://client_admin/./src/utils/mixins/clientStatusMap.js","webpack://client_admin/./src/utils/mixins/companyMap.js","webpack://client_admin/./src/utils/mixins/billingTerms.js","webpack://client_admin/./src/utils/mixins/getCardIcon.js","webpack://client_admin/./src/utils/mixins/getRange.js","webpack://client_admin/./src/utils/mixins/clientCancelReasons.js","webpack://client_admin/./src/utils/mixins/clientLevels.js","webpack://client_admin/./src/utils/mixins/serviceTypes.js","webpack://client_admin/./src/utils/mixins/trumpFlags.js","webpack://client_admin/./src/utils/mixins/upsells.js","webpack://client_admin/./src/utils/mixins/timeZones.js","webpack://client_admin/./src/utils/mixins/creditRequestReasons.js","webpack://client_admin/./src/utils/mixins/capValue.js","webpack://client_admin/./src/utils/mixins/getPackageBasePrice.js","webpack://client_admin/./src/utils/mixins/convertTerritoryToGeoMap.js","webpack://client_admin/./src/utils/mixins/translateFarmersCopy.js","webpack://client_admin/./src/utils/mixins/dayOfWeek.js","webpack://client_admin/./src/utils/mixins/states.js","webpack://client_admin/./src/utils/store-helpers.js","webpack://client_admin/./src/components/Toastr.vue","webpack://client_admin/./src/components/Toastr.vue?bde3","webpack://client_admin/./src/components/agent/TempAnnouncement.vue","webpack://client_admin/./src/components/agent/TempAnnouncement.vue?2f05","webpack://client_admin/./src/components/billing/CardForm.vue","webpack://client_admin/./src/components/billing/CardForm.vue?a7b0","webpack://client_admin/./src/components/billing/CardFormPartial.vue","webpack://client_admin/./src/components/billing/CardFormPartial.vue?d823","webpack://client_admin/./src/layouts/NavHeaderedPage.vue","webpack://client_admin/./src/layouts/HeaderedPage.vue","webpack://client_admin/./src/components/Navigation/HamburgerMenuIcon.vue","webpack://client_admin/./src/components/Navigation/HamburgerMenuIcon.vue?92d8","webpack://client_admin/./src/layouts/root.vue","webpack://client_admin/./src/components/notifications/types/NotificationBanner.vue","webpack://client_admin/./src/components/notifications/types/NotificationBanner.vue?5d3f","webpack://client_admin/./src/components/notifications/types/NotificationDialog.vue","webpack://client_admin/./src/components/notifications/types/NotificationDialog.vue?ee95","webpack://client_admin/./src/components/reactivation/Index.vue","webpack://client_admin/./src/components/reactivation/ReactivationDialog.vue","webpack://client_admin/./src/components/reactivation/steps/WelcomeEligible.vue","webpack://client_admin/./src/components/reactivation/steps/WelcomeEligible.vue?38a2","webpack://client_admin/./src/components/reactivation/steps/WelcomeIneligible.vue","webpack://client_admin/./src/components/reactivation/steps/WelcomeIneligible.vue?f904","webpack://client_admin/./src/components/reactivation/steps/ChannelSelection.vue","webpack://client_admin/./src/components/reactivation/steps/ChannelSelection.vue?56e7","webpack://client_admin/./src/components/reactivation/steps/ReactivationComplete.vue","webpack://client_admin/./src/components/reactivation/steps/ReactivationComplete.vue?3180","webpack://client_admin/./src/components/reactivation/steps/ReactivationDepositStep.vue","webpack://client_admin/./src/components/reactivation/steps/ReactivationDepositStep.vue?85f2","webpack://client_admin/./src/components/reactivation/steps/ReactivationFailed.vue","webpack://client_admin/./src/components/reactivation/steps/ReactivationFailed.vue?0ebf","webpack://client_admin/./src/components/reactivation/steps/AddPaymentMethod.vue","webpack://client_admin/./src/components/reactivation/steps/AddPaymentMethod.vue?e03e","webpack://client_admin/./src/components/reactivation/ReactivationDialog.vue?0953","webpack://client_admin/./src/components/reactivation/Index.vue?6ac4","webpack://client_admin/./src/layouts/root.vue?2866","webpack://client_admin/./src/layouts/HeaderedPage.vue?4f70","webpack://client_admin/./src/components/notifications/types/NotificationTray.vue","webpack://client_admin/./src/components/notifications/types/NotificationTray.vue?f3b7","webpack://client_admin/./src/layouts/NavHeaderedPage.vue?779f","webpack://client_admin/./src/layouts/main.vue","webpack://client_admin/./src/layouts/main.vue?c9a8","webpack://client_admin/./src/pages/global/404.vue","webpack://client_admin/./src/pages/global/404.vue?8be8","webpack://client_admin/./src/store/modules/ sync ^((","webpack://client_admin/webpack/bootstrap","webpack://client_admin/webpack/runtime/chunk loaded","webpack://client_admin/webpack/runtime/compat get default export","webpack://client_admin/webpack/runtime/define property getters","webpack://client_admin/webpack/runtime/ensure chunk","webpack://client_admin/webpack/runtime/get javascript chunk filename","webpack://client_admin/webpack/runtime/get mini-css chunk filename","webpack://client_admin/webpack/runtime/global","webpack://client_admin/webpack/runtime/hasOwnProperty shorthand","webpack://client_admin/webpack/runtime/load script","webpack://client_admin/webpack/runtime/make namespace object","webpack://client_admin/webpack/runtime/node module decorator","webpack://client_admin/webpack/runtime/publicPath","webpack://client_admin/webpack/runtime/css loading","webpack://client_admin/webpack/runtime/jsonp chunk loading","webpack://client_admin/webpack/startup"],"sourcesContent":["var map = {\n\t\"./af\": 25177,\n\t\"./af.js\": 25177,\n\t\"./ar\": 61509,\n\t\"./ar-dz\": 41488,\n\t\"./ar-dz.js\": 41488,\n\t\"./ar-kw\": 58676,\n\t\"./ar-kw.js\": 58676,\n\t\"./ar-ly\": 42353,\n\t\"./ar-ly.js\": 42353,\n\t\"./ar-ma\": 24496,\n\t\"./ar-ma.js\": 24496,\n\t\"./ar-ps\": 6947,\n\t\"./ar-ps.js\": 6947,\n\t\"./ar-sa\": 82682,\n\t\"./ar-sa.js\": 82682,\n\t\"./ar-tn\": 89756,\n\t\"./ar-tn.js\": 89756,\n\t\"./ar.js\": 61509,\n\t\"./az\": 95533,\n\t\"./az.js\": 95533,\n\t\"./be\": 28959,\n\t\"./be.js\": 28959,\n\t\"./bg\": 47777,\n\t\"./bg.js\": 47777,\n\t\"./bm\": 54903,\n\t\"./bm.js\": 54903,\n\t\"./bn\": 61290,\n\t\"./bn-bd\": 17357,\n\t\"./bn-bd.js\": 17357,\n\t\"./bn.js\": 61290,\n\t\"./bo\": 31545,\n\t\"./bo.js\": 31545,\n\t\"./br\": 11470,\n\t\"./br.js\": 11470,\n\t\"./bs\": 44429,\n\t\"./bs.js\": 44429,\n\t\"./ca\": 7306,\n\t\"./ca.js\": 7306,\n\t\"./cs\": 56464,\n\t\"./cs.js\": 56464,\n\t\"./cv\": 73635,\n\t\"./cv.js\": 73635,\n\t\"./cy\": 64226,\n\t\"./cy.js\": 64226,\n\t\"./da\": 93601,\n\t\"./da.js\": 93601,\n\t\"./de\": 77853,\n\t\"./de-at\": 26111,\n\t\"./de-at.js\": 26111,\n\t\"./de-ch\": 54697,\n\t\"./de-ch.js\": 54697,\n\t\"./de.js\": 77853,\n\t\"./dv\": 60708,\n\t\"./dv.js\": 60708,\n\t\"./el\": 54691,\n\t\"./el.js\": 54691,\n\t\"./en-au\": 53872,\n\t\"./en-au.js\": 53872,\n\t\"./en-ca\": 28298,\n\t\"./en-ca.js\": 28298,\n\t\"./en-gb\": 56195,\n\t\"./en-gb.js\": 56195,\n\t\"./en-ie\": 66584,\n\t\"./en-ie.js\": 66584,\n\t\"./en-il\": 65543,\n\t\"./en-il.js\": 65543,\n\t\"./en-in\": 9033,\n\t\"./en-in.js\": 9033,\n\t\"./en-nz\": 79402,\n\t\"./en-nz.js\": 79402,\n\t\"./en-sg\": 43004,\n\t\"./en-sg.js\": 43004,\n\t\"./eo\": 32934,\n\t\"./eo.js\": 32934,\n\t\"./es\": 97650,\n\t\"./es-do\": 20838,\n\t\"./es-do.js\": 20838,\n\t\"./es-mx\": 17730,\n\t\"./es-mx.js\": 17730,\n\t\"./es-us\": 56575,\n\t\"./es-us.js\": 56575,\n\t\"./es.js\": 97650,\n\t\"./et\": 3035,\n\t\"./et.js\": 3035,\n\t\"./eu\": 3508,\n\t\"./eu.js\": 3508,\n\t\"./fa\": 119,\n\t\"./fa.js\": 119,\n\t\"./fi\": 90527,\n\t\"./fi.js\": 90527,\n\t\"./fil\": 95995,\n\t\"./fil.js\": 95995,\n\t\"./fo\": 52477,\n\t\"./fo.js\": 52477,\n\t\"./fr\": 85498,\n\t\"./fr-ca\": 26435,\n\t\"./fr-ca.js\": 26435,\n\t\"./fr-ch\": 37892,\n\t\"./fr-ch.js\": 37892,\n\t\"./fr.js\": 85498,\n\t\"./fy\": 37071,\n\t\"./fy.js\": 37071,\n\t\"./ga\": 41734,\n\t\"./ga.js\": 41734,\n\t\"./gd\": 70217,\n\t\"./gd.js\": 70217,\n\t\"./gl\": 77329,\n\t\"./gl.js\": 77329,\n\t\"./gom-deva\": 32124,\n\t\"./gom-deva.js\": 32124,\n\t\"./gom-latn\": 93383,\n\t\"./gom-latn.js\": 93383,\n\t\"./gu\": 95050,\n\t\"./gu.js\": 95050,\n\t\"./he\": 11713,\n\t\"./he.js\": 11713,\n\t\"./hi\": 43861,\n\t\"./hi.js\": 43861,\n\t\"./hr\": 26308,\n\t\"./hr.js\": 26308,\n\t\"./hu\": 90609,\n\t\"./hu.js\": 90609,\n\t\"./hy-am\": 17160,\n\t\"./hy-am.js\": 17160,\n\t\"./id\": 74063,\n\t\"./id.js\": 74063,\n\t\"./is\": 89374,\n\t\"./is.js\": 89374,\n\t\"./it\": 88383,\n\t\"./it-ch\": 21827,\n\t\"./it-ch.js\": 21827,\n\t\"./it.js\": 88383,\n\t\"./ja\": 23827,\n\t\"./ja.js\": 23827,\n\t\"./jv\": 89722,\n\t\"./jv.js\": 89722,\n\t\"./ka\": 41794,\n\t\"./ka.js\": 41794,\n\t\"./kk\": 27088,\n\t\"./kk.js\": 27088,\n\t\"./km\": 96870,\n\t\"./km.js\": 96870,\n\t\"./kn\": 84451,\n\t\"./kn.js\": 84451,\n\t\"./ko\": 63164,\n\t\"./ko.js\": 63164,\n\t\"./ku\": 98174,\n\t\"./ku-kmr\": 6181,\n\t\"./ku-kmr.js\": 6181,\n\t\"./ku.js\": 98174,\n\t\"./ky\": 78474,\n\t\"./ky.js\": 78474,\n\t\"./lb\": 79680,\n\t\"./lb.js\": 79680,\n\t\"./lo\": 15867,\n\t\"./lo.js\": 15867,\n\t\"./lt\": 45766,\n\t\"./lt.js\": 45766,\n\t\"./lv\": 69532,\n\t\"./lv.js\": 69532,\n\t\"./me\": 58076,\n\t\"./me.js\": 58076,\n\t\"./mi\": 41848,\n\t\"./mi.js\": 41848,\n\t\"./mk\": 30306,\n\t\"./mk.js\": 30306,\n\t\"./ml\": 73739,\n\t\"./ml.js\": 73739,\n\t\"./mn\": 99053,\n\t\"./mn.js\": 99053,\n\t\"./mr\": 86169,\n\t\"./mr.js\": 86169,\n\t\"./ms\": 73386,\n\t\"./ms-my\": 92297,\n\t\"./ms-my.js\": 92297,\n\t\"./ms.js\": 73386,\n\t\"./mt\": 77075,\n\t\"./mt.js\": 77075,\n\t\"./my\": 72264,\n\t\"./my.js\": 72264,\n\t\"./nb\": 22274,\n\t\"./nb.js\": 22274,\n\t\"./ne\": 8235,\n\t\"./ne.js\": 8235,\n\t\"./nl\": 92572,\n\t\"./nl-be\": 43784,\n\t\"./nl-be.js\": 43784,\n\t\"./nl.js\": 92572,\n\t\"./nn\": 54566,\n\t\"./nn.js\": 54566,\n\t\"./oc-lnc\": 69330,\n\t\"./oc-lnc.js\": 69330,\n\t\"./pa-in\": 29849,\n\t\"./pa-in.js\": 29849,\n\t\"./pl\": 94418,\n\t\"./pl.js\": 94418,\n\t\"./pt\": 79834,\n\t\"./pt-br\": 48303,\n\t\"./pt-br.js\": 48303,\n\t\"./pt.js\": 79834,\n\t\"./ro\": 24457,\n\t\"./ro.js\": 24457,\n\t\"./ru\": 82271,\n\t\"./ru.js\": 82271,\n\t\"./sd\": 1221,\n\t\"./sd.js\": 1221,\n\t\"./se\": 33478,\n\t\"./se.js\": 33478,\n\t\"./si\": 17538,\n\t\"./si.js\": 17538,\n\t\"./sk\": 5784,\n\t\"./sk.js\": 5784,\n\t\"./sl\": 46637,\n\t\"./sl.js\": 46637,\n\t\"./sq\": 86794,\n\t\"./sq.js\": 86794,\n\t\"./sr\": 45719,\n\t\"./sr-cyrl\": 3322,\n\t\"./sr-cyrl.js\": 3322,\n\t\"./sr.js\": 45719,\n\t\"./ss\": 56000,\n\t\"./ss.js\": 56000,\n\t\"./sv\": 41011,\n\t\"./sv.js\": 41011,\n\t\"./sw\": 40748,\n\t\"./sw.js\": 40748,\n\t\"./ta\": 11025,\n\t\"./ta.js\": 11025,\n\t\"./te\": 11885,\n\t\"./te.js\": 11885,\n\t\"./tet\": 28861,\n\t\"./tet.js\": 28861,\n\t\"./tg\": 86571,\n\t\"./tg.js\": 86571,\n\t\"./th\": 55802,\n\t\"./th.js\": 55802,\n\t\"./tk\": 59527,\n\t\"./tk.js\": 59527,\n\t\"./tl-ph\": 29231,\n\t\"./tl-ph.js\": 29231,\n\t\"./tlh\": 31052,\n\t\"./tlh.js\": 31052,\n\t\"./tr\": 85096,\n\t\"./tr.js\": 85096,\n\t\"./tzl\": 79846,\n\t\"./tzl.js\": 79846,\n\t\"./tzm\": 81765,\n\t\"./tzm-latn\": 97711,\n\t\"./tzm-latn.js\": 97711,\n\t\"./tzm.js\": 81765,\n\t\"./ug-cn\": 48414,\n\t\"./ug-cn.js\": 48414,\n\t\"./uk\": 16618,\n\t\"./uk.js\": 16618,\n\t\"./ur\": 57777,\n\t\"./ur.js\": 57777,\n\t\"./uz\": 57609,\n\t\"./uz-latn\": 72475,\n\t\"./uz-latn.js\": 72475,\n\t\"./uz.js\": 57609,\n\t\"./vi\": 21135,\n\t\"./vi.js\": 21135,\n\t\"./x-pseudo\": 64051,\n\t\"./x-pseudo.js\": 64051,\n\t\"./yo\": 82218,\n\t\"./yo.js\": 82218,\n\t\"./zh-cn\": 52648,\n\t\"./zh-cn.js\": 52648,\n\t\"./zh-hk\": 1632,\n\t\"./zh-hk.js\": 1632,\n\t\"./zh-mo\": 31541,\n\t\"./zh-mo.js\": 31541,\n\t\"./zh-tw\": 50304,\n\t\"./zh-tw.js\": 50304\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 35358;","import axiosInstance from '@/plugins/axios';\r\n\r\nexport class SchedulerService {\r\n async saveChannelGroupSchedules(group, callback) {\r\n const response = await axiosInstance\r\n .post(`/api/LeadType/calls/subscriptionGroup/setSchedule`, group)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n console.error(response);\r\n if (callback) callback(new Error('Failed to update schedule'));\r\n }\r\n\r\n // dispatch('updateChannelGroupSchedulesResponseCache', groupId);\r\n // this.updateChannelGroupSchedulesResponseCache(group);\r\n }\r\n\r\n async updateChannelGroupSchedulesResponseCache(group) {\r\n const groupId = group.responseCache.subscriptionGroupId;\r\n const response = await axiosInstance\r\n .get(`/api/LeadType/calls/SubscriptionGroupSchedule/${groupId}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Nothing to do but log details to an api for later review...\r\n console.error(response);\r\n }\r\n\r\n // TODO: set response cache result\r\n // commit('setResponseCache', response.data);\r\n }\r\n}\r\n","import axiosInstance from '@/plugins/axios';\r\nimport { SchedulerService } from './schedulerService';\r\n\r\nexport class ChannelGroupService {\r\n constructor() {\r\n this.schedulerService = new SchedulerService();\r\n }\r\n\r\n async upsertSubscriptionGroup(client, group, channelIds, oldGroup, callback) {\r\n const upsertGroup = {\r\n subscriptionGroupId: group.subscriptionGroupId,\r\n groupName: group.groupName,\r\n clientId: client.id,\r\n subscriptions: [],\r\n isIntervalEnabled: group.isIntervalEnabled,\r\n };\r\n\r\n let addedChannelIds = [];\r\n let removedChannelIds = [];\r\n // if oldgroup null means new item\r\n if (oldGroup) {\r\n upsertGroup.subscriptions = oldGroup.subscriptions;\r\n addedChannelIds = channelIds.filter((channelId) => {\r\n return !oldGroup.subscriptions.some((sub) => {\r\n return sub.clientQuoteTypeId === channelId;\r\n });\r\n });\r\n\r\n removedChannelIds = oldGroup.subscriptions.reduce((removedIds, sub) => {\r\n if (!channelIds.includes(sub.clientQuoteTypeId)) {\r\n removedIds.push(sub.clientQuoteTypeId);\r\n }\r\n return removedIds;\r\n }, []);\r\n } else {\r\n // id for new group should be null.\r\n upsertGroup.subscriptionGroupId = null;\r\n addedChannelIds = channelIds;\r\n }\r\n\r\n const response = await axiosInstance\r\n .post(`api/leadtype/calls/subscriptiongroup`, upsertGroup)\r\n .catch((err) => err);\r\n const groupId = response.data;\r\n\r\n if (response instanceof Error) {\r\n console.error(response);\r\n if (callback) callback(new Error('Invalid response'));\r\n return false;\r\n }\r\n\r\n if (addedChannelIds.length > 0) {\r\n await this.addChannelsToGroup(addedChannelIds, groupId, callback);\r\n }\r\n\r\n if (removedChannelIds.length > 0) {\r\n await this.removeChannelsFromGroup(removedChannelIds, groupId);\r\n }\r\n // Set id from API value.\r\n group.subscriptionGroupId = groupId;\r\n await this.schedulerService.saveChannelGroupSchedules(group, callback);\r\n }\r\n\r\n async addChannelsToGroup(channelIds, groupId, callback) {\r\n const method = 'post';\r\n await this.addRemoveChannelsFromGroup(\r\n channelIds,\r\n groupId,\r\n method,\r\n callback\r\n );\r\n }\r\n\r\n async removeChannelsFromGroup(channelIds, groupId, callback) {\r\n const method = 'delete';\r\n await this.addRemoveChannelsFromGroup(\r\n channelIds,\r\n groupId,\r\n method,\r\n callback\r\n );\r\n }\r\n\r\n async addRemoveChannelsFromGroup(channelIds, groupId, method, callback) {\r\n const query = channelIds.map((id) => `ids=${id}`).join('&');\r\n const response = await axiosInstance\r\n .get(`/api/leadtype/callTypes?${query}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n console.error(response);\r\n if (callback) callback(new Error(response));\r\n return;\r\n }\r\n\r\n const channelCallTypes = response.data;\r\n\r\n for (const channelId of Object.keys(channelCallTypes)) {\r\n if (method === 'post') {\r\n await axiosInstance\r\n .post(\r\n `api/leadtype/calls/subscription/add/${channelId}/${groupId}/${channelCallTypes[channelId]}`\r\n )\r\n .catch((err) => err);\r\n } else {\r\n await axiosInstance\r\n .delete(\r\n `api/leadtype/calls/removesubscription/${channelId}/${groupId}/${channelCallTypes[channelId]}`\r\n )\r\n .catch((err) => err);\r\n }\r\n }\r\n }\r\n\r\n async fetchGroups(clientId, callback) {\r\n const response = await axiosInstance\r\n .get(`api/leadtype/${clientId}/calls/subscriptiongroup`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error || response.data === '') {\r\n // TODO: Error Handling\r\n console.error(response);\r\n if (callback) callback(new Error('Failed to get channel groups'));\r\n return [];\r\n }\r\n return response.data;\r\n }\r\n\r\n async deleteSubscriptionGroup(groupId, callback) {\r\n const response = await axiosInstance\r\n .delete(`api/leadtype/calls/subscriptiongroup/${groupId}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n if (callback) callback(new Error('Failed to delete Subscription Group'));\r\n }\r\n }\r\n\r\n async deleteChannelFromGroup(groupId, subscription) {\r\n const callTypesResponse = await axiosInstance\r\n .get(`/api/leadtype/callTypes?ids=${subscription.clientQuoteTypeId}`)\r\n .catch((err) => err);\r\n\r\n if (callTypesResponse instanceof Error) {\r\n // TODO: Error handling\r\n console.error(callTypesResponse);\r\n return;\r\n }\r\n\r\n const callType = callTypesResponse.data[subscription.clientQuoteTypeId];\r\n\r\n const removeResponse = await axiosInstance\r\n .delete(\r\n `api/leadtype/calls/removesubscription/${subscription.clientQuoteTypeId}/${groupId}/${callType}`\r\n )\r\n .catch((err) => err);\r\n\r\n if (removeResponse instanceof Error) {\r\n // TODO: Error handling\r\n console.error(removeResponse);\r\n }\r\n }\r\n}\r\n","module.exports = {\r\n title: 'Client Admin',\r\n description: 'QuoteWizard Client Admin Tools',\r\n maxPauseHours: process.env.VUE_APP_MAX_PAUSE_HOURS,\r\n weeklyDayCapFactor: process.env.VUE_APP_WEEKLY_DAY_CAP_FACTOR,\r\n callsApiUrl: process.env.VUE_APP_CALL_CENTER_API,\r\n creditCallUrl: process.env.VUE_APP_CREDIT_CALL_API,\r\n b2cRedirectUrl: process.env.VUE_APP_REDIRECT_URL,\r\n b2cClientId: process.env.VUE_APP_B2C_CLIENT_ID,\r\n b2cAppId: process.env.VUE_APP_B2C_APP_ID,\r\n b2cIdpAuthorityServer: process.env.VUE_APP_B2C_IDP_AUTHORITY_SERVER,\r\n b2cIdpAzureServer: process.env.VUE_APP_B2C_IDP_AZURE_SERVER,\r\n everestApiUrl: process.env.VUE_APP_API_URL,\r\n environment: process.env.NODE_ENV,\r\n notificationCheckTime: process.env.VUE_APP_NOTIFICATION_CHECK_TIME,\r\n inactiveUserTimeThreshold: process.env.VUE_APP_INACTIVE_USER_TIME_THRESHOLD,\r\n userActivityThrottlerTime: process.env.VUE_APP_USER_ACTIVITY_THROTTLER_TIME,\r\n defaultWeeklyCap: process.env.VUE_APP_DEFAULT_WEEKLY_CAP,\r\n buildNumber: process.env.VUE_APP_BUILD_NUMBER,\r\n};\r\n","export function processTerritory(workingData, geoMaps) {\r\n let zipExists = false\r\n let countyExists = false\r\n let stateExists = false\r\n\r\n const newTerritory = {\r\n county: '',\r\n stateAbbreviation: '',\r\n type: '',\r\n zipCode: null,\r\n }\r\n\r\n if (workingData.zipCode) {\r\n zipExists = geoMaps.some((o) => {\r\n return (\r\n (o.type === 'ZipCode' && o.zipCode === workingData.zipCode) ||\r\n (o.type === 'County' &&\r\n o.county.toUpperCase() === workingData.countyName.toUpperCase()) ||\r\n (o.type === 'State' &&\r\n o.stateAbbreviation.toUpperCase() ===\r\n workingData.stateAbbr.toUpperCase())\r\n )\r\n })\r\n\r\n newTerritory.county = workingData.countyName\r\n newTerritory.stateAbbreviation = workingData.stateAbbr\r\n newTerritory.type = 'ZipCode'\r\n newTerritory.zipCode = workingData.zipCode\r\n } else if (workingData.countyName) {\r\n // TODO : Need to add reverse check. If county see if there are zips present\r\n countyExists = geoMaps.some((o) => {\r\n return (\r\n (o.type === 'County' &&\r\n o.county.toUpperCase() === workingData.countyName.toUpperCase() &&\r\n o.stateAbbreviation.toUpperCase() ===\r\n workingData.stateAbbr.toUpperCase()) ||\r\n (o.type === 'State' &&\r\n o.stateAbbreviation.toUpperCase() ===\r\n workingData.stateAbbr.toUpperCase())\r\n )\r\n })\r\n\r\n newTerritory.county = workingData.countyName\r\n newTerritory.stateAbbreviation = workingData.stateAbbr\r\n newTerritory.type = 'County'\r\n newTerritory.zipCode = null\r\n } else {\r\n // TODO : Need to add reverse check. If state see if there are counties or zips present\r\n stateExists = geoMaps.some((o) => {\r\n return (\r\n o.type === 'State' &&\r\n o.stateAbbreviation.toUpperCase() ===\r\n workingData.abbreviation.toUpperCase()\r\n )\r\n })\r\n\r\n newTerritory.county = null\r\n newTerritory.stateAbbreviation = workingData.abbreviation\r\n newTerritory.type = 'State'\r\n newTerritory.zipCode = null\r\n }\r\n\r\n return {\r\n newTerritory,\r\n zipExists,\r\n countyExists,\r\n stateExists,\r\n }\r\n}\r\n\r\nexport function buildTerrCollection(geoMaps) {\r\n const terrCollection = {}\r\n const terrCounts = {\r\n states: 0,\r\n counties: 0,\r\n zipcodes: 0,\r\n }\r\n\r\n const grouped = groupBy(geoMaps.slice(), (geo) => geo.type)\r\n\r\n if (grouped.get('State')) {\r\n grouped.get('State').forEach(({ stateAbbreviation }) => {\r\n terrCollection[stateAbbreviation] = {\r\n EntireState: true,\r\n }\r\n terrCounts.states++\r\n })\r\n }\r\n\r\n if (grouped.get('County')) {\r\n const groupedCounties = groupBy(\r\n grouped.get('County').slice(),\r\n (geo) => geo.stateAbbreviation\r\n )\r\n\r\n groupedCounties.forEach((counties, key) => {\r\n terrCollection[key] = {\r\n EntireState: terrCollection[key]?.EntireState || false,\r\n NumCounties: counties.length,\r\n }\r\n terrCounts.counties += counties.length\r\n })\r\n }\r\n\r\n if (grouped.get('ZipCode')) {\r\n const groupedZips = groupBy(\r\n grouped.get('ZipCode').slice(),\r\n (geo) => geo.stateAbbreviation\r\n )\r\n\r\n groupedZips.forEach((zips, key, map) => {\r\n if (key in terrCollection) {\r\n terrCollection[key].NumZips = zips.length\r\n } else {\r\n terrCollection[key] = {\r\n EntireState: false,\r\n NumZips: zips.length,\r\n }\r\n }\r\n\r\n terrCounts.zipcodes += zips.length\r\n })\r\n }\r\n\r\n return { terrCollection, terrCounts }\r\n}\r\n\r\n// A similar form of this logic exists in the Tonquin API in TerritoryManager.BuildChannelAsync.\r\n// Any changes to this logic should be synced with the API.\r\nexport function convertLutGeoMapsToGeoMaps(lutGeoMaps) {\r\n return lutGeoMaps.map((lutGeo) => ({\r\n stateAbbreviation: lutGeo.stateCode || null,\r\n county: lutGeo.countyName?.toUpperCase() || null,\r\n zipCode: lutGeo.zipCode || null,\r\n type: getLutGeoType(lutGeo),\r\n }))\r\n}\r\n\r\nfunction groupBy(list, keyGetter) {\r\n const map = new Map()\r\n list.forEach((item) => {\r\n const key = keyGetter(item)\r\n const collection = map.get(key)\r\n if (!collection) {\r\n map.set(key, [item])\r\n } else {\r\n collection.push(item)\r\n }\r\n })\r\n return map\r\n}\r\n\r\nfunction getLutGeoType(lutGeoMap) {\r\n switch (true) {\r\n case !!lutGeoMap.zipCode:\r\n return 'ZipCode'\r\n case !!lutGeoMap.countyName:\r\n return 'County'\r\n default:\r\n return 'State'\r\n }\r\n}","import moment from 'moment';\r\n\r\nexport default class Notifications {\r\n static get types() {\r\n return {\r\n BANNER: 'Banner',\r\n DIALOG: 'Dialog',\r\n TRAY: 'Tray',\r\n };\r\n }\r\n\r\n static get alertTypes() {\r\n return {\r\n INFO: 'info',\r\n WARNING: 'warning',\r\n ERROR: 'error',\r\n SUCCESS: 'success',\r\n };\r\n }\r\n\r\n static get intervalTypes() {\r\n return {\r\n DATERANGE: 'DateRange',\r\n DAILY: 'Daily',\r\n WEEKLY: 'Weekly',\r\n MONTHLY: 'Monthly',\r\n };\r\n }\r\n\r\n static get visibilityTypes() {\r\n return {\r\n ALL: 'All',\r\n AGENT: 'Agent',\r\n COMPANY: 'Company',\r\n STATE: 'State',\r\n STATUS: 'Status',\r\n };\r\n }\r\n\r\n static dismiss(notificationId) {\r\n const meta = JSON.parse(window.localStorage.notificationsMeta);\r\n meta[notificationId].isDismissed = true;\r\n window.localStorage.notificationsMeta = JSON.stringify(meta);\r\n }\r\n\r\n static filterSeen(notifications) {\r\n if (!window.localStorage.notificationsMeta) {\r\n window.localStorage.notificationsMeta = '{}';\r\n }\r\n\r\n const notificationsMeta = JSON.parse(window.localStorage.notificationsMeta);\r\n\r\n const unseenNotifications =\r\n notifications?.filter((n) => {\r\n const { lastSeen, seenCount, isDismissed, showNotification } =\r\n Notifications._incrementNotificationMeta(\r\n n.intervalType,\r\n n.interval,\r\n notificationsMeta[n.id]\r\n );\r\n\r\n notificationsMeta[n.id] = {\r\n lastSeen,\r\n seenCount,\r\n isDismissed,\r\n };\r\n\r\n return !isDismissed || showNotification;\r\n }) || [];\r\n\r\n window.localStorage.notificationsMeta = JSON.stringify(notificationsMeta);\r\n\r\n return unseenNotifications;\r\n }\r\n\r\n static _incrementNotificationMeta(intervalType, interval, notificationsMeta) {\r\n if (!notificationsMeta) {\r\n return {\r\n lastSeen: Date.now(),\r\n seenCount: 1,\r\n showNotification: true,\r\n };\r\n }\r\n\r\n let { lastSeen, seenCount, isDismissed } = notificationsMeta;\r\n let showNotification = false;\r\n\r\n const today = moment().startOf('day');\r\n const lastDay = moment(lastSeen).startOf('day');\r\n const thisWeek = moment(today).startOf('week');\r\n const thisMonth = moment(today).startOf('month');\r\n\r\n switch (intervalType) {\r\n case Notifications.intervalTypes.DATERANGE:\r\n // Once a day, for a specified number of subsequent days.\r\n if (lastDay < today) {\r\n lastSeen = Date.now();\r\n if (seenCount < interval) {\r\n isDismissed = false;\r\n seenCount++;\r\n showNotification = true;\r\n }\r\n }\r\n break;\r\n case Notifications.intervalTypes.DAILY:\r\n // Every day, for a specified number of times per day, with at least 1 hour in between displays.\r\n if (lastDay < today) {\r\n isDismissed = false;\r\n seenCount = 1;\r\n lastSeen = Date.now();\r\n showNotification = true;\r\n } else if (\r\n seenCount < interval &&\r\n lastSeen < Date.now() - 1 /* Hour */ * 60 * 60 * 1000\r\n ) {\r\n isDismissed = false;\r\n seenCount++;\r\n lastSeen = Date.now();\r\n showNotification = true;\r\n }\r\n break;\r\n case Notifications.intervalTypes.WEEKLY:\r\n // Every week, once per day, for a specified number of subsequent days.\r\n if (lastSeen < thisWeek) {\r\n isDismissed = false;\r\n seenCount = 1;\r\n lastSeen = Date.now();\r\n showNotification = true;\r\n } else if (lastDay < today && seenCount < interval) {\r\n isDismissed = false;\r\n seenCount++;\r\n lastSeen = Date.now();\r\n showNotification = true;\r\n }\r\n break;\r\n case Notifications.intervalTypes.MONTHLY:\r\n // Every month, once per week, for a specified number of subsequent weeks.\r\n if (lastSeen < thisMonth) {\r\n isDismissed = false;\r\n seenCount = 1;\r\n lastSeen = Date.now();\r\n showNotification = true;\r\n } else if (lastDay < thisWeek && seenCount < interval) {\r\n isDismissed = false;\r\n seenCount++;\r\n lastSeen = Date.now();\r\n showNotification = true;\r\n }\r\n break;\r\n default:\r\n throw new Error('Unhandled notification interval type.');\r\n }\r\n\r\n return { lastSeen, seenCount, isDismissed, showNotification };\r\n }\r\n}\r\n","import IntervalMap from './IntervalMap'\r\n\r\nexport default class DailySchedule {\r\n /**\r\n * @param {Number} dayIndex\r\n * @param {Cap} dailyCap\r\n * @param {Boolean} isActive\r\n * @param {Array} dayPartSchedules\r\n */\r\n constructor({ dayIndex, dailyCap, isActive, dayPartSchedules = [] }) {\r\n this.dayIndex = dayIndex\r\n this.dailyCap = dailyCap\r\n this.isActive = isActive\r\n this.dayPartSchedules = dayPartSchedules\r\n this.dayOfWeek = DailySchedule.days[this.dayIndex]\r\n }\r\n\r\n static get DayPartSchedule() {\r\n return DayPartSchedule\r\n }\r\n\r\n static get Cap() {\r\n return Cap\r\n }\r\n\r\n static get days() {\r\n return [\r\n 'sunday',\r\n 'monday',\r\n 'tuesday',\r\n 'wednesday',\r\n 'thursday',\r\n 'friday',\r\n 'saturday',\r\n ]\r\n }\r\n\r\n static defaultInstance(dayIndex, active = false) {\r\n return new DailySchedule({\r\n dayIndex: dayIndex,\r\n isActive: active,\r\n dailyCap: Cap.defaultInstance(dayIndex),\r\n dayPartSchedules: [DayPartSchedule.defaultInstance(dayIndex)],\r\n })\r\n }\r\n\r\n static parseCallResponse(responseData) {\r\n const rawSchedules = responseData.subscriptionDailySchedules\r\n const isIntervalEnabled = responseData.isIntervalCapEnabled\r\n const monthlyCapLimit =\r\n responseData.subscriptionMonthlySchedule.subscriptionMonthlyCap.capLimit\r\n\r\n const { parsedSchedules, intervalStep } =\r\n DailySchedule.parseDayPartSchedules(rawSchedules)\r\n\r\n return {\r\n parsedSchedules,\r\n intervalStep,\r\n isIntervalEnabled,\r\n monthlyCapLimit,\r\n }\r\n }\r\n\r\n static parseClientResponse(responseData) {\r\n const rawSchedules = responseData\r\n const isIntervalEnabled = false\r\n const monthlyCapLimit = []\r\n\r\n const { parsedSchedules, intervalStep } =\r\n DailySchedule.parseClientDayPartSchedules(rawSchedules)\r\n\r\n return {\r\n parsedSchedules,\r\n intervalStep,\r\n isIntervalEnabled,\r\n monthlyCapLimit,\r\n }\r\n }\r\n\r\n static parseDayPartSchedules(dayParts) {\r\n const parsedSchedules = {\r\n sunday: DailySchedule.defaultInstance(0),\r\n monday: DailySchedule.defaultInstance(1),\r\n tuesday: DailySchedule.defaultInstance(2),\r\n wednesday: DailySchedule.defaultInstance(3),\r\n thursday: DailySchedule.defaultInstance(4),\r\n friday: DailySchedule.defaultInstance(5),\r\n saturday: DailySchedule.defaultInstance(6),\r\n }\r\n\r\n let intervalStep = null\r\n\r\n for (const schedule of dayParts) {\r\n let dayPartSchedules = []\r\n if (schedule.subscriptionDayPartSchedules) {\r\n dayPartSchedules = schedule.subscriptionDayPartSchedules.map(\r\n (dayPartSchedule) => {\r\n const intervalCaps = (\r\n dayPartSchedule.subscriptionIntervalCaps || []\r\n ).map((intervalCap) => {\r\n const newCap = new Cap({\r\n limit: intervalCap.capLimit,\r\n start: intervalCap.startTime,\r\n end: intervalCap.endTime,\r\n dayIndex: schedule.dayOfWeek,\r\n })\r\n if (intervalStep === null) {\r\n intervalStep = IntervalMap.calculateStep(newCap)\r\n }\r\n return newCap\r\n })\r\n\r\n return new DayPartSchedule({\r\n concurrencyCap: dayPartSchedule.concurrencyCap,\r\n intervalCaps: intervalCaps,\r\n dayPartCap: new Cap({\r\n limit: dayPartSchedule.scheduleDayPartCap.capLimit,\r\n start: dayPartSchedule.scheduleDayPartCap.startTime,\r\n end: dayPartSchedule.scheduleDayPartCap.endTime,\r\n dayIndex: schedule.dayOfWeek,\r\n }),\r\n })\r\n }\r\n )\r\n }\r\n\r\n const dailySchedule = new DailySchedule({\r\n dayIndex: schedule.dayOfWeek,\r\n isActive: schedule.isActive,\r\n dayPartSchedules: dayPartSchedules,\r\n dailyCap: new Cap({\r\n limit: schedule.scheduleDailyCap.capLimit,\r\n start: schedule.scheduleDailyCap.startTime,\r\n end: schedule.scheduleDailyCap.endTime,\r\n dayIndex: schedule.dayOfWeek,\r\n }),\r\n })\r\n\r\n parsedSchedules[dailySchedule.dayOfWeek] = dailySchedule\r\n }\r\n\r\n intervalStep = intervalStep || '00:15:00'\r\n\r\n return { parsedSchedules, intervalStep }\r\n }\r\n\r\n static parseClientDayPartSchedules(dayParts) {\r\n const parsedSchedules = {\r\n sunday: DailySchedule.defaultInstance(0),\r\n monday: DailySchedule.defaultInstance(1),\r\n tuesday: DailySchedule.defaultInstance(2),\r\n wednesday: DailySchedule.defaultInstance(3),\r\n thursday: DailySchedule.defaultInstance(4),\r\n friday: DailySchedule.defaultInstance(5),\r\n saturday: DailySchedule.defaultInstance(6),\r\n }\r\n\r\n let intervalStep = 0\r\n\r\n for (const schedule of dayParts) {\r\n let dayPartSchedules = []\r\n if (schedule.subscriptionDayPartSchedules) {\r\n dayPartSchedules = schedule.subscriptionDayPartSchedules.map(\r\n (dayPartSchedule) => {\r\n const intervalCaps = (\r\n dayPartSchedule.subscriptionIntervalCaps || []\r\n ).map((intervalCap) => {\r\n const newCap = new Cap({\r\n limit: intervalCap.capLimit,\r\n start: intervalCap.startTime,\r\n end: intervalCap.endTime,\r\n dayIndex: schedule.dayOfWeek,\r\n })\r\n if (intervalStep === null) {\r\n intervalStep = IntervalMap.calculateStep(newCap)\r\n }\r\n return newCap\r\n })\r\n\r\n return new DayPartSchedule({\r\n concurrencyCap: dayPartSchedule.concurrencyCap,\r\n intervalCaps: intervalCaps,\r\n dayPartCap: new Cap({\r\n limit: dayPartSchedule.scheduleDayPartCap.capLimit,\r\n start: dayPartSchedule.scheduleDayPartCap.startTime,\r\n end: dayPartSchedule.scheduleDayPartCap.endTime,\r\n dayIndex: schedule.dayOfWeek,\r\n }),\r\n })\r\n }\r\n )\r\n }\r\n\r\n const dailySchedule = new DailySchedule({\r\n dayIndex: schedule.dayOfWeek,\r\n isActive: schedule.isActive,\r\n dayPartSchedules: dayPartSchedules,\r\n dailyCap: new Cap({\r\n limit: schedule.scheduleDailyCap.capLimit,\r\n start: schedule.scheduleDailyCap.startTime,\r\n end: schedule.scheduleDailyCap.endTime,\r\n dayIndex: schedule.dayOfWeek,\r\n }),\r\n })\r\n\r\n parsedSchedules[dailySchedule.dayOfWeek] = dailySchedule\r\n }\r\n\r\n return { parsedSchedules, intervalStep }\r\n }\r\n\r\n static buildRequestFromResponseCache({\r\n responseCache,\r\n isIntervalEnabled,\r\n dailySchedules,\r\n monthlyCapLimit,\r\n }) {\r\n responseCache.isIntervalCapEnabled = isIntervalEnabled\r\n responseCache.subscriptionMonthlySchedule.subscriptionMonthlyCap = {\r\n capLimit: monthlyCapLimit,\r\n startTime: '00:00:00',\r\n endTime: '00:00:00',\r\n }\r\n const oldDailySchedules = responseCache.subscriptionDailySchedules\r\n responseCache.subscriptionDailySchedules = []\r\n\r\n for (const schedule of dailySchedules) {\r\n const oldDailySchedule = oldDailySchedules.find(\r\n (s) => s.dayOfWeek === schedule.dayIndex\r\n )\r\n let scheduleDailyCap = {\r\n capLimit: null,\r\n startTime: '00:00:00',\r\n endTime: '23:59:59',\r\n }\r\n if (oldDailySchedule && oldDailySchedule.scheduleDailyCap) {\r\n scheduleDailyCap = oldDailySchedule.scheduleDailyCap\r\n }\r\n const subscriptionDailySchedule = {\r\n dayOfWeek: schedule.dayIndex,\r\n isActive: schedule.isActive,\r\n scheduleDailyCap: scheduleDailyCap,\r\n subscriptionDayPartSchedules: [],\r\n }\r\n\r\n for (const dayPart of schedule.dayPartSchedules) {\r\n const subscriptionDayPartSchedule = {\r\n concurrencyCap: dayPart.concurrencyCap,\r\n subscriptionIntervalCaps: [],\r\n scheduleDayPartCap: {\r\n capLimit: dayPart.dayPartCap.limit,\r\n startTime: dayPart.dayPartCap.start,\r\n endTime: dayPart.dayPartCap.end,\r\n },\r\n }\r\n\r\n for (const intervalCap of dayPart.intervalCaps) {\r\n subscriptionDayPartSchedule.subscriptionIntervalCaps.push({\r\n capLimit: intervalCap.limit,\r\n startTime: intervalCap.start,\r\n endTime: intervalCap.end,\r\n })\r\n }\r\n\r\n subscriptionDailySchedule.subscriptionDayPartSchedules.push(\r\n subscriptionDayPartSchedule\r\n )\r\n }\r\n\r\n responseCache.subscriptionDailySchedules.push(subscriptionDailySchedule)\r\n }\r\n\r\n return responseCache\r\n }\r\n\r\n static buildClientRequestFromResponseCache({\r\n responseCache,\r\n clientId,\r\n dailySchedules,\r\n preventCapOverride = false,\r\n }) {\r\n responseCache = []\r\n\r\n for (const schedule of dailySchedules) {\r\n const scheduleDailyCap = {\r\n capLimit: null,\r\n startTime: '00:00:00',\r\n endTime: '23:59:59',\r\n }\r\n\r\n const subscriptionDailySchedule = {\r\n dayOfWeek: schedule.dayIndex,\r\n isActive: schedule.isActive,\r\n scheduleDailyCap: scheduleDailyCap,\r\n subscriptionDayPartSchedules: [],\r\n }\r\n\r\n for (const dayPart of schedule.dayPartSchedules) {\r\n const subscriptionDayPartSchedule = {\r\n concurrencyCap: dayPart.concurrencyCap,\r\n subscriptionIntervalCaps: [],\r\n scheduleDayPartCap: {\r\n capLimit: dayPart.dayPartCap.limit,\r\n startTime: dayPart.dayPartCap.start,\r\n endTime: dayPart.dayPartCap.end,\r\n },\r\n }\r\n\r\n subscriptionDailySchedule.subscriptionDayPartSchedules.push(\r\n subscriptionDayPartSchedule\r\n )\r\n }\r\n\r\n responseCache.push(subscriptionDailySchedule)\r\n }\r\n\r\n return { responseCache: responseCache, clientId: clientId, preventCapOverride : preventCapOverride }\r\n }\r\n\r\n static buildRequest({ isIntervalEnabled, dailySchedules, monthlyCapLimit }) {\r\n const requestBody = {\r\n isIntervalCapEnabled: isIntervalEnabled,\r\n subscriptionMonthlySchedule: {\r\n subscriptionMonthlyCap: {\r\n capLimit: monthlyCapLimit,\r\n startTime: '00:00:00',\r\n endTime: '00:00:00',\r\n },\r\n },\r\n subscriptionDailySchedules: !dailySchedules\r\n ? []\r\n : dailySchedules.map((schedule) => ({\r\n dayOfWeek: schedule.dayIndex,\r\n isActive: schedule.isActive,\r\n scheduleDailyCap: {\r\n capLimit: null,\r\n startTime: '00:00:00',\r\n endTime: '23:59:59',\r\n },\r\n subscriptionDayPartSchedules: !schedule.dayPartSchedules\r\n ? []\r\n : schedule.dayPartSchedules.map((dayPart) => ({\r\n concurrencyCap: dayPart.concurrencyCap,\r\n scheduleDayPartCap: {\r\n capLimit: dayPart.dayPartCap.limit,\r\n startTime: dayPart.dayPartCap.start,\r\n endTime: dayPart.dayPartCap.end,\r\n },\r\n subscriptionIntervalCaps: !dayPart.intervalCaps\r\n ? []\r\n : dayPart.intervalCaps.map((intervalCap) => ({\r\n capLimit: intervalCap.limit,\r\n startTime: intervalCap.start,\r\n endTime: intervalCap.end,\r\n })),\r\n })),\r\n })),\r\n }\r\n\r\n return requestBody\r\n }\r\n}\r\n\r\nexport class DayPartSchedule {\r\n /**\r\n * @param {Cap} concurrencyCap\r\n * @param {Cap} dayPartCap\r\n * @param {Array} intervalCaps\r\n */\r\n constructor({ concurrencyCap, dayPartCap, intervalCaps }) {\r\n this.concurrencyCap = concurrencyCap\r\n this.dayPartCap = dayPartCap\r\n this.intervalCaps = intervalCaps\r\n }\r\n\r\n static defaultInstance(dayIndex) {\r\n return new DayPartSchedule({\r\n concurrencyCap: 1,\r\n dayPartCap: Cap.defaultInstance(dayIndex),\r\n intervalCaps: [],\r\n })\r\n }\r\n}\r\n\r\nexport class Cap {\r\n constructor({ limit, start = '00:00:00', end = '00:00:00', dayIndex = 0 }) {\r\n this.limit = limit\r\n this.start = start\r\n this.end = end\r\n this.dayIndex = dayIndex\r\n }\r\n\r\n get dayOfWeek() {\r\n return DailySchedule.days[this.dayIndex]\r\n }\r\n\r\n static defaultInstance(dayIndex) {\r\n return new Cap({\r\n limit: 0,\r\n start: '09:00:00',\r\n end: '17:00:00',\r\n dayIndex: dayIndex,\r\n })\r\n }\r\n}\r\n","export default class IntervalMap {\r\n constructor(schedules = [], step = '00:15:00') {\r\n this._step = step\r\n this._schedules = schedules\r\n this._showInput = this._showInput.bind(this)\r\n this._hideInput = this._hideInput.bind(this)\r\n this._submitCell = this._submitCell.bind(this)\r\n this.init()\r\n }\r\n\r\n get step() {\r\n return this._step\r\n }\r\n\r\n static get stepOptions() {\r\n return [\r\n { label: '15 Min', value: '00:15:00' },\r\n { label: '30 Min', value: '00:30:00' },\r\n { label: '1 Hour', value: '01:00:00' },\r\n ]\r\n }\r\n\r\n /*\r\n init() - We build a map with keys of all the steps between each day part cap's start and end time.\r\n The value of each interval is an array of values for each day of the week.\r\n The array is always length of 7, where index 0 is Sunday and index 6 is Saturday.\r\n A value of '-' means no DayPartSchedule contains a cap start/end around those times.\r\n Note that the object properties are not in sequential time order.\r\n We store a sorted array of keys to render the times in order.\r\n {\r\n 'keys': ['08:00:00', '08:15:00', '08:30:00', '09:30:00', '09:45:00'],\r\n '08:15:00': ['-', 0, 0, 0, 0, '-', '-'],\r\n '09:45:00': ['-', 0, 1, 0, '-', 2, '-'],\r\n '08:30:00': ['-', 3, 0, 0, '-', 1, '-'],\r\n '08:00:00': ['-', 0, 2, 0, '-', '-', 1],\r\n '09:30:00': ['-', 0, 0, 0, '-', 5, '-'],\r\n }\r\n */\r\n init() {\r\n const step = this._step\r\n // We don't want inactive days!\r\n const dayPartSchedules = this._schedules.reduce((dayParts, schedule) => {\r\n if (schedule.isActive) {\r\n dayParts.push(...schedule.dayPartSchedules)\r\n }\r\n return dayParts\r\n }, [])\r\n\r\n // Build the map\r\n const allTimeKeys = []\r\n for (const dayPart of dayPartSchedules) {\r\n let currentInterval = dayPart.dayPartCap.start\r\n\r\n while (currentInterval) {\r\n if (!this[currentInterval]) {\r\n this[currentInterval] = Array(7).fill('-')\r\n allTimeKeys.push(currentInterval)\r\n }\r\n this[currentInterval][dayPart.dayPartCap.dayIndex] = 0\r\n currentInterval = IntervalMap.nextTime(\r\n currentInterval,\r\n step,\r\n dayPart.dayPartCap.end\r\n )\r\n if (currentInterval === dayPart.dayPartCap.end) {\r\n break\r\n }\r\n }\r\n\r\n for (const intervalCap of dayPart.intervalCaps) {\r\n this[intervalCap.start][dayPart.dayPartCap.dayIndex] +=\r\n intervalCap.limit\r\n }\r\n }\r\n\r\n // Sort the time keys for rendering\r\n this.keys = allTimeKeys.sort((a, b) => {\r\n const aSecs = IntervalMap.toSeconds(a)\r\n const bSecs = IntervalMap.toSeconds(b)\r\n return aSecs > bSecs ? 1 : -1\r\n })\r\n }\r\n\r\n buildTableBody() {\r\n const buildCol = (dayIndex, startTime) => `\r\n \r\n \r\n ${this[startTime][dayIndex]}\r\n \r\n \r\n `\r\n\r\n let intervalRows = ''\r\n let rowCount = 0\r\n\r\n if (this.keys.length === 0) {\r\n intervalRows = '(No Active Days)'\r\n } else {\r\n // Build the table rows from keys.\r\n if (!this['00:00:00']) {\r\n intervalRows += `\r\n \r\n \r\n (No Prior Entries)\r\n \r\n `\r\n }\r\n\r\n const stepSeconds = IntervalMap.toSeconds(this._step)\r\n let priorSeconds = IntervalMap.toSeconds(this.keys[0]) - stepSeconds\r\n const lastKey = this.keys[this.keys.length - 1]\r\n for (const interval of this.keys) {\r\n const nextStepSeconds = priorSeconds + stepSeconds\r\n const actualNextSeconds = IntervalMap.toSeconds(interval)\r\n if (actualNextSeconds > nextStepSeconds) {\r\n if (actualNextSeconds > nextStepSeconds + stepSeconds) {\r\n intervalRows += `\r\n \r\n ...\r\n (Collapsed)\r\n \r\n `\r\n } else {\r\n const disabledHour = new Date(nextStepSeconds * 1000)\r\n .toISOString()\r\n .substr(11, 8)\r\n this[disabledHour] = Array(7).fill('-')\r\n intervalRows += `\r\n \r\n ${IntervalMap.formatTime(disabledHour, false, true)}\r\n ${buildCol(1, disabledHour)}\r\n ${buildCol(2, disabledHour)}\r\n ${buildCol(3, disabledHour)}\r\n ${buildCol(4, disabledHour)}\r\n ${buildCol(5, disabledHour)}\r\n ${buildCol(6, disabledHour)}\r\n ${buildCol(0, disabledHour)}\r\n \r\n `\r\n delete this[disabledHour]\r\n }\r\n }\r\n rowCount++\r\n intervalRows += `\r\n \r\n ${IntervalMap.formatTime(interval, false, true)}\r\n ${buildCol(1, interval)}\r\n ${buildCol(2, interval)}\r\n ${buildCol(3, interval)}\r\n ${buildCol(4, interval)}\r\n ${buildCol(5, interval)}\r\n ${buildCol(6, interval)}\r\n ${buildCol(0, interval)}\r\n \r\n `\r\n priorSeconds = actualNextSeconds\r\n }\r\n\r\n intervalRows += `\r\n \r\n \r\n (No Later Entries)\r\n \r\n `\r\n }\r\n\r\n const tbody = document.createElement('tbody')\r\n tbody.innerHTML = intervalRows\r\n const activeCells = tbody.querySelectorAll(\r\n '[data-start]:not([class*=\"disabled\"])'\r\n )\r\n for (const cell of activeCells) {\r\n cell.addEventListener('click', this._showInput)\r\n }\r\n\r\n return tbody\r\n }\r\n\r\n _submitCell(e) {\r\n const ESC = 27\r\n const ENTER = 13\r\n const TAB = 9\r\n\r\n if (e.keyCode === ENTER) {\r\n this._hideInput(e.currentTarget.parentNode)\r\n } else if (e.keyCode === TAB) {\r\n const nextCell = this._nextCell(e.currentTarget, e.shiftKey)\r\n nextCell.click()\r\n } else if (e.keyCode === ESC) {\r\n this._hideInput(e.currentTarget.parentNode, true)\r\n } else {\r\n return\r\n }\r\n\r\n e.preventDefault()\r\n return false\r\n }\r\n\r\n _nextCell(currentTarget, flowBack = false) {\r\n if (\r\n currentTarget.nodeName !== 'INPUT' ||\r\n currentTarget.parentNode.nodeName !== 'TD' ||\r\n currentTarget.parentNode.parentNode.nodeName !== 'TR' ||\r\n currentTarget.parentNode.parentNode.parentNode.nodeName !== 'TBODY'\r\n ) {\r\n throw new Error(\r\n '_nextCell has been broken by changes. Please check the structure as expected above.'\r\n )\r\n }\r\n const lastRowIndex = +currentTarget.parentNode.parentNode.parentNode\r\n .querySelector('[last-row]')\r\n .getAttribute('data-row-index')\r\n let nextRowIndex =\r\n +currentTarget.parentNode.parentNode.getAttribute('data-row-index')\r\n let nextColIndex = +currentTarget.parentNode.getAttribute('data-col-index')\r\n for (let i = 0; i < 1000; i++) {\r\n if (flowBack) {\r\n nextRowIndex--\r\n if (nextRowIndex < 0) {\r\n nextRowIndex = lastRowIndex\r\n nextColIndex--\r\n if (nextColIndex < 1) {\r\n nextColIndex = 7\r\n }\r\n }\r\n } else {\r\n nextRowIndex++\r\n if (nextRowIndex > lastRowIndex) {\r\n nextRowIndex = 0\r\n nextColIndex++\r\n if (nextColIndex > 7) {\r\n nextColIndex = 1\r\n }\r\n }\r\n }\r\n\r\n const nextColCandidate =\r\n currentTarget.parentNode.parentNode.parentNode.querySelector(\r\n `tr[data-row-index=\"${nextRowIndex}\"]>td[data-col-index=\"${nextColIndex}\"]:not([class*=\"disabled\"])`\r\n )\r\n\r\n if (nextColCandidate !== null) {\r\n return nextColCandidate\r\n }\r\n }\r\n throw new Error('Failed to find next cell')\r\n }\r\n\r\n _hideInput(cell, isCancelling = false) {\r\n if (cell instanceof FocusEvent) {\r\n cell = cell.currentTarget.parentNode\r\n }\r\n const label = cell.children[0]\r\n const input = cell.children[1]\r\n\r\n const labelText = label.innerText.trim()\r\n if (isCancelling) {\r\n input.value = labelText\r\n } else if (input.value !== labelText) {\r\n const dayIndex = +cell.getAttribute('data-day')\r\n const start = cell.getAttribute('data-start')\r\n this[start][dayIndex] = +input.value\r\n this.onSubmit({\r\n limit: +input.value,\r\n dayIndex: dayIndex,\r\n start: start,\r\n })\r\n }\r\n\r\n label.innerText = input.value\r\n\r\n input.classList.add('d-none')\r\n label.classList.remove('d-none')\r\n\r\n cell.addEventListener('click', this._showInput)\r\n input.removeEventListener('keydown', this._submitCell)\r\n input.removeEventListener('blur', this._hideInput)\r\n\r\n input.parentNode.removeChild(input)\r\n\r\n this._lastCell = null\r\n }\r\n\r\n _showInput(e) {\r\n const cell = e.currentTarget\r\n cell.innerHTML += `\r\n `\r\n const label = cell.children[0]\r\n const input = cell.children[1]\r\n\r\n if (this._lastCell) {\r\n this._hideInput(this._lastCell)\r\n }\r\n\r\n label.classList.add('d-none')\r\n input.classList.remove('d-none')\r\n\r\n cell.removeEventListener('click', this._showInput)\r\n input.addEventListener('keydown', this._submitCell)\r\n input.addEventListener('blur', this._hideInput)\r\n\r\n input.focus()\r\n input.select()\r\n\r\n this._lastCell = cell\r\n }\r\n\r\n static calculateStep(cap) {\r\n const startSeconds = IntervalMap.toSeconds(cap.start)\r\n const endSeconds = IntervalMap.toSeconds(cap.end)\r\n const diffSeconds = endSeconds - startSeconds\r\n const intervalStep = new Date(diffSeconds * 1000)\r\n .toISOString()\r\n .substr(11, 8)\r\n return intervalStep\r\n }\r\n\r\n static parseTime(time) {\r\n const values = (time || '').split(':')\r\n\r\n if (values.length >= 2) {\r\n const hours = parseInt(values[0], 10)\r\n const minutes = parseInt(values[1], 10)\r\n\r\n let seconds = 0\r\n if (values.length > 2) {\r\n seconds = parseInt(values[2], 10)\r\n }\r\n\r\n return {\r\n hours: hours,\r\n minutes: minutes,\r\n seconds: seconds,\r\n }\r\n }\r\n\r\n if (values.length === 1) {\r\n const minutes = parseInt(values[0], 10)\r\n return {\r\n hours: Math.floor(minutes / 60),\r\n minutes: minutes % 60,\r\n total: minutes,\r\n }\r\n }\r\n\r\n return {\r\n hours: 0,\r\n minutes: 0,\r\n total: 0,\r\n }\r\n }\r\n\r\n static formatTime(time, incSeconds = false, incAmPm = false) {\r\n if (typeof time === 'string') {\r\n time = IntervalMap.parseTime(time)\r\n }\r\n\r\n const suffix = time.hours >= 12 && time.hours < 24 ? ' PM' : ' AM'\r\n\r\n if (time.hours > 12 && incAmPm) {\r\n time.hours -= 12\r\n } else if (time.hours === 0 && incAmPm) {\r\n time.hours = 12\r\n }\r\n\r\n const hours = time.hours < 10 ? '0' + time.hours : time.hours\r\n const minutes = time.minutes < 10 ? '0' + time.minutes : time.minutes\r\n const seconds = time.seconds < 10 ? '0' + time.seconds : time.seconds\r\n\r\n return (\r\n hours +\r\n ':' +\r\n minutes +\r\n (incSeconds ? ':' + seconds : '') +\r\n (incAmPm ? suffix : '')\r\n )\r\n }\r\n\r\n static compareTime(time1, time2) {\r\n const value1 = IntervalMap.parseTime(time1)\r\n const value2 = IntervalMap.parseTime(time2)\r\n const minutes1 = value1.minutes + value1.hours * 60\r\n const minutes2 = value2.minutes + value2.hours * 60\r\n\r\n if (minutes1 === minutes2) {\r\n return 0\r\n }\r\n\r\n return minutes1 > minutes2 ? 1 : -1\r\n }\r\n\r\n static nextTime(time, step, max = '23:45:00') {\r\n const timeValue = IntervalMap.parseTime(time)\r\n const stepValue = IntervalMap.parseTime(step)\r\n\r\n const next = {\r\n hours: timeValue.hours,\r\n minutes: timeValue.minutes,\r\n seconds: 0,\r\n }\r\n\r\n next.minutes += stepValue.minutes\r\n next.hours += stepValue.hours\r\n next.hours += Math.floor(next.minutes / 60)\r\n next.minutes = next.minutes % 60\r\n\r\n const nextTime = IntervalMap.formatTime(next, true)\r\n\r\n if (IntervalMap.compareTime(nextTime, max) > 0) {\r\n return max\r\n }\r\n\r\n return nextTime\r\n }\r\n\r\n static toSeconds(time) {\r\n if (typeof time === 'string') {\r\n time = IntervalMap.parseTime(time)\r\n }\r\n const minutes = time.minutes + time.hours * 60\r\n const seconds = time.seconds + minutes * 60\r\n return seconds\r\n }\r\n\r\n static getTimeRange(start, end, step) {\r\n const result = []\r\n\r\n if (start && end && step) {\r\n let current = start\r\n while (IntervalMap.compareTime(current, end) <= 0) {\r\n const option = {\r\n label: IntervalMap.formatTime(current, false, true),\r\n value: current,\r\n }\r\n result.push(option)\r\n if (current === end) break\r\n current = IntervalMap.nextTime(current, step, end)\r\n }\r\n }\r\n\r\n return result\r\n }\r\n}\r\n","export default class WebLeadIntervalMap {\r\n constructor(schedules = [], step = '00:30:00') {\r\n this._step = step\r\n this._schedules = schedules\r\n this._showInput = this._showInput.bind(this)\r\n this._hideInput = this._hideInput.bind(this)\r\n this._submitCell = this._submitCell.bind(this)\r\n this.init()\r\n }\r\n\r\n get step() {\r\n return this._step\r\n }\r\n\r\n static get stepOptions() {\r\n return [\r\n { label: '30 Min', value: '00:30:00' },\r\n { label: '1 Hour', value: '01:00:00' },\r\n ]\r\n }\r\n\r\n /*\r\n Code taken from Calls IntervalMap and reworked to fit Web Leads\r\n }\r\n */\r\n init() {\r\n const step = this._step\r\n // We don't want inactive days!\r\n const dayPartSchedules = this._schedules.reduce((dayParts, schedule) => {\r\n if (schedule.isActive) {\r\n dayParts.push(...schedule.dayPartSchedules)\r\n }\r\n return dayParts\r\n }, [])\r\n\r\n // Build the map\r\n const allTimeKeys = []\r\n for (const dayPart of dayPartSchedules) {\r\n let currentInterval = dayPart.dayPartCap.start\r\n\r\n while (currentInterval) {\r\n if (!this[currentInterval]) {\r\n this[currentInterval] = Array(7).fill('-')\r\n allTimeKeys.push(currentInterval)\r\n }\r\n this[currentInterval][dayPart.dayPartCap.dayIndex] = 0\r\n currentInterval = WebLeadIntervalMap.nextTime(\r\n currentInterval,\r\n step,\r\n dayPart.dayPartCap.end\r\n )\r\n if (currentInterval === dayPart.dayPartCap.end) {\r\n break\r\n }\r\n }\r\n\r\n for (const intervalCap of dayPart.intervalCaps) {\r\n this[intervalCap.start][dayPart.dayPartCap.dayIndex] +=\r\n intervalCap.limit\r\n }\r\n }\r\n\r\n // Sort the time keys for rendering\r\n this.keys = allTimeKeys.sort((a, b) => {\r\n const aSecs = WebLeadIntervalMap.toSeconds(a)\r\n const bSecs = WebLeadIntervalMap.toSeconds(b)\r\n return aSecs > bSecs ? 1 : -1\r\n })\r\n }\r\n\r\n buildTableBody() {\r\n const buildCol = (dayIndex, startTime) => `\r\n \r\n \r\n ${this[startTime][dayIndex]}\r\n \r\n \r\n `\r\n\r\n let intervalRows = ''\r\n let rowCount = 0\r\n\r\n if (this.keys.length === 0) {\r\n intervalRows = '(No Active Days)'\r\n } else {\r\n // Build the table rows from keys.\r\n if (!this['00:00:00']) {\r\n intervalRows += `\r\n \r\n \r\n (No Prior Entries)\r\n \r\n `\r\n }\r\n\r\n const stepSeconds = WebLeadIntervalMap.toSeconds(this._step)\r\n let priorSeconds = WebLeadIntervalMap.toSeconds(this.keys[0]) - stepSeconds\r\n const lastKey = this.keys[this.keys.length - 1]\r\n for (const interval of this.keys) {\r\n const nextStepSeconds = priorSeconds + stepSeconds\r\n const actualNextSeconds = WebLeadIntervalMap.toSeconds(interval)\r\n if (actualNextSeconds > nextStepSeconds) {\r\n if (actualNextSeconds > nextStepSeconds + stepSeconds) {\r\n intervalRows += `\r\n \r\n ...\r\n (Collapsed)\r\n \r\n `\r\n } else {\r\n const disabledHour = new Date(nextStepSeconds * 1000)\r\n .toISOString()\r\n .substr(11, 8)\r\n this[disabledHour] = Array(7).fill('-')\r\n intervalRows += `\r\n \r\n ${WebLeadIntervalMap.formatTime(disabledHour, false, true)}\r\n ${buildCol(1, disabledHour)}\r\n ${buildCol(2, disabledHour)}\r\n ${buildCol(3, disabledHour)}\r\n ${buildCol(4, disabledHour)}\r\n ${buildCol(5, disabledHour)}\r\n ${buildCol(6, disabledHour)}\r\n ${buildCol(0, disabledHour)}\r\n \r\n `\r\n delete this[disabledHour]\r\n }\r\n }\r\n rowCount++\r\n intervalRows += `\r\n \r\n ${WebLeadIntervalMap.formatTime(interval, false, true)}\r\n ${buildCol(1, interval)}\r\n ${buildCol(2, interval)}\r\n ${buildCol(3, interval)}\r\n ${buildCol(4, interval)}\r\n ${buildCol(5, interval)}\r\n ${buildCol(6, interval)}\r\n ${buildCol(0, interval)}\r\n \r\n `\r\n priorSeconds = actualNextSeconds\r\n }\r\n\r\n intervalRows += `\r\n \r\n \r\n (No Later Entries)\r\n \r\n `\r\n }\r\n\r\n const tbody = document.createElement('tbody')\r\n tbody.innerHTML = intervalRows\r\n const activeCells = tbody.querySelectorAll(\r\n '[data-start]:not([class*=\"disabled\"])'\r\n )\r\n for (const cell of activeCells) {\r\n cell.addEventListener('click', this._showInput)\r\n }\r\n\r\n return tbody\r\n }\r\n\r\n _submitCell(e) {\r\n const ESC = 27\r\n const ENTER = 13\r\n const TAB = 9\r\n\r\n if (e.keyCode === ENTER) {\r\n this._hideInput(e.currentTarget.parentNode)\r\n } else if (e.keyCode === TAB) {\r\n const nextCell = this._nextCell(e.currentTarget, e.shiftKey)\r\n nextCell.click()\r\n } else if (e.keyCode === ESC) {\r\n this._hideInput(e.currentTarget.parentNode, true)\r\n } else {\r\n return\r\n }\r\n\r\n e.preventDefault()\r\n return false\r\n }\r\n\r\n _nextCell(currentTarget, flowBack = false) {\r\n if (\r\n currentTarget.nodeName !== 'INPUT' ||\r\n currentTarget.parentNode.nodeName !== 'TD' ||\r\n currentTarget.parentNode.parentNode.nodeName !== 'TR' ||\r\n currentTarget.parentNode.parentNode.parentNode.nodeName !== 'TBODY'\r\n ) {\r\n throw new Error(\r\n '_nextCell has been broken by changes. Please check the structure as expected above.'\r\n )\r\n }\r\n const lastRowIndex = +currentTarget.parentNode.parentNode.parentNode\r\n .querySelector('[last-row]')\r\n .getAttribute('data-row-index')\r\n let nextRowIndex =\r\n +currentTarget.parentNode.parentNode.getAttribute('data-row-index')\r\n let nextColIndex = +currentTarget.parentNode.getAttribute('data-col-index')\r\n for (let i = 0; i < 1000; i++) {\r\n if (flowBack) {\r\n nextRowIndex--\r\n if (nextRowIndex < 0) {\r\n nextRowIndex = lastRowIndex\r\n nextColIndex--\r\n if (nextColIndex < 1) {\r\n nextColIndex = 7\r\n }\r\n }\r\n } else {\r\n nextRowIndex++\r\n if (nextRowIndex > lastRowIndex) {\r\n nextRowIndex = 0\r\n nextColIndex++\r\n if (nextColIndex > 7) {\r\n nextColIndex = 1\r\n }\r\n }\r\n }\r\n\r\n const nextColCandidate =\r\n currentTarget.parentNode.parentNode.parentNode.querySelector(\r\n `tr[data-row-index=\"${nextRowIndex}\"]>td[data-col-index=\"${nextColIndex}\"]:not([class*=\"disabled\"])`\r\n )\r\n\r\n if (nextColCandidate !== null) {\r\n return nextColCandidate\r\n }\r\n }\r\n throw new Error('Failed to find next cell')\r\n }\r\n\r\n _hideInput(cell, isCancelling = false) {\r\n if (cell instanceof FocusEvent) {\r\n cell = cell.currentTarget.parentNode\r\n }\r\n const label = cell.children[0]\r\n const input = cell.children[1]\r\n\r\n const labelText = label.innerText.trim()\r\n if (isCancelling) {\r\n input.value = labelText\r\n } else if (input.value !== labelText) {\r\n const dayIndex = +cell.getAttribute('data-day')\r\n const start = cell.getAttribute('data-start')\r\n this[start][dayIndex] = +input.value\r\n this.onSubmit({\r\n limit: +input.value,\r\n dayIndex: dayIndex,\r\n start: start,\r\n })\r\n }\r\n\r\n label.innerText = input.value\r\n\r\n input.classList.add('d-none')\r\n label.classList.remove('d-none')\r\n\r\n cell.addEventListener('click', this._showInput)\r\n input.removeEventListener('keydown', this._submitCell)\r\n input.removeEventListener('blur', this._hideInput)\r\n\r\n input.parentNode.removeChild(input)\r\n\r\n this._lastCell = null\r\n }\r\n\r\n _showInput(e) {\r\n const cell = e.currentTarget\r\n cell.innerHTML += `\r\n `\r\n const label = cell.children[0]\r\n const input = cell.children[1]\r\n\r\n if (this._lastCell) {\r\n this._hideInput(this._lastCell)\r\n }\r\n\r\n label.classList.add('d-none')\r\n input.classList.remove('d-none')\r\n\r\n cell.removeEventListener('click', this._showInput)\r\n input.addEventListener('keydown', this._submitCell)\r\n input.addEventListener('blur', this._hideInput)\r\n\r\n input.focus()\r\n input.select()\r\n\r\n this._lastCell = cell\r\n }\r\n\r\n static calculateStep(cap) {\r\n const startSeconds = WebLeadIntervalMap.toSeconds(cap.start)\r\n const endSeconds = WebLeadIntervalMap.toSeconds(cap.end)\r\n const diffSeconds = endSeconds - startSeconds\r\n const intervalStep = new Date(diffSeconds * 1000)\r\n .toISOString()\r\n .substr(11, 8)\r\n return intervalStep\r\n }\r\n\r\n static parseTime(time) {\r\n const values = (time || '').split(':')\r\n\r\n if (values.length >= 2) {\r\n const hours = parseInt(values[0], 10)\r\n const minutes = parseInt(values[1], 10)\r\n\r\n let seconds = 0\r\n if (values.length > 2) {\r\n seconds = parseInt(values[2], 10)\r\n }\r\n\r\n return {\r\n hours: hours,\r\n minutes: minutes,\r\n seconds: seconds,\r\n }\r\n }\r\n\r\n if (values.length === 1) {\r\n const minutes = parseInt(values[0], 10)\r\n return {\r\n hours: Math.floor(minutes / 60),\r\n minutes: minutes % 60,\r\n total: minutes,\r\n }\r\n }\r\n\r\n return {\r\n hours: 0,\r\n minutes: 0,\r\n total: 0,\r\n }\r\n }\r\n\r\n static formatTime(time, incSeconds = false, incAmPm = false) {\r\n if (typeof time === 'string') {\r\n time = WebLeadIntervalMap.parseTime(time)\r\n }\r\n\r\n const suffix = time.hours >= 12 && time.hours < 24 ? ' PM' : ' AM'\r\n\r\n if (time.hours > 12 && incAmPm) {\r\n time.hours -= 12\r\n } else if (time.hours === 0 && incAmPm) {\r\n time.hours = 12\r\n }\r\n\r\n const hours = time.hours < 10 ? '0' + time.hours : time.hours\r\n const minutes = time.minutes < 10 ? '0' + time.minutes : time.minutes\r\n const seconds = time.seconds < 10 ? '0' + time.seconds : time.seconds\r\n\r\n return (\r\n hours +\r\n ':' +\r\n minutes +\r\n (incSeconds ? ':' + seconds : '') +\r\n (incAmPm ? suffix : '')\r\n )\r\n }\r\n\r\n static compareTime(time1, time2) {\r\n const value1 = WebLeadIntervalMap.parseTime(time1)\r\n const value2 = WebLeadIntervalMap.parseTime(time2)\r\n const minutes1 = value1.minutes + value1.hours * 60\r\n const minutes2 = value2.minutes + value2.hours * 60\r\n\r\n if (minutes1 === minutes2) {\r\n return 0\r\n }\r\n\r\n return minutes1 > minutes2 ? 1 : -1\r\n }\r\n\r\n static nextTime(time, step, max = '24:00:00') {\r\n const timeValue = WebLeadIntervalMap.parseTime(time)\r\n const stepValue = WebLeadIntervalMap.parseTime(step)\r\n\r\n const next = {\r\n hours: timeValue.hours,\r\n minutes: timeValue.minutes,\r\n seconds: 0,\r\n }\r\n\r\n next.minutes += stepValue.minutes\r\n next.hours += stepValue.hours\r\n next.hours += Math.floor(next.minutes / 60)\r\n next.minutes = next.minutes % 60\r\n\r\n const nextTime = WebLeadIntervalMap.formatTime(next, true)\r\n\r\n if (WebLeadIntervalMap.compareTime(nextTime, max) > 0) {\r\n return max\r\n }\r\n\r\n return nextTime\r\n }\r\n\r\n static toSeconds(time) {\r\n if (typeof time === 'string') {\r\n time = WebLeadIntervalMap.parseTime(time)\r\n }\r\n const minutes = time.minutes + time.hours * 60\r\n const seconds = time.seconds + minutes * 60\r\n return seconds\r\n }\r\n\r\n static getTimeRange(start, end, step) {\r\n const result = []\r\n\r\n if (start && end && step) {\r\n let current = start\r\n while (WebLeadIntervalMap.compareTime(current, end) <= 0) {\r\n const option = {\r\n label: WebLeadIntervalMap.formatTime(current, false, true),\r\n value: current,\r\n }\r\n result.push(option)\r\n if (current === end) break\r\n current = WebLeadIntervalMap.nextTime(current, step, end)\r\n }\r\n }\r\n\r\n return result\r\n }\r\n}\r\n","import { createStore } from 'vuex'\r\nimport modules from './modules'\r\n\r\nexport const store = createStore({\r\n modules,\r\n // plugins: [\r\n // process.env.NODE_ENV !== 'production' ? VuePursue : () => {}\r\n // ],\r\n strict: process.env.NODE_ENV !== 'production',\r\n})\r\n\r\nexport default {\r\n install(vue, options) {\r\n vue.use(store);\r\n\r\n vue.$store = store;\r\n Object.defineProperty(vue.config.globalProperties, '$store', {\r\n get: () => vue.$store,\r\n set: (val) => {\r\n vue.$store = val\r\n },\r\n });\r\n\r\n // Automatically run the `init` action for every module, if one exists.\r\n for (const moduleName of Object.keys(modules)) {\r\n if (modules[moduleName].actions.init) {\r\n store.dispatch(`${moduleName}/init`)\r\n }\r\n }\r\n },\r\n}\r\n","import { store } from '@/store';\r\nimport uuidv4 from 'uuid/v4';\r\nimport { ROLES } from '@/services/auth';\r\n\r\nexport default [\r\n // Admin Dashbaord\r\n {\r\n path: '/ad',\r\n name: 'admin_dashboard',\r\n component: () => import('@/pages/AdminDashboard'),\r\n meta: {\r\n authRequired: true,\r\n requiredRoles: [\r\n ROLES.CLIENT_SERVICES,\r\n ROLES.CORPORATE_BUCKET_ACCOUNT_CREATOR,\r\n ],\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // clear out other data\r\n store.dispatch('client/reset');\r\n store.dispatch('channels/reset');\r\n store.dispatch('leads/reset');\r\n store.dispatch('billing/reset');\r\n store.dispatch('transactions/reset');\r\n store.dispatch('vendors/reset');\r\n store.dispatch('leadCredit/reset');\r\n store.dispatch('calls/reset');\r\n\r\n next();\r\n },\r\n },\r\n },\r\n // Leads\r\n {\r\n path: '/client',\r\n component: () =>\r\n import(/* webpackChunkName: \"client\" */ '@/pages/leads/Root'),\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n if (routeFrom.path === '/ad') {\r\n // clear out other data\r\n store.dispatch('client/reset');\r\n store.dispatch('channels/reset');\r\n store.dispatch('leads/reset');\r\n store.dispatch('billing/reset');\r\n store.dispatch('transactions/reset');\r\n store.dispatch('vendors/reset');\r\n store.dispatch('leadCredit/reset');\r\n store.dispatch('calls/reset');\r\n store.dispatch('channelGroups/resetGroups');\r\n }\r\n return store\r\n .dispatch('client/fetchClient', {\r\n clientId: routeTo.params.clientId,\r\n })\r\n .then((client) => {\r\n routeTo.params.client = client;\r\n next();\r\n })\r\n .catch((error) => {\r\n if (error === 401) {\r\n next({\r\n name: '403',\r\n });\r\n } else {\r\n const errorId = uuidv4();\r\n\r\n next({\r\n name: '500',\r\n params: {\r\n errorId,\r\n },\r\n });\r\n }\r\n });\r\n },\r\n },\r\n\r\n props: (route) => ({\r\n client: route.params.client,\r\n }),\r\n children: [\r\n // Account page\r\n {\r\n path: ':clientId',\r\n name: 'client_root',\r\n meta: {\r\n async beforeResolve(routeTo, routeFrom, next) {\r\n if (routeTo.params.clientId) {\r\n // Get client\r\n store.dispatch('channelGroups/resetGroups');\r\n await store.dispatch('client/fetchClient', {\r\n clientId: routeTo.params.clientId,\r\n });\r\n }\r\n next();\r\n },\r\n },\r\n component: () =>\r\n import(/* webpackChunkName: \"client\" */ '@/pages/Dashboard'),\r\n },\r\n // Account\r\n {\r\n path: ':clientId/account',\r\n name: 'client_account',\r\n meta: {\r\n beforeResolve(routeTo, routeFrom, next) {\r\n store\r\n .dispatch('client/getClientAccountDetails', {\r\n clientId: routeTo.params.client.id,\r\n })\r\n .then((accountDetails) => {\r\n routeTo.params.accountDetails = accountDetails;\r\n next();\r\n });\r\n },\r\n },\r\n props: (route) => ({\r\n accountDetails: route.params.accountDetails,\r\n }),\r\n component: () =>\r\n import(/* webpackChunkName: \"client\" */ '@/pages/agent/Index'),\r\n },\r\n {\r\n path: ':clientId/pause',\r\n name: 'vacation_pause',\r\n meta: {\r\n beforeResolve(routeTo, routeFrom, next) {\r\n next();\r\n },\r\n },\r\n component: () =>\r\n import(/* webpackChunkName: \"client\" */ '@/pages/agent/Pause'),\r\n },\r\n // Leads\r\n {\r\n path: ':clientId/leads',\r\n name: 'client_leads',\r\n meta: {\r\n beforeResolve(routeTo, routeFrom, next) {\r\n next();\r\n },\r\n },\r\n component: () =>\r\n import(/* webpackChunkName: \"leads\" */ '@/pages/leads/Leads'),\r\n },\r\n // Leads Detail\r\n {\r\n path: ':clientId/leads/:id/details',\r\n name: 'client_leads_detail',\r\n component: () =>\r\n import(/* webpackChunkName: \"leads\" */ '@/pages/leads/Detail'),\r\n meta: {\r\n async beforeResolve(routeTo, routeFrom, next) {\r\n try {\r\n let leadResponse = null;\r\n\r\n leadResponse = await store\r\n .dispatch('leadDetail/getLead', {\r\n leadId: routeTo.params.id,\r\n leadType: routeTo.query.leadType,\r\n })\r\n .catch((err) => err);\r\n\r\n routeTo.params.lead = leadResponse;\r\n\r\n let packet = null;\r\n\r\n if (routeTo.query.leadType.toLowerCase() === 'call') {\r\n packet = await store.dispatch('leadDetail/getCallLeadPacket', {\r\n outboundCallSid: routeTo.query.sid,\r\n });\r\n } else {\r\n packet = await store.dispatch('leadDetail/getLeadPacket', {\r\n sessionId: leadResponse.sessionId,\r\n });\r\n }\r\n\r\n routeTo.params.packet = packet;\r\n\r\n next();\r\n } catch (err) {\r\n console.error(err);\r\n next();\r\n }\r\n },\r\n },\r\n props: (route) => ({\r\n lead: route.params.lead,\r\n packet: route.params.packet,\r\n leadId: route.params.id,\r\n leadType: route.query.leadType,\r\n clientId: route.params.clientId,\r\n }),\r\n },\r\n // State farm subsidies\r\n {\r\n path: ':clientId/stateFarmSubsidies',\r\n name: 'state_farm_subsidies',\r\n component: () =>\r\n import(\r\n /* webpackChunkName: \"subsidy\" */ '@/pages/subsidy/StateFarmSubsidies'\r\n ),\r\n },\r\n {\r\n path: ':clientId/leads/channels',\r\n name: 'leads_channels',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n store.dispatch('clientRules/getClientRulesList').then(() => next());\r\n },\r\n },\r\n component: () =>\r\n import(/* webpackChunkName: \"leads\" */ '@/pages/leads/Channels'),\r\n props: (route) => {\r\n return {\r\n startingProductType: route.params.startingProductType,\r\n };\r\n },\r\n },\r\n ],\r\n },\r\n {\r\n path: '/staff-tools/:clientId?',\r\n name: 'StaffOnlyUtilities',\r\n component: () => import('@/pages/staff/StaffOnlyUtilities'),\r\n meta: {\r\n authRequired: true,\r\n requiredRoles: [ROLES.CLIENT_SERVICES],\r\n async beforeResolve(routeTo, routeFrom, next) {\r\n if (routeTo.params.clientId) {\r\n // Get client\r\n await store.dispatch('client/fetchClient', {\r\n clientId: routeTo.params.clientId,\r\n });\r\n }\r\n next();\r\n },\r\n },\r\n },\r\n {\r\n path: '/leads/channeledit/:clientId/:clientQuoteTypeId',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n store\r\n .dispatch('client/fetchClient', {\r\n clientId: routeTo.params.clientId,\r\n })\r\n .then((client) => {\r\n routeTo.params.client = client;\r\n next();\r\n });\r\n },\r\n },\r\n name: 'leads_channel_edit',\r\n component: () =>\r\n import(/* webpackChunkName: \"leads_edit\" */ '@/pages/leads/EditChannel'),\r\n props: (route) => ({\r\n client: route.params.client,\r\n }),\r\n },\r\n\r\n {\r\n path: '/leads/create-channel/:clientId',\r\n name: 'leads_channel_add',\r\n component: () =>\r\n import(/* webpackChunkName: \"leads_edit\" */ '@/pages/leads/AddChannel'),\r\n },\r\n\r\n {\r\n path: '/leads/create-channel/:clientId/:serviceType',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n let isCampaign = false;\r\n\r\n if (\r\n routeTo.params.serviceType.toLocaleLowerCase() ===\r\n 'CallCampaign'.toLocaleLowerCase()\r\n ) {\r\n isCampaign = true;\r\n routeTo.params.serviceType = 'call';\r\n routeTo.params.stateOverridesEnabled = true;\r\n }\r\n\r\n store\r\n .dispatch('client/fetchClient', {\r\n clientId: routeTo.params.clientId,\r\n })\r\n .then((client) => {\r\n if (isCampaign && !store.getters['client/isCorporate']) {\r\n next({ name: '404' });\r\n return;\r\n }\r\n\r\n routeTo.params.client = client;\r\n next();\r\n });\r\n },\r\n },\r\n name: 'all_leads_channel_add',\r\n props: true,\r\n component: () =>\r\n import(/* webpackChunkName: \"leads_edit\" */ '@/pages/leads/AddChannel'),\r\n },\r\n\r\n {\r\n path: '/leads/create-channel-lut/:clientId',\r\n name: 'channel_add_lut',\r\n component: () =>\r\n import(/* webpackChunkName: \"leads\" */ '@/pages/leads/AddChannelLut'),\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n store\r\n .dispatch('client/fetchClient', {\r\n clientId: routeTo.params.clientId,\r\n })\r\n .then((client) => {\r\n routeTo.params.client = client;\r\n next();\r\n });\r\n },\r\n },\r\n },\r\n\r\n // Billing\r\n {\r\n path: '/billing',\r\n component: () =>\r\n import(/* webpackChunkName: \"billing\" */ '@/pages/billing/Billing'),\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n store\r\n .dispatch('client/fetchClient', {\r\n clientId: routeTo.params.clientId,\r\n })\r\n .then((client) => {\r\n routeTo.params.client = client;\r\n next();\r\n });\r\n },\r\n },\r\n\r\n props: (route) => ({\r\n client: route.params.client,\r\n }),\r\n children: [\r\n {\r\n path: '/billing/:clientId',\r\n name: 'billing',\r\n component: () =>\r\n import(/* webpackChunkName: \"billing\" */ '@/pages/billing/Billing'),\r\n meta: {\r\n authRequired: true,\r\n },\r\n },\r\n ],\r\n },\r\n // Support\r\n {\r\n path: '/support',\r\n name: 'client_Support',\r\n component: () =>\r\n import(/* webpackChunkName: \"support\" */ '@/pages/Support'),\r\n meta: {\r\n authRequired: true,\r\n },\r\n },\r\n // Subsidy\r\n {\r\n path: '/subsidy',\r\n name: 'subsidy',\r\n component: () => import('@/pages/subsidy/Index'),\r\n meta: {\r\n authRequired: true,\r\n },\r\n },\r\n // Health\r\n {\r\n path: '/health',\r\n name: 'health',\r\n component: () => import('@/pages/global/Health'),\r\n meta: {\r\n authRequired: true,\r\n },\r\n },\r\n\r\n {\r\n path: '/logged-out',\r\n name: 'logged_out',\r\n component: () =>\r\n import(\r\n /* webpackChunkName: \"loggedout\" */ /* webpackMode: \"lazy\" */ '@/pages/global/LoggedOut'\r\n ),\r\n meta: {\r\n authRequired: false,\r\n },\r\n },\r\n\r\n // Client Dashboard\r\n {\r\n path: '/cd/:client_id',\r\n name: 'client_dashboard',\r\n component: () => import('@/pages/Dashboard'),\r\n meta: {\r\n requiredRoles: [ROLES.EVEREST],\r\n authRequired: true,\r\n },\r\n },\r\n // Sign up\r\n {\r\n path: '/signup/:ioId?',\r\n name: 'signup',\r\n component: () => import('@/pages/signup/SetupContract'),\r\n meta: {\r\n authRequired: true,\r\n requiredRoles: [ROLES.SALES, ROLES.STAFF],\r\n async beforeResolve(routeTo, routeFrom, next) {\r\n // Clear out old client data\r\n store.dispatch('client/clearClient');\r\n\r\n if (routeTo.params.ioId) {\r\n // Get an existing IO object from Id param\r\n await store\r\n .dispatch('signup/getSignupInfo', routeTo.params.ioId)\r\n .catch(() => {\r\n next({\r\n name: 'signup',\r\n });\r\n });\r\n } else if (routeTo.query.agency) {\r\n // Get a new IO object from salesforce query params\r\n await store.dispatch('signup/createSignupInfo', routeTo.query);\r\n next({\r\n name: 'signup',\r\n params: {\r\n ioId: store.state.signup.signupInfo.id,\r\n },\r\n });\r\n }\r\n next();\r\n },\r\n },\r\n props: (route) => ({\r\n ioId: route.params.ioId,\r\n }),\r\n },\r\n {\r\n path: '/signup/sign-contract/:ioId',\r\n name: 'sign_contract',\r\n component: () => import('@/pages/signup/SignContract.vue'),\r\n meta: {\r\n authRequired: false,\r\n async beforeResolve(routeTo, routeFrom, next) {\r\n await store.dispatch('signup/getContractInfo', routeTo.params.ioId);\r\n next();\r\n },\r\n refreshOnServiceWorkerControllerChanged: false,\r\n },\r\n },\r\n // Root\r\n {\r\n path: '/',\r\n name: 'landing_page',\r\n component: () => import('@/pages/global/_Loading'),\r\n meta: {\r\n authRequired: true,\r\n async beforeResolve(routeTo, routeFrom, next) {\r\n const { clientId } = store.state.auth.user;\r\n const requiredRoles = [ROLES.CLIENT_SERVICES];\r\n if (store.getters['auth/userInRoles'](requiredRoles)) {\r\n next({\r\n name: 'admin_dashboard',\r\n });\r\n } else if (clientId) {\r\n next({\r\n name: 'client_root',\r\n params: {\r\n clientId,\r\n },\r\n });\r\n } else {\r\n store.dispatch('auth/login');\r\n }\r\n },\r\n },\r\n },\r\n {\r\n path: '/review-terms/:clientId',\r\n name: 'review_terms',\r\n component: () => import('@/pages/agent/ReviewContractTerms.vue'),\r\n meta: {},\r\n props: (route) => ({\r\n clientId: route.params.clientId,\r\n termsData: route.params.termsData,\r\n }),\r\n },\r\n // Credit Dialer\r\n {\r\n path: '/creditDialer',\r\n name: 'creditDialer',\r\n component: () => import('@/pages/creditDialer/Index.vue'),\r\n meta: {\r\n authRequired: true,\r\n requiredRoles: [ROLES.STAFF],\r\n },\r\n },\r\n // Package / Product Manager\r\n {\r\n path: '/product-admin',\r\n name: 'ProductAdmin',\r\n component: () => import('@/pages/staff/ProductAdmin.vue'),\r\n meta: {\r\n authRequired: true,\r\n requiredRoles: [ROLES.PRODUCT],\r\n },\r\n },\r\n\r\n // Secondary Territories Bulk Opt-In\r\n {\r\n path: '/territories-opt-in',\r\n name: 'SecondaryTerritoriesOptIn',\r\n component: () => import('@/pages/staff/SecondaryTerritoriesOptIn.vue'),\r\n meta: {\r\n authRequired: true,\r\n requiredRoles: [ROLES.CLIENT_SERVICES_ADMIN, ROLES.SALES_MANAGER],\r\n async beforeResolve(routeTo, routeFrom, next) {\r\n const isTerritoryExpansionEnabled =\r\n store.getters['featureFlagStore/getFlag']('TerritoryExpansion');\r\n\r\n // Redirect to 404 if feature flag not enabled\r\n if (isTerritoryExpansionEnabled) {\r\n next();\r\n } else {\r\n next({ name: '404' });\r\n }\r\n },\r\n },\r\n },\r\n\r\n {\r\n path: '/403',\r\n name: '403',\r\n component: () => import('@/pages/global/403.vue'),\r\n },\r\n {\r\n path: '/404',\r\n name: '404',\r\n component: require('@/pages/global/404').default,\r\n // Allows props to be passed to the 404 page through route\r\n // params, such as `resource` to define what wasn't found.\r\n props: true,\r\n },\r\n {\r\n path: '/500/:errorId',\r\n name: '500',\r\n component: () => import('@/pages/global/500.vue'),\r\n props: (route) => ({\r\n errorId: route.params.errorId,\r\n }),\r\n },\r\n\r\n {\r\n path: '/:catchAll(.*)',\r\n redirect: '404',\r\n },\r\n];\r\n","import { store } from '@/store';\r\nimport { createRouter, createWebHistory } from 'vue-router'\r\nimport NProgress from 'nprogress/nprogress'\r\nimport routes from './routes'\r\nimport { ROLES } from '@/services/auth';\r\n\r\nconst router = createRouter({\r\n routes,\r\n history: createWebHistory(process.env.VUE_APP_ROOT_URL),\r\n linkActiveClass: 'active',\r\n scrollBehavior(to, from, savedPosition) {\r\n if (savedPosition) {\r\n return savedPosition\r\n } else {\r\n return {\r\n left: 0,\r\n top: 0,\r\n }\r\n }\r\n },\r\n})\r\n\r\nconst routeRequiresAuth = (route) => {\r\n // Not all routes have authRequired defined\r\n // So undefined/null will be treated as true\r\n return route.meta.authRequired !== false\r\n}\r\n\r\nrouter.beforeEach(async (routeTo, routeFrom, next) => {\r\n NProgress.start()\r\n\r\n if (!routeRequiresAuth(routeTo)) {\r\n return next()\r\n }\r\n\r\n if (!store.getters['auth/isLoggedIn']) {\r\n await store.dispatch('auth/getUser')\r\n }\r\n\r\n if (!store.getters['auth/userAccount']) {\r\n store.dispatch('auth/login')\r\n return\r\n }\r\n\r\n const requiredRoles = [ROLES.EVEREST].concat(\r\n routeTo.meta.requiredRoles || []\r\n );\r\n const inRoles = store.getters['auth/userInRoles'](requiredRoles);\r\n if (!inRoles) {\r\n next({ name: '403' })\r\n return\r\n }\r\n\r\n next()\r\n})\r\n\r\nrouter.beforeResolve(async (routeTo, routeFrom, next) => {\r\n // Create a `beforeResolve` hook, which fires whenever\r\n // `beforeRouteEnter` and `beforeRouteUpdate` would. This\r\n // allows us to ensure data is fetched even when params change,\r\n // but the resolved route does not. We put it in `meta` to\r\n // indicate that it's a hook we created, rather than part of\r\n // Vue Router (yet?).\r\n\r\n // Check if route requires auth and flags not already loaded in\r\n if (\r\n routeRequiresAuth(routeTo) &&\r\n !store.getters['featureFlagStore/isInit']\r\n ) {\r\n await store.dispatch('featureFlagStore/populateFlags')\r\n }\r\n\r\n try {\r\n // For each matched route...\r\n for (const route of routeTo.matched) {\r\n await new Promise((resolve, reject) => {\r\n // If a `beforeResolve` hook is defined, call it with\r\n // the same arguments as the `beforeEnter` hook.\r\n if (route.meta && route.meta.beforeResolve) {\r\n route.meta.beforeResolve(routeTo, routeFrom, (...args) => {\r\n // If the user chose to redirect...\r\n if (args.length) {\r\n // If redirecting to the same route we're coming from...\r\n if (routeFrom.name === args[0].name) {\r\n // Complete the animation of the route progress bar.\r\n NProgress.done()\r\n }\r\n // Complete the redirect.\r\n next(...args)\r\n reject(new Error('Redirected'))\r\n } else {\r\n resolve()\r\n }\r\n })\r\n } else {\r\n // Otherwise, continue resolving the route.\r\n resolve()\r\n }\r\n })\r\n }\r\n // If a `beforeResolve` hook chose to redirect, just return.\r\n } catch (error) {\r\n return\r\n }\r\n\r\n // If we reach this point, continue resolving the route.\r\n next()\r\n})\r\n\r\n// When each route is finished evaluating...\r\n// eslint-disable-next-line\r\nrouter.afterEach(async (routeTo) => {\r\n // Ensure any open Nav Menus have been reset\r\n await store.dispatch('responsive/closeAllMenus')\r\n\r\n // Complete the animation of the route progress bar.\r\n NProgress.done()\r\n})\r\n\r\nexport default router\r\n","/* eslint-disable no-console */\r\n\r\nimport { register } from 'register-service-worker'\r\n\r\nif (process.env.NODE_ENV === 'production') {\r\n register(`${process.env.BASE_URL}service-worker.js`, {\r\n ready() {},\r\n registered(registration) {\r\n // Routinely check for app updates by testing for a new service worker.\r\n setInterval(() => {\r\n registration.update()\r\n }, 1000 * 60 * 60) // hourly checks\r\n },\r\n cached() {},\r\n updatefound() {},\r\n updated(registration) {\r\n document.dispatchEvent(\r\n new CustomEvent('swUpdated', {\r\n detail: registration,\r\n })\r\n )\r\n },\r\n offline() {},\r\n error(error) {\r\n console.error('Error during service worker registration:', error)\r\n },\r\n })\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n","const useViewSizes = {\r\n methods: {\r\n onSizeUpdate() {\r\n this.$store.dispatch('responsive/setWidth', window.innerWidth)\r\n },\r\n },\r\n mounted() {\r\n window.addEventListener('resize', this.onSizeUpdate)\r\n this.onSizeUpdate()\r\n },\r\n unmounted() {\r\n window.removeEventListener('resize', this.onSizeUpdate)\r\n },\r\n}\r\n\r\nexport default useViewSizes\r\n","\r\n\r\n\r\n","import { render } from \"./NotificationDisplayManager.vue?vue&type=template&id=48fa0831\"\nimport script from \"./NotificationDisplayManager.vue?vue&type=script&lang=js\"\nexport * from \"./NotificationDisplayManager.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./App.vue?vue&type=template&id=ece58a08\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport \"./App.vue?vue&type=style&index=0&id=ece58a08&lang=scss\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { rootErrors } from '@/services/auth';\r\n\r\nconst errorHandler = (err, vm, info) => {\r\n console.error(err, vm, info);\r\n};\r\n\r\nexport default {\r\n errorHandler,\r\n};\r\n\r\nwindow.onerror = (msg, url, line, col, error) => {\r\n try {\r\n if (msg ?? '' === 'ResizeObserver loop limit exceeded') {\r\n return;\r\n }\r\n const errorDetails = { msg, url, line, col, error };\r\n console.error(errorDetails);\r\n rootErrors.push(errorDetails);\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n};\r\n\r\nwindow.addEventListener('unhandledrejection', function (event) {\r\n rootErrors.push({ event });\r\n});\r\n\r\n/**\r\n * This is an attempt to diagnose a redirect loop in the login system.\r\n * auth.service.js@login will increment callbackCount on loginRedirect.\r\n * If the page successfully loads then we're not in a redirect loop.\r\n * rootErrors is pushed to on unhandled errors, used to diagnose redirects.\r\n */\r\n\r\nconst { sessionStorage } = window;\r\nif (!sessionStorage.callbackCount) {\r\n sessionStorage.callbackCount = 0;\r\n}\r\n\r\nwindow.onload = () => {\r\n sessionStorage.callbackCount = 0;\r\n};\r\n","import * as Sentry from '@sentry/vue';\r\nimport appConfig from '@/app.config';\r\n\r\nconst apiUrl = process.env.VUE_APP_API_URL;\r\nconst environment = process.env.VUE_APP_EVEREST_ENV;\r\n\r\n// These error are taken from sentry documentation.\r\n// It's community compiled list of rules to ignore errors caused by popular extensions\r\nconst commonBrowserErrors = [\r\n // Random plugins/extensions\r\n 'top.GLOBALS',\r\n // See: http://blog.errorception.com/2012/03/tale-of-unfindable-js-error.html\r\n 'originalCreateNotification',\r\n 'canvas.contentDocument',\r\n 'MyApp_RemoveAllHighlights',\r\n 'http://tt.epicplay.com',\r\n \"Can't find variable: ZiteReader\",\r\n 'jigsaw is not defined',\r\n 'ComboSearch is not defined',\r\n 'http://loading.retry.widdit.com/',\r\n 'atomicFindClose',\r\n // Facebook borked\r\n 'fb_xd_fragment',\r\n // ISP \"optimizing\" proxy - `Cache-Control: no-transform` seems to\r\n // reduce this. (thanks @acdha)\r\n // See http://stackoverflow.com/questions/4113268\r\n 'bmi_SafeAddOnload',\r\n 'EBCallBackMessageReceived',\r\n // See http://toolbar.conduit.com/Developer/HtmlAndGadget/Methods/JSInjection.aspx\r\n 'conduitPage',\r\n 'nenlahapcbofgnanklpelkaejcehkggg',\r\n];\r\n\r\nconst initSentry = (app, router) => {\r\n Sentry.init({\r\n app,\r\n dsn: 'https://f0d32ef9c1378c0f52e16ef6195eb6f6@o365040.ingest.sentry.io/4506242862874624',\r\n environment,\r\n release: appConfig.buildNumber,\r\n integrations: [\r\n Sentry.browserTracingIntegration({ router }),\r\n Sentry.replayIntegration({\r\n maskAllInputs: true,\r\n maskAllText: false,\r\n networkDetailAllowUrls: [\r\n 'localhost',\r\n 'admin-api.test.qw-corp.com',\r\n 'admin-api.stage.qw-corp.com',\r\n 'admin-api.quotewizard.com',\r\n ],\r\n networkResponseHeaders: ['X-Operation-Id'],\r\n }),\r\n ],\r\n ignoreErrors: [\r\n ...commonBrowserErrors,\r\n /ResizeObserver loop completed with undelivered notifications.*/,\r\n \"Cannot read properties of null (reading 'null')\",\r\n ],\r\n attachStacktrace: true,\r\n trackComponents: true,\r\n // Performance Monitoring\r\n tracesSampleRate: 0.1,\r\n // Session Replay\r\n replaysSessionSampleRate: 0.25, \r\n replaysOnErrorSampleRate: 1.0,\r\n });\r\n};\r\n\r\nexport default initSentry;\r\n","import * as yup from 'yup';\r\n\r\nconst addCustomValidators = () => {\r\n yup.addMethod(yup.string, 'qwEmail', function () {\r\n return this.test({\r\n name: 'qwEmail',\r\n message: 'Invalid email format',\r\n test: (value) => {\r\n if (!value) return true;\r\n const splits = value.split('@');\r\n if (splits.length !== 2) return false;\r\n\r\n if (splits[0].length < 1) return false;\r\n\r\n const domainSplits = splits[1].split('.');\r\n\r\n if (domainSplits.length < 2) return false;\r\n\r\n if (domainSplits[0].length < 1) return false;\r\n\r\n // 2 or more characters for domain are required\r\n if (!/^[a-zA-Z ]{2,}$/.test(domainSplits[domainSplits.length - 1]))\r\n return false;\r\n\r\n return true;\r\n },\r\n });\r\n });\r\n\r\n yup.addMethod(yup.string, 'accountName', function () {\r\n return this.test({\r\n name: 'accountName',\r\n message: ({ label }) => `${label || 'Value'} may only contain letters, numbers, space, or these special characters: ().-_'`,\r\n test: (value) => {\r\n return /^([A-Z0-9 \\-.'()_]+)$/i.test(value);\r\n },\r\n });\r\n })\r\n};\r\n\r\nexport default addCustomValidators;\r\n","import { createApp } from 'vue';\r\nimport router from './router';\r\nimport store from './store';\r\nimport './registerServiceWorker';\r\nimport moment from 'moment';\r\n\r\n// element plus styles override\r\nimport './styles/index.scss';\r\nimport ElementPlus from 'element-plus';\r\nimport LoadScript from 'vue-plugin-load-script';\r\nimport VueClipboard from 'vue-clipboard2';\r\nimport Toasted from 'vue-toasted';\r\nimport ClientAdminApp from './App.vue';\r\nimport errorHandler from './errorHandlers.js';\r\nimport * as filters from '@/plugins/filters';\r\nimport initSentry from '@/services/sentry';\r\nimport addCustomValidators from '@/plugins/yupCustomValidators';\r\n\r\nexport const app = createApp(ClientAdminApp)\r\n .use(store)\r\n .use(router)\r\n .use({\r\n install(vue) {\r\n // Polyfill for Vue 2 -> Vue 3\r\n vue.prototype = vue.config.globalProperties;\r\n\r\n // Add error handler + filters\r\n vue.config.errorHandler = errorHandler;\r\n },\r\n })\r\n .use(ElementPlus)\r\n .provide('moment', moment)\r\n .use(LoadScript)\r\n .use(Toasted, {\r\n iconPack: 'fontawesome', // set your iconPack, defaults to material. material|fontawesome|custom-class\r\n })\r\n .use(VueClipboard);\r\napp.config.globalProperties.$filters = {};\r\nfor (const key of Object.keys(filters)) {\r\n app.config.globalProperties.$filters[key] = filters[key];\r\n}\r\n\r\naddCustomValidators();\r\ninitSentry(app, router);\r\napp.mount('#app');\r\n","import axios from 'axios';\r\nimport { authService } from '@/services/auth';\r\nimport errorTracker from './errorTracker';\r\n\r\nconst defaultOptions = {\r\n baseURL: process.env.VUE_APP_API_URL,\r\n crossDomain: true,\r\n headers: {},\r\n\r\n // request interceptor handler\r\n reqHandleFunc: async (config) => {\r\n const token = await authService.getToken();\r\n\r\n if (!token) {\r\n throw new axios.Cancel('Bad token');\r\n }\r\n\r\n config.headers.common.Authorization = `Bearer ${token}`;\r\n\r\n return config;\r\n },\r\n reqErrorFunc: async (error) => {\r\n throw error;\r\n },\r\n\r\n // response interceptor handler\r\n resHandleFunc: (response) => response,\r\n resErrorFunc: (error) => {\r\n if (error.message === 'Bad token') {\r\n console.error('Bad token');\r\n authService.reset();\r\n authService.login();\r\n return Promise.reject(error);\r\n }\r\n\r\n if (!error.response) {\r\n console.error('Network error. Check your connection.');\r\n return Promise.reject(error);\r\n }\r\n\r\n const authHeader = error.response.headers?.['www-authenticate'];\r\n if (authHeader === 'Bearer error=\"invalid_token\"') {\r\n console.error('Bad token provided', error);\r\n authService.login();\r\n return;\r\n }\r\n\r\n errorTracker.trackException({ exception: error });\r\n\r\n return Promise.reject(error);\r\n },\r\n};\r\n\r\nconst axiosInstance = axios.create(defaultOptions);\r\n\r\naxiosInstance.interceptors.request.use(\r\n async (config) => defaultOptions.reqHandleFunc(config),\r\n async (error) => defaultOptions.reqErrorFunc(error)\r\n);\r\n\r\naxiosInstance.interceptors.response.use(\r\n (response) => defaultOptions.resHandleFunc(response),\r\n (error) => defaultOptions.resErrorFunc(error)\r\n);\r\n\r\nexport default axiosInstance;\r\n\r\nconst axiosAnonymous = axios.create(defaultOptions);\r\n\r\nexport { axiosInstance, axiosAnonymous };\r\n","import * as Sentry from '@sentry/browser';\r\n\r\nconst trackException = ({ error, exception }) => Sentry.captureException(error || exception);\r\n\r\nexport default { trackException };\r\n","class EventBus {\r\n constructor() {\r\n this.dictionary = [];\r\n }\r\n\r\n $emit(eventType, ...args) {\r\n const subscribers = this.dictionary[eventType];\r\n if (!subscribers) return;\r\n\r\n subscribers.forEach((eventHandler) => {\r\n eventHandler(...args);\r\n });\r\n }\r\n\r\n $on(eventType, eventHandler) {\r\n var subscriptions = this.dictionary[eventType];\r\n if (!subscriptions) {\r\n subscriptions = [];\r\n this.dictionary[eventType] = subscriptions;\r\n }\r\n\r\n subscriptions.push(eventHandler);\r\n }\r\n}\r\n\r\nconst eventBus = new EventBus();\r\nexport default eventBus;\r\n","import moment from 'moment-timezone';\r\n\r\nexport const round = (number, precision) =>\r\n Number(Math.round(number + 'e' + precision) + 'e-' + precision);\r\n\r\nexport function float(value, precision) {\r\n if (typeof precision === 'undefined') {\r\n precision = 1;\r\n }\r\n\r\n if (!value || isNaN(value)) {\r\n return value;\r\n } else if (typeof value === 'string') {\r\n value = parseFloat(value);\r\n }\r\n\r\n return value.toFixed(precision);\r\n}\r\n\r\nexport function percent(value, decimals) {\r\n if (typeof decimals === 'undefined') {\r\n decimals = 0;\r\n }\r\n\r\n if (!Number.isInteger(value) && value < 1) {\r\n value = value * 100;\r\n }\r\n\r\n return round(value, decimals) + '%';\r\n}\r\n\r\nexport function formatDate(value, format) {\r\n return moment(value).format(format || 'MM-DD-YYYY');\r\n}\r\n\r\nexport function removeItemString(value) {\r\n value = value.replace('item', '');\r\n value = value.replace('Item', '');\r\n value = value.replace('ITEM', '');\r\n return value;\r\n}\r\n\r\n// This is for a speific thing on lead details\r\nexport function getThousands(value) {\r\n value = value.toString();\r\n var newStr = value.substring(0, value.length - 3);\r\n if (newStr === '') {\r\n return '0';\r\n }\r\n\r\n return newStr;\r\n}\r\n\r\nexport function formatPhoneNumber(value) {\r\n if (value !== null && value.length > 10) {\r\n // Call lead types with email addresses are sometimes being fed to the formatter.\r\n // In this case just grab the end digits\r\n value = value.slice(value.length - 10); // Outputs: 10 digit phone number\r\n }\r\n\r\n return value === null\r\n ? null\r\n : value\r\n .replace(/[^0-9]/g, '')\r\n .replace(/(\\d{3})(\\d{3})(\\d{4})/, '($1) $2-$3');\r\n}\r\n\r\nexport function groupNumbers(value) {\r\n return value.toLocaleString('en', { useGrouping: true });\r\n}\r\n\r\nexport function currencyUSD(value) {\r\n if (!value && value !== 0) return value;\r\n return new Intl.NumberFormat('en-US', {\r\n style: 'currency',\r\n currency: 'USD',\r\n }).format(value);\r\n}\r\n\r\nexport function toUserDateTime(value, format, tz = 'America/New_York') {\r\n if (!value) {\r\n return '';\r\n }\r\n try {\r\n return moment.utc(value).tz(tz).format(format);\r\n } catch (error) {\r\n return value;\r\n }\r\n}\r\n\r\nexport function pluralize(number, singular, plural) {\r\n return number === 1 ? singular : plural || singular + 's';\r\n}\r\n\r\nexport function capitalize(value) {\r\n if (value !== null) {\r\n value = value.toUpperCase();\r\n }\r\n\r\n return value;\r\n}\r\n\r\nexport function secondsToDuration(seconds){\r\n return new Date(seconds * 1000).toISOString().substring(11, 19)\r\n}\r\n","import * as Msal from 'msal';\r\nimport {\r\n b2cAppId,\r\n b2cClientId,\r\n b2cRedirectUrl,\r\n b2cIdpAuthorityServer,\r\n b2cIdpAzureServer,\r\n} from '@/app.config';\r\n\r\nconst b2cLoginUrl = `https://${b2cIdpAuthorityServer}/${b2cIdpAzureServer}`;\r\n\r\nconst authorities = {\r\n staff: `${b2cLoginUrl}/B2C_1_Everest_Sign_In_v2`,\r\n signin: `${b2cLoginUrl}/B2C_1_Everest_Agent_SignIn`,\r\n signup: `${b2cLoginUrl}/B2C_1_Everest_Agent_SignUp`,\r\n reset: `${b2cLoginUrl}/B2C_1_ResetPasswordPolicy`,\r\n io: `${b2cLoginUrl}/B2C_1_Everest_IO`,\r\n ioSignUp: `${b2cLoginUrl}/B2C_1_EverestIO_Signup`,\r\n};\r\n\r\n// Set env vars in sessionStorage\r\nwindow.sessionStorage.b2cAppId = b2cAppId;\r\nwindow.sessionStorage.b2cClientId = b2cClientId;\r\nwindow.sessionStorage.b2cRedirectUrl = b2cRedirectUrl;\r\nwindow.sessionStorage.b2cIdpAuthorityServer = b2cIdpAuthorityServer;\r\nwindow.sessionStorage.b2cIdpAzureServer = b2cIdpAzureServer;\r\n\r\nconst scopes = [\r\n `https://${b2cIdpAzureServer}/${b2cAppId}/user_impersonation`,\r\n `https://${b2cIdpAzureServer}/${b2cAppId}/offline_access`,\r\n];\r\n\r\nconst msalInstance = new Msal.UserAgentApplication({\r\n auth: {\r\n clientId: b2cClientId,\r\n authority: authorities.staff,\r\n postLogoutRedirectUri: `${b2cRedirectUrl}/logged-out`,\r\n redirectUri: `${b2cRedirectUrl}/callback.html`,\r\n validateAuthority: true,\r\n navigateToLoginRequestUrl: false,\r\n knownAuthorities: [b2cIdpAuthorityServer],\r\n },\r\n cache: {\r\n cacheLocation: 'localStorage',\r\n storeAuthStateInCookie: isIE(),\r\n },\r\n});\r\n\r\nmsalInstance.handleRedirectCallback(() => {});\r\n\r\nfunction isIE() {\r\n const ua = window.navigator.userAgent;\r\n const msie = ua.indexOf('MSIE '); // IE 10 or older\r\n const trident = ua.indexOf('Trident/'); // IE 11\r\n\r\n return msie > 0 || trident > 0;\r\n}\r\n\r\nexport { scopes, authorities };\r\n\r\nexport default msalInstance;\r\n","import AzureInstance, { authorities, scopes } from '../AzureInstance';\r\nimport errorTracker from '@/plugins/errorTracker';\r\n\r\nexport const rootErrors = [];\r\n\r\nexport default {\r\n login() {\r\n const { sessionStorage } = window;\r\n /**\r\n * We could be in an infinite loop, so we want to be able to track, log, and break the loop.\r\n * sessionStorage.callbackCount is initialized in main.js, so it should always exist in sessionStorage.\r\n * This will be removed once we diagnose why people are getting stuck in redirect loops.\r\n */\r\n if (sessionStorage.callbackCount > 3) {\r\n sessionStorage.callbackCount = 0;\r\n errorTracker.trackException({\r\n exception: new Error('Login Redirect Loop'),\r\n });\r\n this.reset();\r\n }\r\n\r\n sessionStorage.callbackCount++;\r\n sessionStorage.redirectFrom =\r\n window.location.pathname + window.location.search;\r\n AzureInstance.loginRedirect({ scopes });\r\n },\r\n loginAndRedirect(redirect) {\r\n const { sessionStorage } = window;\r\n /**\r\n * We could be in an infinite loop, so we want to be able to track, log, and break the loop.\r\n * sessionStorage.callbackCount is initialized in main.js, so it should always exist in sessionStorage.\r\n * This will be removed once we diagnose why people are getting stuck in redirect loops.\r\n */\r\n if (sessionStorage.callbackCount > 3) {\r\n sessionStorage.callbackCount = 0;\r\n errorTracker.trackException({\r\n exception: new Error('Login Redirect Loop'),\r\n });\r\n this.reset();\r\n }\r\n\r\n sessionStorage.callbackCount++;\r\n sessionStorage.redirectFrom = redirect;\r\n AzureInstance.loginRedirect({ scopes });\r\n },\r\n\r\n logout() {\r\n AzureInstance.logout();\r\n },\r\n\r\n getUser() {\r\n return AzureInstance.getAccount();\r\n },\r\n\r\n setAuthority(authorityKey) {\r\n AzureInstance.authority = authorities[authorityKey];\r\n },\r\n\r\n async getToken() {\r\n const account = AzureInstance.getAccount();\r\n const loginHint = account.idTokenClaims.emails[0];\r\n try {\r\n const res = await AzureInstance.ssoSilent({\r\n scopes,\r\n loginHint,\r\n });\r\n return res.idToken.rawIdToken;\r\n } catch (error) {\r\n if (error.message === 'User login is required.') {\r\n this.login();\r\n return;\r\n }\r\n\r\n AzureInstance.acquireTokenRedirect({ scopes });\r\n }\r\n },\r\n\r\n reset() {\r\n const { sessionStorage } = window;\r\n AzureInstance.clearCache();\r\n const storageKeys = Object.keys(sessionStorage);\r\n for (const key in storageKeys) {\r\n if (key.startsWith('msal.')) {\r\n delete sessionStorage[key];\r\n }\r\n }\r\n },\r\n};\r\n","export const ROLES = Object.freeze({\r\n ADMIN: 'Everest-Admin',\r\n AGENT_MANAGER: 'Everest-Agent-Manager',\r\n CALL_CENTER_ADMIN: 'Everest-Call-Center-Admin',\r\n CANCEL_SAVE: 'Everest-Cancel-Save',\r\n CANCEL_SAVE_ADMIN: 'Everest-Cancel-Save-Admin',\r\n CLIENT_SERVICES: 'Everest-Client-Services',\r\n CLIENT_SERVICES_ADMIN: 'Everest-Client-Services-Admin',\r\n CORPORATE_BUCKET_ACCOUNT_CREATOR: 'Everest-Corporate-Bucket-Account-Creator',\r\n CORPORATE_MANAGER: 'Everest-Corporate-Manager',\r\n EVEREST: 'Everest',\r\n PRODUCT: 'Everest-Product',\r\n PRODUCT_ADMIN: 'Everest-Product-Admin',\r\n SALES: 'Everest-Sales',\r\n SALES_MANAGER: 'Everest-Sales-Manager',\r\n STAFF: 'Everest-Staff',\r\n});\r\n","import { mapState, mapGetters, mapActions } from 'vuex';\r\n\r\nexport const authComputed = {\r\n ...mapState('auth', ['user']),\r\n ...mapState('client', ['client']),\r\n ...mapGetters('auth', [\r\n 'isLoggedIn',\r\n 'userInRole',\r\n 'isAdmin',\r\n 'isAgentManager',\r\n 'isClientServices',\r\n 'isClientServicesAdmin',\r\n 'isStaff',\r\n 'isProductAdmin',\r\n 'isProductViewer',\r\n 'isCorporateManager',\r\n 'isAccountCreator',\r\n 'isSalesManager',\r\n ]),\r\n};\r\n\r\nexport const authMethods = mapActions('auth', ['login', 'logout']);\r\n\r\nexport function GetTestLeadCredits() {\r\n return JSON.parse(`[\r\n {\r\n \"createDate\":\"2020-11-25T10:04:20.893\",\r\n \"daysOld\":22,\r\n \"callerId\":null,\r\n \"filterList\":\"AUTO_TICKETS_NONE, AUTO_INSURED_1_UP, NO_AUTO_SR22, AUTO_DRIVER_AGE_25, NO_AUTO_SUSPENSION, NO_AUTO_DUI, AUTO_ACCIDENT_HOUSEHOLD_NONE\",\r\n \"id\":\"26954932-8C32-4301-AEC2-9C61B2D8CCCF\",\r\n \"creditRequestDate\":\"2020-11-30T13:16:15.093\",\r\n \"status\":\"success\",\r\n \"payout\":15.75,\r\n \"creditRequestReason\":\"CONTACT_DISCONNECTED\",\r\n \"creditRequestDescription\":\"\",\r\n \"primaryPhone\":\"7075612510\",\r\n \"ivrMatchType\":null,\r\n \"quoteTypeId\":\"AUTO\",\r\n \"formerInsurer\":\"PROGRESSIVE\",\r\n \"targusRating\":null,\r\n \"leadQuality\":null,\r\n \"firstName\":\"Eddy\",\r\n \"lastName\":\"Yung\",\r\n \"city\":\"Saint Louis\",\r\n \"state\":\"MO\",\r\n \"zip\":\"63136\",\r\n \"email\":\"zfeed3206@cqerk.com\",\r\n \"make\":\"RAM\",\r\n \"vendor\":\"BLUEINKDIGITAL\",\r\n \"quoteId\":\"0F4ECB57-1207-473D-B684-5B67CB620BCE\",\r\n \"parentCompany\":\"STATEFARM\",\r\n \"creditDaysAllowed\":10,\r\n \"bizContactPhone\":\"253-486-5776\",\r\n \"bizContactFirstName\":\"Dewayne\",\r\n \"bizContactLastName\":\"Olvera\",\r\n \"sessionId\":\"7E333405-90F1-4B9D-9FD2-B54CF32374B8\",\r\n \"level\":\"SILVER\",\r\n \"creditRate\":14.0\r\n },\r\n {\r\n \"createDate\":\"2020-11-25T10:04:20.893\",\r\n \"daysOld\":22,\r\n \"callerId\":null,\r\n \"filterList\":\"AUTO_TICKETS_NONE, AUTO_INSURED_1_UP, NO_AUTO_SR22, AUTO_DRIVER_AGE_25, NO_AUTO_SUSPENSION, NO_AUTO_DUI, AUTO_ACCIDENT_HOUSEHOLD_NONE\",\r\n \"id\":\"26954932-8C32-4301-AEC2-9C61B2D8CCCF\",\r\n \"creditRequestDate\":\"2020-11-30T13:16:15.093\",\r\n \"status\":\"success\",\r\n \"payout\":15.75,\r\n \"creditRequestReason\":\"CONTACT_DISCONNECTED\",\r\n \"creditRequestDescription\":\"\",\r\n \"primaryPhone\":\"360-220-7446\",\r\n \"ivrMatchType\":null,\r\n \"quoteTypeId\":\"AUTO\",\r\n \"formerInsurer\":\"PROGRESSIVE\",\r\n \"targusRating\":null,\r\n \"leadQuality\":null,\r\n \"firstName\":\"Eddy\",\r\n \"lastName\":\"Yung\",\r\n \"city\":\"Saint Louis\",\r\n \"state\":\"MO\",\r\n \"zip\":\"63136\",\r\n \"email\":\"zfeed3206@cqerk.com\",\r\n \"make\":\"RAM\",\r\n \"vendor\":\"BLUEINKDIGITAL\",\r\n \"quoteId\":\"0F4ECB57-1207-473D-B684-5B67CB620BCE\",\r\n \"parentCompany\":\"STATEFARM\",\r\n \"creditDaysAllowed\":10,\r\n \"bizContactPhone\":\"360-220-7446\",\r\n \"bizContactFirstName\":\"Dewayne\",\r\n \"bizContactLastName\":\"Olvera\",\r\n \"sessionId\":\"7E333405-90F1-4B9D-9FD2-B54CF32374B8\",\r\n \"level\":\"SILVER\",\r\n \"creditRate\":14.0\r\n },\r\n {\r\n \"createDate\":\"2020-11-25T10:04:20.893\",\r\n \"daysOld\":22,\r\n \"callerId\":null,\r\n \"filterList\":\"AUTO_TICKETS_NONE, AUTO_INSURED_1_UP, NO_AUTO_SR22, AUTO_DRIVER_AGE_25, NO_AUTO_SUSPENSION, NO_AUTO_DUI, AUTO_ACCIDENT_HOUSEHOLD_NONE\",\r\n \"id\":\"26954932-8C32-4301-AEC2-9C61B2D8CCCF\",\r\n \"creditRequestDate\":\"2020-11-30T13:16:15.093\",\r\n \"status\":\"success\",\r\n \"payout\":15.75,\r\n \"creditRequestReason\":\"CONTACT_DISCONNECTED\",\r\n \"creditRequestDescription\":\"\",\r\n \"primaryPhone\":\"916-210-1086\",\r\n \"ivrMatchType\":null,\r\n \"quoteTypeId\":\"AUTO\",\r\n \"formerInsurer\":\"PROGRESSIVE\",\r\n \"targusRating\":null,\r\n \"leadQuality\":null,\r\n \"firstName\":\"Eddy\",\r\n \"lastName\":\"Yung\",\r\n \"city\":\"Saint Louis\",\r\n \"state\":\"MO\",\r\n \"zip\":\"63136\",\r\n \"email\":\"zfeed3206@cqerk.com\",\r\n \"make\":\"RAM\",\r\n \"vendor\":\"BLUEINKDIGITAL\",\r\n \"quoteId\":\"0F4ECB57-1207-473D-B684-5B67CB620BCE\",\r\n \"parentCompany\":\"STATEFARM\",\r\n \"creditDaysAllowed\":10,\r\n \"bizContactPhone\":\"916-210-1086\",\r\n \"bizContactFirstName\":\"Dewayne\",\r\n \"bizContactLastName\":\"Olvera\",\r\n \"sessionId\":\"7E333405-90F1-4B9D-9FD2-B54CF32374B8\",\r\n \"level\":\"SILVER\",\r\n \"creditRate\":14.0\r\n }\r\n ]`);\r\n}\r\n\r\nexport function handleFailedNetworkResponse(dispatch, error){\r\n const message = error?.reponse?.data || \"An unexpected error occurred\";\r\n dispatch('toastr/error', message);\r\n}\r\n","// eslint-disable-next-line\r\nimport axiosInstance from '@/plugins/axios';\r\n\r\nexport const state = {};\r\n\r\nexport const getters = {};\r\n\r\nexport const actions = {};\r\n\r\nexport const mutations = {};\r\n","import { axiosInstance } from '@/plugins/axios';\r\nimport _ from '@/utils/store-helpers';\r\n\r\nexport const state = {\r\n isLoading: false,\r\n};\r\n\r\nexport const getters = {\r\n isLoading: (state) => state.isLoading,\r\n};\r\n\r\nexport const mutations = {\r\n setHealthLoading: _.set('isLoading', false),\r\n};\r\n\r\nexport const actions = {\r\n flushRedisCache({ commit }, { additionalPrefix }) {\r\n commit('setHealthLoading', true);\r\n return axiosInstance\r\n .post(`/api/health/flushCache/${additionalPrefix}`)\r\n .then((response) => {\r\n commit('setHealthLoading', false);\r\n const data = response.data;\r\n return data;\r\n })\r\n .catch((error) => {\r\n console.error(error);\r\n commit('setHealthLoading', false);\r\n });\r\n },\r\n};\r\n","import { axiosInstance } from '@/plugins/axios';\r\nimport _ from '@/utils/store-helpers';\r\nimport { authService, ROLES } from '@/services/auth';\r\nimport errorTracker from '@/plugins/errorTracker';\r\nimport { setUser } from '@sentry/browser';\r\n\r\nexport const state = {\r\n user: _.get('user'),\r\n roles: _.get('roles'),\r\n logins: _.get('logins'),\r\n isLoggedIn: false,\r\n auth_loading: false,\r\n};\r\n\r\nexport const mutations = {\r\n SET_CURRENT_USER: _.set('user', true),\r\n SET_CURRENT_ROLES: _.set('roles', true),\r\n SET_ALL_LOGINS: _.set('logins', true),\r\n SET_IS_LOGGED_IN: _.set('isLoggedIn'),\r\n\r\n SET_LOADING(state, isLoading) {\r\n state.auth_loading = isLoading;\r\n },\r\n};\r\n\r\nexport const getters = {\r\n userAccount: () => authService.getUser(),\r\n\r\n userEmail: (state) => state.user.email,\r\n\r\n isLoggedIn: (state) => state.isLoggedIn,\r\n\r\n auth_loading: (state) => state.auth_loading,\r\n\r\n userInRole: (state) => (roleName) =>\r\n Array.isArray(state.roles) &&\r\n state.roles.some(\r\n (role) => role === roleName || role.displayName === roleName\r\n ),\r\n\r\n userInRoles: (state) => (roleNames) =>\r\n Array.isArray(state.roles) &&\r\n roleNames.some((role) => state.roles.includes(role)),\r\n\r\n userInAllRoles: (state) => (roleNames) =>\r\n Array.isArray(state.roles) &&\r\n roleNames.every((role) => state.roles.includes(role)),\r\n\r\n isAdmin: (_, { userInRole }) => userInRole(ROLES.ADMIN),\r\n\r\n isAgentManager: (_, { userInRole }) => userInRole(ROLES.AGENT_MANAGER),\r\n\r\n isClientServices: (_, { userInRole }) => userInRole(ROLES.CLIENT_SERVICES),\r\n\r\n isClientServicesAdmin: (_, { userInRole }) =>\r\n userInRole(ROLES.CLIENT_SERVICES_ADMIN),\r\n\r\n isCallCenterAdmin: (_, { userInRole }) => userInRole(ROLES.CALL_CENTER_ADMIN),\r\n\r\n isStaff: (_, { userInRole }) => userInRole(ROLES.STAFF),\r\n\r\n isProductAdmin: (_, { userInRole }) => userInRole(ROLES.PRODUCT_ADMIN),\r\n\r\n isProductViewer: (_, { userInRole }) => userInRole(ROLES.PRODUCT),\r\n\r\n isCancelSave: (_, { userInRole }) => userInRole(ROLES.CANCEL_SAVE),\r\n\r\n isSales: (_, { userInRole }) => userInRole(ROLES.SALES),\r\n\r\n isSalesManager: (_, { userInRole }) => userInRole(ROLES.SALES_MANAGER),\r\n\r\n isCancelSaveAdmin: (_, { userInRole }) => userInRole(ROLES.CANCEL_SAVE_ADMIN),\r\n\r\n isCorporateManager: (_, { userInRole }) =>\r\n userInRole(ROLES.CORPORATE_MANAGER),\r\n\r\n isAccountCreator: (_, { userInRole }) =>\r\n userInRole(ROLES.CORPORATE_BUCKET_ACCOUNT_CREATOR),\r\n};\r\n\r\nexport const actions = {\r\n resetSettings({ commit, dispatch }) {\r\n commit('SET_CURRENT_ROLES', null);\r\n commit('SET_CURRENT_USER', null);\r\n commit('SET_IS_LOGGED_IN', false);\r\n dispatch('reset');\r\n },\r\n\r\n reset() {\r\n authService.reset();\r\n },\r\n\r\n login() {\r\n authService.login();\r\n },\r\n\r\n loginAndRedirect({ commit }, redirect) {\r\n authService.loginAndRedirect(redirect);\r\n },\r\n\r\n logout({ commit }) {\r\n authService.logout();\r\n commit('featureFlagStore/reset', null, { root: true });\r\n },\r\n\r\n async getToken() {\r\n return authService.getToken();\r\n },\r\n\r\n async getUser({ commit, dispatch }) {\r\n const adalUser = authService.getUser();\r\n\r\n if (!adalUser) {\r\n const error = new Error('Could not get user.');\r\n errorTracker.trackException({\r\n error,\r\n });\r\n dispatch('resetSettings');\r\n return null;\r\n }\r\n\r\n let email = '';\r\n\r\n if (adalUser.idToken.emails && adalUser.idToken.emails.length > 0) {\r\n email = adalUser.idToken.emails[0];\r\n }\r\n\r\n const response = await dispatch('request/post', {\r\n url: `/api/clients/auth`,\r\n errorMessage: 'Failed to authenticate client.',\r\n });\r\n\r\n if (!response) return null;\r\n\r\n const user = {\r\n name: adalUser.idToken.name,\r\n email,\r\n lastName: adalUser.idToken.family_name,\r\n firstName: adalUser.idToken.given_name,\r\n ...response.data,\r\n };\r\n\r\n commit('SET_CURRENT_ROLES', user.roles);\r\n commit('SET_CURRENT_USER', user);\r\n commit('SET_IS_LOGGED_IN', true);\r\n setUser({ email: user.email });\r\n\r\n return user;\r\n },\r\n\r\n async getAllLogins({ commit }, clientId) {\r\n commit('SET_LOADING', true);\r\n\r\n await axiosInstance\r\n .get(`/api/login/${clientId}/logins`)\r\n .then((response) => {\r\n commit('SET_ALL_LOGINS', response.data);\r\n\r\n commit('SET_LOADING', false);\r\n\r\n return response.data;\r\n })\r\n .catch((err) => {\r\n this.$store.dispatch('toastr/error', 'Error: Network Error');\r\n console.error(err);\r\n\r\n commit('SET_LOADING', false);\r\n\r\n return Promise.reject(err);\r\n });\r\n },\r\n\r\n async setProperties({ dispatch }, { data, b2cLoginId }) {\r\n return await axiosInstance\r\n .put(`/api/login/${b2cLoginId}/properties`, data)\r\n .then((response) => {\r\n this.dispatch('toastr/success', 'Success: B2C account updated');\r\n })\r\n .catch((err) => {\r\n const { response } = err;\r\n if (response && response.status === 400) {\r\n this.dispatch('toastr/error', response.data);\r\n this.loading = false;\r\n return;\r\n }\r\n this.dispatch('toastr/error', 'Error: Unable to update B2C account');\r\n console.error(err);\r\n return Promise.reject(err);\r\n });\r\n },\r\n};\r\n","import { axiosInstance } from '@/plugins/axios';\r\nimport _ from '@/utils/store-helpers';\r\nimport { handleFailedNetworkResponse } from '../helpers';\r\n\r\nexport const state = {\r\n cardList: [],\r\n statements: {},\r\n cancelStatements: [],\r\n lastStatement: null,\r\n isLastStatementCurrentMonthStatement: false,\r\n clientCancellationReasons: null,\r\n productData: [],\r\n dataLoading: true,\r\n productsLoading: false,\r\n productSettingsLoading: false,\r\n groupBalanceTransferLoading: false,\r\n groupBalanceTransfers: [],\r\n singleGroupBalanceTransfer: null,\r\n billingTypes: [],\r\n productTypeBalances: {\r\n Web: {},\r\n Call: {},\r\n },\r\n pendingCancellation: false,\r\n isProcessingCancellation: false,\r\n validationResult: {\r\n isValid: true,\r\n message: '',\r\n code: '',\r\n },\r\n};\r\n\r\nexport const getters = {\r\n productData: (state) => state.productData,\r\n validationResult: (state) => state.validationResult,\r\n primaryCardByProductId: (state) => (productTypeId) => {\r\n const product = state.productData.find(\r\n (product) => product.productId === productTypeId\r\n );\r\n return product ? product.paymentId : null;\r\n },\r\n isPendingCancellation: (state) => state.pendingCancellation,\r\n isProcessingCancellation: (state) => state.isProcessingCancellation,\r\n};\r\n\r\nexport const mutations = {\r\n SET_IS_PROCESSING_CANCELLATION: _.set('isProcessingCancellation', false),\r\n setProductsLoading: _.set('productsLoading', false),\r\n setProductSettingsLoading: _.set('productSettingsLoading', false),\r\n setProductData: _.set('productData', false),\r\n setGroupBalanceTransfers: _.set('groupBalanceTransfers', false),\r\n setSingleGroupBalanceTransfer: _.set('singleGroupBalanceTransfer', false),\r\n setGroupBalanceTransferLoading: _.set('groupBalanceTransferLoading', false),\r\n SET_CARD_LIST(state, newValue) {\r\n state.cardList = newValue;\r\n },\r\n SET_STATEMENT_LIST(state, newValue) {\r\n state.statements = newValue;\r\n },\r\n SET_LAST_STATEMENT(state, newValue) {\r\n state.lastStatement = newValue;\r\n },\r\n setIsLastStatementCurrentMonthStatement: _.set(\r\n 'isLastStatementCurrentMonthStatement',\r\n false\r\n ),\r\n SET_CANCEL_STATEMENTS(state, newValue) {\r\n state.cancelStatements = newValue;\r\n },\r\n SET_CLIENT_CANCELLATION_REASONS(state, newValue) {\r\n state.clientCancellationReasons = newValue;\r\n },\r\n SET_GROUP_BALANCE_TRANSFER(state, newValue) {\r\n state.groupBalanceTransfers = newValue;\r\n },\r\n SET_SINGLE_BALANCE_TRANSFER(state, newValue) {\r\n state.singleGroupBalanceTransfer = newValue;\r\n },\r\n SET_BILLING_TYPE_LIST(state, newValue) {\r\n state.billingTypes = newValue;\r\n },\r\n\r\n SET_VALIDATION_RESULT(state, validationResult) {\r\n state.validationResult = validationResult;\r\n },\r\n\r\n RESET_VALIDATION_RESULT(state) {\r\n state.validationResult = {\r\n isValid: true,\r\n message: '',\r\n code: '',\r\n };\r\n },\r\n\r\n setProductTypeBalance(state, { productType, productTypeBalance }) {\r\n state.productTypeBalances[productType] = productTypeBalance;\r\n },\r\n\r\n setProductTypePaymentMethod(state, { productType, paymentMethod }) {\r\n if (state.productData.length === 1 && productType === 1) {\r\n // This occurs when the client has only calls.\r\n // In this case the only item in the array is for calls and it's trying to update\r\n // the second one.\r\n state.productData[productType - 1].paymentTerms = paymentMethod;\r\n } else {\r\n state.productData[productType].paymentTerms = paymentMethod;\r\n }\r\n },\r\n\r\n setProductTypePaymentCard(state, { productType, paymentCardId }) {\r\n if (state.productData.length === 1 && productType === 1) {\r\n // This occurs when the client has only calls.\r\n // In this case the only item in the array is for calls and it's trying to update\r\n // the second one.\r\n state.productData[productType - 1].paymentId = paymentCardId;\r\n } else {\r\n state.productData[productType].paymentId = paymentCardId;\r\n }\r\n },\r\n\r\n setProductTypeSpendLimit(state, { productType, spendLimitVal }) {\r\n state.productData[productType].spendLimit = spendLimitVal;\r\n },\r\n\r\n setActiveCardInList(state, activeCardId) {\r\n // Update all cards in list to REMOVED\r\n\r\n state.cardList.forEach((el) => {\r\n el.status = 'REMOVED';\r\n });\r\n\r\n // Find new record and update to ACTIVE\r\n const objIndex = state.cardList.findIndex(\r\n (obj) => obj.paymentId === activeCardId\r\n );\r\n\r\n state.cardList[objIndex].status = 'ACTIVE';\r\n },\r\n SET_PENDING_CANCELLATION(state, cancellation) {\r\n state.pendingCancellation = cancellation;\r\n },\r\n};\r\n\r\nexport const actions = {\r\n getCards({ commit }, { id, noCache = false }) {\r\n return axiosInstance\r\n .get(`/api/billing/${id}/cards`, {\r\n params: {\r\n 'no-cache': noCache,\r\n },\r\n })\r\n .then((response) => {\r\n const data = response.data;\r\n commit('SET_CARD_LIST', data);\r\n return data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n commit('SET_CARD_LIST', []);\r\n });\r\n },\r\n getStatements({ commit }, { clientId, from, to, pagination }) {\r\n return axiosInstance\r\n .get(`/api/billing/${clientId}/statements`, {\r\n params: {\r\n from: from,\r\n to: to,\r\n page: pagination.currentPage,\r\n pageSize: pagination.pageSize,\r\n sortBy: pagination.sortBy,\r\n },\r\n })\r\n .then((response) => {\r\n var data = response.data;\r\n commit('SET_STATEMENT_LIST', data);\r\n return data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n commit('SET_STATEMENT_LIST', []);\r\n });\r\n },\r\n getLastStatement({ commit }, { clientId }) {\r\n return axiosInstance\r\n .get(`/api/billing/${clientId}/last-statement`)\r\n .then((response) => {\r\n var data = response.data;\r\n\r\n commit('SET_LAST_STATEMENT', data);\r\n var currentDate = new Date();\r\n var statementDate = new Date(data.createDate);\r\n if (\r\n currentDate.getMonth() === statementDate.getMonth() &&\r\n currentDate.getFullYear() === statementDate.getFullYear()\r\n ) {\r\n commit('setIsLastStatementCurrentMonthStatement', true);\r\n }\r\n\r\n return data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n commit('setIsLastStatementCurrentMonthStatement', true);\r\n });\r\n },\r\n getCancelStatements({ commit }, { clientId }) {\r\n return axiosInstance\r\n .get(`/api/billing/${clientId}/cancelstatementsummaries`)\r\n .then((response) => {\r\n var data = response.data;\r\n commit('SET_CANCEL_STATEMENTS', data);\r\n return data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n commit('SET_CANCEL_STATEMENTS', []);\r\n });\r\n },\r\n setCardAsPrimary({ commit }, { clientId, paymentServiceId }) {\r\n return axiosInstance\r\n .post(`/api/billing/${clientId}/card/set-primary`, {\r\n paymentServiceId: paymentServiceId,\r\n })\r\n .then((response) => {\r\n var data = response.data;\r\n return data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n return false;\r\n });\r\n },\r\n getClientCancellationReasons({ commit }, { clientId }) {\r\n return axiosInstance\r\n .get(`/api/billing/${clientId}/cancel-client-reasons`)\r\n .then((response) => {\r\n var data = response.data;\r\n commit('SET_CLIENT_CANCELLATION_REASONS', data);\r\n return data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n commit('SET_CLIENT_CANCELLATION_REASONS', '');\r\n });\r\n },\r\n async getProductData({ commit, rootState }, { clientId }) {\r\n clientId = clientId || rootState.client.client.id;\r\n try {\r\n commit('RESET_VALIDATION_RESULT');\r\n commit('setProductsLoading', true);\r\n\r\n var response = await axiosInstance.get(`/api/Products/${clientId}`);\r\n\r\n commit('setProductData', response.data.products);\r\n commit('SET_VALIDATION_RESULT', response.data.validationResult);\r\n commit('setProductsLoading', false);\r\n\r\n return response.data;\r\n } catch (error) {\r\n console.error(error);\r\n handleFailedNetworkResponse(this.dispatch, error);\r\n commit('setProductData', []);\r\n commit('setProductsLoading', false);\r\n }\r\n },\r\n async saveProductData({ commit }, { productData, clientId }) {\r\n try {\r\n commit('setProductSettingsLoading', true);\r\n var results = await axiosInstance.put(\r\n `/api/Products/${clientId}`,\r\n productData\r\n );\r\n var data = results.data;\r\n commit('setProductSettingsLoading', false);\r\n\r\n if (productData.paymentTerms) {\r\n commit('setProductTypePaymentMethod', {\r\n productType: productData.productId - 1,\r\n paymentMethod: productData.paymentTerms,\r\n });\r\n }\r\n\r\n if (productData.paymentId) {\r\n commit('setProductTypePaymentCard', {\r\n productType: productData.productId - 1,\r\n paymentCardId: productData.paymentId,\r\n });\r\n\r\n if (productData.productId === 1) {\r\n commit('setActiveCardInList', productData.paymentId);\r\n }\r\n }\r\n\r\n if (productData.spendLimit) {\r\n commit('setProductTypeSpendLimit', {\r\n productType: productData.productId - 1,\r\n spendLimitVal: productData.spendLimit,\r\n });\r\n }\r\n\r\n return data;\r\n } catch (error) {\r\n console.error(error);\r\n\r\n handleFailedNetworkResponse(this.dispatch, error);\r\n commit('setProductSettingsLoading', false);\r\n }\r\n },\r\n async getGroupBalances({ commit }, { clientId, pagination }) {\r\n try {\r\n const response = await axiosInstance.get(\r\n `/api/billing/${clientId}/groupbalancetransfer`,\r\n {\r\n params: {\r\n page: pagination.currentPage,\r\n pageSize: pagination.pageSize,\r\n sortBy: pagination.sortBy,\r\n },\r\n }\r\n );\r\n const data = response.data;\r\n commit('SET_GROUP_BALANCE_TRANSFER', data);\r\n return data;\r\n } catch (error) {\r\n console.error(error);\r\n handleFailedNetworkResponse(this.dispatch, error);\r\n commit('SET_GROUP_BALANCE_TRANSFER', null);\r\n }\r\n },\r\n async getSingleBalanceTransfer({ commit }, { clientId, groupTransaction }) {\r\n try {\r\n const response = await axiosInstance.get(\r\n `/api/billing/${clientId}/GroupBalanceTransfer/${groupTransaction.clientId}`\r\n );\r\n const data = response.data;\r\n commit('SET_SINGLE_BALANCE_TRANSFER', data);\r\n return data;\r\n } catch (error) {\r\n console.error(error);\r\n handleFailedNetworkResponse(this.dispatch, error);\r\n commit('SET_SINGLE_BALANCE_TRANSFER', null);\r\n }\r\n },\r\n\r\n async transferBalance({ commit }, { clientId, balanceTransfer }) {\r\n try {\r\n await axiosInstance.post(\r\n `/api/billing/${clientId}/GroupBalanceTransfer`,\r\n balanceTransfer\r\n );\r\n } catch (error) {\r\n console.error(error);\r\n handleFailedNetworkResponse(this.dispatch, error);\r\n }\r\n },\r\n getServiceTypeList({ commit }) {\r\n return axiosInstance\r\n .get(`/api/billing/billingTypes`)\r\n .then((response) => {\r\n var data = response.data;\r\n commit('SET_BILLING_TYPE_LIST', data);\r\n return data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n commit('SET_BILLING_TYPE_LIST', []);\r\n });\r\n },\r\n\r\n async getBalanceByProductType({ commit, rootState }, productType) {\r\n try {\r\n const response = await axiosInstance.get(\r\n `/api/billing/${rootState.client.client.id}/balance/${productType}`\r\n );\r\n\r\n if (response instanceof Error) {\r\n // TODO: handle error\r\n }\r\n\r\n commit('setProductTypeBalance', {\r\n productType,\r\n productTypeBalance: response.data,\r\n });\r\n\r\n return response.data;\r\n } catch (error) {\r\n console.error(error);\r\n handleFailedNetworkResponse(this.dispatch, error);\r\n commit('setProductTypeBalance', {\r\n productType,\r\n productTypeBalance: 0,\r\n });\r\n }\r\n },\r\n async refund({ commit }, { card, serviceTypeId }) {\r\n try {\r\n var response = await axiosInstance.post(\r\n `/api/billing/refund/${serviceTypeId}`,\r\n card\r\n );\r\n\r\n return response;\r\n } catch (error) {\r\n if (!error.response) {\r\n // network error\r\n this.dispatch('toastr/error', 'Error: Network Error');\r\n } else {\r\n this.dispatch(\r\n 'toastr/error',\r\n 'Oops there was an error with your payment: ' + error.response.data\r\n );\r\n }\r\n console.error(error);\r\n }\r\n },\r\n async removeTransaction({ commit }, removalDetails) {\r\n alert(removalDetails.amount);\r\n },\r\n async getAuthNetData({ commit }) {\r\n var data = {};\r\n await axiosInstance\r\n .get(`/api/billing/authnet`)\r\n .then((response) => {\r\n data = {\r\n clientKey: response.data.clientKey,\r\n apiLoginID: response.data.apiLoginID,\r\n };\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n });\r\n\r\n return data;\r\n },\r\n async updatePendingCancellation({ commit }, clientId) {\r\n let pendingCancellation = false;\r\n\r\n await axiosInstance\r\n .get(`/api/billing/${clientId}/is-cancellation-scheduled`)\r\n .then((response) => {\r\n pendingCancellation = response.data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n });\r\n\r\n commit('SET_PENDING_CANCELLATION', pendingCancellation);\r\n return pendingCancellation;\r\n },\r\n async cancelPendingCancellation({ commit }, clientId) {\r\n const response = await axiosInstance\r\n .post(`api/billing/${clientId}/cancel-cancellation`)\r\n .then((response) => response.data)\r\n .catch((err) => {\r\n console.error(err);\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n });\r\n\r\n this.dispatch('toastr/success', response);\r\n commit('SET_PENDING_CANCELLATION', false);\r\n return response;\r\n },\r\n async cancelClient({ commit }, cancellationData) {\r\n await commit('SET_IS_PROCESSING_CANCELLATION', true);\r\n let cancelResult = false;\r\n\r\n const response = await axiosInstance\r\n .post(\r\n `/api/Billing/${cancellationData.clientId}/cancel-client`,\r\n cancellationData\r\n )\r\n .catch((err) => {\r\n if (!err.response) {\r\n // network error\r\n this.dispatch('toastr/error', 'Error: Network error');\r\n } else {\r\n handleFailedNetworkResponse(this.dispatch, err);\r\n }\r\n });\r\n\r\n if (response.status === 200) {\r\n this.dispatch('toastr/success', response.data);\r\n await commit('SET_PENDING_CANCELLATION', true);\r\n cancelResult = true;\r\n } else {\r\n this.dispatch(\r\n 'toastr/error',\r\n 'Oops there was an error canceling this client: ' + response.data\r\n );\r\n }\r\n\r\n await commit('SET_IS_PROCESSING_CANCELLATION', false);\r\n\r\n return cancelResult;\r\n },\r\n reset({ commit }) {\r\n commit('SET_CARD_LIST', []);\r\n commit('SET_CANCEL_STATEMENTS', []);\r\n commit('SET_GROUP_BALANCE_TRANSFER', []);\r\n commit('setProductData', []);\r\n commit('setProductTypeBalance', {\r\n productType: 'Web',\r\n productTypeBalance: 0,\r\n });\r\n commit('setProductTypeBalance', {\r\n productType: 'Call',\r\n productTypeBalance: 0,\r\n });\r\n commit('SET_STATEMENT_LIST', []);\r\n commit('SET_PENDING_CANCELLATION', false);\r\n },\r\n};\r\n","import { axiosInstance } from '@/plugins/axios';\r\nimport _ from '@/utils/store-helpers';\r\n\r\nexport class filter {\r\n constructor({ filterTypeId, filterTypeName, operator, value }) {\r\n this.subscriptionFilterId = -1;\r\n this.subscriptionFilterTypeOperator = operator;\r\n this.subscriptionFilterTypeName = filterTypeName;\r\n this.subscriptionFilterTypeId = filterTypeId;\r\n this.subscriptionFilterTypeInputValue = value;\r\n this.subscriptionFilterTypeInputLookup = '';\r\n }\r\n}\r\n\r\nconst getInitialState = () => ({\r\n isIntervalEnabled: false,\r\n clientQuoteTypeId: null,\r\n callType: null,\r\n loading: true,\r\n dirty: false,\r\n filters: [],\r\n filterTypes: [],\r\n filterTypesOperators: [],\r\n});\r\n\r\nexport const state = getInitialState();\r\n\r\nexport const actions = {\r\n async getFilters(\r\n { commit, dispatch },\r\n { clientQuoteTypeId, callType, clearIds = false }\r\n ) {\r\n commit('setLoading', true);\r\n var method = 'SubscriptionFilters';\r\n if (callType === 'ColdTransfer') method = 'TazSubscriptionFilters';\r\n const response = await axiosInstance\r\n .get(`api/LeadType/Get${method}/${clientQuoteTypeId}/`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n dispatch(\r\n 'toastr/error',\r\n `Failed to get schedule. Please check your connection and try again.`,\r\n {\r\n root: true,\r\n }\r\n );\r\n // TODO: This should dispatch an action that will log this error.\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n if (clearIds) {\r\n response.data.subscriptionFilters = response.data.subscriptionFilters.map(\r\n (filter) => ({\r\n ...filter,\r\n subscriptionFilterId: null,\r\n })\r\n );\r\n }\r\n\r\n commit('setFilters', response.data.subscriptionFilters);\r\n commit('setfilterTypesOperators', response.data.subscriptionFilterTypes);\r\n commit('setFilterTypes', response.data.subscriptionFilterTypes);\r\n commit('setCallType', callType);\r\n commit('setLoading', false);\r\n commit('setClientQuoteTypeId', clientQuoteTypeId);\r\n commit('setCallType', callType);\r\n },\r\n\r\n async saveFilters({ commit, dispatch, state }, clientQuoteTypeId) {\r\n var saveSucess = true;\r\n if (!state.dirty) return saveSucess;\r\n\r\n commit('setLoading', true);\r\n const method =\r\n state.callType === 'ColdTransfer'\r\n ? 'TazSubscriptionFilter'\r\n : 'SubscriptionFilter';\r\n\r\n const response = await axiosInstance\r\n .post(`api/LeadType/Upsert${method}/${clientQuoteTypeId}`, state.filters)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error || response.status !== 200) {\r\n saveSucess = false;\r\n dispatch(\r\n 'toastr/error',\r\n 'Failed to save filter. Please check your connection and try again.',\r\n {\r\n root: true,\r\n }\r\n );\r\n }\r\n\r\n commit('setLoading', false);\r\n commit('setDirty', !saveSucess);\r\n\r\n return saveSucess;\r\n },\r\n\r\n addFilter(\r\n { commit },\r\n { index, filterId, filterTypeId, filterTypeName, operator, value }\r\n ) {\r\n commit('addFilter', {\r\n index,\r\n filterId,\r\n filterTypeId,\r\n filterTypeName,\r\n operator,\r\n value,\r\n });\r\n commit('setDirty', true);\r\n },\r\n\r\n removeFilter({ commit }, index) {\r\n if (index < 0) return;\r\n commit('removeFilter', index);\r\n commit('setDirty', true);\r\n },\r\n\r\n resetState({ commit }) {\r\n commit('resetState');\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setFilters: _.set('filters'),\r\n setLoading: _.set('loading'),\r\n setClientQuoteTypeId: _.set('clientQuoteTypeId'),\r\n setCallType: _.set('callType'),\r\n setfilterTypesOperators: _.set('filterTypesOperators'),\r\n\r\n setFilterTypes(state, filterTypes) {\r\n state.filterTypes.length = 0;\r\n for (var filterType of filterTypes) {\r\n if (\r\n state.filterTypes.filter(\r\n (m) =>\r\n m.subscriptionFilterTypeName ===\r\n filterType.subscriptionFilterTypeName\r\n ).length === 0\r\n ) {\r\n state.filterTypes.push({\r\n subscriptionFilterTypeId: filterType.subscriptionFilterTypeID,\r\n subscriptionFilterTypeName: filterType.subscriptionFilterTypeName,\r\n });\r\n }\r\n }\r\n },\r\n removeFilter(state, index) {\r\n state.filters.splice(index, 1);\r\n },\r\n\r\n addFilter(\r\n state,\r\n { index, filterId, filterTypeId, filterTypeName, operator, value }\r\n ) {\r\n if (index > -1) {\r\n state.filters[index].subscriptionFilterId = filterId;\r\n state.filters[index].subscriptionFilterTypeId = filterTypeId;\r\n state.filters[index].subscriptionFilterTypeOperator = operator;\r\n state.filters[index].subscriptionFilterTypeName = filterTypeName;\r\n state.filters[index].subscriptionFilterTypeInputValue = value;\r\n state.filters[index].subscriptionFilterTypeInputLookup = '';\r\n } else {\r\n var filter = {};\r\n filter.subscriptionFilterId = -1;\r\n filter.subscriptionFilterTypeId = filterTypeId;\r\n filter.subscriptionFilterTypeName = filterTypeName;\r\n filter.subscriptionFilterTypeOperator = operator;\r\n filter.subscriptionFilterTypeInputValue = value;\r\n filter.subscriptionFilterTypeInputLookup = '';\r\n\r\n state.filters.push(filter);\r\n }\r\n },\r\n\r\n setDirty(state, isDirty) {\r\n state.dirty = isDirty;\r\n },\r\n\r\n resetState(state) {\r\n const initialState = getInitialState();\r\n Object.keys(state).forEach((key) => {\r\n state[key] = initialState[key];\r\n });\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\nimport { axiosInstance } from '@/plugins/axios';\r\nimport moment from 'moment-timezone';\r\n\r\nexport const state = {\r\n calls: [],\r\n pagination: {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalRecords: 0,\r\n },\r\n sortBy: '-DELIVERY_DATETIME_UTC',\r\n loading: false,\r\n visibleDateRange: [\r\n /* From */\r\n new Date(new Date().getFullYear(), new Date().getMonth(), 1),\r\n /* To */\r\n dateRangeEnd(),\r\n ],\r\n callsRefreshInterval: _.get('callsRefreshInterval', 0),\r\n};\r\n\r\nfunction dateRangeEnd() {\r\n const d = new Date();\r\n d.setHours(23, 59, 59, 999);\r\n return d;\r\n}\r\n\r\nexport const getters = {\r\n hasOngoingCall(state) {\r\n return state.calls.some((call) => call.status === 'Ongoing');\r\n },\r\n};\r\n\r\nexport const actions = {\r\n async getCalls({ commit, rootGetters }, { clientId, search, from, to }) {\r\n commit('setLoading', true);\r\n\r\n const nowUtcFromClientTimezone = moment()\r\n .tz(rootGetters['client/clientTimezone'], true)\r\n .utc()\r\n .toDate();\r\n const params = {\r\n ClientId: clientId,\r\n pageNum: state.pagination.currentPage,\r\n PageSize: state.pagination.pageSize,\r\n from,\r\n to,\r\n prependOngoingCalls: !search && to >= nowUtcFromClientTimezone,\r\n };\r\n\r\n if (search != null && search !== '') {\r\n params.search = search;\r\n }\r\n\r\n if (state.sortBy != null && state.sortBy !== '') {\r\n params.sortBy = state.sortBy;\r\n }\r\n\r\n const response = await axiosInstance\r\n .get(`api/leads/calls/search`, {\r\n params,\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n return Promise.reject(err);\r\n });\r\n commit('setCalls', response.data.items || []);\r\n commit('setPagination', response.data.metaData);\r\n commit('setLoading', false);\r\n\r\n return response.data;\r\n },\r\n\r\n setCurrentPage({ commit, dispatch }, { pageNumber, getCallsData }) {\r\n commit('setCurrentPage', pageNumber);\r\n dispatch('getCalls', getCallsData);\r\n },\r\n\r\n setSortBy({ commit, dispatch }, { sortBy, getCallsData }) {\r\n commit('setSortBy', sortBy);\r\n dispatch('getCalls', getCallsData);\r\n },\r\n\r\n setVisibleDateRange({ commit }, dateRange) {\r\n commit('setVisibleDateRange', dateRange);\r\n },\r\n\r\n reset({ commit }) {\r\n commit('setCalls', []);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('loading'),\r\n setCalls: _.set('calls'),\r\n setPagination: _.set('pagination'),\r\n setSortBy: _.set('sortBy'),\r\n setVisibleDateRange: _.set('visibleDateRange'),\r\n setAutoRefreshInterval: _.set('callsRefreshInterval', true),\r\n\r\n setCurrentPage(state, newValue) {\r\n state.pagination.currentPage = newValue;\r\n },\r\n\r\n setPageSize(state, newValue) {\r\n state.pagination.pageSize = newValue;\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\n\r\nexport const state = {\r\n campaigns: [],\r\n campaignSummaries: [],\r\n loading: false,\r\n dashboardLoading: false,\r\n detailLoading: [],\r\n pagination: {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalPages: 1,\r\n },\r\n dashboardPagination: {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalPages: 1,\r\n },\r\n};\r\n\r\nexport const getters = {\r\n loading: (state) => state.loading,\r\n detailLoading: (state) => (id) => state.detailLoading.includes(id),\r\n campaigns: (state) => state.campaigns,\r\n campaignSummaries: (state) => state.campaignSummaries,\r\n};\r\n\r\nexport const actions = {\r\n async getCampaignsList({ commit, dispatch }, clientId) {\r\n const apiResponse = await dispatch('request/get', {\r\n url: `/api/campaigns/${clientId}/list`,\r\n errorMessage: 'Failed to get campaigns.',\r\n loadingMutation: 'campaigns/SET_DETAIL_LOADING',\r\n });\r\n\r\n if (!apiResponse?.data) {\r\n this.dispatch(\r\n 'toastr/error',\r\n 'Oops there was an error retrieving campaigns'\r\n );\r\n\r\n return;\r\n }\r\n\r\n const { data: campaigns } = apiResponse;\r\n\r\n commit('SET_CAMPAIGNS', campaigns);\r\n const pageCount = Math.ceil(campaigns.length / state.pagination.pageSize);\r\n commit('SET_TOTAL_PAGES', pageCount);\r\n\r\n return campaigns;\r\n },\r\n async getCampaignDetail({ commit, dispatch }, { id, clientId }) {\r\n commit('SET_DETAIL_LOADING', {\r\n id,\r\n newValue: true,\r\n });\r\n\r\n try {\r\n const apiResponse = await dispatch('request/get', {\r\n url: `/api/campaigns/${clientId}/${id}/summary`,\r\n errorMessage: 'Failed to get campaign summary.',\r\n });\r\n\r\n if (!apiResponse) throw new Error('No API Response');\r\n\r\n const { data: campaign } = apiResponse;\r\n commit('ADD_CAMPAIGN_SUMMARY', campaign);\r\n } catch {\r\n this.dispatch(\r\n 'toastr/error',\r\n `Oops there was an error gathering details for campaign ${id}`\r\n );\r\n } finally {\r\n commit('SET_DETAIL_LOADING', {\r\n id,\r\n newValue: false,\r\n });\r\n }\r\n },\r\n setDashboardCurrentPage({ commit }, pageNumber) {\r\n commit('SET_DASHBOARD_CURRENT_PAGE', pageNumber);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n SET_LOADING: _.set('loading'),\r\n SET_DETAIL_LOADING(state, { id, newValue }) {\r\n state.detailLoading = [\r\n ...state.detailLoading.filter((x) => x !== id),\r\n ...(newValue ? [id] : []),\r\n ];\r\n },\r\n SET_CAMPAIGNS(state, newValue) {\r\n state.campaigns = newValue;\r\n },\r\n SET_DASHBOARD_CURRENT_PAGE(state, currentPage) {\r\n state.dashboardPagination.currentPage = currentPage;\r\n },\r\n SET_TOTAL_PAGES(state, totalPages) {\r\n state.pagination.totalPages = totalPages;\r\n },\r\n ADD_CAMPAIGN_SUMMARY(state, newSummary) {\r\n state.campaignSummaries = [\r\n ...state.campaignSummaries.filter((x) => x.id !== newSummary.id),\r\n newSummary,\r\n ];\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\nimport { v1 as uuidv1 } from 'uuid';\r\nimport { ChannelGroupService } from '../../apiServices/channelGroupService';\r\n\r\nconst CALL_TYPE = 2;\r\nexport const state = {\r\n groups: [],\r\n isLoading: false,\r\n // TODO: remove assignment and initialize elsewhere\r\n isSignup: false,\r\n channelGroupService: new ChannelGroupService(),\r\n};\r\n\r\nexport const getters = {\r\n groups: (state) => state.groups,\r\n isLoading: (state) => state.isLoading,\r\n isSignup: (state) => state.isSignup,\r\n groupById: (state) => (subscriptionGroupId) => {\r\n return state.groups.find((group) => {\r\n return group.subscriptionGroupId === subscriptionGroupId;\r\n });\r\n },\r\n\r\n callChannelsNotInGroup(state, getters, rootState) {\r\n if (!state.groups) {\r\n return [];\r\n }\r\n\r\n let channels = [];\r\n\r\n if (state.isSignup) {\r\n channels = rootState.signup.signupInfo.clientQuoteTypes;\r\n } else {\r\n channels = rootState.channels.channels;\r\n }\r\n\r\n const subscriptions = state.groups.reduce((subscriptions, group) => {\r\n return subscriptions.concat(group.subscriptions);\r\n }, []);\r\n\r\n if (state.isSignup) {\r\n const subscriptionIds = subscriptions.map((sub) => sub.clientQuoteTypeId);\r\n const ungroupedCallChannels = channels.filter((channel) => {\r\n return (\r\n !subscriptionIds.includes(channel.id) &&\r\n channel.productTypeId === CALL_TYPE\r\n );\r\n });\r\n return ungroupedCallChannels;\r\n } else {\r\n const subscriptionIds = subscriptions.map((sub) => sub.clientQuoteTypeId);\r\n const ungroupedCallChannels = channels.filter((channel) => {\r\n return (\r\n !subscriptionIds.includes(channel.id) && channel.source === 'Call'\r\n );\r\n });\r\n return ungroupedCallChannels;\r\n }\r\n },\r\n\r\n callChannelEditOptions: (state, getters, rootState) => (editingGroup) => {\r\n const groupId = editingGroup.subscriptionGroupId;\r\n let channels = [];\r\n if (state.isSignup) {\r\n channels = rootState.signup.signupInfo.clientQuoteTypes;\r\n } else {\r\n channels = rootState.channels.channels;\r\n }\r\n\r\n const ungroupedCallChannels = getters.callChannelsNotInGroup;\r\n\r\n if (!groupId) {\r\n return ungroupedCallChannels;\r\n }\r\n\r\n const editingGroupSubIds = editingGroup.subscriptions.map((sub) => {\r\n return sub.clientQuoteTypeId;\r\n });\r\n\r\n const editingChannels = channels.filter((channel) => {\r\n return editingGroupSubIds.includes(channel.id);\r\n });\r\n\r\n return [...ungroupedCallChannels, ...editingChannels];\r\n },\r\n\r\n isGroupsAvailable(state, getters, rootState, rootGetters) {\r\n let hasCallChannels = false;\r\n if (state.isSignup) {\r\n hasCallChannels = rootGetters['signup/hasCallChannel'];\r\n } else {\r\n hasCallChannels = rootGetters['channels/hasCallChannel'];\r\n }\r\n return hasCallChannels;\r\n },\r\n\r\n groupByClientQuoteTypeId: (state) => (clientQuoteTypeId) => {\r\n return state.groups.find((group) => {\r\n return group.subscriptions.some((subscription) => {\r\n return subscription.clientQuoteTypeId === clientQuoteTypeId;\r\n });\r\n });\r\n },\r\n newGroup(state, getters, rootState, rootGetters) {\r\n const id = uuidv1();\r\n const scheduleInfo = rootGetters['scheduler/scheduleInfo'];\r\n const group = {\r\n subscriptionGroupId: id,\r\n groupName: '',\r\n subscriptions: [],\r\n dailySchedule: [],\r\n monthlyCap: [],\r\n intervalCapEnabled: false,\r\n scheduleInfo: scheduleInfo,\r\n };\r\n\r\n return group;\r\n },\r\n fetchGroup: (state, getters, rootState, rootGetters) => (id) => {\r\n const group = state.groups.find((group) => {\r\n return group.subscriptionGroupId === id;\r\n });\r\n\r\n return group;\r\n },\r\n};\r\n\r\nexport const actions = {\r\n setIsSignup({ commit }) {\r\n commit('SET_IS_SIGNUP', true);\r\n },\r\n resetGroups({ commit }) {\r\n commit('SET_IS_SIGNUP', false);\r\n commit('setGroups', []);\r\n },\r\n setGroups({ commit }, groups) {\r\n commit('setGroups', groups);\r\n },\r\n\r\n setGroupSchedule({ commit }, { group, schedule }) {\r\n commit('SET_GROUP_SCHEDULE', { group, schedule });\r\n },\r\n\r\n async saveGroup(\r\n { commit, dispatch, getters, rootState, state },\r\n { group, channelIds, callback }\r\n ) {\r\n commit('setLoading', true);\r\n\r\n // TODO: fix checking for duplicate name without subscriptiongroupid for signup\r\n const isNameExists = state.groups.some((g) => {\r\n return (\r\n g.id !== group.id &&\r\n g.groupName.toLowerCase() === group.groupName.toLowerCase()\r\n );\r\n });\r\n const isChannelGrouped = state.groups.some((g) => {\r\n return (\r\n g.subscriptionGroupId !== group.subscriptionGroupId &&\r\n g.subscriptions.some((sub) => {\r\n return sub.clientQuoteTypeId === group.clientQuoteTypeId;\r\n })\r\n );\r\n });\r\n\r\n if (isNameExists) {\r\n if (callback) {\r\n callback(new Error('Name already exists.'));\r\n return false;\r\n }\r\n return false;\r\n }\r\n\r\n if (isChannelGrouped) {\r\n if (callback) {\r\n callback(new Error('Channel already in group.'));\r\n return false;\r\n }\r\n return false;\r\n }\r\n\r\n if (state.isSignup) {\r\n commit('UPDATE_CHANNEL_GROUP', group);\r\n commit('signup/SET_CHANNEL_GROUPS', state.groups, { root: true });\r\n } else {\r\n const id = group.subscriptionGroupId;\r\n const oldGroup = getters.groupById(id);\r\n const client = rootState.client.client;\r\n\r\n await state.channelGroupService.upsertSubscriptionGroup(\r\n client,\r\n group,\r\n channelIds,\r\n oldGroup\r\n );\r\n const groups = await state.channelGroupService.fetchGroups(client.id);\r\n commit('setGroups', groups);\r\n }\r\n\r\n commit('setLoading', false);\r\n return true;\r\n },\r\n\r\n async deleteSubscriptionGroup({ commit, dispatch }, groupId) {\r\n // TODO: move API functions into separate service class.\r\n commit('setLoading', true);\r\n commit('deleteSubscriptionGroup', groupId);\r\n commit('setLoading', false);\r\n },\r\n\r\n async fetchGroups(\r\n { commit, dispatch, state, rootState },\r\n clientId = rootState.client.client.id\r\n ) {\r\n commit('setLoading', true);\r\n const groups = await state.channelGroupService.fetchGroups(clientId);\r\n // const groups = results.map(group=> ({ ...group, id: 'subscriptionGroupId' }));\r\n\r\n commit('setGroups', groups);\r\n commit('setLoading', false);\r\n },\r\n\r\n async deleteChannelFromGroup({ commit, dispatch }, groupId, subscriptionId) {\r\n commit('setLoading', true);\r\n commit('deleteChannelFromGroup', groupId, subscriptionId);\r\n commit('setLoading', false);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('isLoading'),\r\n setGroups: _.set('groups'),\r\n\r\n SET_IS_SIGNUP(state, isSignup) {\r\n state.isSignup = isSignup;\r\n },\r\n\r\n SET_GROUP_SCHEDULE(state, { group, schedule }) {\r\n group.rawSchedule = schedule;\r\n },\r\n\r\n SET_GROUPS(state, apiGroups) {\r\n const groups = apiGroups.map((group) => {\r\n return { ...group, subscriptionGroupId: group.id };\r\n });\r\n state.groups = groups;\r\n },\r\n\r\n UPDATE_CHANNEL_GROUP(state, channelGroup) {\r\n const id = channelGroup.subscriptionGroupId;\r\n const index = state.groups.findIndex(\r\n (group) => group.subscriptionGroupId === id\r\n );\r\n\r\n if (index > -1) {\r\n state.groups[index] = channelGroup;\r\n } else {\r\n state.groups.push(channelGroup);\r\n }\r\n state.groups = [...state.groups];\r\n },\r\n\r\n // TODO: make case consistent in mutations.\r\n\r\n deleteSubscriptionGroup(state, id) {\r\n state.groups = state.groups.filter((group) => {\r\n return group.subscriptionGroupId !== id;\r\n });\r\n },\r\n\r\n deleteChannelFromGroup(state, { groupId, subscriptionId }) {\r\n const group = state.groups.find((group) => {\r\n return group.id === groupId;\r\n });\r\n group.subscriptions = group.subscriptions.filter((sub) => {\r\n return sub.subscriptionId !== subscriptionId;\r\n });\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\nimport { axiosInstance } from '@/plugins/axios';\r\n\r\nexport const state = {\r\n channels: [],\r\n leadchannels: [],\r\n dashboardchannels: [],\r\n leadChannelCollection: [],\r\n dayCapMin: {\r\n sun: 1,\r\n mon: 1,\r\n tue: 1,\r\n wed: 1,\r\n thu: 1,\r\n fri: 1,\r\n sat: 1,\r\n },\r\n loading: false,\r\n dashboardLoading: false,\r\n detailLoading: [],\r\n pagination: {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalPages: 1,\r\n },\r\n dashboardPagination: {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalPages: 1,\r\n },\r\n};\r\n\r\nexport const getters = {\r\n loading: (state) => state.loading,\r\n detailLoading: (state) => (id) => state.detailLoading.includes(id),\r\n channels: (state) => state.channels,\r\n channelGroups: (state) => state.channelGroups,\r\n leadchannels: (state) => state.leadchannels,\r\n dashboardchannels: (state) => state.dashboardchannels,\r\n\r\n leadChannelCollection: (state) => state.leadChannelCollection,\r\n\r\n webChannels: (state) => state.channels.filter((c) => c.source === 'Web'),\r\n webDashboardChannels: (state) =>\r\n state.dashboardchannels.filter((c) => c.source === 'Web'),\r\n\r\n callChannels: (state) => state.channels.filter((c) => c.source === 'Call'),\r\n callDashboardChannels: (state) =>\r\n state.dashboardchannels.filter((c) => c.source === 'Call'),\r\n\r\n totalRecords: (state, getters) => ({\r\n Web: getters.webChannels.length,\r\n Call: getters.callChannels.length,\r\n }),\r\n totalRecordsDashboard: (state, getters) => ({\r\n Web: getters.webDashboardChannels.length,\r\n Call: getters.callDashboardChannels.length,\r\n }),\r\n\r\n hasWebChannel: (state) => state.channels.some((c) => c.source === 'Web'),\r\n\r\n hasCallChannel: (state) => state.channels.some((c) => c.source === 'Call'),\r\n\r\n hasWebLeadChannel: (state) =>\r\n state.leadchannels.some((c) => c.source === 'Web'),\r\n\r\n hasCallLeadChannel: (state) =>\r\n state.leadchannels.some((c) => c.source === 'Call'),\r\n\r\n hasdashboardWebChannel: (state) =>\r\n state.dashboardchannels.some((c) => c.source === 'Web'),\r\n\r\n hasdashboardCallChannel: (state) =>\r\n state.dashboardchannels.some((c) => c.source === 'Call'),\r\n\r\n activeChannels: (state) =>\r\n state.channels.filter((c) =>\r\n ['ACTIVE', 'DAY CAP', 'WEEKLY_CAP', 'DAYCAPPED', 'WEEKCAPPED'].includes(\r\n c.status.toUpperCase()\r\n )\r\n ),\r\n\r\n channelsByType(state) {\r\n return (leadType) => {\r\n const channels = state.channels.filter((c) => c.source === leadType);\r\n const { currentPage, pageSize } = state.pagination;\r\n const nextIndex = (currentPage - 1) * pageSize;\r\n let endIndex = nextIndex + pageSize;\r\n if (endIndex > channels.length) {\r\n endIndex = channels.length;\r\n }\r\n return channels.slice(nextIndex, endIndex);\r\n };\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('loading'),\r\n setDashboardLoading: _.set('dashboardLoading'),\r\n SET_DETAIL_LOADING(state, { id, newValue }) {\r\n state.detailLoading = [\r\n ...state.detailLoading.filter((x) => x !== id),\r\n ...(newValue ? [id] : []),\r\n ];\r\n },\r\n SET_CHANNEL_OVERVIEW(state, newValue) {\r\n state.channels = newValue;\r\n },\r\n\r\n SET_LEAD_CHANNEL(state, newValue) {\r\n state.leadchannels = newValue;\r\n },\r\n\r\n SET_CHANNELS(state, newValue) {\r\n state.dashboardchannels = newValue;\r\n },\r\n ADD_LEAD_CHANNEL_DETAIL(state, newDetail) {\r\n state.leadChannelCollection = [\r\n ...state.leadChannelCollection.filter((x) => x.id !== newDetail.id),\r\n newDetail,\r\n ];\r\n },\r\n\r\n RESET_LeadChannelcollection(state, newValue) {\r\n state.leadChannelCollection = newValue;\r\n },\r\n SET_DAY_CAP_MINS(state, newValue) {\r\n state.dayCapMin = newValue;\r\n },\r\n setCurrentPage(state, pageNumber) {\r\n state.pagination.currentPage = pageNumber;\r\n },\r\n setDashboardCurrentPage(state, pageNumber) {\r\n state.dashboardPagination.currentPage = pageNumber;\r\n },\r\n\r\n setTotalPages(state, totalPages) {\r\n state.pagination.totalPages = totalPages;\r\n },\r\n\r\n setTotalPagesDashboard(state, totalPages) {\r\n state.pagination.totalPages = totalPages;\r\n },\r\n};\r\n\r\nexport const actions = {\r\n async getDashboardChannelOverview({ commit, dispatch, state }, clientId) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/LeadType/dashboard/${clientId}`,\r\n errorMessage: 'Failed to get channels.',\r\n loadingMutation: 'channels/setDashboardLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n const { data: dashboardchannels } = response;\r\n commit('SET_CHANNELS', dashboardchannels);\r\n\r\n const pageCount = Math.ceil(\r\n dashboardchannels.length / state.dashboardPagination.pageSize\r\n );\r\n dispatch('setTotalPagesDashboard', pageCount);\r\n\r\n return dashboardchannels;\r\n },\r\n\r\n async getChannelOverview({ commit, dispatch, state }, { clientId }) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/LeadType/client/${clientId}?noGeoMaps=true`,\r\n errorMessage: 'Failed to get channels.',\r\n loadingMutation: 'channels/setLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n const { data: channels } = response;\r\n\r\n commit('SET_CHANNEL_OVERVIEW', channels);\r\n const pageCount = Math.ceil(channels.length / state.pagination.pageSize);\r\n dispatch('setTotalPages', pageCount);\r\n\r\n return channels;\r\n },\r\n\r\n async getLeadChannelOverview({ commit, dispatch }, { clientId }) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/LeadType/leadchannels/${clientId}`,\r\n errorMessage: 'Failed to get channels.',\r\n loadingMutation: 'channels/setLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n const { data: leadChannels } = response;\r\n\r\n commit('SET_LEAD_CHANNEL', leadChannels);\r\n\r\n return leadChannels;\r\n },\r\n async getLeadChannelDetail({ commit, dispatch }, channelId) {\r\n commit('SET_DETAIL_LOADING', {\r\n id: channelId,\r\n newValue: true,\r\n });\r\n\r\n const response = await dispatch('request/get', {\r\n url: `/api/LeadType/details/${channelId}`,\r\n errorMessage: 'Failed to get channels.',\r\n });\r\n\r\n if (!response) return;\r\n\r\n const { data: leadChannelDetail } = response;\r\n\r\n commit('ADD_LEAD_CHANNEL_DETAIL', leadChannelDetail);\r\n\r\n commit('SET_DETAIL_LOADING', {\r\n id: channelId,\r\n newValue: false,\r\n });\r\n\r\n return leadChannelDetail;\r\n },\r\n getCapMinimums({ commit }, packageId) {\r\n return axiosInstance\r\n .get(`/api/LeadType/${packageId}/caps/min`)\r\n .then((response) => {\r\n var result = {\r\n sun: response.sunday,\r\n mon: response.monday,\r\n tue: response.tuesday,\r\n wed: response.wednesday,\r\n thu: response.thursday,\r\n fri: response.friday,\r\n sat: response.saturday,\r\n };\r\n commit('SET_DAY_CAP_MINS', result);\r\n return result;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n return Promise.reject(err);\r\n });\r\n },\r\n\r\n async getChannelClone({ commit, dispatch }, cloneModel) {\r\n const response = await dispatch('request/post', {\r\n url: '/api/LeadType/clone',\r\n data: cloneModel,\r\n errorMessage: 'Failed to clone channel.',\r\n loadingMutation: 'channels/setLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('leadType/SET_LEAD_TYPE', response.data, { root: true });\r\n\r\n if (cloneModel.callProperties.isCloning) {\r\n dispatch(\r\n 'scheduler/fetchCallSchedule',\r\n cloneModel.callProperties.clientQuoteTypeId,\r\n { root: true }\r\n );\r\n dispatch(\r\n 'callCorporateFilter/getFilters',\r\n {\r\n clientQuoteTypeId: cloneModel.callProperties.clientQuoteTypeId,\r\n callType: response.data.callType,\r\n clearIds: true,\r\n },\r\n { root: true }\r\n );\r\n commit('callCorporateFilter/setDirty', true, { root: true });\r\n }\r\n commit('setLoading', false);\r\n },\r\n\r\n async sendTestLead(_, id) {\r\n await axiosInstance\r\n .post(`api/leadType/${id}/testLead`)\r\n .then((response) => {\r\n if (response.status === 200) {\r\n this.dispatch('toastr/success', 'The test lead has been sent.');\r\n } else {\r\n this.dispatch(\r\n 'toastr/error',\r\n 'Oops there was an error sending the test lead'\r\n );\r\n }\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n return Promise.reject(err);\r\n });\r\n },\r\n\r\n setCurrentPage({ commit }, pageNumber) {\r\n commit('setCurrentPage', pageNumber);\r\n },\r\n setdashboardCurrentPage({ commit }, pageNumber) {\r\n commit('setdashboardCurrentPage', pageNumber);\r\n },\r\n\r\n setTotalPages({ commit }, totalPages) {\r\n commit('setTotalPages', totalPages);\r\n },\r\n setTotalPagesDashboard({ commit }, totalPages) {\r\n commit('setTotalPagesDashboard', totalPages);\r\n },\r\n\r\n reset({ commit }) {\r\n commit('SET_CHANNEL_OVERVIEW', []);\r\n commit('SET_CHANNELS', []);\r\n commit('SET_LEAD_CHANNEL', []);\r\n commit('SET_LEAD_CHANNEL', []);\r\n },\r\n resetLeadChannel({ commit }) {\r\n commit('RESET_LeadChannelcollection', []);\r\n },\r\n};\r\n","import { axiosInstance } from '@/plugins/axios';\r\nimport _ from '@/utils/store-helpers';\r\nimport { authComputed } from '@/store/helpers';\r\nimport errorTracker from '@/plugins/errorTracker';\r\n\r\nexport const state = {\r\n client: _.get('client') || null,\r\n clientLogs: _.get('clientLogs'),\r\n currentClientStatus: [],\r\n clientCreditEligibility: [],\r\n accountDetails: null,\r\n loading: false,\r\n clientSysData: [],\r\n clientCallsSubscription: [],\r\n promoDetails: null,\r\n contract: null,\r\n sendHistory: [],\r\n supressionStatus: [],\r\n subsidyByCountyDetails: [],\r\n pagination: {\r\n currentPage: 1,\r\n pageSize: 20,\r\n totalRecords: 0,\r\n },\r\n salesPeople: [],\r\n};\r\n\r\nexport const mutations = {\r\n SET_CURRENT_CLIENT: _.set('client', false),\r\n SET_ACCOUNT_DETAILS: _.set('accountDetails'),\r\n // this sets the client status after an update to the status. Represents the client stats before / after a change to the status\r\n SET_CLIENT_STATUS(state, status) {\r\n state.client.status = status;\r\n },\r\n // this sets the *current* status of a client after a get. Represents the status of a client as is.\r\n SET_CURRENT_CLIENT_STATUS(state, status) {\r\n state.currentClientStatus = status;\r\n },\r\n SET_CREDIT_ELIGIBILITY(state, val) {\r\n state.clientCreditEligibility = val;\r\n },\r\n SET_LOADING(state, isLoading) {\r\n state.loading = isLoading;\r\n },\r\n SET_CLIENT_SYS_DATA(state, val) {\r\n state.clientSysData = val;\r\n },\r\n SET_CLIENT_CALLS_SUBSCRIPTION(state, val) {\r\n state.clientCallsSubscription = val;\r\n },\r\n SET_PROMO_DETAILS(state, details) {\r\n state.promoDetails = details;\r\n },\r\n SET_CONTRACT(state, data) {\r\n state.contract = data;\r\n },\r\n SET_SEND_HISTORY(state, data) {\r\n state.sendHistory = data;\r\n },\r\n SET_SUPPRESSION_STATUS(state, data) {\r\n state.supressionStatus = data;\r\n },\r\n SET_SALES_PEOPLE(state, data) {\r\n state.salesPeople = data;\r\n },\r\n\r\n setAcctDetailFirstName(state, val) {\r\n state.accountDetails.firstName = val;\r\n },\r\n setAcctDetailLastName(state, val) {\r\n state.accountDetails.lastName = val;\r\n },\r\n setAcctDetailFullName(state, val) {\r\n state.accountDetails.fullName = val;\r\n },\r\n\r\n setAcctDetailShortName(state, val) {\r\n state.accountDetails.shortName = val;\r\n },\r\n\r\n setAcctDetailLicense(state, val) {\r\n state.accountDetails.license = val;\r\n },\r\n\r\n setAcctDetailAddress1(state, val) {\r\n state.accountDetails.address1 = val;\r\n },\r\n setAcctDetailAddress2(state, val) {\r\n state.accountDetails.address2 = val;\r\n },\r\n setAcctDetailCity(state, val) {\r\n state.accountDetails.city = val;\r\n },\r\n setAcctDetailState(state, val) {\r\n state.accountDetails.state = val;\r\n },\r\n setAcctDetailZip(state, val) {\r\n state.accountDetails.zip = val;\r\n },\r\n\r\n setAcctDetailPhone(state, val) {\r\n state.accountDetails.phone = val;\r\n },\r\n setAcctDetailEmail(state, val) {\r\n state.accountDetails.email = val;\r\n },\r\n\r\n setAcctDetailStatus(state, val) {\r\n state.accountDetails.status = val;\r\n },\r\n\r\n setAcctDetailLoyaltyLevel(state, val) {\r\n state.accountDetails.loyaltyLevel = val;\r\n },\r\n\r\n setAcctDetailParentCompany(state, val) {\r\n state.accountDetails.agency = val;\r\n },\r\n\r\n setAcctDetailConsentCompanyId(state, val) {\r\n if (!state.accountDetails) {\r\n state.accountDetails = {};\r\n }\r\n state.accountDetails.consentCompanyId = val;\r\n },\r\n\r\n setAcctDetailAgencyEmail(state, val) {\r\n state.accountDetails.agencyEmail = val;\r\n },\r\n\r\n setAcctDetailSalesforceId(state, val) {\r\n state.accountDetails.salesforceId = val;\r\n },\r\n\r\n setAcctDetailTimeZone(state, val) {\r\n state.accountDetails.timeZoneOffset = val;\r\n },\r\n\r\n setAcctDetailDNCEmail(state, val) {\r\n state.accountDetails.dncEmail = val;\r\n },\r\n SET_SUBSIDY_BY_COUNTY(state, data) {\r\n state.subsidyByCountyDetails = data;\r\n },\r\n setPagination: _.set('pagination'),\r\n setCurrentPage(state, newValue) {\r\n state.pagination.currentPage = newValue;\r\n },\r\n setPageSize(state, newValue) {\r\n state.pagination.pageSize = newValue;\r\n },\r\n setLeadState(state, val) {\r\n state.subsidyByCountyDetails.leadState = val;\r\n },\r\n setCounty(state, val) {\r\n state.subsidyByCountyDetails.county = val;\r\n },\r\n setProduct(state, val) {\r\n state.subsidyByCountyDetails.product = val;\r\n },\r\n setSubsidy(state, val) {\r\n state.subsidyByCountyDetails.subsidy = val;\r\n },\r\n clearData() {\r\n state.subsidyByCountyDetails = [];\r\n },\r\n};\r\n\r\nexport const getters = {\r\n client: (state) => state.client,\r\n clientFirstName: (state) => state.client?.firstName,\r\n accountDetails: (state) => state.accountDetails,\r\n loading: (state) => state.loading,\r\n promoDetails: (state) => {\r\n return state.promoDetails;\r\n },\r\n clientCallsSubscription: (state) => {\r\n return state.clientCallsSubscription;\r\n },\r\n salesPeople: (state) => state.salesPeople,\r\n\r\n subsidyByCountyDetails: (state) => {\r\n return state.subsidyByCountyDetails;\r\n },\r\n\r\n hasClient: (state) => {\r\n return !!state.client && !!state.client.id;\r\n },\r\n\r\n clientId: (state, { hasClient }) => {\r\n return hasClient ? state.client.id : null;\r\n },\r\n\r\n clientStatus: (state, { hasClient }) => {\r\n return hasClient ? state.client.status : null;\r\n },\r\n\r\n statusMap: (state, { hasClient }) => {\r\n return hasClient ? state.client.statusMap : null;\r\n },\r\n\r\n clientTimezone: (state, { hasClient }) => {\r\n return hasClient ? state.client.timeZone : null;\r\n },\r\n\r\n isCorporate: (state, { hasClient }) => {\r\n return hasClient ? state.client.clientType === 'CORPORATE' : false;\r\n },\r\n isAgent: (state) => {\r\n return (\r\n state.client?.clientType == null || state.client.clientType === 'AGENT'\r\n );\r\n },\r\n\r\n isFolio: (state, { hasClient }) => {\r\n return hasClient\r\n ? state.client.farmersFolio && state.client.parentCompany === 'FARMERS'\r\n : false;\r\n },\r\n\r\n isStateFarm: (state, { hasClient }) => {\r\n return hasClient && state.client.parentCompany === 'STATEFARM';\r\n },\r\n\r\n supportPhone: (state) => {\r\n switch (state.client?.salesSupportTeamName) {\r\n case 'ELITE VIP':\r\n case 'ELITE MIDWEST':\r\n return '855-462-5304';\r\n case 'ELITE WEST':\r\n return '855-462-2380';\r\n case 'ELITE EAST':\r\n return '855-462-5306';\r\n case 'ELITE SOUTH':\r\n return '855-462-5307';\r\n case 'ELITE PRIME':\r\n return '855-247-3362';\r\n case 'EAGLE':\r\n return '855-725-2864';\r\n case 'WOLF':\r\n return '855-725-2865';\r\n case 'BEAR':\r\n return '855-725-2851';\r\n case 'DOLPHIN':\r\n return '855-725-2849';\r\n case 'MEGA':\r\n return '855-725-2867';\r\n default:\r\n return '866-224-2194';\r\n }\r\n },\r\n\r\n supportEmail: (state) => {\r\n switch (state.client?.salesSupportTeamName) {\r\n case 'ELITE VIP':\r\n case 'ELITE WEST':\r\n case 'ELITE MIDWEST':\r\n case 'ELITE EAST':\r\n case 'ELITE SOUTH':\r\n case 'ELITE PRIME':\r\n return 'qwelitesupport@lendingtree.com';\r\n default:\r\n return 'qwsupport@lendingtree.com';\r\n }\r\n },\r\n\r\n billingType: (state) => state.client?.reactivationInfo?.billingType,\r\n\r\n isCcBilling: (state) => state.client?.reactivationInfo?.billingType === 'CC',\r\n\r\n isEligibleForReactivation: (state) =>\r\n state.client?.reactivationInfo?.isEligibleForReactivation || false,\r\n};\r\n\r\nexport const actions = {\r\n async fetchClient({ dispatch, state }, { clientId }) {\r\n if (state.client && state.client.id === clientId) {\r\n return state.client;\r\n }\r\n\r\n const response = await axiosInstance\r\n .get(`/api/clients/${clientId}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n const res = response.response;\r\n switch (res && res.status) {\r\n case 401:\r\n throw res.status;\r\n case 404:\r\n dispatch('toastr/error', 'Invalid ClientID', { root: true });\r\n return;\r\n default:\r\n console.error(response);\r\n throw response;\r\n }\r\n }\r\n\r\n const client = response.data;\r\n dispatch('setClient', client);\r\n return client;\r\n },\r\n\r\n async fetchClientAccountDetails({ commit }, clientId) {\r\n commit('SET_LOADING', true);\r\n const response = await axiosInstance\r\n .get(`/api/clients/${clientId}/account`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n commit('SET_LOADING', false);\r\n console.error(response);\r\n throw response;\r\n }\r\n\r\n commit('SET_ACCOUNT_DETAILS', response.data);\r\n commit('SET_LOADING', false);\r\n return response.data;\r\n },\r\n\r\n async updateAccountDetails({ commit, dispatch, state }) {\r\n commit('SET_LOADING', true);\r\n const response = await axiosInstance\r\n .post(`/api/Clients/${state.client.id}/agent`, state.accountDetails)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n const { response: res } = response;\r\n if (!res) {\r\n dispatch('toastr/error', 'Error: Network Error', { root: true });\r\n } else {\r\n dispatch('toastr/error', res.data, { root: true });\r\n }\r\n\r\n commit('SET_LOADING', false);\r\n console.error(response);\r\n return Promise.reject(response);\r\n }\r\n\r\n commit('SET_LOADING', false);\r\n return response.data;\r\n },\r\n\r\n getClient({ dispatch, rootState }, { clientId }) {\r\n if (clientId == null) {\r\n return axiosInstance\r\n .get(`/api/clients/auth/${rootState.auth.user.idToken.oid}`)\r\n .then((response) => {\r\n dispatch('setClient', response.data);\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n return Promise.reject(err);\r\n });\r\n } else {\r\n return axiosInstance\r\n .get(`/api/clients/${clientId}`)\r\n .then((response) => {\r\n dispatch('setClient', response.data);\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n return Promise.reject(err);\r\n });\r\n }\r\n },\r\n\r\n setClient({ commit, rootGetters }, client) {\r\n if (\r\n authComputed.isAdmin ||\r\n authComputed.isClientServices ||\r\n authComputed.isClientServicesAdmin\r\n ) {\r\n axiosInstance.defaults.headers.common.clientId = client.id;\r\n }\r\n\r\n window.document.title = `${client.fullName} - Client Admin`;\r\n\r\n commit('SET_CURRENT_CLIENT', client);\r\n },\r\n\r\n clearClient({ commit }) {\r\n // Undoes 'setClient'\r\n delete axiosInstance.defaults.headers.common.clientId;\r\n window.document.title = `Client Admin`;\r\n commit('SET_CURRENT_CLIENT', {});\r\n },\r\n\r\n async createDefaultClient({ commit, dispatch }, clientInfo) {\r\n commit('SET_LOADING', true);\r\n\r\n const response = await axiosInstance\r\n .get('/api/clients/default', {\r\n params: {\r\n firstName: clientInfo.firstName,\r\n lastName: clientInfo.lastName,\r\n state: clientInfo.state,\r\n clientType: clientInfo.clientType,\r\n },\r\n })\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({ exception: response });\r\n console.error(response);\r\n dispatch(\r\n 'toastr/error',\r\n 'Failed to create default client. Please contact support.',\r\n { root: true }\r\n );\r\n return null;\r\n }\r\n\r\n commit('SET_LOADING', false);\r\n return response.data;\r\n },\r\n\r\n async setClientStatus({ commit, dispatch, state }, status) {\r\n const previousStatus = state.client.status;\r\n\r\n function resetStatus(errorMessage) {\r\n dispatch('toastr/error', errorMessage);\r\n\r\n commit('SET_CLIENT_STATUS', previousStatus);\r\n console.error(errorMessage);\r\n return errorMessage;\r\n }\r\n commit('SET_LOADING', true);\r\n const response = await axiosInstance\r\n .put(`/api/status/${state.client.id}/${status}`, {})\r\n .catch(resetStatus);\r\n\r\n if (response.status !== 200) {\r\n resetStatus(\r\n `Invalid response status or data. Response status: ${response.status}, Data (rows affected): ${response.data}`\r\n );\r\n } else {\r\n commit('SET_CLIENT_STATUS', response.data);\r\n }\r\n commit('SET_LOADING', false);\r\n },\r\n\r\n async getConsentCompanyId({ dispatch, state, commit }) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/consentcompany/names?clientId=${state.client.id}`,\r\n errorMessage: 'Failed to get consent company id',\r\n });\r\n\r\n if (response) {\r\n commit('setAcctDetailConsentCompanyId', response.data?.[0]?.id);\r\n }\r\n return response;\r\n },\r\n\r\n async setConsentCompanyId({ dispatch, state, commit }, consentCompanyId) {\r\n const response = dispatch('request/put', {\r\n url: `/api/consentcompany/${consentCompanyId}/${state.client.id}`,\r\n errorMessage: 'Failed to set consent company client',\r\n });\r\n\r\n if (response) {\r\n commit('setAcctDetailConsentCompanyId', consentCompanyId);\r\n }\r\n return response;\r\n },\r\n\r\n async getLogs({ commit }, { clientId, pagination }) {\r\n try {\r\n const response = await axiosInstance.get(\r\n `/api/clients/${clientId}/logs`,\r\n {\r\n params: {\r\n currentPage: pagination.currentPage,\r\n pageSize: pagination.pageSize,\r\n sortBy: pagination.sortBy,\r\n startDate: pagination.startDates[0],\r\n endDate: pagination.startDates[1],\r\n last45Days: pagination.last45Days,\r\n },\r\n }\r\n );\r\n const data = response.data;\r\n return data;\r\n } catch (error) {\r\n if (error.response) {\r\n this.dispatch('toastr/error', error.response.data);\r\n } else {\r\n this.dispatch('toastr/error', error);\r\n }\r\n }\r\n },\r\n\r\n async getReactivationLogs({ commit }, clientId) {\r\n const response = await axiosInstance.get(\r\n `/api/clients/${clientId}/ReactivationLogs`\r\n );\r\n const data = response.data;\r\n\r\n return data;\r\n },\r\n\r\n async updateReactivationLog({ dispatch }, { clientId, reactivationLog }) {\r\n const response = await axiosInstance.post(\r\n `/api/clients/${clientId}/ReactivationLog`,\r\n reactivationLog\r\n );\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({\r\n exception: response,\r\n });\r\n console.error(response);\r\n\r\n this.dispatch(\r\n 'toastr/error',\r\n 'Failed to update reactivation attribute.',\r\n {\r\n root: true,\r\n }\r\n );\r\n }\r\n },\r\n\r\n async getSalesPeople({ commit }) {\r\n const response = await axiosInstance.get(\r\n '/api/clients/SALES_PEOPLE/options'\r\n );\r\n const data = response.data;\r\n\r\n commit('SET_SALES_PEOPLE', data);\r\n },\r\n\r\n async syncToSalesForce({ commit }, { clientId }) {\r\n commit('SET_LOADING', true);\r\n try {\r\n const response = await axiosInstance.post(\r\n `/api/clients/salesforce/sync/${clientId}`\r\n );\r\n this.dispatch('toastr/success', 'Sync Successful');\r\n commit('SET_LOADING', false);\r\n return response;\r\n } catch (error) {\r\n console.error(error);\r\n this.dispatch('toastr/error', error);\r\n commit('SET_LOADING', false);\r\n }\r\n },\r\n\r\n async getClientStatus({ commit, dispatch }, { clientId }) {\r\n axiosInstance\r\n .get(`/api/status/${clientId}`)\r\n .then((response) => {\r\n if (response.status === 200) {\r\n commit('SET_CURRENT_CLIENT_STATUS', response.data);\r\n }\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n dispatch('toastr/error', err);\r\n });\r\n },\r\n\r\n async getClientCreditEligibility({ commit, dispatch }, { clientId }) {\r\n axiosInstance\r\n .get(`/api/clients/${clientId}/credit_eligibility`)\r\n .then((response) => {\r\n if (response.status === 200) {\r\n commit('SET_CREDIT_ELIGIBILITY', response.data);\r\n }\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n dispatch('toastr/error', err);\r\n });\r\n },\r\n\r\n async getClientContractSnapshot({ commit }, clientId) {\r\n const response = await axiosInstance\r\n .get(`/api/clients/contract/${clientId}`)\r\n .catch((err) => err);\r\n\r\n commit('SET_CONTRACT', response.data || {});\r\n },\r\n\r\n async downloadContract({ commit, dispatch }, clientId) {\r\n await axiosInstance\r\n .get(`/api/clients/contract/download/${clientId}`, {\r\n responseType: 'blob',\r\n })\r\n .then(({ data }) => {\r\n const downloadUrl = window.URL.createObjectURL(new Blob([data]));\r\n\r\n const link = document.createElement('a');\r\n\r\n link.href = downloadUrl;\r\n\r\n link.setAttribute('download', 'contract.pdf');\r\n\r\n document.body.appendChild(link);\r\n\r\n link.click();\r\n\r\n link.remove();\r\n })\r\n .catch((err) => err);\r\n },\r\n\r\n async getClientSystemData({ commit, dispatch }, { clientId }) {\r\n axiosInstance\r\n .get(`/api/clients/${clientId}/account_sys`)\r\n .then((response) => {\r\n if (response.status === 200) {\r\n commit('SET_CLIENT_SYS_DATA', response.data);\r\n }\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n dispatch('toastr/error', err);\r\n });\r\n },\r\n\r\n async getClientCallSubscription({ commit, dispatch }, { clientId }) {\r\n axiosInstance\r\n .get(`/api/clients/${clientId}/calls-subscription-account`)\r\n .then((response) => {\r\n if (response.status === 200) {\r\n commit('SET_CLIENT_CALLS_SUBSCRIPTION', response.data);\r\n }\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n dispatch('toastr/error', err);\r\n });\r\n },\r\n\r\n async getStateFarmSubsidy(\r\n { commit, dispatch },\r\n { clientId, leadState, pageNum, pageSize, sortBy, county, product, subsidy }\r\n ) {\r\n const response = axiosInstance\r\n .get(`/api/clients/${clientId}/subsidy`, {\r\n params: {\r\n clientId,\r\n leadState,\r\n pageNum: state.pagination.currentPage,\r\n pageSize: state.pagination.pageSize,\r\n sortBy,\r\n county,\r\n product,\r\n subsidy,\r\n },\r\n })\r\n .then((response) => {\r\n if (response.status === 200) {\r\n commit('SET_SUBSIDY_BY_COUNTY', response.data.items || {});\r\n commit('setPagination', response.data.metaData);\r\n }\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n dispatch('toastr/error', err);\r\n });\r\n return response.data;\r\n },\r\n\r\n async getClientPromoDetails(\r\n { commit, dispatch },\r\n clientId = state.client.id\r\n ) {\r\n commit('SET_LOADING', true);\r\n const response = await axiosInstance\r\n .get(`/api/clients/${clientId}/promos`)\r\n .catch((err) => {\r\n console.error(err);\r\n dispatch('toastr/error', err);\r\n return null;\r\n });\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n commit('SET_LOADING', false);\r\n dispatch('toastr/error', 'Failed to get promotion details.');\r\n return;\r\n }\r\n\r\n commit('SET_PROMO_DETAILS', response.data);\r\n commit('SET_LOADING', false);\r\n return response.data;\r\n },\r\n\r\n async updateClientPromoDetails({ commit, dispatch }, promoDetails) {\r\n commit('SET_LOADING', true);\r\n const response = await axiosInstance\r\n .post(`/api/Promo/${promoDetails.clientId}/promo`, promoDetails)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n const { response: res } = response;\r\n if (!res) {\r\n dispatch('toastr/error', 'Error: Network Error', { root: true });\r\n } else {\r\n dispatch('toastr/error', res.data.message, { root: true });\r\n }\r\n\r\n commit('SET_LOADING', false);\r\n console.error(response);\r\n return Promise.reject(response);\r\n }\r\n\r\n commit('SET_PROMO_DETAILS', response.data);\r\n commit('SET_LOADING', false);\r\n\r\n return response.data;\r\n },\r\n\r\n async insertClientPromoDetails({ commit, dispatch }, promoDetails) {\r\n commit('SET_LOADING', true);\r\n const response = await axiosInstance\r\n .post(`/api/Promo/${promoDetails.clientId}/createpromo`, promoDetails)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n const { response: res } = response;\r\n if (!res) {\r\n dispatch('toastr/error', 'Error: Network Error', { root: true });\r\n } else {\r\n dispatch('toastr/error', res.data.message, { root: true });\r\n }\r\n\r\n commit('SET_LOADING', false);\r\n console.error(response);\r\n return Promise.reject(response);\r\n }\r\n\r\n commit('SET_PROMO_DETAILS', response.data);\r\n commit('SET_LOADING', false);\r\n\r\n return response.data;\r\n },\r\n\r\n async zeroClientPromoAmounts({ commit, dispatch }, promoDetails) {\r\n commit('SET_LOADING', true);\r\n const response = await axiosInstance\r\n .post(`/api/Promo/${promoDetails.clientId}/zeropromo`, promoDetails)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n const { response: res } = response;\r\n if (!res) {\r\n dispatch('toastr/error', 'Error: Network Error', { root: true });\r\n } else {\r\n if (res.data.message) {\r\n dispatch('toastr/error', res.data.message, { root: true });\r\n } else {\r\n dispatch('toastr/error', res.data, { root: true });\r\n\r\n commit('SET_LOADING', false);\r\n return Promise.reject(res.data);\r\n }\r\n }\r\n\r\n commit('SET_LOADING', false);\r\n console.error(response);\r\n return Promise.reject(response);\r\n }\r\n\r\n commit('SET_PROMO_DETAILS', response.data);\r\n commit('SET_LOADING', false);\r\n\r\n return response.data;\r\n },\r\n\r\n async getClientAccountDetails({ commit, dispatch }, { clientId }) {\r\n const response = await axiosInstance\r\n .get(`/api/clients/${clientId}/account`)\r\n .catch((err) => {\r\n console.error(err);\r\n dispatch('toastr/error', err);\r\n return null;\r\n });\r\n commit('SET_ACCOUNT_DETAILS', response.data);\r\n\r\n return response.data;\r\n },\r\n\r\n async getClientSendHistory({ dispatch }, clientId) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/clients/${clientId}/emailHistory`,\r\n errorMessage: 'Failed to get send grid history',\r\n });\r\n\r\n const issues = [].concat(\r\n response.data.blockedEmails,\r\n response.data.bouncedEmails,\r\n response.data.invalidEmails,\r\n response.data.spamEmails\r\n );\r\n\r\n const messages = response.data.messages.map((x) => {\r\n const item = {\r\n date: x.last_event_time,\r\n status: x.status,\r\n from_email: x.from_email,\r\n subject: x.subject,\r\n last_event_time: x.last_event_time,\r\n clicks_count: x.clicks_count,\r\n opens_count: x.opens_count,\r\n msg_id: x.msg_id,\r\n };\r\n\r\n return item;\r\n });\r\n\r\n return {\r\n messages,\r\n issues,\r\n email: response.data.emailAddress,\r\n };\r\n },\r\n\r\n async getClientEmailStatus({ commit, dispatch }, clientId) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/clients/${clientId}/emailStatus`,\r\n errorMessage: 'Failed to get email status',\r\n });\r\n\r\n return response.data;\r\n },\r\n\r\n async getEmailTimeline({ dispatch }, { clientId, messageId }) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/clients/${clientId}/emailTimeline/${messageId}`,\r\n errorMessage: 'Failed to get email timeline',\r\n });\r\n\r\n return response.data;\r\n },\r\n\r\n async getSpamReports({ dispatch }, { noCache = null }) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/clients/spam-reports`,\r\n params: { 'no-cache': noCache },\r\n errorMessage: 'Failed to get Spam Reports',\r\n });\r\n\r\n return response.data;\r\n },\r\n\r\n async removeSpamReport({ dispatch }, { emails = [] }) {\r\n if (emails === null || emails.length === 0) {\r\n return;\r\n }\r\n\r\n await dispatch('request/delete', {\r\n url: `/api/clients/spam-reports`,\r\n data: { emails },\r\n errorMessage: 'Failed to remove Spam Reports',\r\n });\r\n },\r\n\r\n reset({ commit }) {\r\n commit('SET_CURRENT_CLIENT', { statusMap: [], timeZone: 0 });\r\n commit('SET_ACCOUNT_DETAILS', {});\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\n\r\nexport const state = {\r\n clientRules: [],\r\n clientRuleTypes: [],\r\n loading: false,\r\n};\r\n\r\nexport const getters = {\r\n loading: (state) => state.loading,\r\n clientRuleTypes: (state) => state.clientRuleTypes,\r\n\r\n clientRules: (state, _getters, rootState) => {\r\n return state.clientRules.map((rule) => {\r\n const channel = rootState.channels.channels.find((channel) => {\r\n return channel.id === rule.clientQuoteTypeId;\r\n });\r\n\r\n return {\r\n ...rule,\r\n ruleName: channel?.name,\r\n };\r\n });\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('loading'),\r\n setClientRules: _.set('clientRules'),\r\n setClientRuleTypes: _.set('clientRuleTypes'),\r\n};\r\n\r\nexport const actions = {\r\n async getClientRulesList({ commit, dispatch, rootState }) {\r\n dispatch(\r\n 'channels/getChannelOverview',\r\n { clientId: rootState.client.client.id },\r\n { root: true }\r\n );\r\n\r\n const response = await dispatch('request/get', {\r\n url: '/api/ClientRule',\r\n errorMessage: 'Failed to get client rules list.',\r\n loadingMutation: 'clientRules/setLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setClientRules', response.data);\r\n },\r\n\r\n async getClientRuleTypesList({ commit, dispatch }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/ClientRule/types',\r\n errorMessage: 'Failed to get client rule types.',\r\n loadingMutation: 'clientRules/setLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setClientRuleTypes', response.data);\r\n },\r\n\r\n async createClientRule({ dispatch }, rule) {\r\n const response = await dispatch(`request/${rule.id ? 'put' : 'post'}`, {\r\n url: `/api/ClientRule`,\r\n data: rule,\r\n errorMessage: 'Failed to create client rule.',\r\n successMessage: 'Rule successfully created.',\r\n loadingMutation: 'clientRules/setLoading',\r\n });\r\n\r\n if (!response) return false;\r\n\r\n dispatch('getClientRulesList');\r\n\r\n return true;\r\n },\r\n\r\n async deleteClientRule({ dispatch, rootGetters, state }, rule) {\r\n const response = await dispatch('request/delete', {\r\n url: '/api/ClientRule',\r\n data: rule,\r\n errorMessage: 'Failed to delete rule.',\r\n successMessage: 'Rule successfully deleted.',\r\n loadingMutation: 'clientRules/setLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n dispatch('getClientRulesList');\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\nimport { axiosInstance } from '@/plugins/axios';\r\nimport { creditCallUrl } from '@/app.config';\r\n\r\nexport const state = {\r\n loading: false,\r\n leadCount: 0,\r\n countLoading: false,\r\n lead: {},\r\n};\r\n\r\nexport const getters = {};\r\n\r\nexport const actions = {\r\n async getLead(\r\n { commit, dispatch },\r\n {\r\n lowCR,\r\n highCR,\r\n lowCost,\r\n highCost,\r\n creditReason,\r\n parentCompany,\r\n leadType,\r\n clientId,\r\n devPhoneNumber,\r\n }\r\n ) {\r\n commit('setLoading', true);\r\n try {\r\n var leadData = null;\r\n\r\n var response = await axiosInstance.get(`/api/leads/getCreditDialerLead`, {\r\n params: {\r\n lowCR,\r\n highCR,\r\n lowCost,\r\n highCost,\r\n creditReason,\r\n parentCompany,\r\n leadType,\r\n clientId,\r\n },\r\n });\r\n\r\n leadData = response.data;\r\n\r\n if (process.env.VUE_APP_CREDIT_DIALER_LIVE !== 'true') {\r\n leadData.primaryPhone = devPhoneNumber;\r\n leadData.bizContactPhone = devPhoneNumber;\r\n }\r\n\r\n commit('setLead', leadData);\r\n\r\n dispatch('getLeadCount', {\r\n lowCR,\r\n highCR,\r\n lowCost,\r\n highCost,\r\n creditReason,\r\n parentCompany,\r\n leadType,\r\n clientId,\r\n });\r\n\r\n commit('setLoading', false);\r\n\r\n return leadData;\r\n } catch (err) {\r\n if (!err.response) {\r\n // network error\r\n this.dispatch('toastr/error', 'Error: Network Error');\r\n } else {\r\n this.dispatch(\r\n 'toastr/error',\r\n 'Oops there was an error: ' + err.response.data\r\n );\r\n }\r\n console.error(err);\r\n commit('setLoading', false);\r\n return {};\r\n }\r\n },\r\n async getLeadCount(\r\n { commit },\r\n {\r\n lowCR,\r\n highCR,\r\n lowCost,\r\n highCost,\r\n creditReason,\r\n parentCompany,\r\n leadType,\r\n clientId,\r\n }\r\n ) {\r\n commit('setCountLoading', true);\r\n try {\r\n var response = await axiosInstance.get(\r\n `/api/leads/getCreditDialerLeadCount`,\r\n {\r\n params: {\r\n lowCR,\r\n highCR,\r\n lowCost,\r\n highCost,\r\n creditReason,\r\n parentCompany,\r\n leadType,\r\n clientId,\r\n },\r\n }\r\n );\r\n\r\n commit('setLeadCount', response.data);\r\n commit('setCountLoading', false);\r\n } catch (err) {\r\n if (!err.response) {\r\n // network error\r\n this.dispatch('toastr/error', 'Error: Network Error');\r\n } else {\r\n this.dispatch(\r\n 'toastr/error',\r\n 'Oops there was an error getting the lead count: ' + err.response.data\r\n );\r\n }\r\n console.error(err);\r\n commit('setCountLoading', false);\r\n commit('setLeadCount', 0);\r\n }\r\n },\r\n async approveCreditRequest({ commit }, { id }) {\r\n commit('setLoading', true);\r\n try {\r\n await axiosInstance.post(`/api/leads/${id}/approvecredit`);\r\n } catch (err) {\r\n console.error(err);\r\n commit('setLoading', false);\r\n return false;\r\n }\r\n\r\n commit('setLoading', false);\r\n return true;\r\n },\r\n async denyCreditRequest({ commit }, { id, description, reason }) {\r\n commit('setLoading', true);\r\n try {\r\n await axiosInstance.post(`/api/leads/${id}/denycredit`, {\r\n reason,\r\n description,\r\n });\r\n } catch (err) {\r\n console.error(err);\r\n commit('setLoading', false);\r\n return false;\r\n }\r\n\r\n commit('setLoading', false);\r\n return true;\r\n },\r\n async callCreditCaller({ commit }, { phone }) {\r\n try {\r\n await axiosInstance.post(\r\n `${creditCallUrl}/Dialer/MakeOutGoingCallToCaller?callerPhoneNumber=${phone}`\r\n );\r\n return true;\r\n } catch (err) {\r\n console.error(err);\r\n return false;\r\n }\r\n },\r\n async callLead({ commit }, { fromPhone, toPhone }) {\r\n try {\r\n await axiosInstance.post(\r\n `${creditCallUrl}/Dialer/MakeOutGoingCallToConsumer?fromPhoneNumber=${fromPhone}&toPhoneNumber=${toPhone}`\r\n );\r\n return true;\r\n } catch (err) {\r\n console.error(err);\r\n return false;\r\n }\r\n },\r\n async hangup({ commit }, { fromPhone, toPhone }) {\r\n try {\r\n await axiosInstance.post(\r\n `${creditCallUrl}/Dialer/HangUpCall?fromPhoneNumber=${fromPhone}&toPhoneNumber=${toPhone}`\r\n );\r\n return true;\r\n } catch (err) {\r\n console.error(err);\r\n return false;\r\n }\r\n },\r\n async getCallStatus({ commit }, { phone }) {\r\n try {\r\n var response = await axiosInstance.get(\r\n `${creditCallUrl}/Dialer/${phone}/GetCallStatus`\r\n );\r\n\r\n return response.data;\r\n } catch (err) {\r\n console.error(err);\r\n return 'unknown';\r\n }\r\n },\r\n async ping({ commit }) {\r\n try {\r\n commit('setLoading', true);\r\n var response = await axiosInstance.get(`${creditCallUrl}/dialer/ping`);\r\n commit('setLoading', false);\r\n return response.data;\r\n } catch (err) {\r\n commit('setLoading', false);\r\n console.error(err);\r\n return err;\r\n }\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('loading'),\r\n setLeadCount: _.set('leadCount'),\r\n setLead: _.set('lead'),\r\n setCountLoading: _.set('countLoading'),\r\n};\r\n","import { axiosInstance } from '@/plugins/axios';\r\n\r\nimport _ from '@/utils/store-helpers';\r\n\r\n// initial state\r\nexport const state = {\r\n searchResults: [],\r\n isSearching: false,\r\n pagination: {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalRecords: 0,\r\n },\r\n sortBy: '',\r\n includeCancel: false,\r\n};\r\n\r\n// getters\r\nexport const getters = {};\r\n\r\n// mutations\r\nexport const mutations = {\r\n setSearchResults: _.set('searchResults', false),\r\n setIsSearching: _.set('isSearching', false),\r\n setPagination: _.set('pagination', false),\r\n setCurrentPage(state, newValue) {\r\n state.pagination.currentPage = newValue;\r\n },\r\n setPageSize(state, newValue) {\r\n state.pagination.pageSize = newValue;\r\n },\r\n setSortBy: _.set('sortBy', false),\r\n setIncludeCancel(state, newValue) {\r\n state.includeCancel = newValue;\r\n },\r\n};\r\n\r\n// actions\r\nexport const actions = {\r\n async searchForClient({ commit, state }, search = null) {\r\n try {\r\n commit('setIsSearching', true);\r\n\r\n var results = await axiosInstance.get(`/api/clients/search`, {\r\n params: {\r\n q: search,\r\n page: state.pagination.currentPage,\r\n pageSize: state.pagination.pageSize,\r\n sortBy: state.sortBy,\r\n includeCancel: state.includeCancel,\r\n },\r\n });\r\n\r\n var data = results.data;\r\n\r\n commit('setSearchResults', data.items);\r\n commit('setPagination', data.metaData);\r\n\r\n commit('setIsSearching', false);\r\n return data;\r\n } catch (error) {\r\n console.error(error);\r\n commit('setIsSearching', false);\r\n }\r\n },\r\n};\r\n","import { axiosInstance } from '@/plugins/axios';\r\nimport moment from 'moment';\r\n\r\nconst InProgressStatus = 'InProgress';\r\nconst CompleteStatus = 'Complete';\r\nconst ErrorStatus = 'Error';\r\n\r\n// initial state\r\nexport const state = {\r\n currentAgentImportStatus: '',\r\n activeAgentImportStatus: '',\r\n terminatedAgentImportStatus: '',\r\n currentAgentImportStatusTime: '',\r\n cooperateEnabledStatus: 'UNKNOWN',\r\n thisDate: moment().format('YYYY/MM/DD HH:mm:ss'),\r\n loading: false,\r\n};\r\n\r\n// getters\r\nexport const getters = {\r\n loading: (state) => state.loading,\r\n};\r\n\r\n// actions\r\nexport const actions = {\r\n // I think this is just a duplicate of the feature flag and might make no sense to have\r\n IsFarmersCooperateEnabled({ commit }) {\r\n return axiosInstance\r\n .get(`/api/FarmersVendorImport/is-farmers-cooperate-enabled`)\r\n .then((response) => {\r\n var data = response.data;\r\n commit('SET_IS_COOPERATE_ENABLED', data);\r\n return data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n this.dispatch('toastr/error', err.response.data);\r\n commit('SET_IS_COOPERATE_ENABLED', 'ERROR');\r\n });\r\n },\r\n\r\n CurrentAgentImportStatus({ commit }) {\r\n return axiosInstance\r\n .get(`/api/FarmersVendorImport/current-agent-import-status`)\r\n .then((response) => {\r\n if (\r\n response != null &&\r\n response.data != null &&\r\n response.data.activeAgentImportStatus != null &&\r\n response.data.terminatedAgentImportStatus != null\r\n ) {\r\n var data = response.data;\r\n commit('SET_CURRENT_IMPORT_STATUS', data);\r\n\r\n commit('SET_CURRENT_IMPORT_STATUS_TIME', data.processingDate);\r\n }\r\n return data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n this.dispatch('toastr/error', err.response.data);\r\n commit('SET_CURRENT_IMPORT_STATUS', 'Error');\r\n });\r\n },\r\n\r\n ImportFarmersAgents({ commit, dispatch }) {\r\n return axiosInstance\r\n .post(`/api/FarmersVendorImport/import-farmers-agents`, {\r\n dateContent: state.thisDate,\r\n })\r\n .then((response) => {\r\n const data = response.data;\r\n\r\n commit('SET_CURRENT_IMPORT_STATUS', data);\r\n })\r\n .catch((err) => {\r\n dispatch(\r\n 'toastr/error', \r\n 'Error(s): ' + err.response.data,\r\n { root: true }\r\n );\r\n });\r\n },\r\n};\r\n\r\n// mutations\r\nexport const mutations = {\r\n SET_LOADING_STATUS(state, newValue) {\r\n state.loading = newValue;\r\n },\r\n SET_CURRENT_IMPORT_STATUS(state, newValue) {\r\n if (\r\n newValue.activeAgentImportStatus === InProgressStatus ||\r\n newValue.terminatedAgentImportStatus === InProgressStatus\r\n ) {\r\n state.currentAgentImportStatus = 'In progress';\r\n } else if (\r\n newValue.activeAgentImportStatus === CompleteStatus &&\r\n newValue.terminatedAgentImportStatus === CompleteStatus\r\n ) {\r\n state.currentAgentImportStatus = 'Complete';\r\n } else if (\r\n newValue.activeAgentImportStatus === '' &&\r\n newValue.terminatedAgentImportStatus === ''\r\n ) {\r\n state.currentAgentImportStatus = 'Not started';\r\n } else if (\r\n newValue.activeAgentImportStatus === ErrorStatus ||\r\n newValue.terminatedAgentImportStatus === ErrorStatus\r\n ) {\r\n state.currentAgentImportStatus = 'Error';\r\n }\r\n\r\n state.activeAgentImportStatus = newValue.activeAgentImportStatus;\r\n state.terminatedAgentImportStatus = newValue.terminatedAgentImportStatus;\r\n },\r\n\r\n SET_CURRENT_IMPORT_STATUS_TIME(state, newValue) {\r\n state.currentAgentImportStatusTime = newValue;\r\n },\r\n\r\n SET_IS_COOPERATE_ENABLED(state, newValue) {\r\n state.cooperateEnabledStatus = newValue;\r\n },\r\n};\r\n","import axiosInstance from '@/plugins/axios';\r\n\r\nexport const getFeatureFlags = async (flagNames, errorCallback) => {\r\n const queryString = flagNames.reduce(\r\n (result, next, i) => `${result}${i > 0 ? ',' : ''}${next}`,\r\n ''\r\n );\r\n\r\n const response = await axiosInstance\r\n .get(`api/feature/flags?flags=${queryString}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error || response.data === '') {\r\n console.error(response);\r\n if (errorCallback) errorCallback(new Error('Failed to get feature flag'));\r\n\r\n return {};\r\n }\r\n\r\n return response.data;\r\n};\r\n\r\nexport const getFeatureFlag = async (\r\n flagName,\r\n carrier,\r\n clientType,\r\n clientId,\r\n errorCallback\r\n) => {\r\n const path = `${flagName}/${carrier}-${clientType}/${clientId}`;\r\n\r\n const response = await axiosInstance\r\n .get(`api/feature/${path}`)\r\n .catch((err) => err);\r\n if (response instanceof Error || response.data === '') {\r\n console.error(response);\r\n if (errorCallback)\r\n errorCallback(new Error('Failed to get feature flag for client'));\r\n\r\n return false;\r\n }\r\n return response.data;\r\n};\r\n\r\nexport default {\r\n getFeatureFlags,\r\n getFeatureFlag,\r\n};\r\n","import _ from '@/utils/store-helpers';\r\nimport {\r\n getFeatureFlags,\r\n getFeatureFlag,\r\n} from '../../apiServices/featureFlagService';\r\n\r\nexport const state = {\r\n flags: {},\r\n isInit: false,\r\n};\r\n\r\nexport const getters = {\r\n flags: (state) => state.flags,\r\n getFlag: (state) => (flagName) => (state.flags[flagName] ?? false) === true,\r\n isInit: (state) => state.isInit,\r\n medicareConsentEnabled: (state) => state.flags.MedicareConsent === true,\r\n};\r\n\r\nexport const actions = {\r\n async populateFlags({ commit }) {\r\n const flags = await getFeatureFlags([\r\n 'CorporateChannelList',\r\n 'FarmersBillingUpload',\r\n 'TerritoryExpansion',\r\n 'EliteAgentDisplay',\r\n 'AutomatedCancelation',\r\n 'StateFarmCombinedUpload',\r\n 'EnableDayCapBySchedules',\r\n 'MedicareConsent'\r\n ]);\r\n\r\n commit('setFlags', flags);\r\n commit('setIsInit', true);\r\n\r\n return flags;\r\n },\r\n\r\n async checkFlagForClient(_, { flagName, carrier, clientType, clientId }) {\r\n return await getFeatureFlag(flagName, carrier, clientType, clientId);\r\n },\r\n\r\n reset({ commit }) {\r\n commit('setFlags', {});\r\n commit('setIsInit', false);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setFlags: _.set('flags'),\r\n setIsInit: _.set('isInit'),\r\n};\r\n","// Register each file as a corresponding Vuex module. Module nesting\r\n// will mirror [sub-]directory hierarchy and modules are namespaced\r\n// as the camelCase equivalent of their file name.\r\nimport camelCase from 'lodash/camelCase'\r\n\r\n// https://webpack.js.org/guides/dependency-management/#require-context\r\nconst requireModule = require.context(\r\n // Search for files in the current directory\r\n '.',\r\n // Search for files in subdirectories\r\n true,\r\n // Include any .js files that are not unit tests\r\n /^((?!\\.spec\\.).)*\\.js$/\r\n)\r\nconst root = {\r\n modules: {},\r\n}\r\n\r\nrequireModule.keys().forEach((fileName) => {\r\n // Skip this file, as it's not a module\r\n if (fileName === './index.js' || fileName === './_template.js') {\r\n return\r\n }\r\n\r\n // Get the module path as an array\r\n const modulePath = fileName\r\n // Remove the \"./\" from the beginning\r\n .replace(/^\\.\\//, '')\r\n // Remove the file extension from the end\r\n .replace(/\\.\\w+$/, '')\r\n // Split nested modules into an array path\r\n .split(/\\//)\r\n // camelCase all module namespaces and names\r\n .map(camelCase)\r\n\r\n // Get the modules object for the current path\r\n const { modules } = getNamespace(root, modulePath)\r\n\r\n const thisModule = requireModule(fileName)\r\n\r\n const namespace = modulePath.pop()\r\n\r\n if (namespace !== 'request') {\r\n // Create a request/{method} action in all modules that forward to the actual request module.\r\n // This is for convenience so every request doesn't have to pass the { root: true } parameter.\r\n thisModule.actions['request/get'] = forwardRequest('get')\r\n thisModule.actions['request/post'] = forwardRequest('post')\r\n thisModule.actions['request/put'] = forwardRequest('put')\r\n thisModule.actions['request/delete'] = forwardRequest('delete')\r\n }\r\n\r\n // Add the module to our modules object\r\n modules[namespace] = {\r\n // Modules are namespaced by default\r\n namespaced: true,\r\n ...thisModule,\r\n }\r\n\r\n // Recursively get the namespace of the module, even if nested\r\n function getNamespace(subtree, path) {\r\n if (path.length === 1) return subtree\r\n\r\n const namespace = path.shift()\r\n subtree.modules[namespace] = {\r\n modules: {},\r\n ...subtree.modules[namespace],\r\n }\r\n return getNamespace(subtree.modules[namespace], path)\r\n }\r\n\r\n function forwardRequest(method) {\r\n return async ({ dispatch }, config) => {\r\n return dispatch(`request/${method}`, config, { root: true })\r\n }\r\n }\r\n})\r\n\r\nexport default root.modules\r\n","import axiosInstance from '@/plugins/axios';\r\nimport _ from '@/utils/store-helpers';\r\nimport moment from 'moment';\r\nimport errorTracker from '@/plugins/errorTracker';\r\n\r\nexport const state = {\r\n loading: false,\r\n pagedLeads: [],\r\n pagedQueryData: {\r\n page: 1,\r\n pageSize: 10,\r\n totalRecords: 0,\r\n sortByColumn: 'REQUEST_DTG',\r\n sortOrder: 'DESC',\r\n start: moment().subtract(1, 'month').toDate(),\r\n end: moment().toDate(),\r\n searchTerm: null,\r\n },\r\n leadCreditDetails: null,\r\n topCreditReasons: [],\r\n lifetimeCreditRate: 0,\r\n};\r\n\r\nexport const getters = {\r\n loading: (state) => state.loading,\r\n\r\n pagedLeads: (state) => state.pagedLeads,\r\n\r\n pageData: (state) => ({\r\n page: state.pagedQueryData.page,\r\n pageSize: state.pagedQueryData.pageSize,\r\n totalRecords: state.pagedQueryData.totalRecords,\r\n }),\r\n\r\n sortingData: (state) => ({\r\n sortByColumn: state.pagedQueryData.sortByColumn,\r\n sortOrder: state.pagedQueryData.sortOrder,\r\n }),\r\n\r\n searchData: (state) => ({\r\n start: state.pagedQueryData.start,\r\n end: state.pagedQueryData.end,\r\n searchTerm: state.pagedQueryData.searchTerm,\r\n }),\r\n\r\n leadCreditDetails: (state) => state.leadCreditDetails,\r\n\r\n topCreditReasons: (state) => state.topCreditReasons,\r\n\r\n lifetimeCreditRate: (state) => state.lifetimeCreditRate,\r\n};\r\n\r\nexport const actions = {\r\n async getPagedLeads({ commit, dispatch, state }) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .get('/api/LeadCredit', {\r\n params: state.pagedQueryData,\r\n })\r\n .catch((err) => err);\r\n\r\n if (response === null || response instanceof Error) {\r\n errorTracker.trackException({ exception: response });\r\n console.error(response);\r\n dispatch('toastr/error', 'Failed to get pending lead credits.', {\r\n root: true,\r\n });\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n const { items, metaData } = response.data;\r\n\r\n commit('setPagedLeads', items);\r\n commit('setPagedQueryData', {\r\n ...state.pagedQueryData,\r\n totalRecords: metaData.totalRecords,\r\n });\r\n commit('setLoading', false);\r\n },\r\n\r\n async getLeadCreditDetails({ commit, dispatch }, sellId) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .get(`/api/LeadCredit/${sellId}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({ exception: response });\r\n console.error(response);\r\n dispatch('toastr/error', 'Failed to get lead credit details.', {\r\n root: true,\r\n });\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n const lead = await dispatch(\r\n 'leadDetail/getLead',\r\n {\r\n leadId: sellId,\r\n leadType: response.data.serviceType,\r\n },\r\n { root: true }\r\n );\r\n\r\n if (response.data.serviceType.toLowerCase() === 'web') {\r\n await dispatch(\r\n 'leadDetail/getLeadPacket',\r\n { sessionId: lead.sessionId },\r\n { root: true }\r\n );\r\n } else {\r\n await dispatch(\r\n 'leadDetail/getCallLeadPacket',\r\n { outboundCallSid: response.data.outboundCallSid },\r\n { root: true }\r\n );\r\n }\r\n\r\n commit('setLeadCreditDetails', response.data);\r\n commit('setLoading', false);\r\n },\r\n\r\n async processPendingCreditLeads(\r\n { commit, dispatch },\r\n { pendingCredits, action, reason, explanation, callback }\r\n ) {\r\n if (!['approve', 'deny'].includes(action)) {\r\n throw new Error('Invalid action provided.');\r\n }\r\n\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .post('/api/LeadCredit/decision', {\r\n pendingCredits,\r\n denialReason: reason,\r\n denialDescription: explanation,\r\n isApproved: action === 'approve',\r\n })\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({ exception: response });\r\n console.error(response);\r\n dispatch('toastr/error', `Failed to ${action} pending credit leads.`, {\r\n root: true,\r\n });\r\n commit('setLoading', false);\r\n callback && callback(response);\r\n return;\r\n }\r\n\r\n commit('setLeadCreditDetails', null);\r\n\r\n dispatch('leadDetail/setLead', null, { root: true });\r\n\r\n dispatch('leadDetail/setLeadPacket', null, { root: true });\r\n\r\n dispatch('getPagedLeads');\r\n\r\n commit('setLoading', false);\r\n\r\n callback && callback();\r\n },\r\n\r\n async fetchTopCreditRequestReasonsAsync({ commit, dispatch }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/LeadCredit/top',\r\n errorMessage: 'Failed to get top credit request reasons.',\r\n loadingMutation: 'leadCredit/setLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setTopCreditReasons', response.data);\r\n },\r\n\r\n updatePagedData({ commit, dispatch, state }, { page, pageSize }) {\r\n commit('setPagedQueryData', {\r\n ...state.pagedQueryData,\r\n page,\r\n pageSize,\r\n });\r\n\r\n dispatch('getPagedLeads');\r\n },\r\n\r\n updateSearchData({ commit, dispatch, state }, { start, end, searchTerm }) {\r\n commit('setPagedQueryData', {\r\n ...state.pagedQueryData,\r\n start,\r\n end,\r\n searchTerm,\r\n });\r\n\r\n dispatch('getPagedLeads');\r\n },\r\n\r\n updateSortingData({ commit, dispatch, state }, { sortByColumn, sortOrder }) {\r\n commit('setPagedQueryData', {\r\n ...state.pagedQueryData,\r\n sortByColumn,\r\n sortOrder,\r\n });\r\n\r\n dispatch('getPagedLeads');\r\n },\r\n\r\n reset({ commit }) {\r\n commit('setPagedLeads', []);\r\n commit('setLifetimeCreditRate', 0);\r\n commit('setTopCreditReasons', []);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('loading'),\r\n setPagedLeads: _.set('pagedLeads'),\r\n setPagedQueryData: _.set('pagedQueryData'),\r\n setLeadCreditDetails: _.set('leadCreditDetails'),\r\n setLifetimeCreditRate: _.set('lifetimeCreditRate'),\r\n setTopCreditReasons: _.set('topCreditReasons'),\r\n};\r\n","import { axiosInstance } from '@/plugins/axios';\r\n\r\n// initial state\r\nexport const state = {\r\n loading: false,\r\n lead: null,\r\n packet: null,\r\n};\r\n\r\n// getters\r\nexport const getters = {\r\n loading: (state) => state.loading,\r\n\r\n lead: (state) => state.lead,\r\n\r\n packet: (state) => state.packet,\r\n\r\n // Deprecated. Use 'lead' getter.\r\n getlead: (state) => state.lead,\r\n};\r\n\r\n// actions\r\nexport const actions = {\r\n getLead({ commit }, { leadId, leadType }) {\r\n if (leadId === '0') {\r\n return null;\r\n }\r\n\r\n commit('SET_LOADING', true);\r\n return axiosInstance\r\n .get(`/api/leads/${leadId}?leadType=${leadType}`)\r\n .then((response) => {\r\n commit('SET_LOADING', false);\r\n commit('SET_LEAD', response.data);\r\n return response.data;\r\n })\r\n .catch((err) => {\r\n commit('SET_LOADING', false);\r\n console.error(err);\r\n return Promise.reject(err);\r\n });\r\n },\r\n async getLeadPacket({ commit }, { sessionId }) {\r\n var packetResponse = await axiosInstance.get(\r\n `/api/leads/${sessionId}/packet`\r\n );\r\n\r\n commit('SET_PACKET', packetResponse.data);\r\n return packetResponse.data;\r\n },\r\n async getCallLeadPacket({ commit }, { outboundCallSid }) {\r\n var packetResponse = await axiosInstance.get(\r\n `/api/leads/calls/${outboundCallSid}/packet`\r\n );\r\n\r\n commit('SET_PACKET', packetResponse.data);\r\n return packetResponse.data;\r\n },\r\n\r\n async getLeadNotes(_, leadId) {\r\n const response = await axiosInstance.get(`/api/leads/${leadId}/notes`);\r\n\r\n return response.data;\r\n },\r\n async saveLeadNote({ dispatch }, { sessionId, leadNote }) {\r\n let errMsg = '';\r\n\r\n try {\r\n const response = await axiosInstance.post(\r\n `/api/Leads/${sessionId}/notes`,\r\n leadNote\r\n );\r\n\r\n if (response.status === 200) {\r\n if (response.data) {\r\n return true;\r\n } else {\r\n errMsg =\r\n 'Issue saving data. If issue persists please contact customer service';\r\n }\r\n } else {\r\n errMsg = response.data.description;\r\n }\r\n } catch (err) {\r\n errMsg = err?.response?.data ?? 'Error: Network Error';\r\n }\r\n\r\n dispatch('toastr/error', errMsg, { root: true });\r\n return false;\r\n },\r\n\r\n async deleteLeadNote({ dispatch }, leadNoteId) {\r\n var errMsg = '';\r\n\r\n try {\r\n const response = await axiosInstance.delete(\r\n `/api/leads/notes/${leadNoteId}`\r\n );\r\n\r\n if (response.status === 200) {\r\n if (response.data) {\r\n return true;\r\n } else {\r\n errMsg =\r\n 'Issue deleting note. If issue persists please contact customer service';\r\n }\r\n } else {\r\n errMsg = response.data.description;\r\n }\r\n } catch (err) {\r\n errMsg = err?.response?.data ?? 'Error: Network Error';\r\n }\r\n\r\n dispatch('toastr/error', errMsg, { root: true });\r\n return false;\r\n },\r\n\r\n setLead({ commit }, lead) {\r\n commit('SET_LEAD', lead);\r\n },\r\n\r\n setLeadPacket({ commit }, packet) {\r\n commit('SET_PACKET', packet);\r\n },\r\n};\r\n\r\n// mutations\r\nexport const mutations = {\r\n SET_LOADING(state, isLoading) {\r\n state.loading = isLoading;\r\n },\r\n\r\n SET_LEAD(state, newValue) {\r\n state.lead = newValue;\r\n },\r\n\r\n SET_PACKET(state, packet) {\r\n state.packet = packet;\r\n },\r\n\r\n SET_LEADSTAGE(state, newValue) {\r\n state.lead.leadStage = newValue;\r\n },\r\n\r\n SET_LEADCREDITREQUEST(\r\n state,\r\n { reasonText, description, requestDate, requestedBy }\r\n ) {\r\n state.lead.creditRequestReason = reasonText;\r\n state.lead.creditRequestDesc = description;\r\n state.lead.creditApprovalDtg = requestDate;\r\n state.lead.creditRequestBy = requestedBy;\r\n },\r\n};\r\n","const mapStateSettingsToOverrides = (settings, selectedStates) => {\r\n return (\r\n settings\r\n ?.filter((override) =>\r\n selectedStates.includes(override.stateAbbreviation)\r\n )\r\n ?.map((override) => ({\r\n price: { minBid: override.minBid, maxBid: override.maxBid },\r\n state: override.stateAbbreviation,\r\n isActive: override.isActivated,\r\n })) ?? []\r\n );\r\n};\r\n\r\nconst campaignService = {\r\n mapStateSettingsToOverrides,\r\n};\r\n\r\nexport default campaignService;\r\n","import { axiosInstance } from '@/plugins/axios';\r\nimport { convertLutGeoMapsToGeoMaps } from '@/components/channels/Territories/TerritoriesUtils';\r\nimport errorTracker from '@/plugins/errorTracker';\r\nimport _ from '@/utils/store-helpers';\r\nimport lodash from 'lodash';\r\nimport moment from 'moment';\r\nimport { v4 as uuidv4 } from 'uuid';\r\nimport campaignService from '@/services/campaignService';\r\n\r\nexport const DEFAULT_PACKAGE_ID = '00000000-0000-0000-0000-000000000000';\r\nexport const DEFAULT_MAX_SOLD = 4;\r\n\r\nconst medsuppHealthCompanies = [\r\n 'INDEPENDENT',\r\n 'MUTOMA',\r\n 'AMERICANNATIONAL',\r\n 'LIBERTY',\r\n 'NYLIFE',\r\n 'BANKERS',\r\n 'NATIONWIDE',\r\n 'ANCHOR_CLIENT',\r\n 'SIAA',\r\n];\r\n\r\nexport const getInitialState = () => ({\r\n accountReps: [],\r\n availableLutQuoteTypes: [],\r\n cancelSavePackages: [],\r\n crmTypes: [],\r\n inactivePackage: null,\r\n isLoading: false,\r\n leadType: {\r\n acceptsBundle: false,\r\n acceptsCombo: false,\r\n answerRate: 0.0,\r\n backfill: true,\r\n bidFloor: null,\r\n billableRate: 0.0,\r\n clientGeoMaps: {\r\n removed: [],\r\n added: [],\r\n },\r\n clientId: null,\r\n createDate: null,\r\n crmDelivery: [],\r\n currentSubsidy: 0,\r\n currentPromoDiscount: 0,\r\n customName: null,\r\n dayCap: 0,\r\n dayCapSchedule: {\r\n sunday: -1,\r\n monday: -1,\r\n tuesday: -1,\r\n wednesday: -1,\r\n thursday: -1,\r\n friday: -1,\r\n saturday: -1,\r\n weekly: -1,\r\n },\r\n discount: 0,\r\n effectivePayoutRate: 0,\r\n effectiveValue: 0.0,\r\n emailDelivery: [],\r\n enableRecording: true,\r\n eprMultiplier: null,\r\n eprResetDate: new Date(),\r\n estimateAmount: null,\r\n estimateId: 0,\r\n estimatedMonthlyLeads: 0,\r\n expansionOptOut: false,\r\n filter: null,\r\n filterList: null,\r\n geoMaps: [],\r\n id: null,\r\n initialPackageId: DEFAULT_PACKAGE_ID,\r\n isLegAnchor: false,\r\n lastLeadDate: '0001-01-01T00:00:00',\r\n maxSold: 0,\r\n minutesBeforeNext: 0,\r\n missedCallPenalty: 0.0,\r\n missedCallRate: 0.0,\r\n modifier: 0.0,\r\n nextActiveDate: '0001-01-01T00:00:00',\r\n packageId: DEFAULT_PACKAGE_ID,\r\n payout: 0,\r\n payoutDiscount: 0,\r\n postFailureRate: 0,\r\n postTemplate: '',\r\n phoneNumbers: [],\r\n priceModifiers: [],\r\n productSourceTypeId: 0,\r\n productTypeId: 1,\r\n quoteMode: null,\r\n quoteType: 'Auto',\r\n quoteTypeId: null,\r\n quoteTypeIsLocked: true,\r\n rank: 0,\r\n schedule: [],\r\n secondaryTerritoryExcludedZipCodes: [],\r\n serviceType: 'Web',\r\n scrubRate: 0,\r\n sourcePackage: null,\r\n status: 'Active',\r\n subscriptionDescription: '',\r\n tierMixCap: 0,\r\n trumpFlag: 0,\r\n updateDate: null,\r\n upsellRep: '',\r\n upsellPromo: '',\r\n weekdayNetPayout: 0,\r\n weekendNetPayout: 0,\r\n subsidyProduct: null,\r\n },\r\n leadTypes: {\r\n auto: { value: 'AUTO', label: 'Auto' },\r\n home: { value: 'HOME', label: 'Home' },\r\n renter: { value: 'RENTER', label: 'Renter' },\r\n medsupp: { value: 'MEDSUPP', label: 'Medsupp' },\r\n health: { value: 'HEALTH', label: 'Health' },\r\n life: { value: 'LIFE', label: 'Life' },\r\n },\r\n originalPackageId: '',\r\n packageBasePrice: 0,\r\n packages: [],\r\n stateSettingsOverrides: [],\r\n storedPriceModifiers: [],\r\n customPriceModifiers: [],\r\n temporaryPauseDuration: null,\r\n territoryDetails: {\r\n secondaryTerritoryZipCodes: [],\r\n territorySettings: [],\r\n },\r\n packageRestrictions: {\r\n maxSold: DEFAULT_MAX_SOLD,\r\n },\r\n});\r\n\r\nexport const state = getInitialState();\r\n\r\nexport const getters = {\r\n filters: (state) => {\r\n if (state.leadType) {\r\n return state.leadType.filterList && state.leadType.filterList.split(', ');\r\n }\r\n return [];\r\n },\r\n hasOwnsHomeFilter: (state) =>\r\n state.leadType?.filterList?.includes('AUTO_OWN_HOME'),\r\n hasCustomPackage: (state) => {\r\n return state.leadType.packageId === DEFAULT_PACKAGE_ID;\r\n },\r\n loading: (state) => state.isLoading,\r\n getTerritories: (state) => state.leadType.geoMaps,\r\n selectedStates: (state) => [\r\n ...new Set(state.leadType.geoMaps.map((x) => x.stateAbbreviation)),\r\n ],\r\n getExcludedZips: (state) => state.leadType.secondaryTerritoryExcludedZipCodes,\r\n getExpansionOptOut: (state) => state.leadType.expansionOptOut,\r\n quoteType: (state) => state.leadType.quoteType,\r\n subsidyProduct: (state) => state.leadType.subsidyProduct,\r\n subsidyToolTipMessage: () =>\r\n 'Applicable subsidies are based on tier, product, and the lead county as determined by State Farm.',\r\n isWeb: (state) => state.leadType?.serviceType === 'Web',\r\n isCall: (state) => state.leadType?.serviceType === 'Call',\r\n availableLeadTypes: (state, getters, rootState, rootGetters) => {\r\n const parentCompany =\r\n rootState.client.client?.parentCompany ||\r\n rootState.signup.signupInfo?.client?.parentCompany;\r\n const clientType =\r\n rootState.client.client?.clientType ||\r\n rootState.signup.signupInfo?.client?.clientType;\r\n const isCorporate = clientType === 'CORPORATE';\r\n const isStaffUser = rootGetters['auth/isStaff'];\r\n const [isWeb, isCall] = [getters.isWeb, getters.isCall];\r\n const { auto, home, renter, medsupp, health, life } = state.leadTypes;\r\n switch (true) {\r\n case isWeb && parentCompany === 'USHA':\r\n return [medsupp, health];\r\n case isCorporate && isStaffUser:\r\n return [auto, home, renter, medsupp, health, life];\r\n case isCorporate:\r\n return [auto, home, renter, medsupp, health];\r\n case isCall && parentCompany === 'COUNTRYFINANCIA':\r\n // Calls are not available to Country Financial.\r\n return [];\r\n case isCall && isStaffUser:\r\n return [auto, home, life];\r\n case isCall:\r\n return [auto, home];\r\n case isWeb && ['FARMERS', 'STATEFARM'].includes(parentCompany):\r\n return [auto, home, renter];\r\n case isWeb &&\r\n isStaffUser &&\r\n medsuppHealthCompanies.includes(parentCompany):\r\n return [auto, home, renter, medsupp, health, life];\r\n case isWeb && medsuppHealthCompanies.includes(parentCompany):\r\n return [auto, home, renter, medsupp, health];\r\n case isWeb && isStaffUser:\r\n return [auto, home, renter, life];\r\n case isWeb:\r\n return [auto, home, renter];\r\n default:\r\n return [];\r\n }\r\n },\r\n isCampaign: (state) => !!state.stateSettingsOverrides.length,\r\n crmTypesLookup: (state) =>\r\n (state?.crmTypes ?? []).reduce((a, c) => {\r\n a[c.domain.toLowerCase()] = c;\r\n return a;\r\n }, {}),\r\n selectedPackage: (state) => {\r\n const packageId = state.leadType?.packageId;\r\n return state.packages.find((p) => p.id === packageId);\r\n },\r\n maxSold: (state) => state.leadType?.maxSold,\r\n isCustomMaxSold: (state) =>\r\n state.leadType?.maxSold !==\r\n (state.packageRestrictions?.maxSold ?? DEFAULT_MAX_SOLD),\r\n packageRestrictions: (state) => state.packageRestrictions,\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('isLoading'),\r\n\r\n RESET_STATE(state) {\r\n const initialState = getInitialState();\r\n Object.keys(state).forEach((key) => {\r\n state[key] = initialState[key];\r\n });\r\n },\r\n SET_LEAD_TYPE(state, newValue) {\r\n if (newValue.isNew) {\r\n newValue.id = uuidv4();\r\n }\r\n newValue.emailDelivery = newValue.emailDelivery || [];\r\n newValue.crmDelivery = newValue.crmDelivery || [];\r\n newValue.phoneNumbers = newValue.phoneNumbers || [];\r\n state.leadType = newValue;\r\n },\r\n SET_TERRITORY_DETAILS(state, newValue) {\r\n state.territoryDetails = newValue;\r\n },\r\n SET_DAY_CAP(state, { day, value }) {\r\n state.leadType.dayCapSchedule[day.toLowerCase()] = value;\r\n if (day.toLowerCase() === 'weekly') {\r\n state.leadType.weeklyCap = value;\r\n }\r\n },\r\n SET_DAY_CAPS(state, dayCapSchedule) {\r\n state.leadType.dayCapSchedule = dayCapSchedule;\r\n },\r\n SET_CLIENT_GEOMAP(state, newValue) {\r\n state.leadType.clientGeoMaps.removed = newValue.removed;\r\n state.leadType.clientGeoMaps.added = newValue.added;\r\n },\r\n RESET_DAY_CAPS(state, resetValue) {\r\n const days = Object.keys(state.leadType.dayCapSchedule);\r\n for (const day of days) {\r\n if (day !== 'weekly') {\r\n // reset all to Monday cap value except weekly cap\r\n state.leadType.dayCapSchedule[day] = resetValue;\r\n }\r\n }\r\n },\r\n SET_CRM_TYPES(state, crmTypes) {\r\n state.crmTypes = crmTypes;\r\n },\r\n SET_CRM_DELIVERY(state, newValue) {\r\n state.leadType.crmDelivery = newValue;\r\n },\r\n SET_EMAIL_DELIVERY(state, emails) {\r\n state.leadType.emailDelivery = emails;\r\n },\r\n REMOVE_EMAIL_DELIVERY(state, index) {\r\n state.leadType.emailDelivery.splice(index, 1);\r\n },\r\n ADD_EMAIL_DELIVERY(state, newEmail) {\r\n state.leadType.emailDelivery.push(newEmail);\r\n },\r\n UPDATE_EMAIL_DELIVERY(state, { index, updatedEmail }) {\r\n state.leadType.emailDelivery[index] = updatedEmail;\r\n },\r\n RESET_EMAIL_DELIVERY(state) {\r\n if (!state.leadType.emailDelivery) {\r\n state.leadType.emailDelivery = [];\r\n } else {\r\n state.leadType.emailDelivery.splice(\r\n 0,\r\n state.leadType.emailDelivery.length\r\n );\r\n }\r\n },\r\n REMOVE_CRM_DELIVERY(state, index) {\r\n state.leadType.crmDelivery.splice(index, 1);\r\n },\r\n ADD_CRM_DELIVERY(state, newCrm) {\r\n state.leadType.crmDelivery.push(newCrm);\r\n },\r\n UPDATE_CRM_DELIVERY(state, { index, updatedCrm }) {\r\n state.leadType.crmDelivery[index] = updatedCrm;\r\n },\r\n RESET_CRM_DELIVERY(state) {\r\n if (!state.leadType.crmDelivery) {\r\n state.leadType.crmDelivery = [];\r\n } else {\r\n state.leadType.crmDelivery.splice(0, state.leadType.crmDelivery.length);\r\n }\r\n },\r\n SET_PHONE_DELIVERY(state, phones) {\r\n state.leadType.phoneNumbers = phones;\r\n },\r\n REMOVE_PHONE_DELIVERY(state, index) {\r\n state.leadType.phoneNumbers.splice(index, 1);\r\n },\r\n ADD_PHONE_DELIVERY(state, newPhone) {\r\n state.leadType.phoneNumbers.push(newPhone);\r\n },\r\n UPDATE_PHONE_DELIVERY(state, { index, updatedPhone }) {\r\n state.leadType.phoneNumbers[index] = updatedPhone;\r\n },\r\n RESET_PHONE_DELIVERY(state) {\r\n if (!state.leadType.phoneNumbers) {\r\n state.leadType.phoneNumbers = [];\r\n } else {\r\n state.leadType.phoneNumbers.splice(0, state.leadType.phoneNumbers.length);\r\n }\r\n },\r\n SET_PACKAGE_ID(state, newValue) {\r\n state.leadType.packageId = newValue;\r\n },\r\n SET_ACCEPTS_COMBO(state, newValue) {\r\n state.leadType.acceptsCombo = newValue;\r\n },\r\n SET_SERVICE_TYPE(state, newValue) {\r\n state.leadType.serviceType = newValue;\r\n state.leadType.productTypeId = newValue === 'Web' ? 1 : 2;\r\n },\r\n SET_PRODUCT_TYPE_ID(state, newValue) {\r\n state.leadType.productTypeId = newValue;\r\n state.leadType.serviceType = newValue === 1 ? 'Web' : 'Call';\r\n },\r\n SET_QUOTE_TYPE(state, newValue) {\r\n\r\n state.leadType.quoteType = newValue;\r\n\r\n if (state.leadType.subsidyProduct !== null) {\r\n state.leadType.subsidyProduct = newValue;\r\n }\r\n\r\n },\r\n SET_TRUMP_FLAG(state, newValue) {\r\n state.leadType.trumpFlag = newValue;\r\n },\r\n SET_STATUS(state, newValue) {\r\n state.leadType.status = newValue;\r\n },\r\n SET_CAN_PAUSE(state, canPause) {\r\n state.leadType.canPause = canPause;\r\n },\r\n SET_CHANNEL_TYPE(state, newValue) {\r\n state.leadType.productTypeId = newValue;\r\n },\r\n SET_CHANNEL_NAME(state, newValue) {\r\n state.leadType.customName = newValue;\r\n },\r\n SET_MIN_PRICE(state, newValue) {\r\n state.leadType.minPayout = newValue;\r\n },\r\n SET_MAX_PRICE(state, newValue) {\r\n state.leadType.maxPayout = newValue;\r\n },\r\n SET_IS_HIDE_PHONE_NUMBER(state, newValue) {\r\n state.leadType.isHidePhoneNumber = newValue;\r\n },\r\n SET_CHANNEL_PRICE(state, newValue) {\r\n state.leadType.payout = newValue;\r\n },\r\n SET_POST_TEMPLATE(state, newValue) {\r\n state.leadType.postTemplate = newValue;\r\n },\r\n SET_FILTER_LIST(state, newValue) {\r\n state.leadType.filterList = newValue;\r\n },\r\n SET_SCHEDULE(state, newValue) {\r\n state.leadType.schedule = newValue;\r\n },\r\n SET_MAX_SOLD(state, newValue) {\r\n state.leadType.maxSold = newValue;\r\n },\r\n SET_PACKAGE_RESTRICTIONS(state, newValue) {\r\n state.packageRestrictions = newValue;\r\n },\r\n SET_SOURCE_PACKAGE(state, { sourcePackageId }) {\r\n if (!state.leadType.sourcePackage) {\r\n state.leadType.sourcePackage = {};\r\n }\r\n\r\n const sourcePackageUpdated =\r\n state.leadType.sourcePackage.id !== sourcePackageId;\r\n\r\n state.leadType.sourcePackage.id = sourcePackageId;\r\n\r\n if (sourcePackageId !== null && sourcePackageId !== 'NO_PACKAGE') {\r\n const startDate =\r\n state.leadType.sourcePackage.startDate && !sourcePackageUpdated\r\n ? moment(state.leadType.sourcePackage.startDate)\r\n : moment();\r\n\r\n state.leadType.sourcePackage.startDate = startDate.toDate();\r\n }\r\n },\r\n SET_QUOTE_TYPE_LOCK(state, newValue) {\r\n state.leadType.quoteTypeIsLocked = newValue;\r\n },\r\n SET_BACKFILL(state, newValue) {\r\n state.leadType.backfill = newValue;\r\n },\r\n SET_MISSEDCALLPENALTY(state, newValue) {\r\n state.leadType.missedCallPenalty = newValue;\r\n },\r\n SET_PREMIUM(state, newValue) {\r\n state.leadType.isPremium = newValue;\r\n },\r\n SET_APPLYANSWERRATE(state, newValue) {\r\n state.leadType.applyAnswerRate = newValue;\r\n },\r\n SET_ENABLERECORDING(state, newValue) {\r\n state.leadType.enableRecording = newValue;\r\n },\r\n SET_UNANSWEREDTHRESHOLD(state, newValue) {\r\n state.leadType.unansweredThreshold = newValue;\r\n },\r\n SET_ENABLEAUTOPAUSE(state, newValue) {\r\n state.leadType.enableAutoPause = newValue;\r\n },\r\n SET_CALL_TYPE(state, newValue) {\r\n state.leadType.callType = newValue;\r\n },\r\n SET_TERRITORIES(state, newValue) {\r\n state.leadType.geoMaps = newValue;\r\n },\r\n ADD_TERRITORY(state, newValue) {\r\n state.leadType.geoMaps.push(newValue);\r\n },\r\n ADD_TERRITORIES(state, geoMaps) {\r\n state.leadType.geoMaps.push(...geoMaps);\r\n },\r\n REMOVE_TERRITORY(state, index) {\r\n state.leadType.geoMaps.splice(index, 1);\r\n },\r\n REMOVE_TERRITORY_STATE(state, index) {\r\n const tempArray = state.leadType.geoMaps.filter(\r\n (states) =>\r\n states.stateAbbreviation !==\r\n state.leadType.geoMaps[index].stateAbbreviation\r\n );\r\n\r\n state.leadType.geoMaps = tempArray;\r\n },\r\n REMOVE_TERRITORY_STATES(state, stateAbbrev) {\r\n const tempArray = state.leadType.geoMaps.filter(\r\n (states) => states.stateAbbreviation !== stateAbbrev\r\n );\r\n\r\n state.leadType.geoMaps = tempArray;\r\n },\r\n REMOVE_ZIPCODE(state, index) {\r\n state.leadType.geoMaps.splice(index, 1);\r\n },\r\n SET_CLIENT_ID(state, newValue) {\r\n state.leadType.clientId = newValue;\r\n },\r\n SET_MODIFIER(state, newValue) {\r\n state.leadType.modifier = newValue;\r\n },\r\n SET_BILLABLE_TIME(state, newValue) {\r\n state.leadType.billTimeThreshold = newValue;\r\n },\r\n SET_COMMERCIAL_NAME(state, newValue) {\r\n state.leadType.commercialName = newValue;\r\n },\r\n SET_EPR(state, date) {\r\n state.leadType.eprResetDate = date;\r\n },\r\n SET_CANCEL_SAVE_PACKAGES(state, packages) {\r\n state.cancelSavePackages = packages;\r\n },\r\n SET_PACKAGES(state, packages) {\r\n state.packages = packages;\r\n },\r\n ADD_PRICE_MODIFIER(state, priceModifier) {\r\n const foundPriceModifier = state.storedPriceModifiers.find(\r\n (p) => p.packagePriceModifierId === priceModifier.packagePriceModifierId\r\n );\r\n if (!foundPriceModifier) {\r\n state.storedPriceModifiers.push({ ...priceModifier });\r\n } else {\r\n foundPriceModifier.isSelected = true;\r\n foundPriceModifier.price = priceModifier.price;\r\n }\r\n const modifierToAdd = {\r\n id: null,\r\n packagePriceModifierId: priceModifier.packagePriceModifierId,\r\n clientQuoteTypeId: priceModifier.clientQuoteTypeId,\r\n price: priceModifier.price,\r\n };\r\n state.leadType.priceModifiers ??= [];\r\n state.leadType.priceModifiers.push(modifierToAdd);\r\n },\r\n UPDATE_PRICE_MODIFIER(state, priceModifier) {\r\n const foundPriceModifierIndex = state.storedPriceModifiers.findIndex(\r\n (p) => p.packagePriceModifierId === priceModifier.packagePriceModifierId\r\n );\r\n if (foundPriceModifierIndex > -1) {\r\n state.storedPriceModifiers[foundPriceModifierIndex] = {\r\n ...priceModifier,\r\n };\r\n } else {\r\n state.storedPriceModifiers.push({ ...priceModifier });\r\n }\r\n const modifierToUpdate = state.leadType.priceModifiers.find(\r\n (modifierToFind) =>\r\n modifierToFind.packagePriceModifierId ===\r\n priceModifier.packagePriceModifierId\r\n );\r\n if (modifierToUpdate) {\r\n modifierToUpdate.price = priceModifier.price;\r\n } else {\r\n const modifierToAdd = {\r\n id: null,\r\n packagePriceModifierId: priceModifier.packagePriceModifierId,\r\n clientQuoteTypeId: priceModifier.clientQuoteTypeId,\r\n price: priceModifier.price,\r\n };\r\n state.leadType.priceModifiers ??= [];\r\n state.leadType.priceModifiers.push(modifierToAdd);\r\n }\r\n },\r\n REMOVE_PRICE_MODIFIER(state, priceModifier) {\r\n const foundPriceModifier = state.storedPriceModifiers.find(\r\n (p) => p.packagePriceModifierId === priceModifier.packagePriceModifierId\r\n );\r\n if (!foundPriceModifier) {\r\n state.storedPriceModifiers.push({ ...priceModifier });\r\n } else {\r\n foundPriceModifier.isSelected = false;\r\n }\r\n if (!state.leadType.priceModifiers) {\r\n return;\r\n }\r\n state.leadType.priceModifiers = state.leadType.priceModifiers.filter(\r\n (filter) =>\r\n filter.packagePriceModifierId !== priceModifier.packagePriceModifierId\r\n );\r\n },\r\n CLEAR_PRICE_MODIFIERS(state) {\r\n if (!state.leadType.priceModifiers) {\r\n return;\r\n }\r\n state.leadType.priceModifiers = [];\r\n },\r\n SET_STORED_PRICE_MODIFIERS: _.set('storedPriceModifiers'),\r\n SET_INACTIVE_PACKAGE(state, inactivePackage) {\r\n state.inactivePackage = inactivePackage;\r\n },\r\n SET_PACKAGE_BASE_PRICE(state, price) {\r\n state.packageBasePrice = price;\r\n },\r\n SET_SUBSCRIPTION_DESCRIPTION(state, des) {\r\n state.leadType.subscriptionDescription = des;\r\n },\r\n SET_ENABLE_RECORDING(state, newValue) {\r\n state.leadType.enableRecording = newValue;\r\n },\r\n SET_TEMPORARY_PAUSE(state, temporaryPauseModel) {\r\n state.leadType.temporaryPause = temporaryPauseModel;\r\n },\r\n SET_TEMPORARY_PAUSE_DURATION(state, duration) {\r\n state.temporaryPauseDuration = duration;\r\n },\r\n UPDATE_CUSTOM_PACKAGE_COST(state, cost) {\r\n const customPackage = state.packages.find(\r\n (p) => p.id === DEFAULT_PACKAGE_ID\r\n );\r\n customPackage.cost = cost;\r\n state.packages = [\r\n ...state.packages.filter((p) => p.id !== DEFAULT_PACKAGE_ID),\r\n customPackage,\r\n ];\r\n },\r\n SET_ORIGINAL_PACKAGE_ID(state, id) {\r\n state.originalPackageId = id;\r\n },\r\n SET_BID_FLOOR(state, bf) {\r\n state.leadType.bidFloor = bf;\r\n },\r\n SET_ACCOUNT_REPS(state, reps) {\r\n state.accountReps = reps;\r\n },\r\n SET_UPSELL_REP(state, rep) {\r\n state.leadType.upsellRep = rep;\r\n },\r\n SET_IS_LEG_ANCHOR(state, status) {\r\n state.leadType.isLegAnchor = status;\r\n },\r\n SET_UPSELL_PROMO(state, promo) {\r\n state.leadType.upsellPromo = promo;\r\n },\r\n SET_EPR_MULTIPLIER(state, value) {\r\n state.leadType.eprMultiplier = value;\r\n },\r\n SET_ESTIMATE(state, newValue) {\r\n state.leadType.estimateAmount = newValue;\r\n },\r\n SET_AVAILABLE_LUT_QUOTE_TYPES(state, value) {\r\n state.availableLutQuoteTypes = value;\r\n },\r\n SET_EXCLUDE_LIST(state, value) {\r\n // hacking for the moment. This will need to take the string and convert it to an array\r\n\r\n state.leadType.secondaryTerritoryExcludedZipCodes = value;\r\n },\r\n SET_EXPANSION_OPTOUT(state, value) {\r\n state.leadType.expansionOptOut = value;\r\n },\r\n SET_STATE_SETTINGS_OVERRIDES(state, newValue) {\r\n state.stateSettingsOverrides = newValue;\r\n },\r\n SET_NEW_WEB_LEAD_SCHEDULE(state, scheduleToLeadTypeSchedule) {\r\n state.leadType.schedule = scheduleToLeadTypeSchedule;\r\n },\r\n SET_CUSTOM_PRICE_MODIFIERS(state, priceModifiers) {\r\n state.customPriceModifiers = priceModifiers;\r\n },\r\n SET_SUBSIDY_PRODUCT(state, subsidyProduct) {\r\n state.leadType.subsidyProduct = subsidyProduct;\r\n },\r\n};\r\n\r\nexport const actions = {\r\n async addAllStateCounties(\r\n { commit, dispatch, state },\r\n { stateAbbreviation, counties }\r\n ) {\r\n const geoMaps = state.leadType.geoMaps.filter(\r\n (g) => g.type === 'County' && g.stateAbbreviation === stateAbbreviation\r\n );\r\n const countiesSet = [...new Set(geoMaps.map((t) => t.county))];\r\n\r\n const toAdd = [];\r\n counties.forEach((x) => {\r\n if (countiesSet.indexOf(x.county) === -1) {\r\n const newTerr = {\r\n county: x.countyName,\r\n stateAbbreviation: x.stateAbbr,\r\n type: 'County',\r\n zipCode: null,\r\n };\r\n\r\n toAdd.push(newTerr);\r\n }\r\n });\r\n\r\n commit('ADD_TERRITORIES', toAdd);\r\n\r\n // Remove the state all selected entry if it exists.\r\n dispatch('removeStateAll', stateAbbreviation);\r\n },\r\n async addAllCountyZips(\r\n { commit, dispatch, state },\r\n { stateAbbreviation, countyName, zips }\r\n ) {\r\n const geoMaps = state.leadType.geoMaps.filter(\r\n (g) =>\r\n g.type === 'ZipCode' &&\r\n g.county === countyName &&\r\n g.stateAbbreviation === stateAbbreviation\r\n );\r\n const zipSet = [...new Set(geoMaps.map((t) => t.zipCode))];\r\n\r\n const toAdd = [];\r\n zips.forEach((x) => {\r\n if (zipSet.indexOf(x.zipCode) === -1) {\r\n const newTerr = {\r\n county: x.countyName,\r\n stateAbbreviation,\r\n type: 'ZipCode',\r\n zipCode: x.zipCode,\r\n };\r\n\r\n toAdd.push(newTerr);\r\n }\r\n });\r\n\r\n commit('ADD_TERRITORIES', toAdd);\r\n\r\n // Remove the county all selected entry if it exists.\r\n dispatch('removeCountyAll', { stateAbbreviation, countyName });\r\n },\r\n async addState({ commit, state }, stateAbbreviation) {\r\n if (!stateAbbreviation) {\r\n return;\r\n }\r\n\r\n // Removes state, counties, and zip codes associated w/ state\r\n const newTerritories = state.leadType.geoMaps.filter(\r\n (g) => g.stateAbbreviation !== stateAbbreviation\r\n );\r\n\r\n // Add state\r\n newTerritories.push({\r\n county: null,\r\n stateAbbreviation,\r\n type: 'State',\r\n zipCode: null,\r\n });\r\n\r\n commit('SET_TERRITORIES', newTerritories);\r\n },\r\n async addCounty({ commit, state }, county) {\r\n if (!county) {\r\n return;\r\n }\r\n\r\n const { name, stateAbbr } = county;\r\n if (!name || !stateAbbr) {\r\n return;\r\n }\r\n\r\n // Removes counties and zip codes associated w/ county\r\n const newTerritories = state.leadType.geoMaps.filter(\r\n (g) => !(g.stateAbbreviation === stateAbbr && g.county === name)\r\n );\r\n\r\n // Add county\r\n newTerritories.push({\r\n county: name,\r\n stateAbbreviation: stateAbbr,\r\n type: 'County',\r\n zipCode: null,\r\n });\r\n\r\n commit('SET_TERRITORIES', newTerritories);\r\n },\r\n async addZipCode({ commit, state }, { stateAbbreviation, county, zipCode }) {\r\n // Remove zip code\r\n const newTerritories = state.leadType.geoMaps.filter(\r\n (g) =>\r\n !(\r\n g.stateAbbreviation === stateAbbreviation &&\r\n g.county === county &&\r\n g.zipCode === zipCode\r\n )\r\n );\r\n\r\n // Add zip\r\n newTerritories.push({\r\n county,\r\n stateAbbreviation,\r\n type: 'ZipCode',\r\n zipCode,\r\n });\r\n\r\n commit('SET_TERRITORIES', newTerritories);\r\n },\r\n async removeZipCode(\r\n { commit, state },\r\n { stateAbbreviation, county, zipCode }\r\n ) {\r\n // Remove zip code\r\n const newTerritories = state.leadType.geoMaps.filter(\r\n (g) =>\r\n !(\r\n g.stateAbbreviation === stateAbbreviation &&\r\n g.county === county &&\r\n g.zipCode === zipCode\r\n )\r\n );\r\n\r\n commit('SET_TERRITORIES', newTerritories);\r\n },\r\n async removeState({ commit, state }, stateAbbreviation) {\r\n // Removes state, counties, and zip codes associated w/ state\r\n const newTerritories = state.leadType.geoMaps.filter(\r\n (g) => g.stateAbbreviation !== stateAbbreviation\r\n );\r\n\r\n commit('SET_TERRITORIES', newTerritories);\r\n },\r\n async removeStateAll({ commit, state }, stateAbbreviation) {\r\n const stateEntries = state.leadType.geoMaps.filter(\r\n (g) => g.stateAbbreviation === stateAbbreviation && g.type === 'State'\r\n );\r\n if (stateEntries && stateEntries.length > 0) {\r\n const toRemove = stateEntries[0];\r\n commit('REMOVE_TERRITORY', toRemove);\r\n }\r\n },\r\n async removeCountyAll({ commit, state }, { stateAbbreviation, countyName }) {\r\n const countyEntries = state.leadType.geoMaps.filter(\r\n (g) =>\r\n g.stateAbbreviation === stateAbbreviation &&\r\n g.county === countyName &&\r\n g.type === 'County'\r\n );\r\n if (countyEntries && countyEntries.length > 0) {\r\n const toRemove = countyEntries[0];\r\n commit('REMOVE_TERRITORY', toRemove);\r\n }\r\n },\r\n async removeCounty(\r\n { commit, dispatch, state },\r\n { stateAbbreviation, countyName, zips }\r\n ) {\r\n // Remove all zips for county and the county (all) entry.\r\n const existingGeos = state.leadType.geoMaps;\r\n\r\n for (const zip of zips) {\r\n const zipIndex = existingGeos.findIndex(\r\n (existing) => existing.type === 'ZipCode' && existing.zipCode === zip\r\n );\r\n\r\n if (~zipIndex) {\r\n commit('REMOVE_TERRITORY', zipIndex);\r\n continue;\r\n }\r\n }\r\n // Remove county all\r\n const countyIndex = existingGeos.findIndex(\r\n (existing) => existing.type === 'County' && existing.county === countyName\r\n );\r\n\r\n if (~countyIndex) {\r\n commit('REMOVE_TERRITORY', countyIndex);\r\n }\r\n },\r\n\r\n async removeTerritoryCounty(\r\n { commit, state },\r\n { stateAbbreviation, countyName, zips }\r\n ) {\r\n // Remove all zips for county and the county (all) entry.\r\n const existingGeos = state.leadType.geoMaps;\r\n\r\n for (const zip of zips) {\r\n const zipIndex = existingGeos.findIndex(\r\n (existing) => existing.type === 'ZipCode' && existing.zipCode === zip\r\n );\r\n\r\n if (~zipIndex) {\r\n commit('REMOVE_TERRITORY', zipIndex);\r\n continue;\r\n }\r\n }\r\n // Remove county all\r\n const countyIndex = existingGeos.findIndex(\r\n (existing) =>\r\n existing.type === 'County' &&\r\n existing.county === countyName &&\r\n existing.stateAbbreviation === stateAbbreviation\r\n );\r\n\r\n if (~countyIndex) {\r\n commit('REMOVE_TERRITORY', countyIndex);\r\n }\r\n },\r\n\r\n getPackageRestrictions({ commit, state }, updateMaxSold = true) {\r\n const packageId = state.leadType.packageId;\r\n return axiosInstance\r\n .get(`/api/LeadType/${packageId}/restrictions`)\r\n .then((response) => {\r\n const data = response.data;\r\n commit('SET_PACKAGE_RESTRICTIONS', data);\r\n\r\n if (updateMaxSold) {\r\n commit('SET_MAX_SOLD', data.maxSold);\r\n }\r\n return data;\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n return Promise.reject(err);\r\n });\r\n },\r\n\r\n async getLeadType({ commit, dispatch }, clientQuoteTypeId) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance.get(\r\n `/api/LeadType/${clientQuoteTypeId}`\r\n );\r\n\r\n const { temporaryPause } = response.data;\r\n\r\n if (temporaryPause) {\r\n const { start, scheduledEnd } = temporaryPause;\r\n const duration = Date.parse(scheduledEnd) - Date.parse(start);\r\n commit('SET_TEMPORARY_PAUSE_DURATION', duration);\r\n }\r\n\r\n response.data.isNew = false;\r\n commit('SET_LEAD_TYPE', response.data);\r\n commit('SET_ORIGINAL_PACKAGE_ID', response.data.packageId);\r\n commit('SET_SUBSIDY_PRODUCT', response.data.subsidyProduct);\r\n\r\n if (response.data.stateOverrides?.length) {\r\n // Convert state overrides to state settings\r\n const stateSettings = response.data.stateOverrides.map(\r\n (stateOverride) => {\r\n return {\r\n stateAbbreviation: stateOverride.state,\r\n minBid: stateOverride.price.minBid,\r\n maxBid: stateOverride.price.maxBid,\r\n // effectiveValue: Not used yet?\r\n isActivated: stateOverride.isActive,\r\n };\r\n }\r\n );\r\n\r\n commit('SET_STATE_SETTINGS_OVERRIDES', stateSettings);\r\n } else {\r\n // Reset state settings\r\n commit('SET_STATE_SETTINGS_OVERRIDES', []);\r\n }\r\n\r\n commit('setLoading', false);\r\n return response.data;\r\n },\r\n async getTerritoryDetails({ commit, dispatch }, product) {\r\n const response = await axiosInstance.get(\r\n `/api/LeadType/territorydetail/${state.leadType.id}?subsidyProduct=${product}`\r\n );\r\n\r\n commit('SET_TERRITORY_DETAILS', response.data);\r\n },\r\n async clearLeadType({ commit }) {\r\n commit('CLEAR_LEAD_TYPE');\r\n },\r\n\r\n async getNewLeadType({ commit }, { serviceType, isAgent, isSignup, parentCompany }) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance.get(\r\n `/api/LeadType/new/${serviceType}?isSignup=${isSignup}`\r\n );\r\n\r\n if (serviceType.toLowerCase() === 'call' && isAgent) {\r\n response.data.enableAutoPause = true;\r\n } else {\r\n response.data.enableAutoPause = false;\r\n }\r\n\r\n response.data.isNew = true;\r\n commit('SET_LEAD_TYPE', response.data);\r\n commit('SET_PACKAGE_ID', null);\r\n commit('setLoading', false);\r\n\r\n // A little bit of a nasty hack here. Need to set subsidyProduct for SF Clients\r\n if (['STATEFARM'].includes(parentCompany)) {\r\n commit('SET_SUBSIDY_PRODUCT', response.data.quoteType);\r\n }\r\n\r\n return response.data;\r\n },\r\n\r\n async getCrmTypes({ commit }, productType) {\r\n const response = await axiosInstance\r\n .get(`/api/LeadType/crms/${productType}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n return;\r\n }\r\n\r\n commit('SET_CRM_TYPES', response.data);\r\n },\r\n\r\n async verifyECRM({ commit, dispatch, rootState, state }, crm) {\r\n // Get email value in either io or existing client\r\n const email =\r\n rootState?.signup?.signupInfo?.client?.agencyEmail ||\r\n rootState?.client?.client?.agencyEmail ||\r\n '';\r\n\r\n if (!email) {\r\n dispatch(\r\n 'toastr/error',\r\n 'ECRM cannot be added because Agency Email for client is not set',\r\n {\r\n root: true,\r\n }\r\n );\r\n\r\n return false;\r\n }\r\n\r\n // Get string leading up to @ symbol\r\n const [emailId] = /[^@]*/.exec(email);\r\n\r\n // verify that email is correct\r\n if (emailId?.toLowerCase() === crm.variables[0].toLowerCase()) {\r\n return true;\r\n } else {\r\n dispatch('toastr/error', 'Invalid ECRM Email', {\r\n root: true,\r\n });\r\n\r\n return false;\r\n }\r\n },\r\n\r\n async getPackage({ commit, dispatch, state }, { packageId }) {\r\n const getPackageUrl = `/api/LeadType/package/${packageId}`;\r\n\r\n const response = await axiosInstance.get(getPackageUrl).catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n if (!response.response) {\r\n dispatch('toastr/error', 'Failed to retrieve the package', {\r\n root: true,\r\n });\r\n return;\r\n }\r\n\r\n dispatch('toastr/error', response.response.data.message, {\r\n root: true,\r\n });\r\n return;\r\n }\r\n if (response.data) {\r\n return response.data;\r\n }\r\n },\r\n\r\n async getPackageList(\r\n { commit, dispatch, rootState, state },\r\n { productType, parentCompany, addCustom, isCorpClient }\r\n ) {\r\n let getPackageListUrl = `/api/LeadType/${parentCompany}/${state.leadType.quoteType}/${productType}`;\r\n\r\n if (state.leadType.serviceType === 'Call') {\r\n if (\r\n state.leadType != null &&\r\n state.leadType.originalPackageId != null &&\r\n state.leadType.originalPackageId.length > 0\r\n ) {\r\n getPackageListUrl = `/api/LeadType/calls/${parentCompany}/${state.leadType.id}`;\r\n } else if (state.leadType.callType === 'ColdTransfer') {\r\n getPackageListUrl = `/api/LeadType/calls/taz/${parentCompany}/${state.leadType.quoteType}`;\r\n } else if (parentCompany === 'STATEFARM') {\r\n getPackageListUrl = `/api/LeadType/calls/taz/${parentCompany}/${state.leadType.quoteType}`;\r\n } else {\r\n getPackageListUrl = `/api/LeadType/calls/quotetype/${parentCompany}/${state.leadType.quoteType}`;\r\n }\r\n }\r\n\r\n const response = await dispatch('request/get', {\r\n url: getPackageListUrl,\r\n errorMessage: 'Failed to retrieve packages.',\r\n });\r\n\r\n if (!response) return;\r\n\r\n const packages = response.data;\r\n\r\n let packageBasePrice = 0.0;\r\n // corp types should have custom package set to 0 price as default\r\n if (!isCorpClient) {\r\n switch (state.leadType.quoteType.toLowerCase()) {\r\n case 'home':\r\n packageBasePrice = 15.0;\r\n break;\r\n case 'renter':\r\n packageBasePrice = 9.0;\r\n break;\r\n case 'health':\r\n packageBasePrice = 8.0;\r\n break;\r\n case 'medsupp':\r\n packageBasePrice = 12.0;\r\n break;\r\n default:\r\n packageBasePrice = 11.25;\r\n }\r\n }\r\n\r\n commit('SET_PACKAGE_BASE_PRICE', packageBasePrice);\r\n\r\n if (addCustom) {\r\n let filterList = [];\r\n\r\n // Okay this is an adventure. When you load an existing custom lead type\r\n // the price can get stomped on. I'm trying to force it to use the existing one.\r\n if (state.leadType.packageId === DEFAULT_PACKAGE_ID) {\r\n filterList = state.leadType.filterList;\r\n }\r\n\r\n packages.push({\r\n id: DEFAULT_PACKAGE_ID,\r\n filters: filterList,\r\n name: 'Custom',\r\n cost: state.leadType.payout,\r\n serviceType: 'LEADS',\r\n });\r\n }\r\n\r\n // if package is inactive\r\n if (state.leadType.packageId) {\r\n const currentPackageId = state.leadType?.packageId?.toUpperCase();\r\n if (\r\n currentPackageId &&\r\n !packages.some((x) => x.id.toUpperCase() === currentPackageId)\r\n ) {\r\n const inactivePackage = await dispatch('getPackage', {\r\n packageId: currentPackageId,\r\n });\r\n commit('SET_INACTIVE_PACKAGE', inactivePackage);\r\n if (state.inactivePackage) {\r\n packages.splice(0, 0, inactivePackage);\r\n }\r\n }\r\n }\r\n\r\n // Populate Price Modifiers if they exist on the package & fill out missing info\r\n // map what is on the channel itself to price modifiers. This will override/set the isSelected and the saved Price\r\n const channelPackage = packages.find(\r\n (chanPackage) =>\r\n chanPackage?.id?.toUpperCase() ===\r\n state?.leadType?.packageId?.toUpperCase()\r\n );\r\n if (state.leadType.packageId) {\r\n channelPackage.priceModifiers ??= [];\r\n channelPackage.priceModifiers.forEach((channelPriceModifier) => {\r\n if (state.leadType.priceModifiers?.length > 0) {\r\n const foundModifier = state.leadType.priceModifiers.find(\r\n (foundChannelModifier) =>\r\n foundChannelModifier.packagePriceModifierId ===\r\n channelPriceModifier.packagePriceModifierId\r\n );\r\n if (foundModifier) {\r\n // override price to match what is saved and it's existence indicates selection.\r\n channelPriceModifier.price = foundModifier.price;\r\n channelPriceModifier.isSelected = true;\r\n commit('SET_STORED_PRICE_MODIFIERS', [\r\n ...state.storedPriceModifiers,\r\n channelPriceModifier,\r\n ]);\r\n }\r\n }\r\n });\r\n }\r\n // Sort price modifiers by Name so we have consistent display\r\n packages.forEach((packageProduct) => {\r\n packageProduct.priceModifiers?.sort((a, b) => {\r\n const aName = a?.name ?? '';\r\n const bName = b?.name ?? '';\r\n return aName.localeCompare(bName);\r\n });\r\n });\r\n commit('SET_PACKAGES', packages);\r\n },\r\n\r\n updateCustomPackageFilters({ commit, state }, filters) {\r\n const customPackage = {\r\n ...(state.packages.find((p) => p.id === DEFAULT_PACKAGE_ID) || {}),\r\n filters,\r\n };\r\n\r\n const packages = state.packages.filter((p) => p.id !== DEFAULT_PACKAGE_ID);\r\n packages.push(customPackage);\r\n\r\n commit('SET_PACKAGES', packages);\r\n },\r\n\r\n updatePostTemplate({ commit }) {\r\n const prefix = 'EMAIL:';\r\n let postTemplateString = prefix;\r\n\r\n if (state.leadType.emailDelivery.length > 0) {\r\n postTemplateString += state.leadType.emailDelivery.join(',');\r\n }\r\n\r\n if (state.leadType.crmDelivery.length > 0) {\r\n if (postTemplateString.length > prefix.length) {\r\n postTemplateString += ',';\r\n }\r\n\r\n for (const v of state.leadType.crmDelivery) {\r\n const workingAddress = v.variables.join('|');\r\n postTemplateString += workingAddress + '@' + v.domain + ',';\r\n }\r\n }\r\n\r\n commit('SET_POST_TEMPLATE', postTemplateString);\r\n },\r\n\r\n async createLeadType({\r\n commit,\r\n dispatch,\r\n rootState,\r\n state,\r\n getters: { selectedStates, isCampaign },\r\n rootGetters,\r\n }) {\r\n const createChannel = async (leadType) => {\r\n const response = await dispatch(\r\n 'request/post',\r\n {\r\n url: `/api/leadtype/add/${leadType.serviceType}`,\r\n data: leadType,\r\n errorMessage: `Failed to create ${leadType.serviceType.toLowerCase()} channel`,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n\r\n if (!response) {\r\n return false;\r\n }\r\n\r\n await dispatch('scheduler/saveSchedules', response.data, {\r\n root: true,\r\n });\r\n\r\n if (leadType.serviceType.toLowerCase() === 'call') {\r\n await dispatch('callCorporateFilter/saveFilters', response.data, {\r\n root: true,\r\n });\r\n }\r\n\r\n return true;\r\n };\r\n\r\n const createCampaign = async (leadType) => {\r\n const scheduleData = rootGetters['scheduler/marshalledScheduleData'](\r\n leadType.id\r\n );\r\n\r\n const filters = [...rootState.callCorporateFilter.filters];\r\n\r\n return await dispatch(\r\n 'request/post',\r\n {\r\n url: '/api/campaigns/save',\r\n data: {\r\n clientQuoteType: leadType,\r\n schedule: scheduleData,\r\n filters,\r\n },\r\n errorMessage: `Failed to create ${leadType.serviceType.toLowerCase()} campaign`,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n };\r\n\r\n commit('setLoading', true);\r\n let leadTypeSchedule = [];\r\n\r\n if (state.leadType.serviceType.toLowerCase() === 'web') {\r\n leadTypeSchedule = await dispatch(\r\n 'scheduler/saveWebLeadSchedules',\r\n DEFAULT_PACKAGE_ID,\r\n {\r\n root: true,\r\n }\r\n );\r\n }\r\n\r\n const leadType = {\r\n ...state.leadType,\r\n id: DEFAULT_PACKAGE_ID,\r\n clientId: rootState.client.client.id,\r\n stateOverrides: campaignService.mapStateSettingsToOverrides(\r\n state.stateSettingsOverrides,\r\n selectedStates\r\n ),\r\n schedule: leadTypeSchedule,\r\n };\r\n\r\n const result = await (isCampaign\r\n ? createCampaign(leadType)\r\n : createChannel(leadType));\r\n\r\n commit('setLoading', false);\r\n\r\n return result;\r\n },\r\n\r\n async getCustomPriceModifiers({ commit, dispatch, state }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/leadtype/price-modifiers',\r\n errorMessage: 'Failed to get price modifiers for custom package.',\r\n });\r\n\r\n if (!response) return;\r\n\r\n const priceModifieres = response.data;\r\n commit('SET_CUSTOM_PRICE_MODIFIERS', priceModifieres);\r\n\r\n priceModifieres.forEach((channelPriceModifier) => {\r\n if (state.leadType.priceModifiers?.length > 0) {\r\n const foundModifier = state.leadType.priceModifiers.find(\r\n (foundChannelModifier) =>\r\n foundChannelModifier.packagePriceModifierId ===\r\n channelPriceModifier.packagePriceModifierId\r\n );\r\n if (foundModifier) {\r\n // override price to match what is saved and it's existence indicates selection.\r\n channelPriceModifier.price = foundModifier.price;\r\n channelPriceModifier.isSelected = true;\r\n commit('SET_STORED_PRICE_MODIFIERS', [\r\n ...state.storedPriceModifiers,\r\n channelPriceModifier,\r\n ]);\r\n }\r\n }\r\n });\r\n },\r\n\r\n selectPackage(\r\n { commit, dispatch, rootState, state },\r\n { packageId, isCustomPackage, isCorpClient }\r\n ) {\r\n if (state.leadType.packageId !== packageId) {\r\n commit('SET_PACKAGE_ID', packageId);\r\n const selectedPackage = state.packages.find((p) => p.id === packageId);\r\n\r\n // if corp type and custom package reset price to 0\r\n let price = 0;\r\n if (isCorpClient && isCustomPackage) {\r\n price = 0;\r\n } else {\r\n price = selectedPackage.cost;\r\n }\r\n\r\n commit('SET_CHANNEL_PRICE', price);\r\n\r\n commit('SET_MAX_PRICE', 0);\r\n dispatch('getPackageRestrictions');\r\n commit('CLEAR_PRICE_MODIFIERS');\r\n\r\n // Add price modifiers that are available for the selected package if they\r\n // were previously selected.\r\n const priceModifiers = isCustomPackage\r\n ? state.customPriceModifiers\r\n : selectedPackage.priceModifiers;\r\n\r\n priceModifiers?.forEach((availablePriceModifier) => {\r\n const storedPriceModifier = state.storedPriceModifiers?.find(\r\n (storedPriceModifier) =>\r\n storedPriceModifier.packagePriceModifierId ===\r\n availablePriceModifier.packagePriceModifierId\r\n );\r\n // Re-select price modifier if it was previously stored as selected.\r\n if (storedPriceModifier?.isSelected) {\r\n commit('ADD_PRICE_MODIFIER', {\r\n ...storedPriceModifier,\r\n price: isCustomPackage\r\n ? storedPriceModifier.price\r\n : lodash.clamp(\r\n storedPriceModifier.price,\r\n availablePriceModifier.priceMin,\r\n availablePriceModifier.priceMax\r\n ),\r\n });\r\n return;\r\n }\r\n\r\n // Select price modifier if it isn't stored yet and is default selected.\r\n if (availablePriceModifier.isDefaultSelected && !storedPriceModifier) {\r\n commit('ADD_PRICE_MODIFIER', {\r\n ...availablePriceModifier,\r\n isSelected: true,\r\n });\r\n }\r\n });\r\n }\r\n },\r\n\r\n async updateLeadType({\r\n commit,\r\n dispatch,\r\n state,\r\n getters: { selectedStates, isCampaign },\r\n rootState,\r\n rootGetters,\r\n }) {\r\n const updateChannel = async (leadType) => {\r\n const queryParams = !!state.leadType.estimateAmount\r\n ? `?estimateAmount=${state.leadType.estimateAmount}`\r\n : '';\r\n\r\n const response = await dispatch(\r\n 'request/post',\r\n {\r\n url: `/api/LeadType/edit/${leadType.serviceType}${queryParams}`,\r\n data: leadType,\r\n errorMessage: `Failed to create ${leadType.serviceType.toLowerCase()} channel`,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n\r\n if (!response) {\r\n return false;\r\n }\r\n\r\n const saveScheduleResult = await dispatch(\r\n 'scheduler/saveSchedules',\r\n leadType.id,\r\n {\r\n root: true,\r\n }\r\n );\r\n\r\n let corpFilterSaveResult = true;\r\n if (leadType.serviceType.toLowerCase() === 'call') {\r\n corpFilterSaveResult = await dispatch(\r\n 'callCorporateFilter/saveFilters',\r\n leadType.id,\r\n {\r\n root: true,\r\n }\r\n );\r\n }\r\n\r\n return saveScheduleResult && corpFilterSaveResult;\r\n };\r\n\r\n const updateCampaign = async (leadType) => {\r\n const scheduleData = rootGetters['scheduler/marshalledScheduleData'](\r\n state.leadType.id\r\n );\r\n\r\n const filters = [...rootState.callCorporateFilter.filters];\r\n\r\n return await dispatch(\r\n 'request/post',\r\n {\r\n url: '/api/campaigns/save',\r\n data: {\r\n clientQuoteType: leadType,\r\n schedule: scheduleData,\r\n filters,\r\n },\r\n errorMessage: `Failed to update ${leadType.serviceType.toLowerCase()} campaign`,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n };\r\n\r\n commit('setLoading', true);\r\n\r\n if (state.leadType.serviceType.toLowerCase() === 'web') {\r\n const schedule = await dispatch(\r\n 'scheduler/saveWebLeadSchedules',\r\n state.leadType.id,\r\n {\r\n root: true,\r\n }\r\n );\r\n\r\n commit('SET_NEW_WEB_LEAD_SCHEDULE', schedule);\r\n }\r\n\r\n const leadType = {\r\n ...state.leadType,\r\n stateOverrides: campaignService.mapStateSettingsToOverrides(\r\n state.stateSettingsOverrides,\r\n selectedStates\r\n ),\r\n };\r\n\r\n const response = await (isCampaign\r\n ? updateCampaign(leadType)\r\n : updateChannel(leadType));\r\n\r\n commit('setLoading', false);\r\n\r\n return response;\r\n },\r\n\r\n async resetEPR({ commit, dispatch, state, rootState }, clientQuoteTypeId) {\r\n const response = await axiosInstance\r\n .post(\r\n `/api/LeadType/${rootState.client.client.id}/${clientQuoteTypeId}/resetepr`\r\n )\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n const message =\r\n (response.response && response.response.data.message) ||\r\n 'Failed to reset EPR.';\r\n dispatch('toastr/error', message, {\r\n root: true,\r\n });\r\n }\r\n\r\n commit('SET_EPR', new Date().toISOString());\r\n },\r\n\r\n async getCancelSavePackages({ commit, dispatch, rootState, state }) {\r\n if (rootState.client.client) {\r\n const response = await axiosInstance\r\n .get(\r\n `/api/LeadType/${rootState.client.client.parentCompany}/${state.leadType.quoteType}/sourceOnlyPackages`\r\n )\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n if (response.response.status === 401) {\r\n // 401 means user should not see these.\r\n // This is an expected response code.\r\n return;\r\n }\r\n const message =\r\n (response.response && response.response.data.message) ||\r\n 'Could not retrieve source packages';\r\n dispatch('toastr/error', message, {\r\n root: true,\r\n });\r\n }\r\n\r\n commit('SET_CANCEL_SAVE_PACKAGES', response.data);\r\n }\r\n },\r\n\r\n async temporaryPauseLeadType({ commit, dispatch, state }) {\r\n commit('setLoading', true);\r\n\r\n let durationMs = state.temporaryPauseDuration;\r\n\r\n if (state.temporaryPauseDuration === -1) {\r\n durationMs = moment().startOf('day').add(1, 'day').diff(moment());\r\n }\r\n\r\n const clientQuoteTypeId = state.leadType.id;\r\n const duration = moment()\r\n .startOf('day')\r\n .add(durationMs, 'ms')\r\n .format('HH:mm:ss');\r\n\r\n const response = await axiosInstance\r\n .post('/api/LeadType/pause', {\r\n clientQuoteTypeId,\r\n duration,\r\n })\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({\r\n exception: response,\r\n });\r\n console.error(response);\r\n dispatch('toastr/error', 'Failed to pause channel.', {\r\n root: true,\r\n });\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n commit('SET_TEMPORARY_PAUSE', response.data);\r\n commit('SET_STATUS', 'PAUSE');\r\n commit('setLoading', false);\r\n },\r\n\r\n async temporaryUnpauseLeadType({ commit, dispatch, state }) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .delete(`/api/LeadType/pause/${state.leadType.id}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({\r\n exception: response,\r\n });\r\n console.error(response);\r\n dispatch('toastr/error', 'Failed to unpause channel.', {\r\n root: true,\r\n });\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n commit('SET_TEMPORARY_PAUSE', null);\r\n commit('SET_TEMPORARY_PAUSE_DURATION', null);\r\n commit('SET_STATUS', 'ACTIVE');\r\n commit('setLoading', false);\r\n },\r\n\r\n async getClientGeoMapChanges({ commit }, { clientQuoteTypeId, changeDate }) {\r\n const response = await axiosInstance.get(\r\n `/api/leadType/${clientQuoteTypeId}/clientgeomapchanges`,\r\n {\r\n params: {\r\n changeDate,\r\n },\r\n }\r\n );\r\n const data = response.data;\r\n\r\n return data;\r\n },\r\n\r\n async removeGeoMaps({ commit, state }, geoMaps) {\r\n for (const geo of geoMaps) {\r\n const existingGeos = state.leadType.geoMaps;\r\n\r\n const zipIndex = existingGeos.findIndex(\r\n (existing) =>\r\n existing.type === 'ZipCode' && existing.zipCode === geo.zipCode\r\n );\r\n\r\n if (~zipIndex) {\r\n commit('REMOVE_TERRITORY', zipIndex);\r\n continue;\r\n }\r\n\r\n const stateIndex = existingGeos.findIndex(\r\n (existing) =>\r\n existing.type === 'State' &&\r\n existing.stateAbbreviation === geo.stateAbbreviation\r\n );\r\n\r\n if (~stateIndex) {\r\n const response = await axiosInstance\r\n .delete('/api/territory/states/remove-zip', {\r\n data: geo,\r\n })\r\n .catch((err) => err);\r\n\r\n commit('REMOVE_TERRITORY', stateIndex);\r\n commit('ADD_TERRITORIES', response.data);\r\n }\r\n }\r\n },\r\n\r\n async getQuoteTypeFilterChanges(\r\n { commit },\r\n { clientQuoteTypeId, changeDate }\r\n ) {\r\n const response = await axiosInstance.get(\r\n `/api/leadType/${clientQuoteTypeId}/getclientquotetypefilterchanges`,\r\n {\r\n params: {\r\n changeDate,\r\n },\r\n }\r\n );\r\n const data = response.data;\r\n\r\n return data;\r\n },\r\n\r\n async cloneFrom({ commit, dispatch }, { clientQuoteTypeId, type }) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .get(`/api/LeadType/${clientQuoteTypeId}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({\r\n exception: response,\r\n });\r\n console.error(response);\r\n commit('setLoading', false);\r\n dispatch('toastr/error', 'Failed to clone from lead type.', {\r\n root: true,\r\n });\r\n return;\r\n }\r\n\r\n const {\r\n geoMaps,\r\n dayCapSchedule,\r\n crmDelivery,\r\n emailDelivery,\r\n phoneNumbers,\r\n } = response.data;\r\n\r\n switch (type) {\r\n case 'TERRITORY':\r\n commit('SET_TERRITORIES', geoMaps);\r\n break;\r\n case 'DELIVERY':\r\n if (crmDelivery) {\r\n commit('SET_CRM_DELIVERY', crmDelivery);\r\n dispatch('updatePostTemplate');\r\n }\r\n if (emailDelivery) {\r\n commit('SET_EMAIL_DELIVERY', emailDelivery);\r\n dispatch('updatePostTemplate');\r\n }\r\n if (phoneNumbers) {\r\n commit('SET_PHONE_DELIVERY', phoneNumbers);\r\n }\r\n break;\r\n case 'CAPS':\r\n commit('SET_DAY_CAPS', dayCapSchedule);\r\n break;\r\n default:\r\n throw new Error('Invalid cloneFrom TYPE');\r\n }\r\n\r\n commit('setLoading', false);\r\n },\r\n\r\n resetState({ commit, dispatch }) {\r\n dispatch('scheduler/resetSchedulerState', null, {\r\n root: true,\r\n });\r\n commit('RESET_STATE');\r\n },\r\n\r\n updateLeadTypeScheduleForNewChannels({ commit }, schedule) {\r\n if (state.leadType.schedule === null) {\r\n commit('SET_NEW_WEB_LEAD_SCHEDULE', schedule);\r\n }\r\n },\r\n\r\n async loadAccountRepOptions({ commit, dispatch }) {\r\n const response = await axiosInstance\r\n .get(`/api/Clients/ACCOUNT_REPS/options`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({\r\n exception: response,\r\n });\r\n console.error(response);\r\n commit('setLoading', false);\r\n dispatch('toastr/error', 'Failed to clone from lead type.', {\r\n root: true,\r\n });\r\n return;\r\n }\r\n\r\n commit('SET_ACCOUNT_REPS', response.data);\r\n return response.data;\r\n },\r\n\r\n setLutInfo({ commit }, lutGeoMaps) {\r\n commit(\r\n 'SET_ESTIMATE',\r\n lutGeoMaps.reduce((sum, geo) => (sum += geo.estimate), 0)\r\n );\r\n commit('SET_TERRITORIES', convertLutGeoMapsToGeoMaps(lutGeoMaps));\r\n },\r\n\r\n async getAvailableLutQuoteTypes({ commit, dispatch }, parentCompany) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/leadtype/quoteTypes/${parentCompany}`,\r\n loadingMutation: 'leadType/setLoading',\r\n errorMessage: false,\r\n onError: (error) => {\r\n console.error(error);\r\n },\r\n });\r\n\r\n if (!response) {\r\n return;\r\n }\r\n\r\n commit('SET_AVAILABLE_LUT_QUOTE_TYPES', response.data);\r\n },\r\n\r\n async setTerritories({ commit }, geoMaps) {\r\n commit('SET_TERRITORIES', geoMaps);\r\n },\r\n\r\n async setExcludedZipCodes({ commit }, zipCodes) {\r\n commit('SET_EXCLUDE_LIST', zipCodes);\r\n },\r\n\r\n async setExpansionOptOut({ commit }, flag) {\r\n commit('SET_EXPANSION_OPTOUT', flag);\r\n },\r\n\r\n setWeekdayCaps({ state, commit }, newWeekdayCap) {\r\n const days = Object.keys(state.leadType.dayCapSchedule);\r\n\r\n for (const day of days) {\r\n if (day !== 'weekly') {\r\n const value = ['saturday', 'sunday'].includes(day) ? 1 : newWeekdayCap;\r\n\r\n commit('SET_DAY_CAP', {\r\n day,\r\n value,\r\n });\r\n }\r\n }\r\n },\r\n\r\n async bulkUpdateOptInSecondaryTerritories({ dispatch }, { form, optIn }) {\r\n return await axiosInstance\r\n .post(\r\n `/api/leadType/bulk-update-secondary-territories-opt-status?optIn=${optIn}`,\r\n form,\r\n {\r\n headers: {\r\n 'Content-Type': 'multipart/form-data',\r\n },\r\n }\r\n )\r\n .then((response) => response.data)\r\n .catch((err) => {\r\n // Use response message or generic\r\n const message = err?.response?.data || err?.message || 'Network Error';\r\n\r\n dispatch('toastr/error', `Error: ${message}`, { root: true });\r\n });\r\n },\r\n\r\n setDayCaps({ commit }, dayCapSchedule) {\r\n commit('SET_DAY_CAPS', dayCapSchedule);\r\n },\r\n\r\n setDelivery({ commit }, { emailDelivery, crmDelivery, phoneDelivery }) {\r\n commit('SET_EMAIL_DELIVERY', emailDelivery);\r\n commit('SET_CRM_DELIVERY', crmDelivery);\r\n commit('SET_PHONE_DELIVERY', phoneDelivery);\r\n },\r\n\r\n setLeadType({ commit }, leadType) {\r\n commit('SET_LEAD_TYPE', leadType);\r\n },\r\n\r\n setMaxSold({ commit }, maxSold) {\r\n commit('SET_MAX_SOLD', maxSold);\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\nimport { axiosInstance } from '@/plugins/axios';\r\n\r\nexport const state = {\r\n leads: [],\r\n metrics: {\r\n web: {},\r\n calls: {},\r\n },\r\n deadLetterQueueMessages: [],\r\n pagination: {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalRecords: 0,\r\n },\r\n sortBy: '-DELIVERY_DATETIME_UTC',\r\n loading: false,\r\n visibleDateRange: [\r\n /* From */\r\n dateRangeStart(),\r\n /* To */\r\n dateRangeEnd(),\r\n ],\r\n};\r\n\r\nfunction dateRangeStart() {\r\n return new Date(new Date().getFullYear(), new Date().getMonth(), 1);\r\n}\r\n\r\nfunction dateRangeEnd() {\r\n var d = new Date();\r\n d.setHours(23, 59, 59, 999);\r\n return d;\r\n}\r\n\r\nexport const getters = {\r\n delivered(state) {\r\n return {\r\n web: state.metrics.web.leadCount,\r\n calls: state.metrics.calls.leadCount,\r\n };\r\n },\r\n deadLetterQueueMessages: (state) => state.deadLetterQueueMessages,\r\n};\r\n\r\nexport const actions = {\r\n async getLeads({ commit }, { clientId, search, from, to }) {\r\n commit('setLoading', true);\r\n const response = await axiosInstance\r\n .get(`/api/leads/${clientId}/tracking/web`, {\r\n params: {\r\n pageNum: state.pagination.currentPage,\r\n pageSize: state.pagination.pageSize,\r\n sortBy: state.sortBy,\r\n search,\r\n from,\r\n to,\r\n },\r\n })\r\n .catch((err) => {\r\n console.error(err);\r\n commit('setLoading', false);\r\n return Promise.reject(err);\r\n });\r\n\r\n commit('setLeads', response.data.items || []);\r\n commit('setPagination', response.data.metaData);\r\n\r\n commit('setLoading', false);\r\n return response.data;\r\n },\r\n\r\n async getLeadMetrics({ commit }, clientId) {\r\n try {\r\n const from = dateRangeStart();\r\n const today = new Date();\r\n const [callMetrics, webMetrics] = await Promise.all([\r\n axiosInstance.get(`/api/leads/${clientId}/metrics/call`, {\r\n params: {\r\n from,\r\n to: today,\r\n },\r\n }),\r\n axiosInstance.get(`/api/leads/${clientId}/metrics/web`, {\r\n params: {\r\n from,\r\n to: today,\r\n },\r\n }),\r\n ]);\r\n commit('setLeadMetrics', {\r\n type: 'calls',\r\n data: callMetrics.data,\r\n });\r\n commit('setLeadMetrics', {\r\n type: 'web',\r\n data: webMetrics.data,\r\n });\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n },\r\n\r\n async getDeadLetterQueueMessages({ commit }) {\r\n try {\r\n const response = await axiosInstance.get(\r\n `/api/leads/getDeadLetterQueueMessages`\r\n );\r\n\r\n commit('setDeadLetterQueueMessages', response.data);\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n },\r\n\r\n setCurrentPage({ commit, dispatch }, { pageNumber, getLeadsData }) {\r\n commit('setCurrentPage', pageNumber);\r\n dispatch('getLeads', getLeadsData);\r\n },\r\n\r\n setSortBy({ commit, dispatch }, { sortBy, getLeadsData }) {\r\n commit('setSortBy', sortBy || '-DELIVERY_DATETIME_UTC');\r\n dispatch('getLeads', getLeadsData);\r\n },\r\n\r\n setVisibleDateRange({ commit }, dateRange) {\r\n commit('setVisibleDateRange', dateRange);\r\n },\r\n reset({ commit }) {\r\n commit('setLeads', []);\r\n commit('setLeadMetrics', {\r\n type: 'calls',\r\n data: {},\r\n });\r\n commit('setLeadMetrics', {\r\n type: 'web',\r\n data: {},\r\n });\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('loading'),\r\n setLeads: _.set('leads'),\r\n setPagination: _.set('pagination'),\r\n setSortBy: _.set('sortBy'),\r\n setVisibleDateRange: _.set('visibleDateRange'),\r\n setDeadLetterQueueMessages: _.set('deadLetterQueueMessages'),\r\n setCurrentPage(state, newValue) {\r\n state.pagination.currentPage = newValue;\r\n },\r\n\r\n setPageSize(state, newValue) {\r\n state.pagination.pageSize = newValue;\r\n },\r\n\r\n setLeadMetrics(state, { type, data }) {\r\n state.metrics[type] = data;\r\n },\r\n};\r\n","export default {\r\n ALLSTATE: [\r\n '5B4619CA-1725-4605-8759-8575D8D85557',\r\n 'F07F9F09-31C6-4EB6-82FE-7FEB750EA553',\r\n '2412F222-B2FE-4508-A085-2C9FC79E8E10',\r\n '4825C4B6-3DEB-4A63-A5FF-A1F6F1AD371F',\r\n '49D00F8E-0AA4-46EC-BE56-710FFEC8B205',\r\n '956D66BB-EE6E-417E-A7DA-F108EA7F95C3',\r\n 'E20F87C7-0B80-48A2-8CEE-81BB135C1F76',\r\n 'A54979A4-D483-4712-82BD-FF92B19CD9DF',\r\n '3B6E7382-7644-40C9-8363-6BEB90E865C6',\r\n '472E5688-4B54-4A37-803A-581BB9FF9BA1',\r\n 'DDDA39FF-8F77-478A-8CBE-1177740599FE',\r\n 'A5113427-CF70-4431-B17F-27D38805AB58',\r\n '1C3D57B9-CC3D-451D-A105-8FABB947050C',\r\n '8599F4AC-4820-45CF-9ABB-9D488EB940BD',\r\n '32EB6191-8B5B-40DB-86AF-5E4CE51D8248',\r\n 'A023E056-0F7C-4136-A5B9-6F0148C66E82',\r\n '70CD2EF7-B04E-4C8D-9D2D-2F1E6064ED13',\r\n '4E4247FF-7661-41F9-8B8C-D9606BF1C097',\r\n '022DEB49-CC3E-4527-95BA-220FEBADB5BC',\r\n '0165DABF-1A38-497D-B82C-440BCE6B109E',\r\n '37EDD44F-28C8-4BE0-AB09-23C89B81C2AA',\r\n '9B300149-9A62-4A66-AF93-5AE6CB5B41FD',\r\n '72669A15-3A23-4809-8099-359792C15598',\r\n '0C4398CE-9942-4754-BEF7-D7745779A617',\r\n '6D6DFE06-9DCF-4264-813C-46ABE4401B1A',\r\n 'EECDB7F8-16C5-44ED-B76C-1191D38D1118',\r\n '20DA10AD-0B2A-4BDF-8564-6AA0DFC38AFC',\r\n '17A924E3-F1E9-44D0-B8A4-B6FE0CADA6FF',\r\n 'D6E894FB-D324-44DD-85AB-7F38A0E10CC0',\r\n ],\r\n FARMERS: [\r\n '5F4A6439-50EC-473B-86C0-7E0B6137E89B',\r\n 'D8D160D0-CFA3-4184-AC8A-91F357D0A83E',\r\n '9EF6C405-64F6-40F6-A9C2-D83CFEC909A8',\r\n 'CA65F78C-D8C1-479A-B58A-4A80A289D870',\r\n 'D6A571CF-671C-4046-8280-4E064BDE2736',\r\n 'E312995C-EC21-426B-A470-222FF5763F68',\r\n '29451BC0-D75D-49E4-AF61-799A446A7AC7',\r\n '696B13A6-2130-4B7C-A29E-314EE4BB4A17',\r\n '7118E9DB-FB8B-4CB8-8264-32A142EC67B1',\r\n '23A51349-2AC8-42D5-900D-3F982FF31CFE',\r\n '32B74D95-07F8-4E0F-8B1B-9E785D61937F',\r\n '5C6FFE44-EAE0-425E-A9C8-505D7B4E962A',\r\n '110305AA-4449-4CF1-A5B6-47BC39BB74FA',\r\n '43BC3437-89E3-49C1-9413-115B54A1A14D',\r\n 'F2286EB2-9FE7-4FB8-9055-CD895389D172',\r\n '9DAD077F-2380-480B-8EFC-941F9A10AC28',\r\n '49962113-95C6-4700-9B1B-66FD27E0546D',\r\n '96D2317C-70DE-4A67-AB97-30FA1DDAE031',\r\n '60DBE025-01B2-489F-918E-CA5751DC0EE0',\r\n 'B7C85E06-DBD9-4644-9C98-4F45D2F60F16',\r\n '0947EAE7-7C3C-407D-9060-3EEDB700AADF',\r\n 'F9BD7800-DCB0-481A-B715-CDCA530F1B1C',\r\n 'A0F0A45C-9A9F-404B-9A9F-725DAF32AB53',\r\n 'ACEA5617-6038-45D7-8E09-B1296DD3A684',\r\n '18A233CC-FBB5-4090-B42D-F4F6D52E4054',\r\n '6931A123-11C9-416C-A9BC-D2D99C446D5C',\r\n 'F2875609-5351-498D-9628-5238D41775C9',\r\n ],\r\n STATEFARM: [\r\n '7246E420-D37A-4BC5-9926-89AAE0E4C157',\r\n '088DA645-BD15-4BF5-B8B0-936A4AE8BF21',\r\n 'D3F40147-6179-4158-AD9A-9A0B56E217A2',\r\n '65D7719D-4562-4AC8-A237-33712D19C1EA',\r\n '2F1C6E8A-EAD8-42F3-9744-B39D3010BDA1',\r\n '5B0F1427-8C2A-42F8-AA68-83FD6FD69C58',\r\n 'C105807C-1A07-48A3-AC37-22944B692AAE',\r\n 'DD1830AA-2D51-4C0B-AAED-FFEE82A69E43',\r\n '0DCCA47E-283D-42ED-9F44-B175895EDADF',\r\n '7B8A61C1-3207-448A-ACDA-B865C9051DB0',\r\n '48BE876D-BA40-48DE-BDDC-79F9932A45E0',\r\n '12EBEBE5-54EE-4829-9D64-2CC054E4926B',\r\n 'AFDD5F02-E504-4BD5-B2C6-FC04406A0FBA',\r\n '06A8F1CB-FBDC-487A-8DEF-7B8C237BE593',\r\n '44683CCC-EC82-40FF-BD45-8E66578A0B82',\r\n '551EFA23-A998-4B45-A7F3-AF3D60A7D2BC',\r\n '0367869F-99C9-4944-B94C-06E703E6677A',\r\n ],\r\n}\r\n","export function consolidateGeoMapEstimates(\r\n packages,\r\n selectedEstimates,\r\n addedGeosMap,\r\n removedGeosMap\r\n) {\r\n const consolidated = {}\r\n\r\n for (const pkg of packages) {\r\n const regionMap = selectedEstimates[pkg.id] || {}\r\n const regions = Object.keys(regionMap)\r\n const selectedGeos = Object.values(regionMap).flatMap((x) => x)\r\n const addedGeos = addedGeosMap[pkg.id] || []\r\n const removedGeos = removedGeosMap[pkg.id] || []\r\n const uniqueGeos = dedupeGeos(selectedGeos)\r\n const allGeos = combineGeos(uniqueGeos, addedGeos, removedGeos)\r\n\r\n if (allGeos.length === 0) continue\r\n\r\n consolidated[pkg.id] = {\r\n package: pkg,\r\n regions: regions,\r\n geos: pruneHierarchy(allGeos),\r\n }\r\n }\r\n\r\n return consolidated\r\n}\r\n\r\nfunction dedupeGeos(geoMaps) {\r\n return geoMaps.filter((x, i, self) => {\r\n const firstOccurence = self.findIndex((y) => {\r\n return (\r\n x.zipCode === y.zipCode &&\r\n x.countyFipsCode === y.countyFipsCode &&\r\n x.stateCode === y.stateCode\r\n )\r\n })\r\n return i === firstOccurence\r\n })\r\n}\r\n\r\nfunction combineGeos(selected, added, removed) {\r\n return [...selected, ...added].filter(\r\n (geo) => !removed.some((removed) => removed.zipCode === geo.zipCode)\r\n )\r\n}\r\n\r\nfunction pruneHierarchy(geos) {\r\n // We don't want ZIP geos that fall within a County geo to be used.\r\n const counties = geos.filter((x) => !x.zipCode && !!x.countyFipsCode)\r\n const states = geos.filter((x) => !x.countyFipsCode)\r\n const zips = geos.filter((x) => !!x.zipCode)\r\n\r\n const prunedZips = zips.filter(\r\n (zip) =>\r\n !counties.some(\r\n (county) => county.countyFipsCode === zip.countyFipsCode\r\n ) && !states.some((state) => state.stateCode === zip.stateCode)\r\n )\r\n\r\n const prunedCounties = counties.filter(\r\n (county) => !states.some((state) => state.stateCode === county.stateCode)\r\n )\r\n\r\n return [...prunedZips, ...prunedCounties, ...states]\r\n}\r\n","import _ from '@/utils/store-helpers';\r\nimport { groupNumbers } from '@/plugins/filters';\r\nimport packagePriorities from '@/components/signup/LookupTool/packagePriorities';\r\nimport { consolidateGeoMapEstimates } from '@/components/signup/LookupTool/consolidateGeoMapEstimates';\r\n\r\nexport const state = {\r\n baseState: null,\r\n baseStateAbbreviation: null,\r\n countiesInBaseState: [],\r\n countiesInBaseStateError: null,\r\n quoteTypeState: {\r\n /*\r\n For now, quoteTypeId will be the code name (\"AUTO\", \"HOME\", etc) A.K.A. \"LeadTypeCode\".\r\n [quoteTypeId]: {\r\n id: string\r\n label: string,\r\n serviceId: string,\r\n packages: [],\r\n packagesError: string,\r\n noPackagesAvailable: boolean,\r\n geoMaps: [],\r\n customGeoMaps: [],\r\n customRadiusGeoMaps: [],\r\n customCountyGeoMaps: [],\r\n addedGeosMap: {\r\n [packageId]: geoMap[],\r\n },\r\n removedGeosMap: {\r\n [packageId]: geoMap[],\r\n },\r\n packageGeosMap: {},\r\n selectedEstimates: {\r\n [packageId]: {\r\n [region]: geoMap[]\r\n }\r\n },\r\n geoMapEstimateErrors: {\r\n [packageId]: {\r\n [regionKey]: geoMap[],\r\n },\r\n },\r\n countyZipGeosMap: {\r\n [countyFipsCode]: geoMap[],\r\n },\r\n }\r\n */\r\n },\r\n loading: false,\r\n addLoading: false,\r\n removeLoading: false,\r\n addRadiusLoading: false,\r\n addCountiesLoading: false,\r\n addListLoading: false,\r\n lastParentCompany: null,\r\n lastBaseZip: null,\r\n lastQuoteType: null,\r\n lastProductType: null,\r\n currentVolume: null,\r\n accountReps: [],\r\n};\r\n\r\nexport const getters = {\r\n countiesInBaseState: (state) => {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.countiesInBaseState)) {\r\n retVal[quoteTypeId] = state.countiesInBaseState[quoteTypeId];\r\n }\r\n\r\n return retVal;\r\n },\r\n numCountiesInBaseState: (state) => {\r\n if (state.countiesInBaseState) {\r\n return Object.keys(state.countiesInBaseState).length;\r\n } else {\r\n return -1;\r\n }\r\n },\r\n quoteTypesLoaded: (state) => Object.keys(state.quoteTypeState).length > 0,\r\n packageIdsByQuoteType: (state) => {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n retVal[quoteTypeId] = state.quoteTypeState[quoteTypeId].packages.map(\r\n (pkg) => pkg.id\r\n );\r\n }\r\n\r\n return retVal;\r\n },\r\n sortedPackagesByQuoteType(state, getters, rootState, rootGetters) {\r\n const parentCompany = rootGetters['signup/parentCompany'];\r\n const priorities = packagePriorities[parentCompany] || [];\r\n\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n const packages = [...state.quoteTypeState[quoteTypeId].packages].sort(\r\n (a, b) => {\r\n const aPriority = priorities.indexOf(a.id.toUpperCase());\r\n const bPriority = priorities.indexOf(b.id.toUpperCase());\r\n if (aPriority === -1 || bPriority === -1) {\r\n return 1;\r\n }\r\n return aPriority - bPriority;\r\n }\r\n );\r\n\r\n retVal[quoteTypeId] = packages;\r\n }\r\n\r\n return retVal;\r\n },\r\n zipGeosByQuoteType: (state) => {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n retVal[quoteTypeId] = state.quoteTypeState[quoteTypeId].geoMaps;\r\n }\r\n\r\n return retVal;\r\n },\r\n countyGeosByQuoteType(state, getters) {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n const nearbyFips = getters.zipGeosByQuoteType[quoteTypeId]\r\n .filter((x) => x.radiusBoundary > 0 && x.radiusBoundary <= 10)\r\n .map((x) => x.countyFipsCode);\r\n\r\n const uniqueNearbyFips = [...new Set(nearbyFips)];\r\n const countyGeos = uniqueNearbyFips.map((fips) => ({\r\n ...getters.zipGeosByQuoteType[quoteTypeId].find(\r\n (x) => x.countyFipsCode === fips\r\n ),\r\n zipCode: null,\r\n radiusBoundary: 0,\r\n }));\r\n\r\n retVal[quoteTypeId] = countyGeos.concat(\r\n state.quoteTypeState[quoteTypeId].customCountyGeoMaps\r\n );\r\n }\r\n\r\n return retVal;\r\n },\r\n stateGeosByQuoteType(state, getters) {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n const stateNames = getters.zipGeosByQuoteType[quoteTypeId].map(\r\n (geo) => geo.stateName\r\n );\r\n\r\n const uniqueStateNames = [...new Set(stateNames)];\r\n const stateGeos = uniqueStateNames.map((stateName) => ({\r\n ...getters.zipGeosByQuoteType[quoteTypeId].find(\r\n (x) => x.stateName === stateName\r\n ),\r\n countyName: null,\r\n countyFipsCode: null,\r\n zipCode: null,\r\n radiusBoundary: 0,\r\n }));\r\n\r\n retVal[quoteTypeId] = stateGeos;\r\n }\r\n\r\n return retVal;\r\n },\r\n allGeosByQuoteType(state, getters) {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n retVal[quoteTypeId] = [\r\n ...getters.zipGeosByQuoteType[quoteTypeId],\r\n ...getters.countyGeosByQuoteType[quoteTypeId],\r\n ...getters.stateGeosByQuoteType[quoteTypeId],\r\n ];\r\n }\r\n\r\n return retVal;\r\n },\r\n allCountyZipGeosByQuoteType(state) {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n retVal[quoteTypeId] = Object.values(\r\n state.quoteTypeState[quoteTypeId].countyZipGeosMap\r\n ).flatMap((x) => x);\r\n }\r\n\r\n return retVal;\r\n },\r\n radiusBoundariesByQuoteType(state, getters) {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n const radiusBoundaries = state.quoteTypeState[quoteTypeId].geoMaps.map(\r\n (geoMap) => geoMap.radiusBoundary\r\n );\r\n\r\n retVal[quoteTypeId] = [...new Set(radiusBoundaries)]\r\n .filter((x) => x > 0)\r\n .sort((a, b) => a - b);\r\n }\r\n\r\n return retVal;\r\n },\r\n regionHeadersByQuoteType(state, getters) {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n const headers = [];\r\n\r\n if (state.quoteTypeState[quoteTypeId].customGeoMaps.length > 0) {\r\n headers.push('Custom');\r\n }\r\n for (const boundary of getters.radiusBoundariesByQuoteType[quoteTypeId]) {\r\n headers.push(`${groupNumbers(boundary)} Miles`);\r\n }\r\n for (const { countyName } of getters.countyGeosByQuoteType[quoteTypeId]) {\r\n headers.push(`${countyName} County`);\r\n }\r\n for (const { stateName } of getters.stateGeosByQuoteType[quoteTypeId]) {\r\n headers.push(`${stateName} State`);\r\n }\r\n\r\n retVal[quoteTypeId] = headers;\r\n }\r\n\r\n return retVal;\r\n },\r\n regionHeadersDisplayByQuoteType(state, getters) {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n const headers = [];\r\n\r\n if (state.quoteTypeState[quoteTypeId].customGeoMaps.length > 0) {\r\n headers.push('Custom');\r\n }\r\n for (const boundary of getters.radiusBoundariesByQuoteType[quoteTypeId]) {\r\n headers.push(`${groupNumbers(boundary)} Miles`);\r\n }\r\n for (const { countyName, stateName } of getters.countyGeosByQuoteType[\r\n quoteTypeId\r\n ]) {\r\n if (stateName) {\r\n headers.push(`${countyName} County ${stateName} State`);\r\n } else {\r\n headers.push(`${countyName} County`);\r\n }\r\n }\r\n for (const { stateName } of getters.stateGeosByQuoteType[quoteTypeId]) {\r\n headers.push(`${stateName} State`);\r\n }\r\n\r\n retVal[quoteTypeId] = headers;\r\n }\r\n\r\n return retVal;\r\n },\r\n geoEstimateMapByQuoteType(state, getters) {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n const estimateMap = {};\r\n\r\n const packageGeos = Object.entries(\r\n state.quoteTypeState[quoteTypeId].packageGeosMap\r\n );\r\n\r\n for (const [packageId, geoMaps] of packageGeos) {\r\n // Have to use local boundaries, so we guarantee the boundary has already been loaded from the estimate endpoint.\r\n // The radiusBoundaries getter has all radius boundaries, regardless of whether or not estimates have been loaded yet.\r\n const boundaries = geoMaps.map((x) => x.radiusBoundary);\r\n const uniqueBoundaries = [...new Set(boundaries)].filter((x) => x > 0);\r\n // We have custom zip geos contained inside a county that shouldn't be included in the radii.\r\n const boundedGeos = geoMaps.filter(\r\n (x) =>\r\n (x.zipCode && x.radiusBoundary > 0) || !x.zipCode || x.isCustomZip\r\n );\r\n for (const geoMap of boundedGeos) {\r\n if (geoMap.isCustomZip) {\r\n addToEstimateMap(estimateMap, packageId, 'Custom', geoMap);\r\n } else if (geoMap.zipCode) {\r\n uniqueBoundaries.forEach((radiusBoundary) => {\r\n if (geoMap.radiusBoundary > radiusBoundary) return;\r\n const regionKey = `${groupNumbers(radiusBoundary)} Miles`;\r\n addToEstimateMap(estimateMap, packageId, regionKey, geoMap);\r\n });\r\n } else if (geoMap.countyName) {\r\n const regionKey = `${geoMap.countyName} County`;\r\n addToEstimateMap(estimateMap, packageId, regionKey, geoMap);\r\n } else {\r\n const regionKey = `${geoMap.stateName} State`;\r\n addToEstimateMap(estimateMap, packageId, regionKey, geoMap);\r\n }\r\n }\r\n }\r\n\r\n retVal[quoteTypeId] = estimateMap;\r\n }\r\n\r\n return retVal;\r\n },\r\n consolidatedEstimatesByQuoteType(state, getters) {\r\n const retVal = {};\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n retVal[quoteTypeId] = consolidateGeoMapEstimates(\r\n state.quoteTypeState[quoteTypeId].packages,\r\n state.quoteTypeState[quoteTypeId].selectedEstimates,\r\n state.quoteTypeState[quoteTypeId].addedGeosMap,\r\n state.quoteTypeState[quoteTypeId].removedGeosMap\r\n );\r\n }\r\n\r\n return retVal;\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('loading'),\r\n setAddLoading: _.set('addLoading'),\r\n setRemoveLoading: _.set('removeLoading'),\r\n setAddRadiusLoading: _.set('addRadiusLoading'),\r\n setAddCountiesLoading: _.set('addCountiesLoading'),\r\n setAddListLoading: _.set('addListLoading'),\r\n setBaseState: _.set('baseState'),\r\n setBaseStateAbbreviation: _.set('baseStateAbbreviation'),\r\n setCountiesInBaseState: _.set('countiesInBaseState'),\r\n setCountiesInBaseStateError: _.set('countiesInBaseStateError'),\r\n setLastParentCompany: _.set('lastParentCompany'),\r\n setLastBaseZip: _.set('lastBaseZip'),\r\n setLastQuoteType: _.set('lastQuoteType'),\r\n setLastProductType: _.set('lastProductType'),\r\n setCurrentVolume: _.set('currentVolume'),\r\n setAccountReps: _.set('accountReps'),\r\n\r\n RESET(state) {\r\n state.baseState = null;\r\n state.baseStateAbbreviation = null;\r\n state.countiesInBaseState = [];\r\n state.countiesInBaseStateError = null;\r\n state.addRadiusLoading = false;\r\n state.addCountiesLoading = false;\r\n state.addListLoading = false;\r\n\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n state.quoteTypeState[quoteTypeId] = {\r\n ...state.quoteTypeState[quoteTypeId],\r\n packages: [],\r\n packagesError: null,\r\n noPackagesAvailable: false,\r\n geoMaps: [],\r\n customGeoMaps: [],\r\n customRadiusGeoMaps: [],\r\n customCountyGeoMaps: [],\r\n addedGeosMap: {},\r\n removedGeosMap: {},\r\n packageGeosMap: {},\r\n selectedEstimates: {},\r\n geoMapEstimateErrors: {},\r\n countyZipGeosMap: {},\r\n };\r\n }\r\n },\r\n RESET_COUNTIES_IN_BASE_STATE(state) {\r\n state.countiesInBaseState = [];\r\n },\r\n RESET_GEO_MAP_ESTIMATES(state, { quoteTypeId }) {\r\n state.quoteTypeState[quoteTypeId].packageGeosMap = {};\r\n state.quoteTypeState[quoteTypeId].geoMapEstimateErrors = {};\r\n },\r\n RESET_GEO_MAP_ESTIMATE_ERRORS(state, { quoteTypeId }) {\r\n state.quoteTypeState[quoteTypeId].geoMapEstimateErrors = {};\r\n },\r\n SET_AVAILABLE_QUOTE_TYPES(state, { quoteTypes, resetPreviousState }) {\r\n for (const quoteType of quoteTypes) {\r\n let initialQuoteTypeState = buildInitialQuoteTypeState(quoteType);\r\n\r\n if (!resetPreviousState && state.quoteTypeState[quoteType.leadTypeCode]) {\r\n // Keep some properties from previous state.\r\n initialQuoteTypeState = {\r\n ...initialQuoteTypeState,\r\n ...state.quoteTypeState[quoteType.leadTypeCode],\r\n addedGeosMap: {},\r\n removedGeosMap: {},\r\n };\r\n }\r\n\r\n state.quoteTypeState[quoteType.leadTypeCode] = initialQuoteTypeState;\r\n }\r\n },\r\n SET_PACKAGES(state, { quoteTypeId, packages }) {\r\n state.quoteTypeState[quoteTypeId].packages = packages;\r\n },\r\n SET_NO_PACKAGES_AVAILABLE(state, { quoteTypeId, noPackagesAvailable }) {\r\n state.quoteTypeState[quoteTypeId].noPackagesAvailable = noPackagesAvailable;\r\n },\r\n SET_PACKAGES_ERROR(state, { quoteTypeId, packagesError }) {\r\n state.quoteTypeState[quoteTypeId].packagesError = packagesError;\r\n },\r\n SET_CUSTOM_GEO_MAPS(state, { quoteTypeId, geoMaps }) {\r\n state.quoteTypeState[quoteTypeId].customGeoMaps = geoMaps;\r\n },\r\n SET_CUSTOM_COUNTY_GEO_MAPS(state, { quoteTypeId, customCountyGeoMaps }) {\r\n state.quoteTypeState[quoteTypeId].customCountyGeoMaps = customCountyGeoMaps;\r\n },\r\n ADD_GEO_MAPS(state, { quoteTypeId, geoMaps }) {\r\n const mergedGeos = mergeGeoMaps(\r\n state.quoteTypeState[quoteTypeId].geoMaps,\r\n geoMaps\r\n );\r\n state.quoteTypeState[quoteTypeId].geoMaps = mergedGeos;\r\n },\r\n ADD_CUSTOM_RADIUS_GEO_MAPS(state, { quoteTypeId, geoMaps }) {\r\n state.quoteTypeState[quoteTypeId].customRadiusGeoMaps = [\r\n ...state.quoteTypeState[quoteTypeId].customRadiusGeoMaps,\r\n ...geoMaps,\r\n ];\r\n },\r\n ADD_CUSTOM_COUNTY_GEO_MAPS(state, { quoteTypeId, geoMaps }) {\r\n state.quoteTypeState[quoteTypeId].customCountyGeoMaps = [\r\n ...state.quoteTypeState[quoteTypeId].customCountyGeoMaps,\r\n ...geoMaps,\r\n ];\r\n },\r\n ADD_PACKAGE_GEOS_MAP(state, { quoteTypeId, packageId, geoMaps }) {\r\n const mergedGeos = mergeGeoMaps(\r\n state.quoteTypeState[quoteTypeId].packageGeosMap[packageId],\r\n geoMaps\r\n );\r\n state.quoteTypeState[quoteTypeId].packageGeosMap[packageId] = mergedGeos;\r\n },\r\n DELETE_PACKAGE_GEO_MAPS(state, { quoteTypeId, packageId }) {\r\n delete state.quoteTypeState[quoteTypeId].packageGeosMap[packageId];\r\n },\r\n TOGGLE_SELECTED_GEO_MAPS(\r\n state,\r\n { quoteTypeId, packageId, regionKey, geoMaps }\r\n ) {\r\n if (\r\n state.quoteTypeState[quoteTypeId]?.selectedEstimates[packageId][regionKey]\r\n ) {\r\n delete state.quoteTypeState[quoteTypeId].selectedEstimates[packageId][\r\n regionKey\r\n ];\r\n } else {\r\n state.quoteTypeState[quoteTypeId].selectedEstimates[packageId][\r\n regionKey\r\n ] = geoMaps;\r\n }\r\n },\r\n UPDATE_SELECTED_GEO_MAPS(\r\n state,\r\n { quoteTypeId, packageId, regionKey, geoMaps }\r\n ) {\r\n state.quoteTypeState[quoteTypeId].selectedEstimates[packageId][regionKey] =\r\n geoMaps;\r\n },\r\n DELETE_SELECTED_GEO_MAP_REGION(state, { quoteTypeId, packageId, regionKey }) {\r\n delete state.quoteTypeState[quoteTypeId].selectedEstimates[packageId][\r\n regionKey\r\n ];\r\n },\r\n SWITCH_SELECTED_REGIONS(\r\n state,\r\n { quoteTypeId, packageId, regionKey, regionMap }\r\n ) {\r\n const isMultiState =\r\n Object.keys(regionMap).filter((x) => x.endsWith('State')).length > 1;\r\n\r\n // This mutation assumes we're limited to 1 state and is a wedge until we get full state/county reduction implemented.\r\n // 20210917 : wmw : updated. With the addition of the ability to cross state lines I'm checking for multiple states\r\n // and handling them reasonably appropriately.\r\n\r\n let deleteKeys;\r\n\r\n if (regionKey === 'Custom') {\r\n // Custom column is compatible with all regions.\r\n return;\r\n } else if (regionKey.endsWith('State')) {\r\n // We're selecting a State, so clear out everything else.\r\n\r\n // if multiple states...\r\n if (isMultiState) {\r\n // add all the \"miles\"\r\n\r\n deleteKeys = Object.keys(regionMap).filter(\r\n (x) => x !== regionKey && x.endsWith('Miles')\r\n );\r\n\r\n // walk the \"county\"s and if their state is the same as the region key then add them\r\n\r\n for (const regionName of Object.keys(regionMap).filter((x) =>\r\n x.endsWith('County')\r\n )) {\r\n if (\r\n regionKey.startsWith(regionMap[regionName].geoMaps[0].stateName)\r\n ) {\r\n deleteKeys.push(regionName);\r\n }\r\n }\r\n } else {\r\n deleteKeys = Object.keys(regionMap).filter(\r\n (x) => x !== regionKey && x !== 'Custom'\r\n );\r\n }\r\n } else {\r\n // We're not selecting a State, so only clear the State.\r\n\r\n // if multiple states...\r\n if (isMultiState && regionKey.endsWith('County')) {\r\n // use regionKey to pull data from regionMap and identify state name. Only delete that state\r\n\r\n deleteKeys = Object.keys(regionMap).filter((x) =>\r\n x.startsWith(regionMap[regionKey].geoMaps[0].stateName)\r\n );\r\n } else {\r\n deleteKeys = Object.keys(regionMap).filter((x) => x.endsWith('State'));\r\n }\r\n }\r\n deleteKeys.forEach((regionKey) => {\r\n if (\r\n state.quoteTypeState[quoteTypeId]?.selectedEstimates[packageId][\r\n regionKey\r\n ]\r\n ) {\r\n delete state.quoteTypeState[quoteTypeId].selectedEstimates[packageId][\r\n regionKey\r\n ];\r\n delete state.quoteTypeState[quoteTypeId].addedGeosMap[packageId];\r\n delete state.quoteTypeState[quoteTypeId].removedGeosMap[packageId];\r\n }\r\n });\r\n },\r\n CANCEL_SELECTED_PACKAGES(state, { quoteTypeId, packageId }) {\r\n delete state.quoteTypeState[quoteTypeId].addedGeosMap[packageId];\r\n delete state.quoteTypeState[quoteTypeId].removedGeosMap[packageId];\r\n state.quoteTypeState[quoteTypeId].selectedEstimates[packageId] = {};\r\n },\r\n RESET_SELECTED_ESTIMATES(state, { quoteTypeId }) {\r\n state.quoteTypeState[quoteTypeId].addedGeosMap = {};\r\n state.quoteTypeState[quoteTypeId].removedGeosMap = {};\r\n for (const pkg of state.quoteTypeState[quoteTypeId].packages) {\r\n state.quoteTypeState[quoteTypeId].selectedEstimates[pkg.id] = {};\r\n }\r\n },\r\n ADD_ADDED_GEOS_MAP(state, { quoteTypeId, packageId, geoMap }) {\r\n if (!state.quoteTypeState[quoteTypeId].addedGeosMap[packageId]) {\r\n state.quoteTypeState[quoteTypeId].addedGeosMap[packageId] = [];\r\n }\r\n state.quoteTypeState[quoteTypeId].addedGeosMap[packageId].push(geoMap);\r\n },\r\n ADD_REMOVED_GEOS_MAP(state, { quoteTypeId, geoMap, packageId }) {\r\n if (!state.quoteTypeState[quoteTypeId].removedGeosMap[packageId]) {\r\n state.quoteTypeState[quoteTypeId].removedGeosMap[packageId] = [];\r\n }\r\n\r\n state.quoteTypeState[quoteTypeId].removedGeosMap[packageId].push(geoMap);\r\n },\r\n REMOVE_REMOVED_GEOS_MAP(state, { quoteTypeId, zipCode, packageId }) {\r\n state.quoteTypeState[quoteTypeId].removedGeosMap[packageId] =\r\n state.quoteTypeState[quoteTypeId].removedGeosMap[packageId].filter(\r\n (x) => x.zipCode !== zipCode\r\n );\r\n },\r\n REMOVE_ADDED_GEOS_MAP(state, { quoteTypeId, packageId, geoMap }) {\r\n state.quoteTypeState[quoteTypeId].addedGeosMap[packageId] =\r\n state.quoteTypeState[quoteTypeId].addedGeosMap[packageId].filter(\r\n (x) => x.zipCode !== geoMap.zipCode\r\n );\r\n },\r\n SET_GEO_MAP_ESTIMATE_ERROR(\r\n state,\r\n { quoteTypeId, packageId, regionKey, geoMaps }\r\n ) {\r\n if (!state.quoteTypeState[quoteTypeId].geoMapEstimateErrors[packageId]) {\r\n state.quoteTypeState[quoteTypeId].geoMapEstimateErrors[packageId] = {};\r\n }\r\n state.quoteTypeState[quoteTypeId].geoMapEstimateErrors[packageId][\r\n regionKey\r\n ] = geoMaps;\r\n },\r\n SET_COUNTY_ZIP_GEOS(state, { quoteTypeId, geoMaps }) {\r\n const { countyFipsCode } = geoMaps[0];\r\n state.quoteTypeState[quoteTypeId].countyZipGeosMap[countyFipsCode] =\r\n geoMaps;\r\n },\r\n RESET_CUSTOM_GEO_MAPS(state, { quoteTypeId }) {\r\n state.quoteTypeState[quoteTypeId].customGeoMaps = [];\r\n for (const pkg of state.quoteTypeState[quoteTypeId].packages) {\r\n delete state.quoteTypeState[quoteTypeId].selectedEstimates[pkg.id].Custom;\r\n state.quoteTypeState[quoteTypeId].packageGeosMap[pkg.id] =\r\n state.quoteTypeState[quoteTypeId].packageGeosMap[pkg.id]?.filter(\r\n (geoMap) => !geoMap.isCustomZip\r\n );\r\n }\r\n },\r\n RESET_CUSTOM_RADII(state, { quoteTypeId }) {\r\n const customRadiusKeys = state.quoteTypeState[\r\n quoteTypeId\r\n ].customRadiusGeoMaps.map((r) => `${r.radiusBoundary} Miles`);\r\n const customRadii = state.quoteTypeState[\r\n quoteTypeId\r\n ].customRadiusGeoMaps.map((r) => r.radiusBoundary);\r\n state.quoteTypeState[quoteTypeId].customRadiusGeoMaps = [];\r\n state.quoteTypeState[quoteTypeId].geoMaps = state.quoteTypeState[\r\n quoteTypeId\r\n ].geoMaps.filter((g) => !customRadii.includes(g.radiusBoundary));\r\n for (const pkg of state.quoteTypeState[quoteTypeId].packages) {\r\n for (const key of Object.keys(\r\n state.quoteTypeState[quoteTypeId].selectedEstimates[pkg.id]\r\n )) {\r\n if (customRadiusKeys.includes(key)) {\r\n delete state.quoteTypeState[quoteTypeId].selectedEstimates[pkg.id][\r\n key\r\n ];\r\n }\r\n }\r\n }\r\n },\r\n RESET_CUSTOM_COUNTIES(state, { quoteTypeId }) {\r\n const customCountyKeys = state.quoteTypeState[\r\n quoteTypeId\r\n ].customCountyGeoMaps.map((c) => `${c.countyName} County`);\r\n state.quoteTypeState[quoteTypeId].customCountyGeoMaps = [];\r\n for (const pkg of state.quoteTypeState[quoteTypeId].packages) {\r\n for (const key of Object.keys(\r\n state.quoteTypeState[quoteTypeId].selectedEstimates[pkg.id]\r\n )) {\r\n if (customCountyKeys.includes(key)) {\r\n delete state.quoteTypeState[quoteTypeId].selectedEstimates[pkg.id][\r\n key\r\n ];\r\n }\r\n }\r\n }\r\n },\r\n};\r\n\r\nexport const actions = {\r\n async getAvailableQuoteTypes({ commit, dispatch, state }, parentCompany) {\r\n await dispatch('deselectAllPackages');\r\n\r\n const response = await dispatch('request/get', {\r\n url: `/api/leadtype/quoteTypes/${parentCompany}`,\r\n loadingMutation: 'lookupTool/setLoading',\r\n errorMessage: false,\r\n onError: (error) => {\r\n console.error(error);\r\n },\r\n });\r\n\r\n if (!response) {\r\n return;\r\n }\r\n\r\n commit('SET_AVAILABLE_QUOTE_TYPES', {\r\n quoteTypes: response.data,\r\n resetPreviousState: state.lastParentCompany !== parentCompany,\r\n });\r\n },\r\n\r\n async setAvailableQuoteTypes(\r\n { commit, dispatch, state },\r\n { parentCompany, quoteTypes }\r\n ) {\r\n await dispatch('deselectAllPackages');\r\n\r\n commit('SET_AVAILABLE_QUOTE_TYPES', {\r\n quoteTypes,\r\n resetPreviousState: true,\r\n });\r\n },\r\n\r\n async getDetailedRegionPackageData(\r\n { commit, dispatch, getters, state },\r\n {\r\n parentCompany,\r\n zipCode,\r\n quoteTypeId,\r\n productType,\r\n packageId,\r\n overStateLines,\r\n }\r\n ) {\r\n commit('RESET');\r\n\r\n // If this action is dispatched from the LUT used for creating new channels and not editing an existing channel, cache some info.\r\n if (!packageId) {\r\n commit('setLastParentCompany', parentCompany);\r\n commit('setLastBaseZip', zipCode);\r\n commit('setLastQuoteType', quoteTypeId);\r\n commit('setLastProductType', productType);\r\n }\r\n\r\n commit('setAddCountiesLoading', true);\r\n\r\n const errorMessage = 'Failed to get package regions.';\r\n\r\n let queryParams = !packageId ? '' : `?packageId=${packageId}`;\r\n\r\n if (overStateLines) {\r\n if (queryParams.length > 1) {\r\n queryParams = queryParams + `&overStateLines=${overStateLines}`;\r\n } else {\r\n queryParams = `?overStateLines=${overStateLines}`;\r\n }\r\n }\r\n\r\n const response = await dispatch('request/get', {\r\n url: `/api/territory/lutpackageregion/${parentCompany}/${zipCode}/${quoteTypeId}/${productType}${queryParams}`,\r\n loadingMutation: 'lookupTool/setLoading',\r\n errorMessage,\r\n onError: (error) => {\r\n console.error(error);\r\n commit('SET_PACKAGES_ERROR', { quoteTypeId, errorMessage });\r\n },\r\n });\r\n\r\n if (!response) return;\r\n\r\n if (response.data.packages.length === 0) {\r\n commit('SET_NO_PACKAGES_AVAILABLE', {\r\n quoteTypeId,\r\n noPackagesAvailable: true,\r\n });\r\n return;\r\n }\r\n\r\n commit('SET_PACKAGES', { quoteTypeId, packages: response.data.packages });\r\n commit('setBaseState', response.data.stateName);\r\n commit('setBaseStateAbbreviation', response.data.stateCode);\r\n commit('RESET_SELECTED_ESTIMATES', { quoteTypeId });\r\n\r\n dispatch('addGeoMaps', { quoteTypeId, geoMaps: response.data.zipcodes });\r\n dispatch('getAllGeoMapEstimates', { quoteTypeId });\r\n },\r\n\r\n addGeoMaps({ commit, dispatch, getters, state }, { quoteTypeId, geoMaps }) {\r\n commit('ADD_GEO_MAPS', { quoteTypeId, geoMaps });\r\n\r\n for (const countyGeo of getters.countyGeosByQuoteType[quoteTypeId]) {\r\n if (\r\n !state.quoteTypeState[quoteTypeId].countyZipGeosMap[\r\n countyGeo.countyFipsCode\r\n ]\r\n ) {\r\n dispatch('fetchCountyZipGeos', { quoteTypeId, countyGeo });\r\n }\r\n }\r\n },\r\n\r\n updateSelectedGeos(\r\n { commit, getters, state },\r\n { quoteTypeId, packageId, regionKey }\r\n ) {\r\n const { geoMaps } =\r\n getters.geoEstimateMapByQuoteType[quoteTypeId][packageId][regionKey];\r\n\r\n commit('TOGGLE_SELECTED_GEO_MAPS', {\r\n quoteTypeId,\r\n packageId,\r\n regionKey,\r\n geoMaps,\r\n });\r\n // This is a temporary wedge until we properly handle reducing states to counties.\r\n const regionMap = getters.geoEstimateMapByQuoteType[quoteTypeId][packageId];\r\n commit('SWITCH_SELECTED_REGIONS', {\r\n quoteTypeId,\r\n packageId,\r\n regionKey,\r\n regionMap,\r\n });\r\n },\r\n\r\n deselectAllPackages({ dispatch, state }) {\r\n for (const quoteTypeId of Object.keys(state.quoteTypeState)) {\r\n for (const packageId of Object.keys(\r\n state.quoteTypeState[quoteTypeId].selectedEstimates\r\n )) {\r\n dispatch('cancelSelectedPackage', { quoteTypeId, packageId });\r\n }\r\n }\r\n },\r\n\r\n cancelSelectedPackage({ commit }, { quoteTypeId, packageId }) {\r\n commit('CANCEL_SELECTED_PACKAGES', { quoteTypeId, packageId });\r\n },\r\n\r\n getAllGeoMapEstimates({ commit, dispatch, getters }, { quoteTypeId }) {\r\n commit('RESET_GEO_MAP_ESTIMATES', { quoteTypeId });\r\n\r\n for (const packageId of getters.packageIdsByQuoteType[quoteTypeId]) {\r\n dispatch('getGeoMapEstimate', {\r\n quoteTypeId,\r\n packageId,\r\n geoMaps: getters.allGeosByQuoteType[quoteTypeId],\r\n });\r\n }\r\n },\r\n\r\n getGeoMapEstimate(\r\n { commit, dispatch, state },\r\n // A region key should be specified when fetching estimates for a specific region.\r\n { quoteTypeId, packageId, geoMaps, regionKey = 'all' }\r\n ) {\r\n const newGeoMaps = geoMaps.filter(\r\n (geoMap) =>\r\n !state.quoteTypeState[quoteTypeId].packageGeosMap[packageId]?.some(\r\n (packageGeo) => {\r\n return (\r\n packageGeo.countyFipsCode === geoMap.countyFipsCode &&\r\n packageGeo.countyName === geoMap.countyName &&\r\n packageGeo.isCustomZip === geoMap.isCustomZip &&\r\n packageGeo.radiusBoundary === geoMap.radiusBoundary &&\r\n packageGeo.stateCode === geoMap.stateCode &&\r\n packageGeo.stateName === geoMap.stateName &&\r\n packageGeo.zipCode === geoMap.zipCode\r\n );\r\n }\r\n )\r\n );\r\n\r\n if (newGeoMaps.length === 0) {\r\n return;\r\n }\r\n\r\n const requestPromise = dispatch('request/post', {\r\n url: '/api/territory/lutgeoestimate',\r\n data: { packageId, geoMaps: newGeoMaps },\r\n loadingMutation: 'lookupTool/setLoading',\r\n errorMessage: false,\r\n onError: (error) => {\r\n console.error(error);\r\n commit('SET_GEO_MAP_ESTIMATE_ERROR', {\r\n quoteTypeId,\r\n packageId,\r\n regionKey,\r\n geoMaps: newGeoMaps,\r\n });\r\n },\r\n });\r\n\r\n requestPromise.then((response) => {\r\n if (!response) return;\r\n commit('ADD_PACKAGE_GEOS_MAP', { quoteTypeId, ...response.data });\r\n });\r\n },\r\n\r\n async getCountiesByStateAbbreviationWithDistanceFromZip(\r\n { commit, dispatch, getters },\r\n { stateAbbreviation, zipCode }\r\n ) {\r\n commit('setCountiesInBaseStateError', null);\r\n\r\n const errorMessage = `Failed to get counties in ${stateAbbreviation}.`;\r\n\r\n const response = await dispatch('request/get', {\r\n url: `/api/territory/countiesWithDistance/${stateAbbreviation}/${zipCode}`,\r\n errorMessage,\r\n loadingMutation: 'lookupTool/setAddCountiesLoading',\r\n onError: (error) => {\r\n console.error(error);\r\n commit('setCountiesInBaseStateError', errorMessage);\r\n },\r\n });\r\n\r\n if (!response) {\r\n return;\r\n }\r\n\r\n const counties = response.data.map((countyData) => ({\r\n countyName: countyData.countyName,\r\n countyFipsCode: countyData.countyFipsCode,\r\n stateCode: countyData.stateAbbr,\r\n stateName: countyData.stateName,\r\n estimate: 0,\r\n radiusBoundary: 0,\r\n zipCode: null,\r\n isCustomZip: false,\r\n milesAway: countyData.milesAway,\r\n direction: countyData.direction,\r\n }));\r\n\r\n commit('setCountiesInBaseState', counties);\r\n },\r\n\r\n async getCountiesByZipCodeWithDistanceFromZip(\r\n { commit, dispatch, getters },\r\n { zipCode }\r\n ) {\r\n // get count of items in countiesInBaseState\r\n\r\n commit('RESET_COUNTIES_IN_BASE_STATE');\r\n\r\n commit('setCountiesInBaseStateError', null);\r\n\r\n const errorMessage = `Failed to get counties around ${zipCode}.`;\r\n\r\n const response = await dispatch('request/get', {\r\n url: `/api/territory/countiesWithDistanceZipOnly/${zipCode}`,\r\n errorMessage,\r\n loadingMutation: 'lookupTool/setAddCountiesLoading',\r\n onError: (error) => {\r\n console.error(error);\r\n commit('setCountiesInBaseStateError', errorMessage);\r\n },\r\n });\r\n\r\n if (!response) {\r\n return;\r\n }\r\n\r\n const counties = response.data.map((countyData) => ({\r\n countyName: countyData.countyName,\r\n countyFipsCode: countyData.countyFipsCode,\r\n stateCode: countyData.stateAbbr,\r\n stateName: countyData.stateName,\r\n estimate: 0,\r\n radiusBoundary: 0,\r\n zipCode: null,\r\n isCustomZip: false,\r\n milesAway: countyData.milesAway,\r\n direction: countyData.direction,\r\n }));\r\n\r\n commit('setCountiesInBaseState', counties);\r\n },\r\n\r\n async addCustomRadius(\r\n { commit, dispatch, getters },\r\n { quoteTypeId, radius, zipCode }\r\n ) {\r\n if (getters.radiusBoundariesByQuoteType[quoteTypeId].includes(radius)) {\r\n dispatch('toastr/info', 'Radius Already Exists', { root: true });\r\n return true;\r\n }\r\n\r\n const response = await dispatch('request/get', {\r\n url: `/api/territory/getzipsinradius/${zipCode}/${radius}`,\r\n loadingMutation: 'lookupTool/setAddRadiusLoading',\r\n errorMessage: 'Failed to set custom zip radius',\r\n onError: console.error,\r\n });\r\n\r\n if (!response) {\r\n return false;\r\n }\r\n\r\n const { data: geoMaps } = response;\r\n\r\n commit('ADD_GEO_MAPS', { quoteTypeId, geoMaps });\r\n commit('ADD_CUSTOM_RADIUS_GEO_MAPS', { quoteTypeId, geoMaps });\r\n\r\n const regionKey = `${groupNumbers(radius)} Miles`;\r\n for (const packageId of getters.packageIdsByQuoteType[quoteTypeId]) {\r\n dispatch('getGeoMapEstimate', {\r\n quoteTypeId,\r\n packageId,\r\n regionKey,\r\n geoMaps,\r\n });\r\n }\r\n\r\n return true;\r\n },\r\n\r\n async addCustomList(\r\n { commit, dispatch, getters },\r\n { quoteTypeId, zipCodes }\r\n ) {\r\n if (zipCodes.length === 0) {\r\n commit('RESET_CUSTOM_GEO_MAPS', { quoteTypeId });\r\n return;\r\n }\r\n\r\n const response = await dispatch('request/post', {\r\n url: '/api/territory/custom-zips',\r\n data: zipCodes,\r\n loadingMutation: 'lookupTool/setAddListLoading',\r\n errorMessage: 'Failed to add custom list.',\r\n onError: console.error,\r\n });\r\n\r\n if (!response) {\r\n return false;\r\n }\r\n\r\n if (zipCodes.length !== response.data.length) {\r\n // Need to compare arrays and display list of ones missing from response.data\r\n\r\n const badZipcodeList = zipCodes.filter(function (searchedZips) {\r\n return (\r\n response.data.filter(function (returnedZips) {\r\n return returnedZips.zipCode === searchedZips;\r\n }).length === 0\r\n );\r\n });\r\n\r\n dispatch(\r\n 'toastr/warning',\r\n 'The following zipcodes could not be found: ' +\r\n badZipcodeList.join(', '),\r\n {\r\n root: true,\r\n }\r\n );\r\n }\r\n\r\n if (state.quoteTypeState[quoteTypeId].customGeoMaps.length > 0) {\r\n commit('RESET_CUSTOM_GEO_MAPS', { quoteTypeId });\r\n }\r\n\r\n const { data: geoMaps } = response;\r\n const regionKey = 'Custom';\r\n\r\n commit('SET_CUSTOM_GEO_MAPS', { quoteTypeId, geoMaps });\r\n\r\n for (const packageId of getters.packageIdsByQuoteType[quoteTypeId]) {\r\n dispatch('getGeoMapEstimate', {\r\n quoteTypeId,\r\n packageId,\r\n regionKey,\r\n geoMaps,\r\n });\r\n }\r\n\r\n return true;\r\n },\r\n\r\n async addCustomCounties(\r\n { commit, dispatch, getters },\r\n { quoteTypeId, counties }\r\n ) {\r\n commit('ADD_CUSTOM_COUNTY_GEO_MAPS', { quoteTypeId, geoMaps: counties });\r\n\r\n for (const packageId of getters.packageIdsByQuoteType[quoteTypeId]) {\r\n dispatch('getGeoMapEstimate', {\r\n quoteTypeId,\r\n packageId,\r\n geoMaps: counties,\r\n });\r\n }\r\n\r\n for (const countyGeo of counties) {\r\n dispatch('fetchCountyZipGeos', { quoteTypeId, countyGeo });\r\n }\r\n },\r\n\r\n retryGeoMapEstimateErrors(\r\n { commit, dispatch, getters, state },\r\n { quoteTypeId }\r\n ) {\r\n const errorEntries = Object.entries(\r\n state.quoteTypeState[quoteTypeId].geoMapEstimateErrors\r\n );\r\n for (const [packageId, regionMap] of errorEntries) {\r\n if (regionMap.all) {\r\n dispatch('getGeoMapEstimate', {\r\n quoteTypeId,\r\n packageId,\r\n geoMaps: getters.allGeosByQuoteType[quoteTypeId],\r\n });\r\n } else {\r\n const regionMap =\r\n state.quoteTypeState[quoteTypeId].geoMapEstimateErrors[packageId];\r\n const regionMapEntries = Object.entries(regionMap);\r\n for (const [regionKey, geoMaps] of regionMapEntries) {\r\n dispatch('getGeoMapEstimate', {\r\n quoteTypeId,\r\n packageId,\r\n regionKey,\r\n geoMaps,\r\n });\r\n }\r\n }\r\n }\r\n commit('RESET_GEO_MAP_ESTIMATE_ERRORS', { quoteTypeId });\r\n },\r\n\r\n async fetchAddedGeo(\r\n { commit, dispatch, state },\r\n { quoteTypeId, zipCode, packageId }\r\n ) {\r\n const isRemoved = state.quoteTypeState[quoteTypeId].removedGeosMap[\r\n packageId\r\n ]?.some((x) => x.zipCode === zipCode);\r\n if (isRemoved) {\r\n commit('REMOVE_REMOVED_GEOS_MAP', { quoteTypeId, packageId, zipCode });\r\n return;\r\n }\r\n\r\n const responses = await Promise.all([\r\n dispatch('request/post', {\r\n url: '/api/territory/lutgeoestimate',\r\n data: {\r\n packageId,\r\n geoMaps: [{ zipCode }],\r\n },\r\n loadingMutation: 'lookupTool/setAddLoading',\r\n errorMessage: 'Failed to get added estimate.',\r\n onError: console.error,\r\n }),\r\n dispatch('request/get', {\r\n url: `/api/territory/zipcode/${zipCode}`,\r\n loadingMutation: 'lookupTool/setAddLoading',\r\n errorMessage: 'Failed to get added zip code.',\r\n onError: console.error,\r\n }),\r\n ]);\r\n\r\n const estimateResponse = responses[0];\r\n\r\n if (!estimateResponse) return;\r\n\r\n const zipCodeResponse = responses[1];\r\n\r\n if (!zipCodeResponse) return;\r\n\r\n const { stateName } = zipCodeResponse.data[0];\r\n const regionKey = `${stateName} State`;\r\n const isStateSelected =\r\n !!state.quoteTypeState[quoteTypeId].selectedEstimates[packageId][\r\n regionKey\r\n ];\r\n\r\n if (isStateSelected) {\r\n dispatch(\r\n 'toastr/warning',\r\n 'Added zip is already included in a selected state.',\r\n { root: true }\r\n );\r\n return;\r\n }\r\n\r\n commit('ADD_ADDED_GEOS_MAP', {\r\n quoteTypeId,\r\n packageId,\r\n geoMap: {\r\n ...estimateResponse.data.geoMaps[0],\r\n countyFipsCode: zipCodeResponse.data[0].countyCode,\r\n countyName: zipCodeResponse.data[0].countyName,\r\n stateCode: zipCodeResponse.data[0].stateAbbr,\r\n stateName: zipCodeResponse.data[0].stateName,\r\n },\r\n });\r\n },\r\n\r\n async removeGeo(\r\n { commit, dispatch, state },\r\n { quoteTypeId, zipCode, packageId }\r\n ) {\r\n const packageGeo = state.quoteTypeState[quoteTypeId].packageGeosMap[\r\n packageId\r\n ].find((x) => x.zipCode === zipCode);\r\n\r\n if (packageGeo) {\r\n commit('ADD_REMOVED_GEOS_MAP', {\r\n quoteTypeId,\r\n geoMap: packageGeo,\r\n packageId,\r\n });\r\n } else {\r\n const addedGeo = state.quoteTypeState[quoteTypeId].addedGeosMap[\r\n packageId\r\n ].find((x) => x.zipCode === zipCode);\r\n\r\n if (addedGeo) {\r\n commit('REMOVE_ADDED_GEOS_MAP', {\r\n quoteTypeId,\r\n geoMap: addedGeo,\r\n packageId,\r\n });\r\n }\r\n }\r\n },\r\n\r\n async reduceCountyGeo(\r\n { dispatch, commit, getters },\r\n { quoteTypeId, zipCode, packageId }\r\n ) {\r\n commit('setRemoveLoading', true);\r\n\r\n const countyZipGeo = getters.allCountyZipGeosByQuoteType[quoteTypeId].find(\r\n (x) => x.zipCode === zipCode\r\n );\r\n\r\n const countyZipGeos =\r\n state.quoteTypeState[quoteTypeId].countyZipGeosMap[\r\n countyZipGeo.countyFipsCode\r\n ];\r\n\r\n const response = await dispatch('request/post', {\r\n url: '/api/territory/lutgeoestimate',\r\n data: {\r\n packageId,\r\n geoMaps: countyZipGeos,\r\n },\r\n errorMessage: false,\r\n onError: console.error,\r\n });\r\n\r\n if (!response) {\r\n commit('setRemoveLoading', false);\r\n return;\r\n }\r\n\r\n commit('ADD_REMOVED_GEOS_MAP', {\r\n quoteTypeId,\r\n packageId,\r\n geoMap: countyZipGeo,\r\n });\r\n\r\n const regionKey = `${countyZipGeo.countyName} County`;\r\n const { geoMaps } = response.data;\r\n commit('ADD_PACKAGE_GEOS_MAP', { quoteTypeId, packageId, geoMaps });\r\n commit('UPDATE_SELECTED_GEO_MAPS', {\r\n quoteTypeId,\r\n packageId,\r\n regionKey,\r\n geoMaps,\r\n });\r\n\r\n commit('setRemoveLoading', false);\r\n },\r\n\r\n async fetchCountyZipGeos({ dispatch, commit }, { quoteTypeId, countyGeo }) {\r\n const { stateCode, countyFipsCode } = countyGeo;\r\n const response = await dispatch('request/get', {\r\n url: `/api/territory/states/${stateCode}/${countyFipsCode}`,\r\n errorMessage: 'Failed to get county zip geos.',\r\n onError: console.error,\r\n });\r\n\r\n if (!response) {\r\n return;\r\n }\r\n\r\n const geoMaps = response.data.map((x) => ({\r\n stateCode: x.stateAbbr,\r\n stateName: x.stateName,\r\n countyName: x.countyName,\r\n countyFipsCode: x.countyCode,\r\n zipCode: x.zipCode,\r\n estimate: 0,\r\n radiusBoundary: 0,\r\n }));\r\n\r\n commit('SET_COUNTY_ZIP_GEOS', { quoteTypeId, geoMaps });\r\n },\r\n\r\n async submitChannelEstimate({ commit, dispatch, getters, rootState }) {\r\n const clientId = rootState.signup.signupInfo.client.id;\r\n\r\n const channels = Object.values(\r\n getters.consolidatedEstimatesByQuoteType\r\n ).flatMap((estimates) =>\r\n Object.values(estimates).map((details) => ({\r\n packageId: details.package.id,\r\n estimate: details.geos.reduce((sum, geo) => (sum += geo.estimate), 0),\r\n geoTerritories: details.geos,\r\n }))\r\n );\r\n\r\n const response = await dispatch('request/post', {\r\n url: '/api/territory/estimatedChannel',\r\n data: {\r\n clientId,\r\n channels,\r\n },\r\n loadingMutation: 'lookupTool/setLoading',\r\n errorMessage: 'Failed to get added estimate.',\r\n onError: console.error,\r\n });\r\n\r\n if (!response) {\r\n return false;\r\n }\r\n\r\n for (const channel of response.data) {\r\n commit('signup/ADD_CHANNEL', channel, { root: true });\r\n await dispatch('signup/saveSignupBlob', null, { root: true });\r\n }\r\n\r\n return true;\r\n },\r\n\r\n // Version of estimate handler for existing clients vs IOs\r\n async createNewChannelsFromEstimate(\r\n { commit, dispatch, getters, rootState },\r\n { upsellRep, upsellPromo }\r\n ) {\r\n const clientId = rootState.client.client.id;\r\n\r\n const channels = Object.values(\r\n getters.consolidatedEstimatesByQuoteType\r\n ).flatMap((estimates) =>\r\n Object.values(estimates).map((details) => ({\r\n packageId: details.package.id,\r\n estimate: details.geos.reduce((sum, geo) => (sum += geo.estimate), 0),\r\n geoTerritories: details.geos,\r\n }))\r\n );\r\n\r\n const response = await dispatch('request/post', {\r\n url: '/api/territory/createLutChannels',\r\n data: {\r\n clientId,\r\n channels,\r\n upsellRep,\r\n upsellPromo,\r\n },\r\n loadingMutation: 'lookupTool/setLoading',\r\n errorMessage: 'Failed to create new channels.',\r\n onError: console.error,\r\n });\r\n\r\n if (!response) {\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n\r\n resetCustomEstimates({ commit }, { quoteTypeId }) {\r\n commit('RESET_CUSTOM_RADII', { quoteTypeId });\r\n commit('RESET_CUSTOM_COUNTIES', { quoteTypeId });\r\n commit('RESET_CUSTOM_GEO_MAPS', { quoteTypeId });\r\n },\r\n\r\n async getCurrentVolume({ commit, dispatch, state }, clientQuoteTypeId) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/leads/${clientQuoteTypeId}/lead-count`,\r\n loadingMutation: 'lookupTool/setLoading',\r\n errorMessage: false,\r\n onError: (error) => {\r\n console.error(error);\r\n },\r\n });\r\n\r\n if (!response) {\r\n return;\r\n }\r\n\r\n commit('setCurrentVolume', response.data.leadCount);\r\n },\r\n\r\n async getAccountReps({ commit, dispatch }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/Clients/ACCOUNT_REPS/options',\r\n loadingMutation: 'lookupTool/setLoading',\r\n onError: console.error,\r\n });\r\n\r\n commit('setAccountReps', response.data);\r\n },\r\n};\r\n\r\nfunction mergeGeoMaps(currentGeos, addedGeos) {\r\n if (!currentGeos) {\r\n return addedGeos;\r\n }\r\n\r\n // Get the addedGeos where they don't exist in currentGeos.\r\n // If higher radius comes in, it's ignored because we already have it in a lower radius.\r\n const newGeos = addedGeos.filter((added) => {\r\n const existing = currentGeos.find(\r\n (existing) =>\r\n (added.zipCode && added.zipCode === existing.zipCode) ||\r\n (!added.zipCode &&\r\n !existing.zipCode &&\r\n added.countyFipsCode === existing.countyFipsCode)\r\n );\r\n\r\n return (\r\n !existing ||\r\n (existing && added.isCustomZip) ||\r\n (added.radiusBoundary > 0 &&\r\n added.radiusBoundary <= existing.radiusBoundary)\r\n );\r\n });\r\n\r\n // Existing geoMaps with updated geos filtered out.\r\n const existingGeos = currentGeos.filter((existing) =>\r\n newGeos.every(\r\n (updated) =>\r\n updated.zipCode !== existing.zipCode ||\r\n (!updated.zipCode &&\r\n !existing.zipCode &&\r\n updated.countyFipsCode !== existing.countyFipsCode) ||\r\n (updated.zipCode === existing.zipCode &&\r\n (updated.isCustomZip || existing.isCustomZip))\r\n )\r\n );\r\n\r\n return existingGeos.concat(newGeos);\r\n}\r\n\r\nfunction addToEstimateMap(estimateMap, packageId, regionKey, geoMap) {\r\n if (!estimateMap[packageId]) {\r\n estimateMap[packageId] = {};\r\n }\r\n\r\n if (!estimateMap[packageId][regionKey]) {\r\n estimateMap[packageId][regionKey] = {\r\n estimate: 0,\r\n geoMaps: [],\r\n };\r\n }\r\n\r\n estimateMap[packageId][regionKey].estimate += geoMap.estimate;\r\n estimateMap[packageId][regionKey].geoMaps.push(geoMap);\r\n}\r\n\r\nfunction buildInitialQuoteTypeState(quoteType) {\r\n return {\r\n id: quoteType.quoteTypeId,\r\n label: quoteType.leadTypeLabel,\r\n serviceId: quoteType.serviceId,\r\n packages: [],\r\n packagesError: null,\r\n noPackagesAvailable: false,\r\n geoMaps: [],\r\n customGeoMaps: [],\r\n customRadiusGeoMaps: [],\r\n customCountyGeoMaps: [],\r\n addedGeosMap: {},\r\n removedGeosMap: {},\r\n packageGeosMap: {},\r\n selectedEstimates: {},\r\n geoMapEstimateErrors: {},\r\n countyZipGeosMap: {},\r\n };\r\n}\r\n","import _ from '@/utils/store-helpers';\r\n\r\nexport const state = {\r\n lookupValues: [],\r\n isLoading: false,\r\n sortBy: '',\r\n pagination: {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalRecords: 0,\r\n },\r\n};\r\nexport const getters = {\r\n isLoading: (state) => state.isLoading,\r\n lookupValues: (state) => state.lookupValues,\r\n currentPage: (state) => state.pagination.currentPage,\r\n pagination: (state) => state.pagination,\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('isLoading'),\r\n setLookupValue: _.set('lookupValues'),\r\n setPagination: _.set('pagination'),\r\n SET_PAGE(state, pageNumber) {\r\n state.pagination.currentPage = pageNumber;\r\n },\r\n SET_PAGE_SIZE(state, pageSize) {\r\n state.pagination.pageSize = pageSize;\r\n },\r\n SET_SORT_BY(state, sortBy) {\r\n state.sortBy = sortBy;\r\n },\r\n};\r\n\r\nexport const actions = {\r\n async getLookupValues({ dispatch, commit, state }) {\r\n const response = await dispatch('request/get', {\r\n url: 'api/lookupvalue',\r\n errorMessage: 'failed to get lookup values',\r\n loadingMutation: 'lookupValue/setLoading',\r\n params: { ...state.pagination, sortBy: state.sortBy },\r\n });\r\n if (!response) {\r\n return;\r\n }\r\n commit('setLookupValue', response.data.items);\r\n commit('setPagination', response.data.metaData);\r\n },\r\n async setPage({ dispatch, commit }, pageNumber) {\r\n commit('SET_PAGE', pageNumber);\r\n dispatch('getLookupValues');\r\n },\r\n async setSortBy({ dispatch, commit }, sortBy) {\r\n commit('SET_SORT_BY', sortBy);\r\n dispatch('getLookupValues');\r\n },\r\n async setPageSize({ dispatch, commit }, pageSize) {\r\n commit('SET_PAGE_SIZE', pageSize);\r\n dispatch('getLookupValues');\r\n },\r\n async save({ dispatch, commit }, lookupValue) {\r\n const response = await dispatch('request/post', {\r\n url: 'api/lookupValue/',\r\n errorMessage: 'failed to save lookup values',\r\n loadingMutation: 'lookupValue/setLoading',\r\n params: lookupValue,\r\n });\r\n return response;\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\nimport axiosInstance from '@/plugins/axios';\r\nimport errorTracker from '@/plugins/errorTracker';\r\nimport Notifications from '@/components/notifications/Notifications';\r\n\r\nexport const state = {\r\n loading: false,\r\n notifications: [],\r\n all: [],\r\n includeExpired: false,\r\n};\r\n\r\nexport const getters = {\r\n loading: (state) => state.loading,\r\n\r\n clientNotifications: (state) => state.notifications,\r\n\r\n bannerNotifications: (state, { clientNotifications }) => {\r\n return clientNotifications.filter((n) => {\r\n return n.type === Notifications.types.BANNER;\r\n });\r\n },\r\n\r\n dialogNotifications: (state, { clientNotifications }) => {\r\n return clientNotifications.filter((n) => {\r\n return n.type === Notifications.types.DIALOG;\r\n });\r\n },\r\n\r\n trayNotifications: (state, { clientNotifications }) => {\r\n return clientNotifications.filter((n) => {\r\n return n.type === Notifications.types.TRAY;\r\n });\r\n },\r\n\r\n trayNotificationCount: (state, { trayNotifications }) => {\r\n return trayNotifications.length;\r\n },\r\n\r\n allNotifications: (state) => state.all,\r\n\r\n includeExpired: (state) => state.includeExpired,\r\n};\r\n\r\nexport const actions = {\r\n async fetchAllNotifications({ commit, dispatch }, includeExpired = false) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .get('/api/notification/admin', {\r\n params: { includeExpired },\r\n })\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({ exception: response });\r\n console.error(response);\r\n dispatch('toastr/error', 'Failed to get Notifications.', { root: true });\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n commit('setAll', response.data);\r\n commit('setLoading', false);\r\n },\r\n\r\n async fetchClientNotifications({ commit, dispatch, rootGetters }) {\r\n if (!rootGetters['client/hasClient']) {\r\n return;\r\n }\r\n const response = await axiosInstance\r\n .get('/api/notification')\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({ exception: response });\r\n console.error(response);\r\n dispatch('toastr/error', 'Failed to get Client Notifications.', {\r\n root: true,\r\n });\r\n return;\r\n }\r\n const notifications = Notifications.filterSeen(response.data);\r\n\r\n notifications.forEach((e) => {\r\n // e.content = sanitizeHtml(e.content);\r\n // e.headline = sanitizeHtml(e.headline);\r\n // e.url = sanitizeHtml(e.url);\r\n });\r\n commit('setNotifications', notifications);\r\n },\r\n async upsertNotification(\r\n { commit, dispatch },\r\n { notificationModel, callback }\r\n ) {\r\n commit('setLoading', true);\r\n\r\n const method = notificationModel.id ? 'put' : 'post';\r\n\r\n // notificationModel.content = sanitizeHtml(notificationModel.content);\r\n // notificationModel.headline = sanitizeHtml(notificationModel.headline);\r\n // notificationModel.url = sanitizeHtml(notificationModel.url);\r\n\r\n const response = await axiosInstance[method](\r\n '/api/notification',\r\n notificationModel\r\n ).catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({ exception: response });\r\n console.error(response);\r\n dispatch('toastr/error', 'Failed to create notification.', {\r\n root: true,\r\n });\r\n commit('setLoading', false);\r\n callback && callback(response);\r\n return;\r\n }\r\n\r\n if (method === 'put') {\r\n commit('UPDATE_NOTIFICATION', notificationModel);\r\n } else {\r\n commit('ADD_NOTIFICATION', response.data);\r\n }\r\n\r\n commit('setLoading', false);\r\n callback && callback();\r\n },\r\n\r\n async deleteNotification({ commit, dispatch }, notificationId) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .delete(`/api/notification/${notificationId}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n errorTracker.trackException({ exception: response });\r\n console.error(response);\r\n dispatch('toastr/error', 'Failed to delete notification.', {\r\n root: true,\r\n });\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n commit('DELETE_NOTIFICATION', notificationId);\r\n commit('setLoading', false);\r\n },\r\n\r\n dismissNotification({ commit, state }, notificationId) {\r\n Notifications.dismiss(notificationId);\r\n\r\n const newNotifications = Notifications.filterSeen(state.notifications);\r\n\r\n commit('setNotifications', newNotifications);\r\n },\r\n\r\n changeIncludeExpired({ commit, dispatch }, includeExpired) {\r\n commit('setIncludeExpired', includeExpired);\r\n dispatch('fetchAllNotifications', includeExpired);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('loading'),\r\n setNotifications: _.set('notifications'),\r\n setAll: _.set('all'),\r\n setIncludeExpired: _.set('includeExpired'),\r\n\r\n ADD_NOTIFICATION: (state, notification) => {\r\n state.all.unshift(notification);\r\n },\r\n\r\n UPDATE_NOTIFICATION: (state, notification) => {\r\n for (let i = 0; i < state.all.length; i++) {\r\n if (state.all[i].id === notification.id) {\r\n state.all[i] = notification;\r\n return;\r\n }\r\n }\r\n },\r\n\r\n DELETE_NOTIFICATION: (state, notificationId) => {\r\n state.all = state.all.filter((n) => n.id !== notificationId);\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\n\r\n// initial state\r\nexport const state = {\r\n parentCompanyLoading: false,\r\n parentCompanyOptions: [],\r\n statusLoading: false,\r\n statusOptions: [],\r\n loyaltyLevelLoading: false,\r\n loyaltyLevelOptions: [],\r\n};\r\n\r\n// actions\r\nexport const actions = {\r\n async getParentCompanyOptions({ commit, dispatch }) {\r\n if (\r\n this.parentCompanyOptions === undefined ||\r\n this.parentCompanyOptions.length === 0\r\n ) {\r\n const parentCompanies = await dispatch('request/get', {\r\n url: `/api/Clients/AGENCY/options`,\r\n errorMessage: 'Failed to get parent companies',\r\n loadingMutation: 'options/setParentCompanyLoading',\r\n });\r\n commit('setParentCompanies', parentCompanies.data);\r\n }\r\n return this.parentCompanyOptions;\r\n },\r\n async getClientStatusOptions({ commit, dispatch }) {\r\n if (this.statusOptions === undefined || this.statusOptions.length === 0) {\r\n const statuses = await dispatch('request/get', {\r\n url: `/api/Clients/CLIENT_STATUS/options`,\r\n errorMessage: 'Failed to get statuses',\r\n loadingMutation: 'options/setStatusLoading',\r\n });\r\n\r\n commit('setStatusOptions', statuses.data);\r\n }\r\n return this.statusOptions;\r\n },\r\n\r\n async getLoyaltyLevelOptions({ commit, dispatch }) {\r\n if (\r\n this.loyaltyLevelOptions === undefined ||\r\n this.loyaltyLevelOptions.length === 0\r\n ) {\r\n const levels = await dispatch('request/get', {\r\n url: `/api/Clients/CLIENT_LEVEL/options`,\r\n errorMessage: 'Failed to get levels',\r\n loadingMutation: 'options/setLoyaltyLevelLoading',\r\n });\r\n\r\n commit('setLoyaltyLevelOptions', levels.data);\r\n }\r\n return this.loyaltyLevelOptions;\r\n },\r\n};\r\n\r\n// mutations\r\nexport const mutations = {\r\n setParentCompanyLoading: _.set('parentCompanyLoading'),\r\n setParentCompanies: _.set('parentCompanyOptions'),\r\n setStatusLoading: _.set('setStatusLoading'),\r\n setStatusOptions: _.set('statusOptions'),\r\n setLoyaltyLevelLoading: _.set('loyaltyLevelLoading'),\r\n setLoyaltyLevelOptions: _.set('loyaltyLevelOptions'),\r\n};\r\n\r\nexport const getters = {\r\n parentCompanyOptions: (state) => state.parentCompanyOptions,\r\n parentCompanyLoading: (state) => state.parentCompanyLoading,\r\n clientStatusOptions: (state) => state.statusOptions,\r\n clientStatusLoading: (state) => state.statusLoading,\r\n loyaltyLevelOptions: (state) => state.loyaltyLevelOptions,\r\n loyaltyLevelLoading: (state) => state.statusLoading,\r\n};\r\n","import _ from '@/utils/store-helpers';\r\n\r\nexport const state = {\r\n all: [],\r\n isSearching: false,\r\n isLoading: false,\r\n filters: [],\r\n priceModifiers: [],\r\n excludableClients: [],\r\n vendors: [],\r\n editingProduct: null,\r\n deepSearchIds: [],\r\n};\r\n\r\nexport const getters = {\r\n packages: (state) => state.all,\r\n\r\n isSearching: (state) => state.isSearching,\r\n\r\n isLoading: (state) => state.isLoading,\r\n\r\n filters: (state) => state.filters,\r\n\r\n priceModifiers: (state) => state.priceModifiers,\r\n\r\n excludableClients: (state) => state.excludableClients,\r\n\r\n vendors: (state) => state.vendors,\r\n\r\n editingProduct: (state) => state.editingProduct,\r\n\r\n deepSearchIds: (state) => state.deepSearchIds,\r\n};\r\n\r\nexport const mutations = {\r\n setAll: _.set('all'),\r\n setIsSearching: _.set('isSearching'),\r\n setIsLoading: _.set('isLoading'),\r\n setFilters: _.set('filters'),\r\n setPriceModifiers: _.set('priceModifiers'),\r\n setEditingProduct: _.set('editingProduct'),\r\n setExcludableClients: _.set('excludableClients'),\r\n setVendors: _.set('vendors'),\r\n setDeepSearchIds: _.set('deepSearchIds'),\r\n};\r\n\r\nexport const actions = {\r\n async fetchProductSummaries({ commit, dispatch }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/packages',\r\n errorMessage: 'Failed to get products summary.',\r\n loadingMutation: 'packages/setIsSearching',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setAll', response.data);\r\n },\r\n\r\n async fetchPackage({ dispatch }, packageId) {\r\n return requestPackage(packageId, dispatch);\r\n },\r\n\r\n async getEditingProduct({ commit, dispatch }, packageId) {\r\n commit('setEditingProduct', await requestPackage(packageId, dispatch));\r\n },\r\n\r\n setEditingProduct({ commit }, product) {\r\n commit('setEditingProduct', product);\r\n },\r\n\r\n async createProduct({ commit, dispatch }, product) {\r\n const response = await dispatch('request/post', {\r\n url: '/api/packages',\r\n data: product,\r\n errorMessage: 'Failed to create product.',\r\n loadingMutation: 'packages/setIsLoading',\r\n });\r\n\r\n if (!response) return false;\r\n\r\n dispatch('fetchProductSummaries');\r\n return true;\r\n },\r\n\r\n async updateProduct({ commit, dispatch }, product) {\r\n const response = await dispatch('request/put', {\r\n url: `/api/packages/${product.id}`,\r\n data: product,\r\n errorMessage: 'Failed to update product.',\r\n loadingMutation: 'packages/setIsLoading',\r\n });\r\n\r\n if (!response) return false;\r\n\r\n dispatch('fetchProductSummaries');\r\n return true;\r\n },\r\n\r\n async searchDeep({ commit, dispatch }, searchText) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/packages/deep',\r\n params: { searchText },\r\n errorMessage: 'Failed to search for given Id.',\r\n loadingMutation: 'packages/setIsSearching',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setDeepSearchIds', response.data);\r\n },\r\n\r\n async clearDeepSearch({ commit }) {\r\n commit('setDeepSearchIds', []);\r\n },\r\n\r\n async deleteProduct({ dispatch }, productId) {\r\n const response = await dispatch('request/delete', {\r\n url: `/api/packages/${productId}`,\r\n errorMessage: 'Failed to delete product.',\r\n loadingMutation: 'packages/setIsLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n dispatch('fetchProductSummaries');\r\n },\r\n\r\n async getFilters({ commit, dispatch }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/packages/filters',\r\n errorMessage: 'Failed to get filters.',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setFilters', response.data);\r\n },\r\n\r\n async getPriceModifiers({ commit, dispatch }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/packages/price-modifiers',\r\n errorMessage: 'Failed to get price modifiers.',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setPriceModifiers', response.data);\r\n },\r\n\r\n async getExcludableClients({ commit, dispatch }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/packages/excludeable/clients',\r\n errorMessage: 'Failed to get excludable clients.',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setExcludableClients', response.data);\r\n },\r\n\r\n async getVendors({ commit, dispatch }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/vendors',\r\n errorMessage: 'Failed to get vendors.',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setVendors', response.data);\r\n },\r\n};\r\n\r\nasync function requestPackage(packageId, dispatch) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/packages/${packageId}`,\r\n errorMessage: 'Failed to get product.',\r\n loadingMutation: 'packages/setIsLoading',\r\n });\r\n\r\n return response?.data;\r\n}\r\n","import { axiosInstance } from '@/plugins/axios';\r\n\r\nimport _ from '@/utils/store-helpers';\r\n\r\n// initial state\r\nexport const state = {\r\n promos: [],\r\n promotions: [],\r\n loading: false,\r\n};\r\n\r\n// getters\r\nexport const getters = {};\r\n\r\n// mutations\r\nexport const mutations = {\r\n setPromos: _.set('promos', false),\r\n setPromotions: _.set('promotions'),\r\n\r\n SET_PROMOTIONS(state, newValue) {\r\n state.promotions = newValue;\r\n },\r\n\r\n promotionList(state) {\r\n return state.promotions;\r\n },\r\n\r\n SET_LOADING(state, isLoading) {\r\n state.loading = isLoading;\r\n },\r\n};\r\n\r\n// actions\r\nexport const actions = {\r\n async getPromos({ commit }) {\r\n try {\r\n var results = await axiosInstance.get(`/api/clients/promos`);\r\n commit('setPromos', results.data);\r\n return results.data;\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n },\r\n async getCurrentPromotions({ commit, state }, parentCompany) {\r\n const response = await axiosInstance\r\n .get(`/api/sales/promotions/${parentCompany}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n return;\r\n }\r\n\r\n commit('SET_PROMOTIONS', response.data);\r\n },\r\n async insertPendingPromo({ commit, dispatch }, promoDetails) {\r\n commit('SET_LOADING', true);\r\n },\r\n};\r\n","const defaultMatchPromos = {\r\n Call: {\r\n percent: null,\r\n value: 0,\r\n maximum: 0,\r\n },\r\n Web: {\r\n percent: null,\r\n value: 0,\r\n maximum: 0,\r\n },\r\n errors: [],\r\n};\r\n\r\nexport const state = {\r\n matchPromos: { ...defaultMatchPromos },\r\n};\r\n\r\nexport const getters = {\r\n getMatchPromoValueByProduct: (state) => (product) =>\r\n state.matchPromos[product].value,\r\n getMatchPromoPercentByProduct: (state) => (product) =>\r\n state.matchPromos[product].percent,\r\n getMatchPromoMaximumByProduct: (state) => (product) =>\r\n state.matchPromos[product].maximum,\r\n getErrors: (state) => (category) => state[category].errors,\r\n getMatchPromos: (state) => {\r\n const { errors: _, ...promos } = state.matchPromos;\r\n return promos;\r\n },\r\n};\r\n\r\nexport const actions = {\r\n setMatchPromosFromSource({ commit, state }, matchPromos) {\r\n const cleanedPromos = { ...defaultMatchPromos };\r\n for (const key in matchPromos) {\r\n cleanedPromos[key] = {\r\n ...defaultMatchPromos[key],\r\n ...matchPromos[key],\r\n };\r\n }\r\n commit('SET_MATCH_PROMOS', cleanedPromos);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n SET_MATCH_PROMO(state, { product, ...promoValues }) {\r\n state.matchPromos[product] = {\r\n ...state.matchPromos[product],\r\n ...promoValues,\r\n };\r\n },\r\n ADD_ERROR(state, { category, ...newError }) {\r\n state[category].errors = [\r\n ...state[category].errors.filter((x) => x.product !== newError.product),\r\n newError,\r\n ];\r\n },\r\n REMOVE_ERROR(state, { category, product }) {\r\n state[category].errors = [\r\n ...state[category].errors.filter((x) => x.product !== product),\r\n ];\r\n },\r\n SET_MATCH_PROMOS(state, matchPromos) {\r\n state.matchPromos = matchPromos;\r\n },\r\n RESET_MATCH_PROMOS(state) {\r\n state.matchPromos = { ...defaultMatchPromos };\r\n },\r\n SET_MATCH_PROMO_MAXIMUM(state, { product, maximum }) {\r\n // values need to reset when the maximum is changed\r\n state.matchPromos[product] = {\r\n ...defaultMatchPromos[product],\r\n maximum,\r\n };\r\n },\r\n};\r\n","import axiosInstance from '@/plugins/axios';\r\n\r\nconst defaultState = Object.freeze({\r\n showDialog: true,\r\n paymentInfo: {\r\n creditCards: [],\r\n reactivationProducts: [],\r\n },\r\n selectedReactivationOptions: {\r\n // Web: {\r\n // cardId: 0,\r\n // depositAmount: 0,\r\n // channels: {\r\n // [id]: bool // Is active\r\n // }\r\n // },\r\n },\r\n isProcessingReactivation: false,\r\n hasBeenReactivated: null,\r\n});\r\n\r\n/**\r\n * @typedef {{showDialog: boolean, paymentInfo: ReactivationPaymentInfo, selectedReactivationOptions: {}, isProcessingReactivation: boolean, hasBeenReactivated: boolean}} ReactivationState\r\n */\r\n/**\r\n * @typedef {{creditCards: {id: number, display: string}[], reactivationProducts: ReactivationProduct[]}} ReactivationPaymentInfo\r\n */\r\n/**\r\n * @typedef {{cardId: number, channels: ReactivationChannel[], productType: 'Web'|'Call'}} ReactivationProduct\r\n */\r\n/**\r\n * @typedef {{id: string, name: string, price: number, hasActivePackage: boolean}} ReactivationChannel\r\n */\r\n\r\n/**\r\n * @type {ReactivationState}\r\n */\r\nexport const state = {\r\n ...defaultState,\r\n};\r\n\r\nconst reactivationChannelSortFunction = (a, b, activeChannelsObj) => {\r\n const getSortFromBools = (x, y) => (x === y ? 0 : x ? -1 : 1);\r\n const isChannelActive = (id) => !!activeChannelsObj[id];\r\n\r\n const activePkg = getSortFromBools(a.hasActivePackage, b.hasActivePackage);\r\n if (activePkg !== 0) {\r\n return activePkg;\r\n }\r\n\r\n const reactivating = getSortFromBools(\r\n isChannelActive(a.id),\r\n isChannelActive(b.id)\r\n );\r\n return reactivating !== 0\r\n ? reactivating\r\n : (a.name > b.name) - (a.name < b.name);\r\n};\r\n\r\nexport const mutations = {\r\n SET_SHOW_DIALOG(state, show) {\r\n state.showDialog = show;\r\n sessionStorage.setItem('showReactivationDialog', show);\r\n },\r\n /**\r\n * @param {ReactivationState} state\r\n * @param {ReactivationPaymentInfo} info\r\n */\r\n SET_PAYMENT_INFO(state, info) {\r\n state.paymentInfo = info;\r\n\r\n const emptyOptions = {\r\n cardId: 0,\r\n depositAmount: 0,\r\n channels: {},\r\n };\r\n\r\n const filteredOptions = Object.fromEntries(\r\n info.reactivationProducts.map((x) => [\r\n x.productType,\r\n {\r\n ...emptyOptions,\r\n cardId: x.cardId,\r\n channels: Object.fromEntries(\r\n x.channels.map((x) => [x.id, x.isActive])\r\n ),\r\n },\r\n ])\r\n );\r\n\r\n // Make sure selected reactivation options doesn't include any options for products no longer available for reactivation\r\n for (const product in state.selectedReactivationOptions) {\r\n if (info.reactivationProducts.some((p) => p.productType === product)) {\r\n filteredOptions[product] = Object.assign(\r\n filteredOptions[product],\r\n state.selectedReactivationOptions[product]\r\n );\r\n }\r\n }\r\n\r\n state.selectedReactivationOptions = filteredOptions;\r\n\r\n for (const product of state.paymentInfo.reactivationProducts) {\r\n product.channels.sort((a, b) =>\r\n reactivationChannelSortFunction(\r\n a,\r\n b,\r\n state.selectedReactivationOptions[product.productType].channels\r\n )\r\n );\r\n }\r\n },\r\n SET_HAS_BEEN_REACTIVATED(state, newValue) {\r\n state.hasBeenReactivated = newValue;\r\n },\r\n SET_IS_PROCESSING_REACTIVATION(state, newValue) {\r\n state.isProcessingReactivation = newValue;\r\n },\r\n SET_SELECTED_REACTIVATION_OPTIONS(state, reactivationOptions) {\r\n state.selectedReactivationOptions = reactivationOptions;\r\n },\r\n SET_SELECTED_REACTIVATION_OPTIONS_FOR_PRODUCT(\r\n state,\r\n { product, depositDetails }\r\n ) {\r\n state.selectedReactivationOptions[product] = {\r\n ...state.selectedReactivationOptions[product],\r\n ...depositDetails,\r\n };\r\n },\r\n SET_SELECTED_ACTIVE_CHANNEL(state, { productType, channelId, isActive }) {\r\n state.selectedReactivationOptions[productType].channels[channelId] =\r\n isActive;\r\n\r\n state.paymentInfo.reactivationProducts\r\n .find((x) => x.productType === productType)\r\n .channels.sort((a, b) =>\r\n reactivationChannelSortFunction(\r\n a,\r\n b,\r\n state.selectedReactivationOptions[productType].channels\r\n )\r\n );\r\n },\r\n CLEAR_STATE(state) {\r\n state = {\r\n ...defaultState,\r\n showDialog: state.showDialog,\r\n };\r\n },\r\n};\r\n\r\nexport const getters = {\r\n showDialog: (state) => state.showDialog,\r\n paymentInfo: (state) => state.paymentInfo,\r\n creditCards: (state) => state.paymentInfo.creditCards,\r\n /**\r\n * @param {ReactivationState} state\r\n */\r\n productTypes: (state) => {\r\n // Get selected products\r\n const activeProducts = Object.entries(state.selectedReactivationOptions)\r\n .filter(([_, product]) => Object.values(product.channels).some((x) => x))\r\n .map(([productType, _]) => productType);\r\n\r\n return activeProducts;\r\n },\r\n products: (state) => state.paymentInfo.reactivationProducts,\r\n /**\r\n * @param {ReactivationState} state\r\n */\r\n webProduct: (state) =>\r\n state.paymentInfo.reactivationProducts.find((p) => p.productType === 'Web'),\r\n /**\r\n * @param {ReactivationState} state\r\n */\r\n callProduct: (state) =>\r\n state.paymentInfo.reactivationProducts.find(\r\n (p) => p.productType === 'Call'\r\n ),\r\n selectedReactivationOptions: (state) => state.selectedReactivationOptions,\r\n selectedReactivationOptionsForProduct: (state, product) => {\r\n return {\r\n cardId: 0,\r\n depositAmount: 0,\r\n ...(state.selectedReactivationOptions[product] || {}),\r\n };\r\n },\r\n isProcessingReactivation: (state) => state.isProcessingReactivation,\r\n hasBeenReactivated: (state) => state.hasBeenReactivated,\r\n isChannelActive: (state) => (productType, id) => {\r\n return !!state.selectedReactivationOptions[productType]?.channels[id];\r\n },\r\n noChannelsSelected: (state) => {\r\n for (const product of Object.values(state.selectedReactivationOptions)) {\r\n for (const isActive of Object.values(product.channels)) {\r\n if (isActive) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n },\r\n getActiveChannelCountForProduct: (state) => (productType) => {\r\n return Object.values(\r\n state.selectedReactivationOptions[productType].channels\r\n ).filter((x) => x).length;\r\n },\r\n getWebChannelCount: (state) =>\r\n state.paymentInfo?.reactivationProducts?.find(\r\n (p) => p.productType === 'Web'\r\n )?.channels.length ?? 0,\r\n getCallChannelCount: (state) =>\r\n state.paymentInfo?.reactivationProducts?.find(\r\n (p) => p.productType === 'Call'\r\n )?.channels.length ?? 0,\r\n};\r\n\r\nexport const actions = {\r\n async init({ commit, rootGetters }) {\r\n const isStaff = rootGetters['auth/isStaff'];\r\n const showDialog = sessionStorage.getItem('showReactivationDialog');\r\n\r\n if (showDialog === 'false' || isStaff) {\r\n commit('SET_SHOW_DIALOG', false);\r\n }\r\n },\r\n\r\n setShowDialog({ commit }, show) {\r\n commit('SET_SHOW_DIALOG', show);\r\n },\r\n\r\n async getReactivationPaymentInfoAsync({ commit, dispatch }, clientId) {\r\n const response = await axiosInstance\r\n .get(`api/reactivation/${clientId}/reactivation-payment-info`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n dispatch(\r\n 'toastr/error',\r\n 'Failed to retrieve billing info for reactivation: ' + response.message,\r\n { root: true }\r\n );\r\n return;\r\n }\r\n\r\n commit('SET_PAYMENT_INFO', response.data);\r\n },\r\n\r\n async sendReactivationRequestAsync(\r\n { commit, dispatch, state },\r\n clientDetails\r\n ) {\r\n await commit('SET_IS_PROCESSING_REACTIVATION', true);\r\n\r\n const transformedRequest = Object.fromEntries(\r\n Object.entries(state.selectedReactivationOptions)\r\n .map(([productType, product]) => {\r\n // Just get ids for active channels\r\n const channels = Object.entries(product.channels)\r\n .filter(([_id, isActive]) => isActive)\r\n .map(([id, _isActive]) => id);\r\n\r\n if (!channels.length) {\r\n return null;\r\n } else {\r\n return [\r\n productType,\r\n {\r\n ...product,\r\n channels,\r\n },\r\n ];\r\n }\r\n })\r\n .filter((x) => x)\r\n );\r\n\r\n const response = await axiosInstance\r\n .post(`api/reactivation/begin`, {\r\n ...clientDetails,\r\n products: transformedRequest,\r\n })\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n dispatch('toastr/error', 'Failed to Reactivate: ' + response.data, {\r\n root: true,\r\n });\r\n } else {\r\n commit('SET_HAS_BEEN_REACTIVATED', response.data);\r\n }\r\n\r\n await commit('SET_IS_PROCESSING_REACTIVATION', false);\r\n },\r\n\r\n async updatePaymentIdForProductAsync({ commit, state }, { product, cardId }) {\r\n const depositDetails = {\r\n ...(state.selectedReactivationOptions[product] || {}),\r\n cardId,\r\n };\r\n\r\n commit('SET_SELECTED_REACTIVATION_OPTIONS_FOR_PRODUCT', {\r\n product,\r\n depositDetails,\r\n });\r\n },\r\n\r\n async updateDepositAmountForProductAsync(\r\n { commit, state },\r\n { product, depositAmount }\r\n ) {\r\n const depositDetails = {\r\n ...(state.selectedReactivationOptions[product] || {}),\r\n depositAmount,\r\n };\r\n\r\n await commit('SET_SELECTED_REACTIVATION_OPTIONS_FOR_PRODUCT', {\r\n product,\r\n depositDetails,\r\n });\r\n },\r\n\r\n async setProductsForNonCcClientsAsync({ commit }, products) {\r\n for (const product in products) {\r\n await commit('SET_SELECTED_REACTIVATION_OPTIONS_FOR_PRODUCT', {\r\n product,\r\n depositDetails: null,\r\n });\r\n }\r\n },\r\n\r\n async setChannelActiveForProduct({ commit }, productChannelInfo) {\r\n commit('SET_SELECTED_ACTIVE_CHANNEL', productChannelInfo);\r\n },\r\n};\r\n","import axios from 'axios';\r\nimport errorTracker from '@/plugins/errorTracker';\r\nimport _ from '@/utils/store-helpers';\r\nimport { everestApiUrl, environment } from '@/app.config';\r\n\r\nconst defaultOptions = {\r\n baseURL: everestApiUrl,\r\n crossDomain: true,\r\n headers: {},\r\n};\r\n\r\nexport const xhrClient = axios.create(defaultOptions);\r\n\r\nexport const state = {\r\n errors: _.get('errors', []),\r\n};\r\n\r\nexport const getters = {\r\n errorCount: (state) => state.errors.length,\r\n};\r\n\r\n/**\r\n * All actions accept a config object that is an extension of the axios config.\r\n * The only required property is [url].\r\n * https://github.com/axios/axios#request-config\r\n *\r\n * In addition to the default axios config properties, we use the following extension properties:\r\n *\r\n * [errorMessage] - Displayed in a toast message on error. DEFAULT: Request failed. Please try again.\r\n * [successMessage] - Displayed in a toast message on success. DEFAULT: No action.\r\n * [loadingMutation] - The mutation path for setting loading. DEFAULT: No action.\r\n * [onError] - A callback that receives the error object from axios as a parameter. DEFAULT: No action.\r\n * [authenticate] - A boolean flag for if an access bearer token is required. DEFAULT: true\r\n *\r\n * A successful request will return the axios response object.\r\n * A failed request will return undefined.\r\n * Additional error logic can be passed via the 'onError' property.\r\n *\r\n * Example usage:\r\n *\r\n * const response = await dispatch('request/post', {\r\n * url: '/api/vacations',\r\n * data: {...},\r\n * errorMessage: 'Failed to create vacation pause.',\r\n * loadingMutation: 'vacations/setLoading',\r\n * onError: (err) => {...},\r\n * });\r\n *\r\n * if (!response) {\r\n * //...There was an error. Access error object in onError callback.\r\n * }\r\n */\r\nexport const actions = {\r\n async get({ dispatch }, config) {\r\n validateConfig(config);\r\n return dispatch('_request', { ...config, method: 'GET' });\r\n },\r\n\r\n async post({ dispatch }, config) {\r\n validateConfig(config);\r\n return dispatch('_request', { ...config, method: 'POST' });\r\n },\r\n\r\n async put({ dispatch }, config) {\r\n validateConfig(config);\r\n return dispatch('_request', { ...config, method: 'PUT' });\r\n },\r\n\r\n async delete({ dispatch }, config) {\r\n validateConfig(config);\r\n return dispatch('_request', { ...config, method: 'DELETE' });\r\n },\r\n\r\n _startLoading({ commit }, mutationPath) {\r\n if (!mutationPath) return;\r\n commit(mutationPath, true, { root: true });\r\n },\r\n\r\n _stopLoading({ commit }, mutationPath) {\r\n if (!mutationPath) return;\r\n commit(mutationPath, false, { root: true });\r\n },\r\n\r\n async _request(\r\n { dispatch, rootGetters },\r\n {\r\n loadingMutation = null,\r\n errorMessage = 'Request failed. Please try again.',\r\n successMessage = null,\r\n onError = () => {},\r\n authenticate = true,\r\n headers = {},\r\n ...restConfig\r\n }\r\n ) {\r\n const token = await dispatch('auth/getToken', null, { root: true });\r\n\r\n if (!token && authenticate) {\r\n // We don't have a token and it's required.\r\n dispatch('auth/reset', null, { root: true });\r\n dispatch('auth/login', null, { root: true });\r\n return;\r\n }\r\n\r\n restConfig.headers = {\r\n ...headers,\r\n Authorization: `Bearer ${token}`,\r\n };\r\n\r\n if (rootGetters['client/clientId'] != null) {\r\n restConfig.headers.clientId = rootGetters['client/clientId'];\r\n }\r\n\r\n dispatch('_startLoading', loadingMutation);\r\n\r\n const res = await xhrClient.request(restConfig).catch((err) => err);\r\n\r\n dispatch('_stopLoading', loadingMutation);\r\n\r\n if (res instanceof Error) {\r\n errorTracker.trackException({\r\n exception: res,\r\n properties: restConfig,\r\n });\r\n\r\n dispatch('_handleError', {\r\n error: res,\r\n message: errorMessage,\r\n });\r\n\r\n onError(res);\r\n\r\n return;\r\n }\r\n\r\n if (successMessage) {\r\n dispatch('toastr/success', successMessage, { root: true });\r\n }\r\n\r\n return res;\r\n },\r\n\r\n _handleError(\r\n { commit, dispatch, getters, rootState, state },\r\n { error, message }\r\n ) {\r\n console.error('Request module', error, message);\r\n commit('setErrors', [...state.errors, error]);\r\n\r\n if (getters.errorCount > 10 && environment === 'production') {\r\n // A user experienced more than 10 errors in production. Let's log that specifically...\r\n errorTracker.trackException({\r\n exception: new Error('Large request error log.'),\r\n properties: {\r\n user: rootState.auth.user,\r\n errors: state.errors,\r\n },\r\n });\r\n\r\n // Clear things out before the log gets too big.\r\n commit('setErrors', []);\r\n }\r\n\r\n const { response } = error;\r\n const authHead = response && response.headers && response.headers['www-authenticate'];\r\n if (authHead === 'Bearer error=\"invalid_token\"') {\r\n // Oh no! The access token expired! Let's hit b2c...\r\n dispatch('auth/login', null, { root: true });\r\n return;\r\n }\r\n\r\n if (!error.response) {\r\n // If we don't have a response property then there was a network connection issue.\r\n dispatch('toastr/error', 'Network error. Please check your connection.', {\r\n root: true,\r\n });\r\n } else if (message) {\r\n // It wasn't a network issue, so display the provided error message.\r\n dispatch('toastr/error', message, { root: true });\r\n }\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setErrors: _.set('errors', true),\r\n};\r\n\r\nfunction validateConfig(config) {\r\n if (typeof config !== 'object' || config === null || !config.url) {\r\n throw new Error('Invalid config format.');\r\n }\r\n}\r\n","import _ from '@/utils/store-helpers';\r\n\r\nexport const state = {\r\n width: 0,\r\n size: '',\r\n isNavDrawerOpen: false,\r\n isSidebarOpen: false,\r\n scrollLocks: [],\r\n};\r\n\r\nexport const getters = {\r\n isXS: (state) => state.size === 'xs',\r\n isMD: (state) => state.size === 'md',\r\n isAtLeastMD: (state) => ['md', 'lg', 'xl'].includes(state.size),\r\n isAtMostMD: (state) => ['md', 'xs'].includes(state.size),\r\n isLG: (state) => state.size === 'lg',\r\n isAtLeastLG: (state) => ['lg', 'xl'].includes(state.size),\r\n isXL: (state) => state.size === 'xl',\r\n isSidebarOpen: (state) => state.isSidebarOpen,\r\n isNavDrawerOpen: (state) => state.isNavDrawerOpen,\r\n};\r\n\r\nconst className = 'scroll-lock';\r\n// lockInfo should contain a name for lock and a boolean value\r\nexport const actions = {\r\n setScrollLock: ({ state, commit }, lockInfo) => {\r\n // Handle existing locks\r\n commit('updateScrollLock', lockInfo);\r\n\r\n // Don't turn off if another source wants it\r\n if (!lockInfo.value && state.scrollLocks.every((x) => !x.value)) {\r\n return;\r\n }\r\n\r\n // Update lock\r\n const pageClassList = document.getElementsByTagName('html')[0]?.classList;\r\n\r\n if (!pageClassList) {\r\n // Theoretically this should never be hit but, just in case\r\n return;\r\n }\r\n\r\n const exists = pageClassList.contains(className);\r\n if (exists && !lockInfo.value) {\r\n pageClassList.remove(className);\r\n } else if (!exists && lockInfo.value) {\r\n pageClassList.add(className);\r\n }\r\n // Elsewise nothing should need to change\r\n },\r\n setWidth: ({ commit, state }, newWidth) => {\r\n if (newWidth === state.width) {\r\n return;\r\n }\r\n\r\n let newSize = 'md';\r\n\r\n if (newWidth <= 500) {\r\n newSize = 'xs';\r\n } else if (newWidth >= 1200) {\r\n newSize = 'xl';\r\n } else if (newWidth > 1000) {\r\n newSize = 'lg';\r\n }\r\n\r\n commit('setIsSidebarOpen', false);\r\n commit('setSize', newSize);\r\n commit('setWidth', newWidth);\r\n },\r\n flipSideBarOpenState: ({ commit, dispatch, state }) => {\r\n commit('setIsSidebarOpen', !state.isSidebarOpen);\r\n dispatch('setScrollLock', {\r\n name: 'sidebar',\r\n value: state.isSidebarOpen,\r\n });\r\n },\r\n flipNavMenuOpenState: ({ commit, dispatch, state }) => {\r\n commit('setIsNavDrawerOpen', !state.isNavDrawerOpen);\r\n dispatch('setScrollLock', {\r\n name: 'navDrawer',\r\n value: state.isNavDrawerOpen,\r\n });\r\n },\r\n closeAllMenus: ({ commit }) => {\r\n commit('resetScrollLocks');\r\n commit('setIsNavDrawerOpen', false);\r\n commit('setIsSidebarOpen', false);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setWidth: _.set('width'),\r\n setSize: _.set('size'),\r\n setIsSidebarOpen: _.set('isSidebarOpen'),\r\n setIsNavDrawerOpen: _.set('isNavDrawerOpen'),\r\n updateScrollLock: (state, lockInfo) => {\r\n state.scrollLocks = [\r\n state.scrollLocks.filter((x) => x.name !== lockInfo.name),\r\n lockInfo,\r\n ];\r\n },\r\n resetScrollLocks: (state) => {\r\n state.scrollLocks = [];\r\n },\r\n};\r\n","import WebLeadIntervalMap from '@/components/webLeadScheduler/WebLeadIntervalMap';\r\n\r\nexport default class WebLeadScheduleManager {\r\n constructor(schedule = []) {\r\n this.schedule = schedule;\r\n this.scheduleMap = this.createScheduleMap(schedule);\r\n }\r\n\r\n createScheduleMap(schedule) {\r\n const scheduleMap = {\r\n Monday: [],\r\n Tuesday: [],\r\n Wednesday: [],\r\n Thursday: [],\r\n Friday: [],\r\n Saturday: [],\r\n Sunday: [],\r\n };\r\n const defaultStartTime = '00:00:00';\r\n const defaultEndTime = '24:00:00';\r\n\r\n schedule.forEach((item) => {\r\n const checkTime = WebLeadIntervalMap.parseTime(item.endTime);\r\n if (\r\n (item.endTime.includes('23:59') || item.endTime.includes('00:00:00')) &&\r\n item.startTime.includes('00:00:00')\r\n ) {\r\n scheduleMap[item.dayOfWeek].push({\r\n dayOfWeek: item.dayOfWeek,\r\n startTime: defaultStartTime,\r\n endTime: defaultEndTime,\r\n isActive: item.isActive,\r\n });\r\n } else if (checkTime.hours !== 23 && checkTime.minutes === 59) {\r\n // This case is for schedules that set endTime to an hour that in UTC is next day at 12:00AM\r\n const updateEndTime = `${checkTime.hours + 1}:00:00`;\r\n scheduleMap[item.dayOfWeek].push({\r\n dayOfWeek: item.dayOfWeek,\r\n startTime: item.startTime,\r\n endTime: updateEndTime,\r\n isActive: item.isActive,\r\n });\r\n } else {\r\n scheduleMap[item.dayOfWeek].push({\r\n dayOfWeek: item.dayOfWeek,\r\n startTime: item.startTime,\r\n endTime: item.endTime.includes('23:59')\r\n ? defaultEndTime\r\n : item.endTime,\r\n isActive: item.isActive,\r\n });\r\n }\r\n });\r\n return scheduleMap;\r\n }\r\n\r\n getDefaultSchedule() {\r\n const defaultSchedule = [\r\n {\r\n dayOfWeek: 'Monday',\r\n startTime: '00:00:00',\r\n endTime: '23:59:59',\r\n isActive: false,\r\n },\r\n {\r\n dayOfWeek: 'Tuesday',\r\n startTime: '00:00:00',\r\n endTime: '23:59:59',\r\n isActive: false,\r\n },\r\n {\r\n dayOfWeek: 'Wednesday',\r\n startTime: '00:00:00',\r\n endTime: '23:59:59',\r\n isActive: false,\r\n },\r\n {\r\n dayOfWeek: 'Thursday',\r\n startTime: '00:00:00',\r\n endTime: '23:59:59',\r\n isActive: false,\r\n },\r\n {\r\n dayOfWeek: 'Friday',\r\n startTime: '00:00:00',\r\n endTime: '23:59:59',\r\n isActive: false,\r\n },\r\n {\r\n dayOfWeek: 'Saturday',\r\n startTime: '00:00:00',\r\n endTime: '23:59:59',\r\n isActive: false,\r\n },\r\n {\r\n dayOfWeek: 'Sunday',\r\n startTime: '00:00:00',\r\n endTime: '23:59:59',\r\n isActive: false,\r\n },\r\n ];\r\n\r\n const defaultScheduleMap = this.createScheduleMap(defaultSchedule);\r\n\r\n // Merge the default schedule with the existing schedule if it exist\r\n for (const dayOfWeek in defaultScheduleMap) {\r\n if (this.scheduleMap[dayOfWeek].length === 0) {\r\n this.scheduleMap[dayOfWeek] = [\r\n ...(this.scheduleMap[dayOfWeek] || []), // Existing schedule or empty array if none\r\n ...defaultScheduleMap[dayOfWeek], // Default schedule\r\n ];\r\n }\r\n }\r\n\r\n return this.scheduleMap;\r\n }\r\n\r\n addNewActiveDefaultScheduleDay(dayOfWeek, webLeadScheduleDay) {\r\n const scheduleLength = webLeadScheduleDay.length;\r\n const recentSchedule = webLeadScheduleDay[scheduleLength - 1];\r\n const nextStartTime = WebLeadIntervalMap.nextTime(\r\n recentSchedule.endTime,\r\n '00:30:00'\r\n );\r\n const nextEndTime = WebLeadIntervalMap.nextTime(nextStartTime, '00:30:00');\r\n\r\n return {\r\n dayOfWeek,\r\n startTime: nextStartTime,\r\n endTime: nextEndTime,\r\n isActive: true,\r\n };\r\n }\r\n\r\n convertWebLeadScheduleToLeadTypeSchedule(\r\n webLeadSchedules,\r\n clientQuoteTypeId\r\n ) {\r\n const schedule = [];\r\n for (const dayOfWeek in webLeadSchedules) {\r\n const schedules = webLeadSchedules[dayOfWeek];\r\n schedules.forEach((scheduleItem) => {\r\n if (scheduleItem.isActive) {\r\n const endTime = scheduleItem.endTime.includes('24:00:00')\r\n ? '23:59:59.99'\r\n : scheduleItem.endTime;\r\n schedule.push({\r\n clientQuoteTypeId,\r\n dayOfWeek: scheduleItem.dayOfWeek,\r\n startTime: scheduleItem.startTime,\r\n endTime,\r\n isActive: true,\r\n });\r\n } else if (\r\n !schedule.some((item) => item.dayOfWeek === scheduleItem.dayOfWeek)\r\n ) {\r\n schedule.push({\r\n clientQuoteTypeId,\r\n dayOfWeek: scheduleItem.dayOfWeek,\r\n startTime: '00:00:00.00',\r\n endTime: '00:00:00.00',\r\n isActive: false,\r\n });\r\n }\r\n });\r\n }\r\n return schedule;\r\n }\r\n}\r\n","import { axiosInstance } from '@/plugins/axios';\r\nimport _ from '@/utils/store-helpers';\r\nimport DailySchedule from '@/components/scheduler/DailySchedule';\r\nimport IntervalMap from '@/components/scheduler/IntervalMap';\r\nimport WebLeadIntervalMap from '@/components/webLeadScheduler/WebLeadIntervalMap';\r\nimport WebLeadScheduleManager from '@/components/webLeadScheduler/WebLeadScheduleManager';\r\n\r\nconst getInitialState = () => ({\r\n isIntervalEnabled: false,\r\n intervalMap: new IntervalMap(),\r\n responseCache: null,\r\n loading: false,\r\n dirty: true,\r\n monthlyCapLimit: null,\r\n schedules: {\r\n sunday: DailySchedule.defaultInstance(0),\r\n monday: DailySchedule.defaultInstance(1, true),\r\n tuesday: DailySchedule.defaultInstance(2, true),\r\n wednesday: DailySchedule.defaultInstance(3, true),\r\n thursday: DailySchedule.defaultInstance(4, true),\r\n friday: DailySchedule.defaultInstance(5, true),\r\n saturday: DailySchedule.defaultInstance(6),\r\n },\r\n webLeadSchedules: [],\r\n webLeadIntervalMap: new WebLeadIntervalMap(),\r\n preventCapsPerScheduleOverride: false,\r\n});\r\n\r\nexport const state = {\r\n isIntervalEnabled: false,\r\n intervalMap: null,\r\n responseCache: null,\r\n loading: true,\r\n dirty: true,\r\n monthlyCapLimit: 0,\r\n schedules: null,\r\n webLeadSchedules: [],\r\n webLeadIntervalMap: null,\r\n preventCapsPerScheduleOverride: false,\r\n};\r\n\r\nexport const getters = {\r\n schedules: (state) => state.schedules,\r\n preventCapsPerScheduleOverride: (state) => state.preventCapsPerScheduleOverride,\r\n responseCache: (state) => state.responseCache,\r\n webLeadSchedules: (state) => state.webLeadSchedules,\r\n webLeadIntervalMap: (state) => state.webLeadInterval,\r\n scheduleInfo: (state) => {\r\n return {\r\n intervalMap: state.intervalMap,\r\n isIntervalEnabled: state.isIntervalEnabled,\r\n responseCache: state.responseCache,\r\n monthlyCapLimit: state.monthlyCapLimit,\r\n };\r\n },\r\n\r\n weekdayZeroDayCapCounts: (state) => {\r\n const countZeroDayCaps = Object.values(state.schedules)\r\n .flatMap((day) => day.dayPartSchedules)\r\n .filter(\r\n (schedule) =>\r\n schedule.dayPartCap.limit === 0 &&\r\n schedule.dayPartCap.dayIndex > 0 &&\r\n schedule.dayPartCap.dayIndex < 6\r\n ).length;\r\n\r\n return countZeroDayCaps;\r\n },\r\n\r\n areAnySchedulesWithStartIsAfterEnd: (state) => {\r\n const schedules =\r\n Object.values(state.schedules)\r\n .flatMap((day) => day.dayPartSchedules)\r\n .filter(\r\n (schedule) => schedule.dayPartCap.start > schedule.dayPartCap.end\r\n ).length > 0;\r\n\r\n return schedules;\r\n },\r\n\r\n weekdayZeroConcurrencyCapCounts: (state) => {\r\n const countZeroConcurrency = Object.values(state.schedules)\r\n .flatMap((day) => day.dayPartSchedules)\r\n .filter(\r\n (schedule) =>\r\n schedule.concurrencyCap === 0 &&\r\n schedule.dayPartCap.dayIndex > 0 &&\r\n schedule.dayPartCap.dayIndex < 6\r\n ).length;\r\n\r\n return countZeroConcurrency;\r\n },\r\n\r\n weekendZeroConcurrencyCapCounts: (state) => {\r\n const countZeroConcurrency = Object.values(state.schedules)\r\n .flatMap((day) => day.dayPartSchedules)\r\n .filter(\r\n (schedule) =>\r\n schedule.concurrencyCap === 0 &&\r\n (schedule.dayPartCap.dayIndex === 0 ||\r\n schedule.dayPartCap.dayIndex === 6)\r\n ).length;\r\n\r\n return countZeroConcurrency;\r\n },\r\n\r\n saturdayDayCaps: (state) => {\r\n const saturdayCaps = state.schedules.saturday.dayPartSchedules.filter(\r\n (obj) => obj.dayPartCap.limit !== 0 || obj.dayPartCap.limit === null\r\n );\r\n\r\n return state.schedules.saturday.isActive && saturdayCaps.length > 0;\r\n },\r\n\r\n sundayDayCaps: (state) => {\r\n const sundayCaps = state.schedules.sunday.dayPartSchedules.filter(\r\n (obj) => obj.dayPartCap.limit !== 0 || obj.dayPartCap.limit === null\r\n );\r\n\r\n return state.schedules.sunday.isActive && sundayCaps.length > 0;\r\n },\r\n\r\n updateRequestBody(state) {\r\n return (useCache = false) => {\r\n const args = {\r\n responseCache: state.responseCache,\r\n isIntervalEnabled: state.isIntervalEnabled,\r\n dailySchedules: Object.values(state.schedules),\r\n monthlyCapLimit: state.monthlyCapLimit,\r\n };\r\n\r\n if (useCache) {\r\n return DailySchedule.buildRequestFromResponseCache(args);\r\n } else {\r\n delete args.responseCache;\r\n return DailySchedule.buildRequest(args);\r\n }\r\n };\r\n },\r\n\r\n isWebLeadScheduleValid(state) {\r\n let isScheduleValid = true;\r\n for (const dayOfWeek in state.webLeadSchedules) {\r\n const schedules = state.webLeadSchedules[dayOfWeek];\r\n const scheduleLength = schedules.length;\r\n\r\n // isScheduleValid handles 2 cases one where someone sets an end time before start time and where someone sets up and all day and day part schedule for same day\r\n if (scheduleLength > 0) {\r\n schedules.forEach((scheduleItem) => {\r\n if (\r\n scheduleItem.startTime > scheduleItem.endTime ||\r\n (scheduleLength > 1 &&\r\n scheduleItem.startTime === scheduleItem.endTime)\r\n ) {\r\n isScheduleValid = false;\r\n }\r\n });\r\n }\r\n }\r\n return isScheduleValid;\r\n },\r\n\r\n marshalledScheduleData: (state, _, rootState) => (clientQuoteTypeId) => {\r\n const buildData = {\r\n responseCache: state.responseCache,\r\n isIntervalEnabled: state.isIntervalEnabled,\r\n dailySchedules: Object.values(state.schedules),\r\n monthlyCapLimit: state.monthlyCapLimit,\r\n };\r\n\r\n const data = state.responseCache\r\n ? DailySchedule.buildRequestFromResponseCache(buildData)\r\n : DailySchedule.buildRequest(buildData);\r\n\r\n const { leadType } = rootState.leadType;\r\n\r\n return {\r\n ...JSON.parse(JSON.stringify(data)),\r\n clientQuoteTypeID: clientQuoteTypeId,\r\n clientId: leadType.clientId,\r\n upsellRep: leadType.upsellRep,\r\n upsellPromo: leadType.upsellPromo,\r\n };\r\n },\r\n};\r\n\r\nexport const actions = {\r\n init({ dispatch }) {\r\n dispatch('resetSchedulerState');\r\n },\r\n\r\n async setPreventCapOverrideBySchedule({ commit }, newPreventStatus) {\r\n\r\n commit('setPreventCapOverrideBySchedule', newPreventStatus);\r\n\r\n },\r\n\r\n setSchedules({ commit, dispatch }, group) {\r\n commit('setSchedules', group.rawSchedule);\r\n commit('setMonthlyCapLimit', group.monthlyCapLimit);\r\n commit('setIsIntervalEnabled', group.isIntervalEnabled);\r\n // commit('setLoading', false);\r\n dispatch('setIntervalMap', group.intervalStep);\r\n },\r\n\r\n async setGroupSchedule({ state }, group) {\r\n const buildData = {\r\n dailySchedules: Object.values(state.schedules),\r\n isIntervalEnabled: state.isIntervalEnabled,\r\n monthlyCapLimit: state.monthlyCapLimit,\r\n responseCache: state.responseCache,\r\n };\r\n\r\n const postData = state.responseCache\r\n ? DailySchedule.buildRequestFromResponseCache(buildData)\r\n : DailySchedule.buildRequest(buildData);\r\n\r\n group.subscriptionDailySchedules = postData.subscriptionDailySchedules;\r\n group.subscriptionMonthlySchedule = postData.subscriptionMonthlySchedule;\r\n group.rawSchedule = state.schedules;\r\n group.responseCache = state.responseCache;\r\n\r\n group.isIntervalEnabled = buildData.isIntervalEnabled;\r\n group.isIntervalCapEnabled = group.isIntervalEnabled;\r\n group.monthlyCapLimit = buildData.monthlyCapLimit;\r\n },\r\n\r\n async fetchCallSchedule({ commit, dispatch, rootState }, clientQuoteTypeId) {\r\n commit('setLoading', true);\r\n\r\n const { leadType } = rootState.leadType;\r\n\r\n if (!leadType.callType) {\r\n throw new Error(\r\n 'Fetching call schedules requires lead type module be populated.'\r\n );\r\n }\r\n\r\n const isCloningSchedule = leadType.id?.toLowerCase() !== clientQuoteTypeId?.toLowerCase();\r\n const callTypeParam = isCloningSchedule ? '' : `?callType=${leadType.callType}`;\r\n\r\n const response = await axiosInstance\r\n .get(\r\n `/api/LeadType/calls/SubscriptionSchedule/${clientQuoteTypeId}${callTypeParam}`\r\n )\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n dispatch(\r\n 'toastr/error',\r\n `Failed to get schedules. Please check your connection and try again.`,\r\n { root: true }\r\n );\r\n commit('setLoading', false);\r\n commit('setDirty', false);\r\n return;\r\n }\r\n\r\n dispatch('processCallSchedule', response.data);\r\n },\r\n\r\n getWebLeadSchedule({ commit }, leadType) {\r\n const leadTypeSchedule = leadType.schedule ?? [];\r\n const scheduleManager = new WebLeadScheduleManager(leadTypeSchedule);\r\n const schedules = scheduleManager.getDefaultSchedule();\r\n\r\n commit('setWebLeadSchedules', schedules);\r\n },\r\n\r\n async cloneCallSchedule({ commit, dispatch }, clientQuoteTypeId) {\r\n // Just overwrites existing\r\n await dispatch('fetchCallSchedule', clientQuoteTypeId);\r\n commit('setDirty', true);\r\n },\r\n\r\n getChannelGroupSchedule({ commit, dispatch }, group) {\r\n dispatch('resetSchedulerState');\r\n commit('setLoading', true);\r\n dispatch('processCallSchedule', group);\r\n commit('setLoading', false);\r\n },\r\n\r\n async fetchChannelGroupSchedule({ commit, dispatch }, channelGroupId) {\r\n dispatch('resetSchedulerState');\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .get(`/api/LeadType/calls/SubscriptionGroupSchedule/${channelGroupId}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n commit('setLoading', false);\r\n commit('setDirty', false);\r\n dispatch('toastr/error', 'Failed to retrieve schedule.', { root: true });\r\n return;\r\n }\r\n\r\n dispatch('processCallSchedule', response.data);\r\n },\r\n\r\n resetSchedulerState({ commit }) {\r\n commit('resetSchedulerState');\r\n },\r\n\r\n async getClientSchedule({ commit, dispatch }, clientId) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .get(`/api/Clients/${clientId}/account_schedule_details`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n dispatch(\r\n 'toastr/error',\r\n 'Failed to get schedule. Please check your connection and try again.',\r\n { root: true }\r\n );\r\n // TODO: This should dispatch an action that will log this error.\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n const { parsedSchedules } = DailySchedule.parseClientResponse(\r\n response.data.responseCache\r\n );\r\n\r\n commit('setSchedules', parsedSchedules);\r\n commit('setPreventCapOverrideBySchedule', response.data.preventCapOverride);\r\n commit('setResponseCache', Object.seal(response.data.responseCache));\r\n commit('setLoading', false);\r\n },\r\n\r\n processCallSchedule({ commit, dispatch }, callResponse) {\r\n const {\r\n intervalStep,\r\n isIntervalEnabled,\r\n monthlyCapLimit,\r\n parsedSchedules,\r\n } = DailySchedule.parseCallResponse(callResponse);\r\n\r\n commit('setSchedules', parsedSchedules);\r\n commit('setMonthlyCapLimit', monthlyCapLimit);\r\n commit('setIsIntervalEnabled', isIntervalEnabled);\r\n commit('setResponseCache', Object.seal(callResponse));\r\n commit('setLoading', false);\r\n dispatch('setIntervalMap', intervalStep);\r\n commit('setDirty', false);\r\n },\r\n\r\n async saveSchedules(\r\n { commit, dispatch, state, rootState, getters: { marshalledScheduleData } },\r\n clientQuoteTypeId\r\n ) {\r\n let success = true;\r\n const { leadType } = rootState.leadType;\r\n\r\n // Exit early if not call lead type\r\n if (!state.dirty || leadType?.serviceType !== 'Call') return success;\r\n\r\n commit('setLoading', true);\r\n\r\n if (!leadType.callType) {\r\n throw new Error(\r\n 'Saving call schedules requires lead type module be populated.'\r\n );\r\n }\r\n\r\n const response = await axiosInstance\r\n .post(\r\n `/api/LeadType/schedule/call/${leadType.clientId}/${leadType.callType}/${leadType.id}`,\r\n marshalledScheduleData(clientQuoteTypeId)\r\n )\r\n\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error || response.status !== 200) {\r\n success = false;\r\n dispatch(\r\n 'toastr/error',\r\n 'Failed to save schedules. Please check your connection and try again.',\r\n { root: true }\r\n );\r\n commit('setLoading', false);\r\n return success;\r\n }\r\n\r\n dispatch('updateSchedulesResponseCache', clientQuoteTypeId);\r\n commit('setLoading', false);\r\n commit('setDirty', false);\r\n return success;\r\n },\r\n\r\n saveWebLeadSchedules({ state, rootState }, clientQuoteTypeId) {\r\n if (rootState.leadType?.leadType?.serviceType !== 'Web') return;\r\n const webLeadSchedule = new WebLeadScheduleManager();\r\n const schedule = webLeadSchedule.convertWebLeadScheduleToLeadTypeSchedule(\r\n state.webLeadSchedules,\r\n clientQuoteTypeId\r\n );\r\n return schedule;\r\n },\r\n\r\n async saveClientSchedules({ commit, dispatch, state }, clientId) {\r\n if (!state.dirty) return;\r\n\r\n commit('setLoading', true);\r\n\r\n const postData = DailySchedule.buildClientRequestFromResponseCache({\r\n responseCache: state.responseCache,\r\n clientId,\r\n dailySchedules: Object.values(state.schedules),\r\n preventCapOverride: state.preventCapsPerScheduleOverride,\r\n });\r\n\r\n const response = await axiosInstance\r\n .post(`/api/Clients/clientschedule`, postData)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error || response.status !== 200) {\r\n dispatch(\r\n 'toastr/error',\r\n 'Failed to save schedules. Please check your connection and try again.',\r\n {\r\n root: true,\r\n }\r\n );\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n dispatch('getClientSchedule', clientId);\r\n\r\n commit('setLoading', false);\r\n commit('setDirty', false);\r\n },\r\n\r\n async updateSchedulesResponseCache(\r\n { commit, state, rootState },\r\n clientQuoteTypeId = state.responseCache.clientQuoteTypeId\r\n ) {\r\n const callType = rootState.leadType.callType;\r\n\r\n const response = await axiosInstance\r\n .get(\r\n `/api/LeadType/calls/SubscriptionSchedule/${clientQuoteTypeId}?callType=${callType}`\r\n )\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Nothing to do but log details to an api for later review...\r\n console.error(response);\r\n return;\r\n }\r\n\r\n commit('setResponseCache', response.data);\r\n },\r\n\r\n resetSchedules({ commit, dispatch, state }) {\r\n if (!state.responseCache) {\r\n dispatch('resetSchedulerState');\r\n return;\r\n }\r\n\r\n const {\r\n parsedSchedules,\r\n isIntervalEnabled,\r\n intervalStep,\r\n monthlyCapLimit,\r\n } = DailySchedule.parseCallResponse(state.responseCache);\r\n\r\n commit('setSchedules', parsedSchedules);\r\n commit('setIsIntervalEnabled', isIntervalEnabled);\r\n commit('setMonthlyCapLimit', monthlyCapLimit);\r\n dispatch('setIntervalMap', intervalStep);\r\n commit('setDirty', false);\r\n },\r\n\r\n async addDayPartSchedule(\r\n { commit, dispatch, state },\r\n { day, intervalStep = null }\r\n ) {\r\n if (intervalStep === null) {\r\n intervalStep = state.intervalMap.step;\r\n }\r\n\r\n const lastIndex = state.schedules[day].dayPartSchedules.length - 1;\r\n let newStartTime = '09:00:00';\r\n let newEndTime = '17:00:00';\r\n\r\n if (lastIndex > -1) {\r\n const lastDayPartSchedule =\r\n state.schedules[day].dayPartSchedules[lastIndex];\r\n\r\n newStartTime = IntervalMap.nextTime(\r\n lastDayPartSchedule.dayPartCap.end,\r\n intervalStep\r\n );\r\n\r\n if (newStartTime === '23:45:00' || newStartTime === '24:00:00') {\r\n dispatch(\r\n 'toastr/error',\r\n `There's no more time left in the day! You may adjust existing schedules.`,\r\n {\r\n root: true,\r\n }\r\n );\r\n return;\r\n }\r\n newEndTime = IntervalMap.nextTime(newStartTime, '01:00:00');\r\n }\r\n\r\n const newDayPartSchedule = new DailySchedule.DayPartSchedule({\r\n concurrencyCap: 0,\r\n dayPartCap: new DailySchedule.Cap({\r\n count: 0,\r\n limit: 0,\r\n start: newStartTime,\r\n end: newEndTime,\r\n dayIndex: state.schedules[day].dayIndex,\r\n }),\r\n intervalCaps: [],\r\n });\r\n\r\n commit('addDayPartSchedule', newDayPartSchedule);\r\n dispatch('setIntervalMap', intervalStep);\r\n commit('setDirty', true);\r\n },\r\n\r\n removeDayPartSchedule({ commit, dispatch, state }, { day, index }) {\r\n commit('removeDayPartSchedule', {\r\n day,\r\n index,\r\n });\r\n if (state.schedules[day].dayPartSchedules.length === 0) {\r\n dispatch('addDayPartSchedule', { day });\r\n commit('setDayActive', {\r\n day,\r\n isActive: false,\r\n });\r\n }\r\n dispatch('setIntervalMap', state.intervalMap.step);\r\n commit('setDirty', true);\r\n },\r\n\r\n removeWebLeadDayPartSchedule({ commit }, { dayOfWeek, index }) {\r\n if (index === 0) {\r\n const isActive = false;\r\n commit('setWebLeadScheduleActive', { dayOfWeek, isActive });\r\n return;\r\n }\r\n\r\n commit('removeWebLeadDayPartSchedule', { dayOfWeek, index });\r\n },\r\n\r\n addWebLeadDayPartSchedule({ commit, dispatch, state }, { dayOfWeek }) {\r\n const scheduleLength = state.webLeadSchedules[dayOfWeek].length;\r\n const dayPartEndTime =\r\n state.webLeadSchedules[dayOfWeek][scheduleLength - 1].endTime;\r\n const dayPartStartTime =\r\n state.webLeadSchedules[dayOfWeek][scheduleLength - 1].startTime;\r\n\r\n if (\r\n scheduleLength >= 1 &&\r\n (dayPartEndTime === '24:00:00' ||\r\n (dayPartEndTime === '23:30:00' && dayPartStartTime !== '00:00:00') ||\r\n dayPartStartTime === dayPartEndTime)\r\n ) {\r\n // This prevents people from adding another day part schedule if they have reached the end of the current day\r\n dispatch(\r\n 'toastr/error',\r\n `There's no more time left in the day! You may adjust existing schedules.`,\r\n {\r\n root: true,\r\n }\r\n );\r\n return;\r\n }\r\n\r\n const newWebLeadScheduleDayPart = new WebLeadScheduleManager();\r\n const newScheduleRecord =\r\n newWebLeadScheduleDayPart.addNewActiveDefaultScheduleDay(\r\n dayOfWeek,\r\n state.webLeadSchedules[dayOfWeek]\r\n );\r\n\r\n if (newScheduleRecord.length === 0) {\r\n // This indicates there is no time left on your schedule when you combine all schedules for that day\r\n dispatch(\r\n 'toastr/error',\r\n `There's no more time left in the day! You may adjust existing schedules.`,\r\n {\r\n root: true,\r\n }\r\n );\r\n return;\r\n }\r\n\r\n commit('addWebLeadDayPartSchedule', newScheduleRecord);\r\n },\r\n\r\n setDayPartSchedule(\r\n { commit, dispatch, state },\r\n { startOrEnd, day, index, time }\r\n ) {\r\n commit('setDayPartSchedule', {\r\n startOrEnd,\r\n day,\r\n index,\r\n time,\r\n });\r\n dispatch('setIntervalMap', state.intervalMap.step);\r\n commit('setDirty', true);\r\n },\r\n\r\n setWebLeadDayPartSchedule(\r\n { commit },\r\n { startOrEnd, dayOfWeek, index, time }\r\n ) {\r\n commit('setWebLeadDayPartSchedule', { startOrEnd, dayOfWeek, index, time });\r\n },\r\n\r\n setDayActive({ commit, dispatch, state }, { day, isActive }) {\r\n commit('setDayActive', {\r\n day,\r\n isActive,\r\n });\r\n dispatch('setIntervalMap', state.intervalMap.step);\r\n commit('setDirty', true);\r\n },\r\n\r\n setMonthlyCapLimit({ commit }, capLimit) {\r\n commit('setMonthlyCapLimit', capLimit);\r\n commit('setDirty', true);\r\n },\r\n\r\n setPartCap({ commit }, { day, index, limit }) {\r\n commit('setPartCap', {\r\n day,\r\n index,\r\n limit,\r\n });\r\n commit('setDirty', true);\r\n },\r\n setWebLeadScheduleActive({ commit }, { dayOfWeek, isActive }) {\r\n commit('setWebLeadScheduleActive', { dayOfWeek, isActive });\r\n },\r\n\r\n setConcurrencyCap({ commit }, { day, index, limit }) {\r\n commit('setConcurrencyCap', {\r\n day,\r\n index,\r\n limit,\r\n });\r\n commit('setDirty', true);\r\n },\r\n\r\n setIntervalStep({ commit, dispatch }, step) {\r\n commit('resetIntervalCaps');\r\n dispatch('setIntervalMap', step);\r\n commit('setDirty', true);\r\n },\r\n\r\n setIntervalMap({ commit, state }, step) {\r\n const intervalMap = new IntervalMap(Object.values(state.schedules), step);\r\n commit('setIntervalMap', intervalMap);\r\n },\r\n\r\n setIntervalCap({ commit }, { limit, dayIndex, start }) {\r\n commit('setIntervalCap', {\r\n limit,\r\n dayIndex,\r\n start,\r\n });\r\n commit('setDirty', true);\r\n },\r\n\r\n setIsIntervalEnabled({ commit }, isEnabled) {\r\n commit('setIsIntervalEnabled', isEnabled);\r\n commit('setDirty', true);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setSchedules: _.set('schedules'),\r\n setIsIntervalEnabled: _.set('isIntervalEnabled'),\r\n setIntervalMap: _.set('intervalMap'),\r\n setMonthlyCapLimit: _.set('monthlyCapLimit'),\r\n setResponseCache: _.set('responseCache'),\r\n setLoading: _.set('loading'),\r\n\r\n\r\n setPreventCapOverrideBySchedule(state, newPreventStatus) {\r\n\r\n state.preventCapsPerScheduleOverride = newPreventStatus;\r\n\r\n state.dirty = true;\r\n\r\n },\r\n\r\n\r\n setDayPartSchedule(state, { startOrEnd, day, index, time }) {\r\n state.schedules[day].dayPartSchedules[index].dayPartCap[startOrEnd] = time;\r\n },\r\n\r\n setDaySchedule(state, { day, start, end, isActive }) {\r\n const daySchedule = state.schedules[day];\r\n daySchedule.isActive = isActive;\r\n\r\n daySchedule.dayPartSchedules = [daySchedule.dayPartSchedules[0]];\r\n start ??= '00:00:00';\r\n end ??= '24:00:00';\r\n\r\n const dayPart = daySchedule.dayPartSchedules[0].dayPartCap;\r\n dayPart.start = start;\r\n dayPart.end = end;\r\n },\r\n\r\n setWebLeadDayPartSchedule(state, { startOrEnd, dayOfWeek, index, time }) {\r\n if (startOrEnd === 'start') {\r\n state.webLeadSchedules[dayOfWeek][index].startTime = time;\r\n } else {\r\n state.webLeadSchedules[dayOfWeek][index].endTime = time;\r\n }\r\n },\r\n\r\n addDayPartSchedule(state, newDayPartSchedule) {\r\n state.schedules[\r\n newDayPartSchedule.dayPartCap.dayOfWeek\r\n ].dayPartSchedules.push(newDayPartSchedule);\r\n },\r\n\r\n removeDayPartSchedule(state, { day, index }) {\r\n state.schedules[day].dayPartSchedules.splice(index, 1);\r\n },\r\n\r\n removeWebLeadDayPartSchedule(state, { dayOfWeek, index }) {\r\n state.webLeadSchedules[dayOfWeek].splice(index, 1);\r\n },\r\n\r\n addWebLeadDayPartSchedule(state, newWebLeadDayPartSchedule) {\r\n state.webLeadSchedules[newWebLeadDayPartSchedule.dayOfWeek].push(\r\n newWebLeadDayPartSchedule\r\n );\r\n },\r\n\r\n setDayActive(state, { day, isActive }) {\r\n state.schedules[day].isActive = isActive;\r\n },\r\n\r\n setWebLeadScheduleActive(state, { dayOfWeek, isActive }) {\r\n state.webLeadSchedules[dayOfWeek].forEach((item) => {\r\n item.isActive = isActive;\r\n });\r\n },\r\n\r\n updateWebLeadScheduleToLeadTypeSchedule(state, scheduleToLeadTypeSchedule) {\r\n state.leadType.schedule = scheduleToLeadTypeSchedule;\r\n },\r\n\r\n setPartCap(state, { day, index, limit }) {\r\n state.schedules[day].dayPartSchedules[index].dayPartCap.limit = limit;\r\n },\r\n\r\n setConcurrencyCap(state, { day, index, limit }) {\r\n state.schedules[day].dayPartSchedules[index].concurrencyCap = limit;\r\n },\r\n\r\n setDirty(state, isDirty) {\r\n state.dirty = isDirty;\r\n },\r\n\r\n setWebLeadSchedules(state, schedules) {\r\n state.webLeadSchedules = schedules;\r\n },\r\n\r\n setIntervalCap(state, { limit, dayIndex, start }) {\r\n state.schedules[DailySchedule.days[dayIndex]].dayPartSchedules.forEach(\r\n (dayPart) => {\r\n const intervalCap = dayPart.intervalCaps.find(\r\n (cap) => cap.start === start\r\n );\r\n if (intervalCap) {\r\n intervalCap.limit = limit;\r\n } else {\r\n dayPart.intervalCaps.push(\r\n new DailySchedule.Cap({\r\n limit,\r\n start,\r\n end: IntervalMap.nextTime(start, state.intervalMap.step),\r\n dayIndex,\r\n })\r\n );\r\n }\r\n }\r\n );\r\n },\r\n\r\n resetIntervalCaps(state) {\r\n DailySchedule.days.forEach((day) => {\r\n if (!state.schedules[day] || !state.schedules[day].dayPartSchedules)\r\n return;\r\n state.schedules[day].dayPartSchedules.forEach((dayPart) => {\r\n dayPart.intervalCaps = [];\r\n });\r\n });\r\n },\r\n\r\n resetSchedulerState(state) {\r\n const initialState = getInitialState();\r\n Object.keys(state).forEach((key) => {\r\n state[key] = initialState[key];\r\n });\r\n },\r\n};\r\n","import axiosInstance, { axiosAnonymous } from '@/plugins/axios';\r\nimport { authService } from '@/services/auth';\r\nimport _ from '@/utils/store-helpers';\r\nimport { processTerritory } from '@/components/channels/Territories/TerritoriesUtils';\r\nimport moment from 'moment';\r\nimport DailySchedule from '@/components/scheduler/DailySchedule';\r\nimport IntervalMap from '@/components/scheduler/IntervalMap';\r\n\r\nconst CALL_TYPE = 2;\r\nconst WEB_TYPE = 1;\r\nconst defaultDeposits = {\r\n Web: 0,\r\n Call: 0,\r\n};\r\n// This is what the server sends when you make a new IO\r\nconst defaultRechargeAmount = 100;\r\n\r\nfunction mapIoToMatchPromosData(promos, deposits) {\r\n return Object.keys(defaultDeposits).reduce((data, productType) => {\r\n const maximum = deposits[productType] ?? 0;\r\n const promo = promos?.find((x) => x.productType === productType);\r\n const promoAmount = promo?.amount ?? 0;\r\n const percent =\r\n promoAmount === 0\r\n ? null\r\n : promoAmount > maximum\r\n ? 100\r\n : (promoAmount / maximum) * 100;\r\n data[productType] = {\r\n value: promoAmount,\r\n maximum,\r\n percent,\r\n };\r\n return data;\r\n }, {});\r\n}\r\n\r\nexport const state = {\r\n signupInfo: {\r\n client: {\r\n gravityProfileId: '',\r\n businessContactFirstName: '',\r\n businessContactLastName: '',\r\n fullName: '',\r\n businessContactAddress1: '',\r\n businessContactAddress2: '',\r\n businessContactCity: '',\r\n businessContactState: '',\r\n businessContactZip: '',\r\n businessContactPhone: '',\r\n businessContactFax: '',\r\n businessContactEmail: '',\r\n clientAgreements: '',\r\n status: '',\r\n level: '',\r\n parentCompany: '',\r\n salesId: '',\r\n agencyEmail: '',\r\n timeZone: '',\r\n salesforceId: '',\r\n shortName: '',\r\n licenseNumber: '',\r\n salesSupportTeamId: '',\r\n cashcapNoReset: 'false',\r\n },\r\n consentCompanyId: null,\r\n clientQuoteTypes: [],\r\n clientSchedule: {},\r\n preventCapsPerScheduleOverride: false,\r\n defaultCardId: 0,\r\n webRechargeEnabled: true,\r\n webRechargeAmount: 0,\r\n callRechargeAmount: 0,\r\n logins: [],\r\n chargeCard: true,\r\n immediateActivation: true,\r\n activationDate: '',\r\n discounts: [],\r\n notes: '',\r\n callSchedule: null,\r\n subscriptionGroups: [],\r\n isElite: false,\r\n deposits: { ...defaultDeposits },\r\n matchPromos: {},\r\n },\r\n validationResult: {\r\n isAccountValid: true,\r\n results: [],\r\n },\r\n packageDetails: [],\r\n loading: false,\r\n contractExpired: false,\r\n existingLogin: null,\r\n pendingSignups: [],\r\n territories: [],\r\n parentSpecialProgram: {\r\n parentCompany: '',\r\n sfSubsidy: false,\r\n farmersBMP: false,\r\n farmersFolio: false,\r\n sfAutoSubsidy: 0,\r\n sfHomeSubsidy: 0,\r\n sfRenterSubsidy: 0,\r\n stateFarmCombinedUpload: false,\r\n },\r\n promotions: [],\r\n clientIp: 'N/A',\r\n pagination: {\r\n currentPage: 1,\r\n pageSize: 100,\r\n totalRecords: 0,\r\n },\r\n sortBy: '-UPDATED_DTG',\r\n errors: [\r\n // Error expected signature:\r\n // {\r\n // step: Number,\r\n // header: String,\r\n // errors: Array,\r\n // }\r\n ],\r\n isLutVisible: false,\r\n stepData: [\r\n {\r\n step: 0,\r\n header: 'Client Data',\r\n },\r\n {\r\n step: 1,\r\n header: 'Create Lead Channels',\r\n },\r\n {\r\n step: 2,\r\n header: 'Enter Billing Information',\r\n },\r\n {\r\n step: 3,\r\n header: 'Add Promotion',\r\n },\r\n {\r\n step: 4,\r\n header: 'Schedule',\r\n },\r\n {\r\n step: 5,\r\n header: 'Send Contract',\r\n },\r\n ],\r\n depositErrors: {},\r\n matchPromoErrors: [],\r\n};\r\n\r\nexport const getters = {\r\n // errors and validation\r\n currentErrors: (_, { errorList }) => errorList.filter((e) => e.errors.length),\r\n validationErrors: (state) => {\r\n return state.validationResult?.isAccountValid ?? true\r\n ? []\r\n : state.validationResult.results\r\n .filter(\r\n (x) => !x.isValid && !(x.area === 'BILLING' && x.code === 'NO_CC')\r\n )\r\n .map((x) => x.message);\r\n },\r\n isAccountValid(_, { validationErrors }) {\r\n return !validationErrors.length;\r\n },\r\n errorList: (\r\n state,\r\n {\r\n validationErrors,\r\n areChannelsIncomplete,\r\n incompleteChannels,\r\n hasCallChannel,\r\n hasWebChannel,\r\n hasMedsuppChannel,\r\n areAnySchedulesWithStartIsAfterEnd,\r\n isStandardBilling,\r\n },\r\n rootState,\r\n rootGetters\r\n ) => {\r\n let channelErrorMsgs = [];\r\n if (!hasCallChannel && !hasWebChannel) {\r\n channelErrorMsgs.push('No channels have been defined');\r\n } else if (areChannelsIncomplete) {\r\n channelErrorMsgs = incompleteChannels.map(\r\n (cqt) => `Channel ${cqt.customName} has not been completed`\r\n );\r\n }\r\n\r\n const mapStepErrors = (step, errors) => ({\r\n ...state.stepData[step],\r\n errors,\r\n });\r\n\r\n const channelErrors = channelErrorMsgs.some((x) => x)\r\n ? [mapStepErrors(1, channelErrorMsgs)]\r\n : [];\r\n\r\n const depositErrors = [];\r\n if (isStandardBilling) {\r\n if (hasWebChannel && state.depositErrors.Web) {\r\n depositErrors.push(state.depositErrors.Web);\r\n }\r\n if (hasCallChannel && state.depositErrors.Call) {\r\n depositErrors.push(state.depositErrors.Call);\r\n }\r\n }\r\n\r\n const hasBillingErrors =\r\n validationErrors.some((x) => x) || depositErrors.some((x) => x);\r\n const billingErrors = hasBillingErrors\r\n ? [mapStepErrors(2, [...validationErrors, ...depositErrors])]\r\n : [];\r\n\r\n const promoErrors = state.matchPromoErrors.some((x) => x)\r\n ? [\r\n mapStepErrors(\r\n 3,\r\n state.matchPromoErrors.map((x) => x.error)\r\n ),\r\n ]\r\n : [];\r\n\r\n const scheduleErrors = areAnySchedulesWithStartIsAfterEnd\r\n ? [\r\n mapStepErrors(4, [\r\n 'One or more schedules have a start time after the end time',\r\n ]),\r\n ]\r\n : [];\r\n\r\n const medsuppErrors =\r\n rootGetters['featureFlagStore/medicareConsentEnabled'] &&\r\n hasMedsuppChannel &&\r\n !state.signupInfo.consentCompanyId\r\n ? [\r\n mapStepErrors(0, [\r\n 'Medicare Consent Carrier is required when Medsupp channels exist.',\r\n ]),\r\n ]\r\n : [];\r\n\r\n return [\r\n ...state.errors,\r\n ...channelErrors,\r\n ...billingErrors,\r\n ...promoErrors,\r\n ...scheduleErrors,\r\n ...medsuppErrors,\r\n ];\r\n },\r\n hasErrors: (_, { currentErrors }) => currentErrors.some((x) => x),\r\n\r\n // Channels\r\n hasCallChannel: (state) =>\r\n state.signupInfo.clientQuoteTypes.some(\r\n (c) => c.productTypeId === CALL_TYPE\r\n ),\r\n hasWebChannel: (state) =>\r\n state.signupInfo.clientQuoteTypes.some((c) => c.productTypeId === WEB_TYPE),\r\n hasMedsuppChannel: (state) =>\r\n state.signupInfo.clientQuoteTypes.some((c) => c.quoteType === 'MEDSUPP'),\r\n clientQuoteTypes(state) {\r\n return state.signupInfo.clientQuoteTypes;\r\n },\r\n subscriptionGroups(state) {\r\n return state.signupInfo.subscriptionGroups;\r\n },\r\n cqtypesChannelOverview(state, { clientQuoteTypes }) {\r\n return clientQuoteTypes.map((cqt) => ({\r\n id: cqt.id,\r\n name: cqt.customName,\r\n type: cqt.quoteType,\r\n source: cqt.serviceType,\r\n date: cqt.createDate,\r\n price: cqt.payout,\r\n filters: cqt.filterList ? cqt.filterList.split(',') : [],\r\n package: state.packageDetails.find((obj) => {\r\n return obj.id === cqt.packageId;\r\n }),\r\n packageName: cqt.packageName,\r\n maxSold: cqt.maxSold,\r\n caps:\r\n cqt.serviceType === 'Web'\r\n ? {\r\n ...cqt.dayCapSchedule,\r\n }\r\n : { ...cqt.callSchedule },\r\n zipCodes: cqt.geoMaps.filter((x) => x.type === 'ZipCode').length,\r\n counties: cqt.geoMaps.filter((x) => x.type === 'County').length,\r\n states: cqt.geoMaps.filter((x) => x.type === 'State').length,\r\n geoMaps: cqt.geoMaps,\r\n status: cqt.status,\r\n schedule: cqt.schedule,\r\n priceModifiers: cqt.priceModifiers,\r\n ioPriceModifiers: cqt.ioPriceModifiers,\r\n numLeadsToday: 0,\r\n delivery: cqt.emailDelivery\r\n .concat(cqt.crmDelivery)\r\n .concat(cqt.phoneNumbers),\r\n }));\r\n },\r\n incompleteChannels: (state) =>\r\n state.signupInfo.clientQuoteTypes.filter((x) =>\r\n x.customName.startsWith('INCOMPLETE')\r\n ),\r\n areChannelsIncomplete: (_, { incompleteChannels }) =>\r\n incompleteChannels.some((x) => x),\r\n\r\n // Account Info\r\n accountState(_, { client }) {\r\n return client.businessContactState;\r\n },\r\n client(state) {\r\n return state.signupInfo.client;\r\n },\r\n isElite(state) {\r\n return state.signupInfo.isElite;\r\n },\r\n isMinimumDataAvailable(_, { client }) {\r\n return (\r\n !!client.parentCompany &&\r\n !!client.fullName &&\r\n !!client.businessContactEmail\r\n );\r\n },\r\n parentCompany(_, { client }) {\r\n return client.parentCompany;\r\n },\r\n accountDetails(state, { client }) {\r\n return {\r\n firstName: client.businessContactFirstName,\r\n lastName: client.businessContactLastName,\r\n fullName: client.fullName,\r\n address1: client.businessContactAddress1,\r\n address2: client.businessContactAddress2,\r\n city: client.businessContactCity,\r\n state: client.businessContactState,\r\n zip: client.businessContactZip,\r\n phone: client.businessContactPhone,\r\n fax: client.businessContactFax,\r\n email: client.businessContactEmail,\r\n status: client.status,\r\n loyaltyLevel: client.level,\r\n agency: client.parentCompany,\r\n salesPersonId: client.salesId,\r\n agencyEmail: client.agencyEmail,\r\n timeZone: client.timeZone,\r\n salesforceId: client.salesforceId,\r\n shortName: client.shortName,\r\n license: client.licenseNumber,\r\n salesSupportTeamId: client.salesSupportTeamId,\r\n salesPersonEmail: state.signupInfo.salesPersonEmail,\r\n };\r\n },\r\n businessContactZip: (state) => state.signupInfo?.client?.businessContactZip,\r\n\r\n // Billing Info\r\n chargeCard(state) {\r\n return state.signupInfo.chargeCard;\r\n },\r\n isWebRechargeEnabled: (state) => state.signupInfo.webRechargeEnabled,\r\n isStandardBilling(_, { client }) {\r\n return (\r\n client.specialProgram !== 'COUNTRY_CO_OP' &&\r\n client.specialProgram !== 'FARMERS_FOLIO'\r\n );\r\n },\r\n getProductDeposit: (state) => (product) =>\r\n state.signupInfo.deposits[product] ?? 0,\r\n\r\n // promos\r\n promoId: (state) => state.signupInfo.promoId,\r\n promotionName(state) {\r\n return (promoId) => {\r\n const promotion = state.promotions.find((p) => p.promoId === promoId);\r\n return promotion ? promotion.promoName : '[None Selected]';\r\n };\r\n },\r\n discounts: (state) => state.signupInfo.discounts,\r\n\r\n // Schedule\r\n areAnySchedulesWithStartIsAfterEnd: (state) => {\r\n return (\r\n Object.values(state.signupInfo.clientSchedule)\r\n .flatMap((day) => day.dayPartSchedules)\r\n .filter(\r\n (schedule) => schedule.dayPartCap.start > schedule.dayPartCap.end\r\n ).length > 0\r\n );\r\n },\r\n\r\n preventCapsPerScheduleOverride: (state) =>\r\n state.signupInfo.preventCapsPerScheduleOverride,\r\n};\r\n\r\nexport const actions = {\r\n // Channels\r\n showLut({ commit }) {\r\n commit('SET_SHOW_LUT', true);\r\n },\r\n hideLut({ commit }) {\r\n commit('SET_SHOW_LUT', false);\r\n },\r\n async getZipCodes({ commit, dispatch }, cqtId) {\r\n commit('setLoading', true);\r\n\r\n const popResponse = await axiosInstance\r\n .get('/api/salesLeadMap/push-pop')\r\n .catch((err) => err);\r\n\r\n if (popResponse instanceof Error) {\r\n commit('setLoading', false);\r\n\r\n if (popResponse.response && popResponse.response.status === 404) {\r\n dispatch('toastr/info', 'No Zip Codes available.', { root: true });\r\n return;\r\n }\r\n\r\n console.error(popResponse);\r\n return;\r\n }\r\n\r\n const zipCodesData = {\r\n data: popResponse.data.zipCodes.join(','),\r\n };\r\n const transformResponse = await axiosInstance\r\n .post(`/api/SalesLeadMap/territory-validate/`, zipCodesData)\r\n .catch((err) => err);\r\n\r\n if (transformResponse instanceof Error) {\r\n let message;\r\n if (!transformResponse.response) {\r\n message = 'Error: Network Error';\r\n } else {\r\n message = transformResponse.response.data.message;\r\n }\r\n\r\n dispatch('toastr/error', message);\r\n console.error(transformResponse);\r\n }\r\n\r\n const territories = [];\r\n\r\n for (const terr of transformResponse.data) {\r\n const { newTerritory } = processTerritory(terr, []);\r\n territories.push(newTerritory);\r\n }\r\n\r\n commit('SET_GEO_MAPS', { cqtId, territories });\r\n commit('leadType/SET_TERRITORIES', territories, { root: true });\r\n commit('setLoading', false);\r\n dispatch('toastr/success', 'Retrieved Zip Codes', { root: true });\r\n },\r\n async postZipCodes({ commit, state }) {\r\n commit('setLoading', true);\r\n\r\n const zips = state.territories.filter((g) => g.zipCode);\r\n\r\n const response = await axiosInstance\r\n .post('/api/salesLeadMap/push-pop', { zipCodes: zips })\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n commit('setLoading', false);\r\n },\r\n async cloneChannel({ commit, _, getters }, cloneModel) {\r\n commit('setLoading', true);\r\n const { clientQuoteTypes } = getters;\r\n const { serviceType, territories, dayCaps, leadDelivery } = cloneModel;\r\n let sourceChannel = null;\r\n const response = await axiosInstance.get(\r\n `/api/LeadType/new/${serviceType}`\r\n );\r\n\r\n const destinationChannel = response.data;\r\n\r\n if (territories.clone) {\r\n if (\r\n sourceChannel === null ||\r\n sourceChannel.id === territories.clientQuoteTypeId\r\n ) {\r\n sourceChannel = clientQuoteTypes.find((c) => {\r\n return c.id === territories.clientQuoteTypeId;\r\n });\r\n }\r\n destinationChannel.geoMaps = sourceChannel.geoMaps;\r\n }\r\n\r\n if (dayCaps.clone) {\r\n if (\r\n sourceChannel === null ||\r\n sourceChannel.id === dayCaps.clientQuoteTypeId\r\n ) {\r\n sourceChannel = clientQuoteTypes.find((c) => {\r\n return c.id === dayCaps.clientQuoteTypeId;\r\n });\r\n }\r\n destinationChannel.dayCapSchedule = sourceChannel.dayCapSchedule;\r\n }\r\n\r\n if (leadDelivery.clone) {\r\n if (\r\n sourceChannel === null ||\r\n sourceChannel.id === leadDelivery.clientQuoteTypeId\r\n ) {\r\n sourceChannel = clientQuoteTypes.find((c) => {\r\n return c.id === leadDelivery.clientQuoteTypeId;\r\n });\r\n }\r\n\r\n if (sourceChannel.serviceType === serviceType) {\r\n if (sourceChannel.serviceType === 'Web') {\r\n destinationChannel.emailDelivery = sourceChannel.emailDelivery;\r\n destinationChannel.crmDelivery = sourceChannel.crmDelivery;\r\n } else {\r\n destinationChannel.phoneNumbers = sourceChannel.phoneNumbers;\r\n }\r\n }\r\n }\r\n\r\n destinationChannel.serviceType = serviceType;\r\n destinationChannel.productTypeId = serviceType === 'Web' ? 1 : 2;\r\n\r\n commit('UPDATE_CLIENT_QUOTE_TYPE', { cqt: destinationChannel });\r\n commit('setLoading', false);\r\n },\r\n async updateClientQuoteType({ commit, dispatch, rootState, rootGetters }) {\r\n const cqt = rootState.leadType.leadType;\r\n let filterList;\r\n let packageName;\r\n const hasCustomPackage = rootGetters['leadType/hasCustomPackage'];\r\n\r\n const webLeadSchedule = await dispatch(\r\n 'scheduler/saveWebLeadSchedules',\r\n cqt.id,\r\n { root: true }\r\n );\r\n\r\n if (rootState.leadType.leadType.serviceType === 'Web') {\r\n if (hasCustomPackage) {\r\n filterList = rootState.leadType.leadType.filterList || [];\r\n packageName = 'Custom';\r\n } else {\r\n const response = await axiosInstance\r\n .get(`/api/leadType/package/${rootState.leadType.leadType.packageId}`)\r\n .catch((err) => err);\r\n filterList = response.data.filters.map((filter) => filter.name);\r\n packageName = response.data.name;\r\n }\r\n } else if (rootState.leadType.leadType.serviceType === 'Call') {\r\n const callPackages = await axiosInstance\r\n .get(\r\n `/api/leadType/calls/${rootState.signup.signupInfo.client.parentCompany}`\r\n )\r\n .catch((err) => err);\r\n if (callPackages instanceof Error || callPackages.status !== 200) {\r\n dispatch('toastr/error', 'Failed to get packages.', {\r\n root: true,\r\n });\r\n }\r\n const response = callPackages.data.find(\r\n (x) => x.id === rootState.leadType.leadType.packageId\r\n );\r\n filterList = response.filters.map((filter) => filter.name);\r\n packageName = response.name;\r\n }\r\n const callSchedule = rootGetters['scheduler/updateRequestBody']();\r\n const phoneNumbers = cqt.phoneNumbers;\r\n callSchedule.ClientQuoteTypeID = cqt.id;\r\n filterList = filterList.toString();\r\n commit('UPDATE_CLIENT_QUOTE_TYPE', {\r\n cqt,\r\n callSchedule,\r\n filterList,\r\n packageName,\r\n phoneNumbers,\r\n maxSold: cqt.maxSold,\r\n webLeadSchedule,\r\n });\r\n if (cqt.isNew) {\r\n commit('ADD_CHANNEL', cqt);\r\n }\r\n commit('leadType/RESET_STATE', null, { root: true });\r\n dispatch('saveSignupBlob');\r\n return cqt;\r\n },\r\n deleteClientQuoteType({ commit, dispatch, state }, id) {\r\n const serviceType = state.signupInfo.clientQuoteTypes.find(\r\n (x) => x.id === id\r\n ).serviceType;\r\n const countOfChannelType = state.signupInfo.clientQuoteTypes.filter(\r\n (x) => x.serviceType === serviceType\r\n ).length;\r\n\r\n commit('DELETE_CLIENT_QUOTE_TYPE', id);\r\n if (countOfChannelType === 1) {\r\n commit('UPDATE_DEPOSIT', { productType: serviceType, value: 0 });\r\n\r\n if (serviceType.toLocaleLowerCase() === 'web') {\r\n commit('UPDATE_WEB_RECHARGE_AMOUNT', defaultRechargeAmount);\r\n } else {\r\n commit('UPDATE_CALL_RECHARGE_AMOUNT', defaultRechargeAmount);\r\n }\r\n }\r\n\r\n dispatch('saveSignupBlob');\r\n },\r\n\r\n // Signup / Account Info\r\n async getParentSpecialProgram({ commit, state, rootGetters }) {\r\n const {\r\n parentCompany,\r\n agencyEmail,\r\n businessContactCity,\r\n businessContactZip,\r\n } = state.signupInfo.client;\r\n if (!parentCompany || !agencyEmail) {\r\n return;\r\n }\r\n\r\n let uri = `/api/sales/parentProgram/${agencyEmail}/${parentCompany}`;\r\n\r\n const isSubsidyByStateEnabled = rootGetters['featureFlagStore/getFlag'](\r\n 'StateFarmCombinedUpload'\r\n );\r\n if (parentCompany === 'STATEFARM' && isSubsidyByStateEnabled) {\r\n uri = `/api/sales/parentProgram/${agencyEmail}/${parentCompany}/${businessContactZip}/${businessContactCity}`;\r\n }\r\n\r\n const response = await axiosInstance.get(uri).catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n return;\r\n }\r\n\r\n const parentSpecialProgram = response.data;\r\n parentSpecialProgram.stateFarmCombinedUpload = isSubsidyByStateEnabled;\r\n\r\n commit('SET_PARENT_SPECIAL_PROGRAM', parentSpecialProgram);\r\n },\r\n async createSignupInfo({ commit, dispatch }, salesForceData) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .post(`/api/sales`, salesForceData)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n commit('setSignupInfo', {\r\n deposits: {},\r\n ...response.data,\r\n });\r\n\r\n const cleanedMatchPromoSettings = mapIoToMatchPromosData(\r\n response.data.matchPromos,\r\n response.data.deposits\r\n );\r\n dispatch('promos/setMatchPromosFromSource', cleanedMatchPromoSettings, {\r\n root: true,\r\n });\r\n\r\n commit('setLoading', false);\r\n },\r\n async getSignupInfo({ commit, dispatch, state }, id = '') {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .get(`/api/sales/${id}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n if (response.response && response.response.status === 404) {\r\n dispatch('deleteSignup', id);\r\n dispatch(\r\n 'toastr/error',\r\n 'This signup has expired and no longer exists.',\r\n { root: true }\r\n );\r\n }\r\n\r\n console.error(response);\r\n commit('setLoading', false);\r\n return Promise.reject(response);\r\n }\r\n\r\n let { activationDate, discounts } = response.data;\r\n\r\n if (activationDate === '1/1/0001 12:00:00 AM') {\r\n activationDate = moment().add('days', 1).format('MM-DD-YYYY');\r\n }\r\n\r\n const newSignupInfo = {\r\n deposits: { ...defaultDeposits },\r\n ...response.data,\r\n activationDate,\r\n discounts,\r\n };\r\n\r\n newSignupInfo.deposits ??= { ...defaultDeposits };\r\n\r\n commit('setSignupInfo', newSignupInfo);\r\n\r\n const groups = state.signupInfo.subscriptionGroups;\r\n dispatch('channelGroups/setGroups', groups, { root: true });\r\n\r\n const cleanedMatchPromoSettings = mapIoToMatchPromosData(\r\n newSignupInfo.matchPromos,\r\n newSignupInfo.deposits\r\n );\r\n dispatch('promos/setMatchPromosFromSource', cleanedMatchPromoSettings, {\r\n root: true,\r\n });\r\n\r\n // if(response.data.clientSchedule){\r\n // commit('scheduler/setSchedules', response.data.clientSchedule, { root: true });\r\n // }\r\n\r\n commit('setLoading', false);\r\n\r\n return response.data.id;\r\n },\r\n async getCurrentPromotions({ commit, state }) {\r\n if (!state.signupInfo.client.parentCompany) return;\r\n const response = await axiosInstance\r\n .get(`/api/sales/promotions/${state.signupInfo.client.parentCompany}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n return;\r\n }\r\n\r\n commit('SET_PROMOTIONS', response.data);\r\n },\r\n getProductTypeIdByName(_, productName) {\r\n return productName.toLocaleLowerCase() === 'web' ? 1 : 2;\r\n },\r\n async saveSignupBlob({ commit, state, dispatch }) {\r\n commit('setLoading', true);\r\n commit('RESET_VALIDATION_RESULT');\r\n\r\n const cleanedDeposit = {};\r\n for (const key in state.signupInfo.deposits) {\r\n if (state.signupInfo.deposits[key] > 0) {\r\n const newKey = await dispatch('getProductTypeIdByName', key);\r\n cleanedDeposit[newKey] = state.signupInfo.deposits[key];\r\n }\r\n }\r\n\r\n const cleanedInfo = {\r\n ...state.signupInfo,\r\n deposits: cleanedDeposit,\r\n };\r\n\r\n const response = await axiosInstance\r\n .put(`/api/sales/update`, cleanedInfo)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n if (response?.response?.status === 409) {\r\n dispatch('toastr/error', 'IO Already Signed', { root: true });\r\n } else if (response?.response?.status === 400) {\r\n dispatch(\r\n 'toastr/error',\r\n `Unable to save IO: ${response.response.data}`,\r\n { root: true }\r\n );\r\n }\r\n console.error(response);\r\n\r\n commit('setLoading', false);\r\n throw response;\r\n }\r\n commit('SET_VALIDATION_RESULT', response.data);\r\n commit('setLoading', false);\r\n return response.data;\r\n },\r\n updateRechargeAmountForProduct({ commit }, { product, value }) {\r\n if (product?.toLocaleLowerCase() === 'web' || product === 1) {\r\n commit('UPDATE_WEB_RECHARGE_AMOUNT', value);\r\n } else {\r\n commit('UPDATE_CALL_RECHARGE_AMOUNT', value);\r\n }\r\n },\r\n updateDepositForProduct({ commit, state }, depositInfo) {\r\n if (\r\n state.signupInfo.deposits[depositInfo.productType] !== depositInfo.value\r\n ) {\r\n commit('UPDATE_DEPOSIT', depositInfo);\r\n commit(\r\n 'promos/SET_MATCH_PROMO_MAXIMUM',\r\n {\r\n product: depositInfo.productType,\r\n maximum: depositInfo.value,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n }\r\n },\r\n\r\n // Signup List\r\n async getPendingSignups({ commit }, { search }) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .get('/api/sales/pending', {\r\n params: {\r\n search,\r\n page: state.pagination.currentPage,\r\n size: state.pagination.pageSize,\r\n sortBy: state.sortBy,\r\n },\r\n })\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n commit('setPendingSignups', response.data.items);\r\n commit('setPagination', response.data.metaData);\r\n commit('setLoading', false);\r\n },\r\n async deleteSignup({ commit }, ioId) {\r\n commit('DELETE_SIGNUP', ioId);\r\n\r\n const response = await axiosInstance\r\n .delete(`api/sales/${ioId}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Error handling\r\n console.error(response);\r\n }\r\n },\r\n\r\n // Contracts\r\n async getContractInfo({ commit, dispatch }, id) {\r\n commit('RESET_VALIDATION_RESULT');\r\n commit('setLoading', true);\r\n\r\n const response = await axiosAnonymous\r\n .get(`/api/sales/sign-contract/${id}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n let message = 'Failed to load contract info. Please contact support.';\r\n\r\n if (response.response && response.response.status === 400) {\r\n message = 'Contract signing expired. Please contact support.';\r\n commit('setContractExpired', true);\r\n } else {\r\n // TODO: Fatal error\r\n console.error(response);\r\n }\r\n\r\n dispatch('toastr/error', message, { root: true });\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n const packageList = response.data.packageDetails;\r\n\r\n commit('setExistingLogin', response.data.login);\r\n commit('setSignupInfo', {\r\n deposits: { ...defaultDeposits },\r\n ...response.data.clientIO,\r\n });\r\n commit('setPackageDetails', packageList);\r\n commit('setClientIp', response.data.clientIp);\r\n commit('SET_VALIDATION_RESULT', response.data.validationResult);\r\n commit('setLoading', false);\r\n },\r\n async bindRole() {\r\n const adalUser = authService.getUser();\r\n if (adalUser) {\r\n await axiosInstance.get('/api/login/bind-role').catch((err) => err);\r\n }\r\n },\r\n async sendContract({ dispatch, state }) {\r\n const response = await axiosInstance\r\n .post(`/api/sales/${state.signupInfo.id}/send-contract`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n let message = 'Failed to send contract. Please contact support.';\r\n\r\n if (response.response && response.response.status === 400) {\r\n message = response.response.data;\r\n }\r\n\r\n dispatch('toastr/error', message, { root: true });\r\n console.error(response);\r\n return false;\r\n }\r\n\r\n dispatch('toastr/success', 'Contract Sent.', { root: true });\r\n return true;\r\n },\r\n async ioSignUp() {\r\n authService.setAuthority('ioSignUp');\r\n authService.login();\r\n },\r\n async ioSignIn() {\r\n authService.setAuthority('io');\r\n authService.login();\r\n },\r\n async signContract({ commit, dispatch, state }) {\r\n await dispatch('saveSignupBlob');\r\n commit('setLoading', false);\r\n\r\n const response = await dispatch('request/post', {\r\n url: `/api/sales/sign-contract/${state.signupInfo.id}`,\r\n errorMessage: 'Failed to sign contract',\r\n });\r\n\r\n if (response instanceof Error) {\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n async saveClientApproval({ commit }, { name, initials, clientAgreements }) {\r\n commit('SET_CLIENT_APPROVAL_INITIALS', initials);\r\n commit('SET_CLIENT_APPROVAL_NAME', name);\r\n commit('SET_CLIENT_APPROVAL_DATE', new Date());\r\n commit('SET_CLIENT_APPROVAL_IP', state.clientIp);\r\n commit('SET_CLIENT_AGREEMENTS', clientAgreements);\r\n },\r\n\r\n // Schedule\r\n addDayPartSchedule({ commit, dispatch, state }, { day, intervalStep }) {\r\n const lastIndex =\r\n state.signupInfo.clientSchedule[day].dayPartSchedules.length - 1;\r\n let newStartTime = '09:00:00';\r\n let newEndTime = '17:00:00';\r\n\r\n if (lastIndex > -1) {\r\n const lastDayPartSchedule =\r\n state.signupInfo.clientSchedule[day].dayPartSchedules[lastIndex];\r\n newStartTime = IntervalMap.nextTime(\r\n lastDayPartSchedule.dayPartCap.end,\r\n intervalStep\r\n );\r\n\r\n if (newStartTime === '23:45:00' || newStartTime === '24:00:00') {\r\n dispatch(\r\n 'toastr/error',\r\n `There's no more time left in the day! You may adjust existing schedules.`,\r\n {\r\n root: true,\r\n }\r\n );\r\n return;\r\n }\r\n newEndTime = IntervalMap.nextTime(newStartTime, '01:00:00');\r\n }\r\n\r\n const newDayPartSchedule = new DailySchedule.DayPartSchedule({\r\n concurrencyCap: 0,\r\n dayPartCap: new DailySchedule.Cap({\r\n start: newStartTime,\r\n end: newEndTime,\r\n dayIndex: state.signupInfo.clientSchedule[day].dayIndex,\r\n }),\r\n });\r\n\r\n commit('addDayPartSchedule', newDayPartSchedule);\r\n },\r\n setDayPartSchedule({ commit }, { startOrEnd, day, index, time }) {\r\n commit('setDayPartSchedule', { startOrEnd, day, index, time });\r\n },\r\n removeDayPartSchedule({ commit, dispatch, state }, { day, index }) {\r\n commit('removeDayPartSchedule', { day, index });\r\n if (state.signupInfo.clientSchedule[day].dayPartSchedules.length === 0) {\r\n dispatch('addDayPartSchedule', { day, intervalStep: '01:00:00' });\r\n commit('setDayActive', { day, isActive: false });\r\n }\r\n },\r\n setDayActive({ commit }, { day, isActive }) {\r\n commit('setDayActive', { day, isActive });\r\n },\r\n\r\n async setPreventCapOverrideBySchedule({ commit }, newPreventStatus) {\r\n commit('setPreventCapOverrideBySchedule', newPreventStatus);\r\n },\r\n\r\n // Promos\r\n async setMatchPromos({ commit, dispatch }, { errors, ...promos }) {\r\n const cleanedMatchPromos = [];\r\n for (const key in promos) {\r\n const amount = parseFloat(promos[key].value);\r\n if (!isNaN(amount) && amount !== 0) {\r\n const productType = await dispatch('getProductTypeIdByName', key);\r\n cleanedMatchPromos.push({\r\n productType,\r\n amount,\r\n });\r\n }\r\n }\r\n\r\n commit('SET_MATCH_PROMO_ERRORS', errors);\r\n commit('SET_MATCH_PROMO_SETTINGS', cleanedMatchPromos);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setLoading: _.set('loading'),\r\n setSignupInfo: _.set('signupInfo'),\r\n setPackageDetails: _.set('packageDetails'),\r\n setContractExpired: _.set('contractExpired'),\r\n setExistingLogin: _.set('existingLogin'),\r\n setPendingSignups: _.set('pendingSignups'),\r\n setClientIp: _.set('clientIp'),\r\n setPagination: _.set('pagination'),\r\n SET_SHOW_LUT: _.set('isLutVisible'),\r\n\r\n setPreventCapOverrideBySchedule(state, newPreventStatus) {\r\n state.signupInfo.preventCapsPerScheduleOverride = newPreventStatus;\r\n },\r\n\r\n SET_DEPOSIT_ERRORS(state, newErrors) {\r\n state.depositErrors = {\r\n ...state.depositErrors,\r\n ...newErrors,\r\n };\r\n },\r\n REMOVE_DEPOSIT_ERRORS(state, keyToRemove) {\r\n const { [keyToRemove]: _, ...rest } = state.depositErrors;\r\n state.depositErrors = rest;\r\n },\r\n setFirstName(state, val) {\r\n state.signupInfo.client.businessContactFirstName = val;\r\n },\r\n setLastName(state, val) {\r\n state.signupInfo.client.businessContactLastName = val;\r\n },\r\n setFullName(state, val) {\r\n state.signupInfo.client.fullName = val;\r\n },\r\n setLicenseNumber(state, val) {\r\n state.signupInfo.client.licenseNumber = val;\r\n },\r\n setAddress1(state, val) {\r\n state.signupInfo.client.businessContactAddress1 = val;\r\n },\r\n setAddress2(state, val) {\r\n state.signupInfo.client.businessContactAddress2 = val;\r\n },\r\n setCity(state, val) {\r\n state.signupInfo.client.businessContactCity = val;\r\n },\r\n setState(state, val) {\r\n state.signupInfo.client.businessContactState = val;\r\n },\r\n setZip(state, val) {\r\n state.signupInfo.client.businessContactZip = val;\r\n },\r\n setPhone(state, val) {\r\n state.signupInfo.client.businessContactPhone = val;\r\n },\r\n setEmail(state, val) {\r\n state.signupInfo.client.businessContactEmail = val;\r\n },\r\n setAgencyEmail(state, val) {\r\n state.signupInfo.client.agencyEmail = val;\r\n },\r\n setParentCompany(state, val) {\r\n state.signupInfo.client.parentCompany = val;\r\n },\r\n setSalesforceId(state, val) {\r\n state.signupInfo.client.salesforceId = val;\r\n },\r\n setTimeZone(state, val) {\r\n state.signupInfo.client.timeZone = val;\r\n },\r\n setSalesPersonEmail(state, val) {\r\n state.signupInfo.salesPersonEmail = val;\r\n },\r\n setCurrentPage(state, newValue) {\r\n state.pagination.currentPage = newValue;\r\n },\r\n setPageSize(state, newValue) {\r\n state.pagination.pageSize = newValue;\r\n },\r\n\r\n // Schedule\r\n addDayPartSchedule(state, newDayPartSchedule) {\r\n state.signupInfo.clientSchedule[\r\n newDayPartSchedule.dayPartCap.dayOfWeek\r\n ].dayPartSchedules.push(newDayPartSchedule);\r\n },\r\n setDayPartSchedule(state, { startOrEnd, day, index, time }) {\r\n state.signupInfo.clientSchedule[day].dayPartSchedules[index].dayPartCap[\r\n startOrEnd\r\n ] = time;\r\n },\r\n setDaySchedule(state, { day, start, end, isActive }) {\r\n const daySchedule = state.signupInfo.clientSchedule[day];\r\n daySchedule.isActive = isActive;\r\n\r\n daySchedule.dayPartSchedules = [daySchedule.dayPartSchedules[0]];\r\n start ??= '00:00:00';\r\n end ??= '24:00:00';\r\n\r\n const dayPart = daySchedule.dayPartSchedules[0].dayPartCap;\r\n dayPart.start = start;\r\n dayPart.end = end;\r\n },\r\n removeDayPartSchedule(state, { day, index }) {\r\n state.signupInfo.clientSchedule[day].dayPartSchedules.splice(index, 1);\r\n },\r\n setDayActive(state, { day, isActive }) {\r\n state.signupInfo.clientSchedule[day].isActive = isActive;\r\n },\r\n\r\n UPDATE_CLIENT_QUOTE_TYPE(\r\n state,\r\n {\r\n cqt,\r\n callSchedule,\r\n filterList,\r\n packageName,\r\n phoneNumbers,\r\n maxSold,\r\n webLeadSchedule,\r\n }\r\n ) {\r\n const { clientQuoteTypes } = state.signupInfo;\r\n cqt.callSchedule = callSchedule;\r\n cqt.schedule = webLeadSchedule;\r\n cqt.packageName = packageName;\r\n cqt.filterList = filterList;\r\n cqt.maxSold = maxSold;\r\n\r\n for (let i = 0; i < clientQuoteTypes.length; i++) {\r\n if (clientQuoteTypes[i].id === cqt.id) {\r\n clientQuoteTypes[i] = cqt;\r\n return;\r\n }\r\n }\r\n },\r\n DELETE_CLIENT_QUOTE_TYPE(state, clientQuoteTypeId) {\r\n state.signupInfo.clientQuoteTypes = [\r\n ...state.signupInfo.clientQuoteTypes.filter(\r\n (x) => x.id !== clientQuoteTypeId\r\n ),\r\n ];\r\n },\r\n\r\n ADD_CHANNEL(state, cqt) {\r\n cqt.isNew = false;\r\n state.signupInfo.clientQuoteTypes.push(cqt);\r\n },\r\n\r\n SET_PARENT_SPECIAL_PROGRAM(state, newValue) {\r\n state.parentSpecialProgram = newValue;\r\n },\r\n UPDATE_GRAVITY_ID(state, newValue) {\r\n state.signupInfo.client.gravityProfileId = newValue;\r\n },\r\n UPDATE_CARD_ID(state, newValue) {\r\n state.signupInfo.defaultCardId = newValue;\r\n },\r\n UPDATE_CASH_CAP(state, newValue) {\r\n state.signupInfo.cashCapBalance = newValue;\r\n },\r\n UPDATE_CASH_CAP_RESET(state, newValue) {\r\n state.signupInfo.client.cashcapNoReset = newValue;\r\n },\r\n UPDATE_LOYALTY_LEVEL(state, newValue) {\r\n state.signupInfo.client.level = newValue;\r\n },\r\n UPDATE_CHARGE_CARD(state, newValue) {\r\n state.signupInfo.chargeCard = newValue;\r\n },\r\n UPDATE_IMMEDIATE_ACTIVATION(state, newValue) {\r\n state.signupInfo.immediateActivation = newValue;\r\n },\r\n UPDATE_SPECIAL_PROGRAM(state, newValue) {\r\n state.signupInfo.client.specialProgram = newValue;\r\n },\r\n UPDATE_DEPOSIT(state, { productType, value }) {\r\n state.signupInfo.deposits = {\r\n ...state.signupInfo.deposits,\r\n [productType]: value,\r\n };\r\n },\r\n UPDATE_WEB_RECHARGE_ENABLED(state, newValue) {\r\n state.signupInfo.webRechargeEnabled = newValue;\r\n },\r\n UPDATE_WEB_RECHARGE_AMOUNT(state, newValue) {\r\n state.signupInfo.webRechargeAmount = newValue;\r\n },\r\n UPDATE_CALL_RECHARGE_AMOUNT(state, newValue) {\r\n state.signupInfo.callRechargeAmount = newValue;\r\n },\r\n SET_PROMOTIONS(state, newValue) {\r\n state.promotions = newValue;\r\n },\r\n SET_PROMO_CODE(state, newValue) {\r\n state.signupInfo.promoId = newValue;\r\n },\r\n SET_DISCOUNTS(state, newValue) {\r\n state.signupInfo.discounts = newValue;\r\n },\r\n UPDATE_ACTIVATION_DATE(state, newValue) {\r\n state.signupInfo.activationDate = newValue;\r\n },\r\n SET_CLIENT_APPROVAL_INITIALS(state, initials) {\r\n state.signupInfo.clientApprovalInitials = initials;\r\n },\r\n SET_CLIENT_APPROVAL_NAME(state, name) {\r\n state.signupInfo.clientApprovalName = name;\r\n },\r\n SET_CLIENT_APPROVAL_DATE(state, date) {\r\n state.signupInfo.clientApprovalDate = date;\r\n },\r\n SET_CLIENT_APPROVAL_IP(state, ip) {\r\n state.signupInfo.clientApprovalIp = ip;\r\n },\r\n SET_CLIENT_AGREEMENTS(state, clientAgreements) {\r\n state.signupInfo.clientAgreements = clientAgreements;\r\n },\r\n SET_NOTES(state, newValue) {\r\n state.signupInfo.notes = newValue;\r\n },\r\n SET_IO_SORT_BY(state, newValue) {\r\n state.sortBy = newValue;\r\n },\r\n SET_CHANNEL_GROUPS(state, newValue) {\r\n state.signupInfo.subscriptionGroups = newValue;\r\n },\r\n\r\n DELETE_SIGNUP(state, ioId) {\r\n state.pendingSignups = state.pendingSignups.filter((s) => {\r\n return s.blobKey !== ioId;\r\n });\r\n },\r\n\r\n SET_VALIDATION_RESULT(state, validationResult) {\r\n state.validationResult = validationResult;\r\n },\r\n\r\n RESET_VALIDATION_RESULT(state) {\r\n state.validationResult = {\r\n isAccountValid: false,\r\n results: [],\r\n };\r\n },\r\n\r\n SET_GEO_MAPS(state, { cqtId, territories }) {\r\n const { clientQuoteTypes } = state.signupInfo;\r\n for (let i = 0; i < clientQuoteTypes.length; i++) {\r\n if (clientQuoteTypes[i].id === cqtId) {\r\n clientQuoteTypes[i].geoMaps = territories;\r\n break;\r\n }\r\n }\r\n },\r\n\r\n SET_ACCOUNT_ERRORS(state, errors) {\r\n state.errors = [\r\n ...state.errors.filter((x) => x.step !== 0),\r\n {\r\n ...state.stepData[0],\r\n errors,\r\n },\r\n ];\r\n },\r\n\r\n SET_MATCH_PROMO_ERRORS: _.set('matchPromoErrors'),\r\n SET_MATCH_PROMO_SETTINGS(state, settings) {\r\n state.signupInfo.matchPromos = settings;\r\n },\r\n\r\n SET_CONSENT_COMPANY_ID(state, newValue) {\r\n state.signupInfo.consentCompanyId = newValue;\r\n if (newValue) {\r\n state.signupInfo.immediateActivation = false;\r\n state.signupInfo.activationDate = null;\r\n }\r\n },\r\n};\r\n","import { axiosInstance } from '@/plugins/axios';\r\nimport moment from 'moment';\r\n\r\n// initial state\r\nexport const state = {\r\n isSubsidyTypePickStep: true,\r\n importType: '',\r\n importTypeFriendly: '',\r\n isUploading: false,\r\n isUpload: false,\r\n isUploadComplete: false,\r\n isScheduledUpload: false,\r\n isFarmersVendor: false,\r\n fileSheets: [],\r\n subsidyFile: '',\r\n postedFileName: '',\r\n isSheetPick: false,\r\n selectedSheet: '',\r\n isPreProcessing: false,\r\n isApplyingRules: false,\r\n toBeAdded: 0,\r\n toBeUpdated: 0,\r\n toBeDeleted: 0,\r\n isApplyRules: false,\r\n processSuccess: false,\r\n isFarmersBillingDone: false,\r\n nextProcessingDtg: moment()\r\n .add(1, 'M')\r\n .startOf('month')\r\n .format('YYYY-MM-DD hh:mm:ss'),\r\n};\r\n\r\n// getters\r\nexport const getters = {};\r\n\r\n// actions\r\nexport const actions = {\r\n submitSubsidyFile({ commit }, { formData }) {\r\n commit('SET_UPLOADING_STATUS', true);\r\n return axiosInstance\r\n .post(`/api/subsidy/upload`, formData, {\r\n headers: {\r\n 'Content-Type': 'multipart/form-data',\r\n },\r\n })\r\n .then((response) => {\r\n if (response.data.isSuccess) {\r\n commit('SET_UPLOADING_STATUS', false);\r\n commit('SET_UPLOAD_STATUS', false);\r\n commit('SET_FILE_NAME', response.data.fileName);\r\n commit('SET_SHEET_PICK', true);\r\n } else {\r\n this.$store.dispatch(\r\n 'toastr/error',\r\n 'Error(s): ' + response.data.message\r\n );\r\n }\r\n })\r\n .catch((err) => {\r\n this.$store.dispatch('toastr/error', 'Error(s): ' + err);\r\n });\r\n },\r\n\r\n async submitSFSubsidyFile({ commit }, { formData, processNow }) {\r\n commit('SET_UPLOADING_STATUS', true);\r\n commit('SET_SCHEDULED_UPLOAD', !processNow);\r\ntry{\r\n var response = await axiosInstance\r\n .post(`/api/sfsubsidyimport/process/${processNow}`, formData, {\r\n headers: {\r\n 'Content-Type': 'multipart/form-data',\r\n },\r\n })\r\n commit('SET_UPLOADING_STATUS', false);\r\n commit('SET_UPLOAD_STATUS', false);\r\n\r\n if (response.data.isSuccess) {\r\n commit('SET_UPLOAD_COMPLETE', true);\r\n commit('SET_FILE_NAME', response.data.fileName);\r\n } else {\r\n this.dispatch(\r\n 'toastr/error',\r\n 'Error(s): ' + response.data.message\r\n );\r\n }\r\n }\r\n catch(error){\r\n this.dispatch('toastr/error', 'Error(s): ' + error.response.data);\r\n }\r\n finally{\r\n commit('SET_UPLOADING_STATUS', false);\r\n }\r\n },\r\n\r\n async submitFarmersBillingFile({ commit }, { formData }) {\r\n commit('SET_UPLOADING_STATUS', true);\r\n try {\r\n var response = await axiosInstance.post(\r\n `/api/farmersBillingRecords/farmers-billing-records-import`,\r\n formData,\r\n {\r\n headers: {\r\n 'Content-Type': 'multipart/form-data',\r\n },\r\n }\r\n );\r\n\r\n if (response.data.isSuccess) {\r\n commit('SET_UPLOADING_STATUS', false);\r\n commit('SET_UPLOAD_STATUS', false);\r\n // commit('SET_FILE_NAME', response.data.fileName);\r\n commit('SET_FARMERS_BILLING_DONE', true);\r\n } else {\r\n this.$store.dispatch(\r\n 'toastr/error',\r\n 'Error(s): ' + response.data.message\r\n );\r\n }\r\n } catch (error) {\r\n if (!error.response) {\r\n // network error\r\n this.dispatch('toastr/error', 'Error: Network Error');\r\n } else {\r\n this.dispatch(\r\n 'toastr/error',\r\n 'toastr/error',\r\n 'Error(s): ' + error.response.data\r\n );\r\n }\r\n console.error(error);\r\n }\r\n },\r\n getFileSheets({ commit }, { type }) {\r\n commit('SET_IS_PRE_PROCESSING', true);\r\n return axiosInstance\r\n .get(`/api/subsidy/getsheets`, {\r\n params: {\r\n t: type,\r\n fileName: state.postedFileName,\r\n },\r\n })\r\n .then((response) => {\r\n var data = response.data;\r\n commit('SET_FILESHEETS_LIST', data);\r\n commit('SET_IS_PRE_PROCESSING', false);\r\n return data;\r\n })\r\n .catch((err) => {\r\n this.$store.dispatch('toastr/error', 'Error(s): ' + err);\r\n });\r\n },\r\n execPreProcess({ commit }, { sheet, type }) {\r\n commit('SET_IS_PRE_PROCESSING', true);\r\n return axiosInstance\r\n .get(`/api/subsidy/preprocess`, {\r\n params: {\r\n t: type,\r\n fileName: state.postedFileName,\r\n sheetname: sheet,\r\n },\r\n })\r\n .then((response) => {\r\n commit('SET_IS_PRE_PROCESSING', false);\r\n if (response.status === 200) {\r\n commit('SET_SHEET_PICK', false);\r\n commit('SET_IS_APPLY_RULES', true);\r\n commit('SET_TO_BE_ADDED', response.data.toBeAdded);\r\n commit('SET_TO_BE_UPDATED', response.data.toBeUpdated);\r\n commit('SET_TO_BE_DELETED', response.data.toBeDeleted);\r\n } else {\r\n this.$store.dispatch(\r\n 'toastr/error',\r\n 'Error(s): ' + response.reasonPhrase // TODO= right thing to expose?\r\n );\r\n }\r\n })\r\n .catch((err) => {\r\n this.$store.dispatch('toastr/error', 'Error(s): ' + err);\r\n });\r\n },\r\n execApplyRules({ commit }, { type }) {\r\n commit('SET_IS_APPLYING_RULES', true);\r\n return axiosInstance\r\n .get(`/api/subsidy/applyrules`, {\r\n params: {\r\n t: type,\r\n },\r\n })\r\n .then((response) => {\r\n commit('SET_IS_APPLYING_RULES', false);\r\n if (response.status === 200) {\r\n commit('SET_IS_PROCESS_SUCCESS', true);\r\n commit('SET_IS_APPLY_RULES', false);\r\n } else {\r\n this.$store.dispatch(\r\n 'toastr/error',\r\n 'Error(s): ' + response.reasonPhrase\r\n );\r\n }\r\n })\r\n .catch((err) => {\r\n this.$store.dispatch('toastr/error', 'Error(s): ' + err);\r\n });\r\n },\r\n};\r\n\r\n// mutations\r\nexport const mutations = {\r\n SET_FILESHEETS_LIST(state, newValue) {\r\n state.fileSheets = newValue;\r\n },\r\n SET_IS_SUBSIDY_TYPE_PICK(state, newValue) {\r\n state.isSubsidyTypePickStep = newValue;\r\n },\r\n SET_UPLOADING_STATUS(state, newValue) {\r\n state.isUploading = newValue;\r\n },\r\n\r\n SET_FARMERS_BILLING_DONE(state, newValue) {\r\n state.isFarmersBillingDone = newValue;\r\n },\r\n SET_UPLOAD_STATUS(state, newValue) {\r\n state.isUpload = newValue;\r\n },\r\n SET_UPLOAD_COMPLETE(state, newValue) {\r\n state.isUploadComplete = newValue;\r\n },\r\n SET_FILE_NAME(state, newValue) {\r\n state.postedFileName = newValue;\r\n },\r\n SET_SHEET_PICK(state, newValue) {\r\n state.isSheetPick = newValue;\r\n },\r\n SET_IS_PRE_PROCESSING(state, newValue) {\r\n state.isPreProcessing = newValue;\r\n },\r\n SET_IS_APPLY_RULES(state, newValue) {\r\n state.isApplyRules = newValue;\r\n },\r\n SET_IS_APPLYING_RULES(state, newValue) {\r\n state.isApplyingRules = newValue;\r\n },\r\n SET_IS_PROCESS_SUCCESS(state, newValue) {\r\n state.processSuccess = newValue;\r\n },\r\n SET_SCHEDULED_UPLOAD(state, newValue) {\r\n state.isScheduledUpload = newValue;\r\n },\r\n SET_SUBSIDY_TYPE(state, newValue) {\r\n state.importType = newValue;\r\n switch (state.importType) {\r\n case 'StateFarmImportManager':\r\n state.importTypeFriendly = '(State Farm)';\r\n break;\r\n case 'FarmersBillingManager':\r\n state.importTypeFriendly = '(Farmers Billing)';\r\n break;\r\n case 'FarmersVendorManager':\r\n state.importTypeFriendly = '(Farmers Agent)';\r\n break;\r\n }\r\n state.isSubsidyTypePickStep = false;\r\n if (state.importType === 'FarmersVendorManager') {\r\n state.isFarmersVendor = true;\r\n } else {\r\n state.isUpload = true;\r\n }\r\n },\r\n SET_TO_BE_ADDED(state, newValue) {\r\n state.toBeAdded = newValue;\r\n },\r\n SET_TO_BE_UPDATED(state, newValue) {\r\n state.toBeUpdated = newValue;\r\n },\r\n SET_TO_BE_DELETED(state, newValue) {\r\n state.toBeDeleted = newValue;\r\n },\r\n SET_DEFAULT_STATE(state) {\r\n state.isSubsidyTypePickStep = true;\r\n state.importType = '';\r\n state.importTypeFriendly = '';\r\n state.isUploading = false;\r\n state.isUpload = false;\r\n state.fileSheets = [];\r\n state.subsidyFile = '';\r\n state.postedFileName = '';\r\n state.isSheetPick = false;\r\n state.selectedSheet = '';\r\n state.isPreProcessing = false;\r\n state.isApplyingRules = false;\r\n state.toBeAdded = 0;\r\n state.toBeUpdated = 0;\r\n state.toBeDeleted = 0;\r\n state.isApplyRules = false;\r\n state.processSuccess = false;\r\n state.isFarmersVendor = false;\r\n },\r\n};\r\n","export const state = {\r\n message: {},\r\n}\r\n\r\nexport const getters = {}\r\n\r\nexport const actions = {\r\n show({ commit }, config) {\r\n commit('setMessage', new ToastMessage(config))\r\n },\r\n success({ dispatch }, message) {\r\n dispatch('show', { message, type: ToastMessage.Types.success })\r\n },\r\n error({ dispatch }, message) {\r\n dispatch('show', { message, type: ToastMessage.Types.error })\r\n },\r\n warning({ dispatch }, message) {\r\n dispatch('show', { message, type: ToastMessage.Types.warning })\r\n },\r\n info({ dispatch }, message) {\r\n dispatch('show', { message, type: ToastMessage.Types.info })\r\n },\r\n clearMessage({ commit }) {\r\n commit('setMessage', {})\r\n },\r\n}\r\n\r\nexport const mutations = {\r\n setMessage(state, toastMessage) {\r\n state.message = toastMessage\r\n },\r\n}\r\n\r\nexport class ToastMessage {\r\n constructor({ message, type = ToastMessage.Types.info, ...config }) {\r\n this.message = message\r\n this.config = config\r\n this.type = type\r\n }\r\n\r\n static get Types() {\r\n return {\r\n default: 'alert',\r\n success: 'success',\r\n error: 'error',\r\n warning: 'warning',\r\n info: 'info',\r\n }\r\n }\r\n}\r\n","import { axiosInstance } from '@/plugins/axios';\r\n\r\nimport _ from '@/utils/store-helpers';\r\nimport moment from 'moment';\r\n\r\n// initial state\r\nexport const state = {\r\n searchResults: [],\r\n transactionTypes: [],\r\n promos: [],\r\n isSearching: false,\r\n pagination: {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalRecords: 0,\r\n },\r\n sortBy: '-createDate',\r\n to: new Date(),\r\n from: moment().startOf('month').toDate(),\r\n};\r\n\r\n// getters\r\nexport const getters = {};\r\n\r\n// mutations\r\nexport const mutations = {\r\n setPromos: _.set('promos', false),\r\n setServices: _.set('services', false),\r\n setTransactionTypes: _.set('transactionTypes', false),\r\n setSearchResults: _.set('searchResults', false),\r\n setIsSearching: _.set('isSearching', false),\r\n setPagination: _.set('pagination', false),\r\n\r\n setCurrentPage(state, newValue) {\r\n state.pagination.currentPage = newValue;\r\n },\r\n setPageSize(state, newValue) {\r\n state.pagination.pageSize = newValue;\r\n },\r\n setSortBy: _.set('sortBy', false),\r\n setTo(state, newValue) {\r\n state.to = newValue;\r\n },\r\n setFrom(state, newValue) {\r\n state.from = newValue;\r\n },\r\n};\r\n\r\n// actions\r\nexport const actions = {\r\n async getTransactions({ commit, state, dispatch }, search) {\r\n const response = await dispatch('request/get', {\r\n url: `/api/billing/${search.clientId}/transactions`,\r\n params: {\r\n q: search.search,\r\n from: search.from,\r\n to: search.to,\r\n page: state.pagination.currentPage,\r\n pageSize: state.pagination.pageSize,\r\n sortBy: state.sortBy,\r\n },\r\n errorMessage: 'Failed to load transactions',\r\n loadingMutation: 'transactions/setIsSearching',\r\n });\r\n if (!response) {\r\n commit('setSearchResults', []);\r\n return;\r\n }\r\n commit('setSearchResults', response.data.items);\r\n commit('setPagination', response.data.metaData);\r\n },\r\n async createTransactions(\r\n { commit, dispatch },\r\n {\r\n amount,\r\n clientId,\r\n description,\r\n service,\r\n createDate,\r\n type,\r\n promoCode,\r\n cardCheckNumber,\r\n }\r\n ) {\r\n try {\r\n var results = await axiosInstance.post(\r\n `/api/billing/${clientId}/transactions`,\r\n {\r\n Amount: amount,\r\n ClientId: clientId,\r\n CreateDate: createDate,\r\n Description: description,\r\n Service: service,\r\n TypeCode: type,\r\n CardCheckNumber: cardCheckNumber,\r\n PromoCode: promoCode,\r\n }\r\n );\r\n const data = results.data;\r\n\r\n dispatch('toastr/success', 'Transaction successfully created', {\r\n root: true,\r\n });\r\n\r\n return data;\r\n } catch (error) {\r\n console.error(error);\r\n commit('setIsSearching', false);\r\n dispatch(\r\n 'toastr/error',\r\n 'Failed to create transaction: ' + error.response.data,\r\n { root: true }\r\n );\r\n }\r\n },\r\n getGroupDebtReplacementTransactions: async function (\r\n { commit, state, dispatch },\r\n { clientId, transactionId, amount }\r\n ) {\r\n try {\r\n const response = await dispatch('request/get', {\r\n url: `/api/billing/${clientId}/transactions/getGroupDebtReplacementTransactions/${transactionId}`,\r\n params: {\r\n amount: amount,\r\n },\r\n });\r\n const data = response.data;\r\n return data;\r\n } catch (error) {\r\n console.error(error);\r\n dispatch('toastr/error', 'Error: Getting transactions..', { root: true });\r\n }\r\n },\r\n replaceTransaction: async function (\r\n { commit, state, dispatch },\r\n { clientId, transactionId, amount }\r\n ) {\r\n try {\r\n const response = await dispatch('request/post', {\r\n url: `/api/billing/${clientId}/transactions/replaceTransaction/${transactionId}`,\r\n params: {\r\n amount: amount,\r\n },\r\n });\r\n return response;\r\n } catch (error) {\r\n console.error(error);\r\n dispatch('toastr/error', 'Error: Unable to remove transaction.', {\r\n root: true,\r\n });\r\n }\r\n dispatch('toastr/success', 'Transaction removed.');\r\n },\r\n\r\n async createServiceTransfer(\r\n { commit },\r\n { amount, clientId, description, source, createDate, target }\r\n ) {\r\n try {\r\n var results = await axiosInstance.post(\r\n `/api/billing/${clientId}/transfers`,\r\n {\r\n Amount: amount,\r\n ClientId: clientId,\r\n CreateDate: createDate,\r\n Description: description,\r\n Source: source,\r\n Target: target,\r\n }\r\n );\r\n var data = results.data;\r\n return data;\r\n } catch (error) {\r\n console.error(error);\r\n commit('setIsSearching', false);\r\n }\r\n },\r\n async getTransactionTypes({ commit }) {\r\n try {\r\n var results = await axiosInstance.get(`/api/billing/transactions/types`);\r\n commit('setTransactionTypes', results.data);\r\n return results.data;\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n },\r\n async getPromos({ commit }) {\r\n try {\r\n var results = await axiosInstance.get(`/api/clients/promos`);\r\n commit('setPromos', results.data);\r\n return results.data;\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n },\r\n\r\n reset({ commit }) {\r\n commit('setSearchResults', []);\r\n commit('setPagination', {\r\n pagination: {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalRecords: 0,\r\n },\r\n });\r\n commit('setPromos', []);\r\n },\r\n};\r\n","import { axiosInstance } from '@/plugins/axios';\r\n\r\nexport const state = {\r\n upsells: [],\r\n};\r\n\r\nexport const getters = {\r\n upsellSets: (state) => {\r\n const groups = {};\r\n state.upsells.forEach((item) => {\r\n const groupKey = JSON.stringify({\r\n clientQuoteTypeId: item.clientQuoteTypeId,\r\n repId: item.repId,\r\n upsellDate: item.upsellDate,\r\n upsellType: item.upsellType,\r\n upsellPromo: item.upsellPromo,\r\n });\r\n groups[groupKey] = groups[groupKey] || [];\r\n groups[groupKey].push(item);\r\n });\r\n\r\n return Object.keys(groups)\r\n .map((group) => {\r\n return {\r\n ...JSON.parse(group),\r\n upsells: groups[group],\r\n };\r\n })\r\n .sort((a, b) => {\r\n const d1 = Date.parse(a.upsellDate);\r\n const d2 = Date.parse(b.upsellDate);\r\n return d1 > d2 ? 1 : d1 < d2 ? -1 : 0;\r\n });\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n UPDATE_UPSELL(state, { upsell }) {\r\n state.upsells = [\r\n ...state.upsells.filter((u) => u.id !== upsell.id),\r\n upsell,\r\n ];\r\n },\r\n SET_UPSELLS(state, upsells) {\r\n state.upsells = upsells;\r\n },\r\n};\r\n\r\nexport const actions = {\r\n async getUpsellsList({ commit, dispatch, rootState }) {\r\n const response = await axiosInstance\r\n .get(`/api/Clients/upsells/${rootState.client.client.id}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n if (!response.response) {\r\n dispatch('toastr/error', 'Network Error', {\r\n root: true,\r\n });\r\n return;\r\n }\r\n\r\n dispatch('toastr/error', response.response.data.message, {\r\n root: true,\r\n });\r\n return;\r\n }\r\n\r\n const upsells = response.data;\r\n commit('SET_UPSELLS', upsells);\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\nimport { axiosInstance } from '@/plugins/axios';\r\nimport moment from 'moment';\r\nimport { maxPauseHours } from '@/app.config';\r\n\r\nexport const state = {\r\n vacationPauses: [],\r\n hasUnlimited: false,\r\n loading: false,\r\n maxPauseHours,\r\n hoursUsed: 0,\r\n hoursAvailable: 0,\r\n};\r\n\r\nexport const getters = {\r\n hoursUsed(state) {\r\n let totalHours = 0;\r\n for (const pause of state.vacationPauses) {\r\n const end = pause.actualEndTime || pause.endTime;\r\n const start = pause.actualStartTime || pause.startTime;\r\n totalHours += moment\r\n .duration(Date.parse(end) - Date.parse(start))\r\n .asHours();\r\n }\r\n return Math.ceil(totalHours);\r\n },\r\n\r\n hoursLeft(state, { hoursUsed }) {\r\n return state.maxPauseHours - hoursUsed;\r\n },\r\n\r\n upcomingPauses(state) {\r\n const upcoming = state.vacationPauses.filter((p) => {\r\n return p.status === 'PENDING';\r\n });\r\n return upcoming;\r\n },\r\n\r\n activePause(state) {\r\n const active = state.vacationPauses.find((p) => {\r\n return p.status === 'ACTIVE';\r\n });\r\n return active || null;\r\n },\r\n\r\n pastPauses(state) {\r\n var now = Date.now();\r\n const past = state.vacationPauses.filter((p) => {\r\n return now > Date.parse(p.actualEndTime);\r\n });\r\n return past;\r\n },\r\n};\r\n\r\nexport const actions = {\r\n async getVacationPauses({ commit, dispatch, rootState }) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .get(`/api/vacations/${rootState.client.client.id}`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n // TODO: Post back to server side log?\r\n commit('setLoading', false);\r\n dispatch('toastr/error', 'Failed to get scheduled vacations!', {\r\n root: true,\r\n });\r\n return;\r\n }\r\n\r\n commit('setVacationPauses', response.data.vacationPauses);\r\n commit('setHasUnlimited', response.data.hasUnlimited);\r\n commit('setHoursUsed', response.data.hoursSummary.hoursUsed);\r\n commit('setHoursAvailable', response.data.hoursSummary.hoursAvailable);\r\n commit('setLoading', false);\r\n },\r\n\r\n async resetVacationHours({ commit, dispatch, rootState }) {\r\n commit('setLoading', true);\r\n\r\n const response = await axiosInstance\r\n .post(`/api/vacations/${rootState.client.client.id}/reset`)\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n commit('setLoading', false);\r\n dispatch('toastr/error', 'Failed to replenish vacation hours!', {\r\n root: true,\r\n });\r\n return false;\r\n }\r\n\r\n commit('setVacationPauses', response.data.vacationPauses);\r\n commit('setHasUnlimited', response.data.hasUnlimited);\r\n commit('setHoursUsed', response.data.hoursSummary.hoursUsed);\r\n commit('setHoursAvailable', response.data.hoursSummary.hoursAvailable);\r\n\r\n commit('setLoading', false);\r\n return true;\r\n },\r\n\r\n async upsertVacationPause({ commit, dispatch, rootState }, vacationPause) {\r\n commit('setLoading', true);\r\n\r\n vacationPause.clientId = rootState.client.client.id;\r\n\r\n const method = vacationPause.id ? 'put' : 'post';\r\n\r\n const response = await axiosInstance[method](\r\n '/api/vacations',\r\n vacationPause\r\n ).catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n commit('setLoading', false);\r\n dispatch(\r\n 'toastr/error',\r\n `Failed to create vacation pause. Reason: ${response.response.data}`,\r\n {\r\n root: true,\r\n }\r\n );\r\n return;\r\n }\r\n\r\n if (method === 'put') {\r\n commit('updateVacationPause', vacationPause);\r\n commit('setLoading', false);\r\n return;\r\n }\r\n\r\n commit('client/SET_CLIENT_STATUS', response.data.clientStatus, {\r\n root: true,\r\n });\r\n commit('addVacationPause', response.data);\r\n commit('setLoading', false);\r\n },\r\n\r\n async cancelVacationPause(\r\n { commit, dispatch, rootState, state },\r\n vacationPauseId\r\n ) {\r\n commit('setLoading', true);\r\n\r\n const vacationPause = state.vacationPauses.find(\r\n (v) => v.id === vacationPauseId\r\n );\r\n\r\n if (vacationPause.status === 'ACTIVE') {\r\n commit('completeVacationPause', vacationPauseId);\r\n } else {\r\n commit('cancelVacationPause', vacationPauseId);\r\n }\r\n\r\n const response = await axiosInstance\r\n .delete(`/api/Vacations/${vacationPauseId}`, {\r\n data: vacationPause,\r\n })\r\n .catch((err) => err);\r\n\r\n if (response instanceof Error) {\r\n commit('uncancelVacationPause', vacationPauseId);\r\n commit('setLoading', false);\r\n dispatch(\r\n 'toastr/error',\r\n `Failed to cancel vacation. Reason: ${response.response.data}`,\r\n {\r\n root: true,\r\n }\r\n );\r\n return;\r\n }\r\n\r\n commit('client/SET_CLIENT_STATUS', response.data.clientStatus, {\r\n root: true,\r\n });\r\n commit('setLoading', false);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setVacationPauses: _.set('vacationPauses'),\r\n setHasUnlimited: _.set('hasUnlimited'),\r\n setLoading: _.set('loading'),\r\n\r\n addVacationPause(state, vacationPause) {\r\n state.vacationPauses.push(vacationPause);\r\n\r\n // update used / remaining time\r\n var usedHours = moment\r\n .duration(\r\n Date.parse(vacationPause.endTime) - Date.parse(vacationPause.startTime)\r\n )\r\n .asHours();\r\n\r\n state.hoursUsed = Math.round((state.hoursUsed + usedHours) * 100) / 100;\r\n state.hoursAvailable =\r\n Math.round((state.hoursAvailable - usedHours) * 100) / 100;\r\n },\r\n\r\n updateVacationPause(state, vacationPause) {\r\n // Figure out time used in updated vacation\r\n var usedHoursNew = moment\r\n .duration(\r\n Date.parse(vacationPause.endTime) - Date.parse(vacationPause.startTime)\r\n )\r\n .asHours();\r\n\r\n for (let i = 0; i < state.vacationPauses.length; i++) {\r\n if (state.vacationPauses[i].id === vacationPause.id) {\r\n // Get current vacation time used\r\n\r\n var usedHoursCurrent = moment\r\n .duration(\r\n Date.parse(state.vacationPauses[i].endTime) -\r\n Date.parse(state.vacationPauses[i].startTime)\r\n )\r\n .asHours();\r\n\r\n // replace current time with new time\r\n if (usedHoursNew > usedHoursCurrent) {\r\n var increasedTime = usedHoursNew - usedHoursCurrent;\r\n\r\n state.hoursAvailable -= increasedTime;\r\n state.hoursUsed += increasedTime;\r\n } else {\r\n var decreasedTime = usedHoursCurrent - usedHoursNew;\r\n\r\n state.hoursAvailable += decreasedTime;\r\n state.hoursUsed -= decreasedTime;\r\n }\r\n\r\n state.vacationPauses[i] = vacationPause;\r\n return;\r\n }\r\n }\r\n },\r\n\r\n cancelVacationPause(state, vacationPauseId) {\r\n const pause = state.vacationPauses.find((v) => v.id === vacationPauseId);\r\n pause.status = 'CANCELED';\r\n },\r\n\r\n completeVacationPause(state, vacationPauseId) {\r\n const pause = state.vacationPauses.find((v) => v.id === vacationPauseId);\r\n pause.actualEndTime = moment().utc().toISOString();\r\n pause.status = 'COMPLETED';\r\n },\r\n\r\n uncancelVacationPause(state, vacationPauseId) {\r\n const pause = state.vacationPauses.find((v) => v.id === vacationPauseId);\r\n pause.actualEndTime = undefined;\r\n pause.status = 'ACTIVE';\r\n },\r\n\r\n setHoursUsed(state, val) {\r\n state.hoursUsed = val;\r\n },\r\n setHoursAvailable(state, val) {\r\n state.hoursAvailable = val;\r\n },\r\n};\r\n","import _ from '@/utils/store-helpers';\r\n\r\nexport const state = {\r\n all: [],\r\n top: [],\r\n loading: false,\r\n};\r\n\r\nexport const getters = {\r\n vendors: (state) => state.all,\r\n\r\n topVendors: (state) => state.top,\r\n};\r\n\r\nexport const actions = {\r\n async fetchAllVendors({ commit, dispatch }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/Vendors',\r\n errorMessage: 'Failed to get vendors.',\r\n loadingMutation: 'vendors/setLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setAll', response.data);\r\n },\r\n\r\n async fetchTopVendors({ commit, dispatch }) {\r\n const response = await dispatch('request/get', {\r\n url: '/api/Vendors/top',\r\n errorMessage: 'Failed to get top vendors.',\r\n loadingMutation: 'vendors/setLoading',\r\n });\r\n\r\n if (!response) return;\r\n\r\n commit('setTop', response.data);\r\n },\r\n\r\n reset({ commit }) {\r\n commit('setAll', []);\r\n commit('setTop', []);\r\n },\r\n};\r\n\r\nexport const mutations = {\r\n setAll: _.set('all'),\r\n\r\n setTop: _.set('top'),\r\n\r\n setLoading: _.set('loading'),\r\n};\r\n","export const WarmTransfer = Object.freeze({\r\n value: 'WarmTransfer',\r\n label: 'Warm Transfer',\r\n})\r\n\r\nexport const ColdTransfer = Object.freeze({\r\n value: 'ColdTransfer',\r\n label: 'Direct Transfer',\r\n})\r\n\r\nexport default {\r\n data() {\r\n return {\r\n callTypes: [{ ...WarmTransfer }, { ...ColdTransfer }],\r\n }\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n clientStatusMap: {\r\n ACTIVE: 'Active',\r\n CANCEL: 'Cancelled',\r\n CANCEL_BADDEBT: 'Cancelled - Bad Debt',\r\n 'cash cap': 'Cash Capped',\r\n COLLECTION: 'Collection',\r\n INACTIVE: 'Inactive',\r\n PAUSE: 'Paused',\r\n PAUSE_AR: 'Paused - Accounts Receivable',\r\n CORPORATE: 'Corporate',\r\n PAUSE_RECHARGE: 'Recharge',\r\n PAUSE_SCHED: 'Paused - Schedule',\r\n PENDING_CANCEL: 'Pending Cancellation',\r\n PENDING_IO: 'Pending IO',\r\n PENDING_VAL: 'Pending Validation',\r\n PAUSE_VAC: 'Paused - Vacation',\r\n },\r\n }\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n companyMap: {\r\n '21CENTURY': '21st Century Insurance',\r\n AAA: 'AAA Insurance',\r\n AFI: 'Answer Financial',\r\n AIG: 'AIG Insurance',\r\n ALLSTATE: 'Allstate Insurance',\r\n AMERICANNATIONAL: 'American National Insurance',\r\n AMFAM: 'American Family Insurance',\r\n AMLI: 'Amerilife',\r\n ANCHOR_CLIENT: 'Anchor Client',\r\n BANKERS: 'Bankers Life and Casualty',\r\n BROOKE: 'Brooke Insurance',\r\n CARRIERDIRECT: 'Carrier Direct',\r\n COTTON: 'Cotton States',\r\n COUNTRYFINANCIA: 'Country Financial Insurance',\r\n ERIE: 'Erie Insurance',\r\n ESURANCE: 'Esurance.com',\r\n FARM_BUREAU: 'Farm Bureau',\r\n FARMERS: 'Farmers Insurance',\r\n GEICO: 'GEICO',\r\n HARTFORD: 'The Hartford',\r\n HIGHPOINT: 'High Point Insurance',\r\n INAD: 'Insurance Advisors Direct',\r\n INDEPENDENT: 'Independent Agent',\r\n INFINITY: 'Infinity Insurance',\r\n INSURANCECOM: 'insurance.com',\r\n LIBERTY: 'Liberty Mutual Insurance',\r\n MERCURY: 'Mercury Ins Co',\r\n METLIFE: 'MetLife Insurance',\r\n MUTOMA: 'Mutual Of Omaha',\r\n NATIONWIDE: 'Nationwide Insurance',\r\n NYLIFE: 'New York Life Insurance',\r\n PEMCO: 'Pemco',\r\n PROGRESSIVE: 'Progressive Insurance',\r\n REDIRECT: 'Redirect',\r\n SAFECO: 'SafeCo Insurance',\r\n SENTRY: 'Sentry Insurance',\r\n SHELTER: 'Shelter Insurance Co.',\r\n SIAA: 'SIAA/VIAA',\r\n STATEFARM: 'State Farm Insurance',\r\n TAG: 'Tag Insurance',\r\n TRAVLERS: 'Travelers',\r\n UNITRIN: 'Unitrin',\r\n USHA: 'US Health Advisors',\r\n WESTMUT: 'Western Mutual',\r\n WSL: 'Western and Southern Life',\r\n BRIGHTWAY: 'Brightway Insurance',\r\n },\r\n }\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n billingTerms: {\r\n '': {\r\n label: 'No terms selected',\r\n },\r\n CC0: {\r\n label: 'Charge Card on 1st',\r\n },\r\n 'CC0-05': {\r\n label: 'Charge Card on 5th',\r\n },\r\n 'CC0-15': {\r\n label: 'Charge Card on 15th',\r\n },\r\n 'CC0-20': {\r\n label: 'Charge Card on 20th',\r\n },\r\n 'SPC-ARR': {\r\n label: 'Special Arrangement',\r\n },\r\n SCK: {\r\n label: 'Payment By Check',\r\n },\r\n RCHRG_50: {\r\n label: 'Recharge $50',\r\n value: 50,\r\n },\r\n RCHRG_100: {\r\n label: 'Recharge $100',\r\n value: 100,\r\n },\r\n RCHRG_150: {\r\n label: 'Recharge $150',\r\n value: 150,\r\n },\r\n RCHRG_250: {\r\n label: 'Recharge $250',\r\n value: 250,\r\n },\r\n RCHRG_350: {\r\n label: 'Recharge $350',\r\n value: 350,\r\n },\r\n RCHRG_500: {\r\n label: 'Recharge $500',\r\n value: 500,\r\n },\r\n RCHRG_750: {\r\n label: 'Recharge $750',\r\n value: 750,\r\n },\r\n RCHRG_1000: {\r\n label: 'Recharge $1,000',\r\n value: 1000,\r\n },\r\n RCHRG_2500: {\r\n label: 'Recharge $2,500',\r\n value: 2500,\r\n },\r\n RCHRG_5000: {\r\n label: 'Recharge $5,000',\r\n value: 5000,\r\n },\r\n RCHRG_10000: {\r\n label: 'Recharge $10,000',\r\n value: 10000,\r\n },\r\n RCHRG_20000: {\r\n label: 'Recharge $20,000',\r\n value: 20000,\r\n },\r\n BILL_CLIENT: {\r\n label: 'Client Billing',\r\n },\r\n BILL_GROUP: {\r\n label: 'Group Billing',\r\n },\r\n BILL_ANCHOR: {\r\n label: 'Anchor Billing',\r\n },\r\n BILL_SFSUBS: {\r\n label: 'SF Subsidy',\r\n },\r\n BILL_FARMERSBMP: {\r\n label: 'Farmers BMP',\r\n },\r\n },\r\n }\r\n },\r\n}\r\n","export default {\r\n methods: {\r\n getCardIcon(cardType) {\r\n switch (cardType) {\r\n case 'VISA':\r\n case 'AMEX':\r\n return 'fab fa-cc-' + cardType.toLowerCase()\r\n case 'DISC':\r\n return 'fab fa-cc-discover'\r\n case 'MAST':\r\n return 'fab fa-cc-mastercard'\r\n default:\r\n return 'fas fa-credit-card'\r\n }\r\n },\r\n },\r\n}\r\n","export default {\r\n methods: {\r\n getRange(low, high, step = 1) {\r\n const list = []\r\n for (let i = low; i <= high; i += step) {\r\n list.push(i)\r\n }\r\n return list\r\n },\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n clientCancelReasons: {\r\n LEAVING_COMPANY: 'Leaving The Company',\r\n CONVERSION_RATIO: 'Conversion Ratio',\r\n VOLUME_GENERAL: 'Lead Volume',\r\n QUALITY_GENERAL: 'Lead Quality',\r\n PRICE_INCREASE: 'Price Increase',\r\n EXHAUSTED_PROMOTIONAL_MONEY: 'Exhausted Promotional Money',\r\n CANCELING_ALL_SERVICES: 'Canceling All Internet Lead Services',\r\n RATES_NOT_COMPETITIVE: 'Companies Rates are not Competitive',\r\n COMPANY_PROVIDING_LEADS: 'Company is Providing Free Leads',\r\n COMPANY_SPONSORED_LEAD_PLATFORM: 'Company Sponsored Lead Platform',\r\n CONTACT_RATIO_VS_OTHERS: 'Contact Ratio vs Other Services',\r\n CASH_CAPPED: 'Cash Capped',\r\n RECHARGE_FAILURE: 'Recharge Failure',\r\n CHARGEBACK: 'Chargeback',\r\n LEADSAGED: 'Leads Aged',\r\n DELIVERY_PROBLEMS: 'Lead Delivery Problems',\r\n SHORT_STAFFED: 'Short Staffed',\r\n FINANCIAL: 'Financial',\r\n INACTIVITY: 'Inactivity',\r\n CALLS_QUALITY: 'WizardCalls Quality',\r\n CALLS_VOLUME: 'WizardCalls Volume',\r\n NOT_MEETING_FILTERS: 'Not Meeting Filters',\r\n SALES_REP: 'Sales Rep',\r\n OTHER: 'Other',\r\n OTHER_BLOCK: 'Other - Block',\r\n },\r\n }\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n clientLevels: {\r\n BASIC: {\r\n label: 'Basic',\r\n enabled: false,\r\n },\r\n BASIC_50: {\r\n label: 'Basic 50',\r\n enabled: false,\r\n },\r\n BASIC_100: {\r\n label: 'Basic 100',\r\n enabled: false,\r\n },\r\n BRONZE: {\r\n label: 'Bronze',\r\n enabled: true,\r\n },\r\n SILVER: {\r\n label: 'Silver',\r\n enabled: true,\r\n },\r\n GOLD: {\r\n label: 'Gold',\r\n enabled: false,\r\n },\r\n PLATINUM: {\r\n label: 'Platinum',\r\n enabled: true,\r\n },\r\n DIAMOND: {\r\n label: 'Diamond',\r\n enabled: true,\r\n },\r\n ELITE: {\r\n label: 'Elite',\r\n enabled: true,\r\n },\r\n },\r\n };\r\n },\r\n computed: {\r\n enabledClientLevels() {\r\n const enabledLevels = {};\r\n for (const level in this.clientLevels) {\r\n if (this.clientLevels[level].enabled) {\r\n enabledLevels[level] = this.clientLevels[level];\r\n }\r\n }\r\n return enabledLevels;\r\n },\r\n },\r\n};\r\n","export default {\r\n data() {\r\n return {\r\n serviceTypes: [\r\n {\r\n value: 'Web',\r\n label: 'Web',\r\n },\r\n {\r\n value: 'Call',\r\n label: 'Call',\r\n },\r\n ],\r\n }\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n trumpFlags: [\r\n {\r\n value: -1,\r\n label: 'Lowest',\r\n },\r\n {\r\n value: 0,\r\n label: 'Standard',\r\n },\r\n {\r\n value: 1,\r\n label: 'Plus',\r\n },\r\n {\r\n value: 2,\r\n label: 'Highest',\r\n },\r\n ],\r\n }\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n upsellCodes: [\r\n {\r\n value: 'Added territory',\r\n key: 'CSUP_ADD_TERR',\r\n requiresChannel: true,\r\n },\r\n {\r\n value: 'Added new lead type',\r\n key: 'CSUP_ADD_TYPE',\r\n requiresChannel: true,\r\n },\r\n {\r\n value: 'Increased day caps',\r\n key: 'CSUP_RAISE_CAP',\r\n requiresChannel: true,\r\n },\r\n {\r\n value: 'Weekly Cap',\r\n key: 'CSUP_WEEKLY_CAP',\r\n requiresChannel: true,\r\n },\r\n {\r\n value: 'Removed a filter',\r\n key: 'CSUP_REM_FILT',\r\n requiresChannel: true,\r\n },\r\n {\r\n value: 'Pre-charge',\r\n key: 'CSUP_PC',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $150',\r\n key: 'CSUP_PC150',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $250',\r\n key: 'CSUP_PC250',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $350',\r\n key: 'CSUP_PC350',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $400',\r\n key: 'CSUP_PC400',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $500',\r\n key: 'CSUP_PC500',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $650',\r\n key: 'CSUP_PC650',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $750',\r\n key: 'CSUP_PC750',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $1000',\r\n key: 'CSUP_PC1000',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $1500',\r\n key: 'CSUP_PC1500',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $2150',\r\n key: 'CSUP_PC2150',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Pre-charge $2500',\r\n key: 'CSUP_PC2500',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Cancel Save',\r\n key: 'CSUP_CANCEL_SAVE',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Re-activated from Cash Cap',\r\n key: 'CSUP_REACTIVATE_CASHCAP',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'WizardMail',\r\n key: 'CSUP_WIZARD_MAIL',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Schedule 10 Plus Hours',\r\n key: 'CSUP_SCHED_10_PLUS_HOURS',\r\n requiresChannel: false,\r\n },\r\n {\r\n value: 'Removed Discount Window',\r\n key: 'CSUP_REM_DISCOUNT_WINDOW',\r\n requiresChannel: true,\r\n },\r\n ],\r\n inOutBoundValues: [\r\n { value: 'Inbound Call', key: 'INBOUND' },\r\n { value: 'Outbound Call', key: 'OUTBOUND' },\r\n ],\r\n promoCosts: [\r\n { key: '0', value: 'No Cost' },\r\n { key: '25', value: '25' },\r\n { key: '50', value: '50' },\r\n { key: '75', value: '75' },\r\n { key: '100', value: '100' },\r\n { key: '150', value: '150' },\r\n { key: '200', value: '200' },\r\n { key: '250', value: '250' },\r\n { key: '350', value: '350' },\r\n { key: '400', value: '400' },\r\n { key: '500', value: '500' },\r\n { key: '750', value: '750' },\r\n { key: '1000', value: '1000' },\r\n { key: '1500', value: '1500' },\r\n { key: '2150', value: '2150' },\r\n { key: '2500', value: '2500' },\r\n { key: 'CUSTOM', value: 'Custom Amount' },\r\n ],\r\n }\r\n },\r\n}\r\n","export default {\r\n computed: {\r\n timeZones() {\r\n return [\r\n {\r\n value: -1,\r\n label: 'Timezone Not Set',\r\n },\r\n {\r\n value: 10,\r\n label: 'Hawaiian Standard Time',\r\n },\r\n {\r\n value: 9,\r\n label: 'Alaskan Standard Time',\r\n },\r\n {\r\n value: 8,\r\n label: 'Pacific Standard Time',\r\n },\r\n {\r\n value: 7,\r\n label: 'Mountain Standard Time',\r\n },\r\n {\r\n value: 6,\r\n label: 'Central Standard Time',\r\n },\r\n {\r\n value: 5,\r\n label: 'Eastern Standard Time',\r\n },\r\n ];\r\n },\r\n },\r\n};\r\n","export default {\r\n data() {\r\n return {\r\n creditRequestReasons: {\r\n BADCONTACT: 'Bad Contact / Lead Info',\r\n CONTACT_DISCONNECTED: 'Disconnected Number',\r\n CONTACT_FAX: 'Number was Fax Machine',\r\n CONTACT_NOSUCHPERSON: 'No Such Person At Number',\r\n CONTACT_FAKENAME: 'Fake Name',\r\n DIDNOTREQUEST: 'Consumer did not request lead',\r\n NOTINTENDED: 'Filled Out Form In Error',\r\n OTHER: 'Bad Contact / Lead Info',\r\n LANGUAGEBARRIER: 'Language Barrier',\r\n\r\n INTENT: 'Consumer Intent',\r\n INCENTIVE: 'Consumer claimed incentive for filling out form',\r\n INCENTIVE_CASH:\r\n 'Consumer claimed incentive/reward for filling out form: Cash',\r\n INCENTIVE_SWEEP:\r\n 'Consumer claimed incentive/reward for filling out form: Sweepstakes',\r\n INCENTIVE_GAME:\r\n 'Consumer claimed incentive/reward for filling out form: Online Gaming',\r\n INCENTIVE_PROD:\r\n 'Consumer claimed incentive/reward for filling out form: Product Giveaway',\r\n LEADINFOAGED: 'Lead information was aged',\r\n\r\n LEADDIST: 'Lead Distribution Issue / Duplicate',\r\n DUPLICATE_QW30: 'I received lead in last 30 days from QuoteWizard',\r\n DUPLICATE_AGENCY: 'Lead went to other agent(s) in my company',\r\n DUPLICATE_OTHER: 'I received this lead from another lead provider',\r\n DUPLICATE_OTHER_NETQUOTE:\r\n 'I received this lead from another lead provider: Netquote',\r\n DUPLICATE_OTHER_INSUREME:\r\n 'I received this lead from another lead provider: InsureMe',\r\n DUPLICATE_OTHER_ALLWEB:\r\n 'I received this lead from another lead provider: AllWeb',\r\n DUPLICATE_OTHER_INSWEB:\r\n 'I received this lead from another lead provider: InsWeb',\r\n DUPLICATE_OTHER_HTQUOTES:\r\n 'I received this lead from another lead provider: HomeTown Quotes',\r\n DUPLICATE_OTHER_IAGENTS:\r\n 'I received this lead from another lead provider: InsuranceAgents',\r\n DUPLICATE_OTHER_ILEADS:\r\n 'I received this lead from another lead provider: InsuranceLeads',\r\n DUPLICATE_OTHER_QSCOUT:\r\n 'I received this lead from another lead provider: QuoteScout',\r\n DUPLICATE_OTHER_AGNTNSDR:\r\n 'I received this lead from another lead provider: AgentInsider',\r\n DUPLICATE_OTHER_RELERT:\r\n 'I received this lead from another lead provider: RateElert',\r\n POLICYHOLDER: 'Consumer already has a policy with my company',\r\n\r\n FILTER: 'Did not meet my filters',\r\n FILTER_HOME_NO_MOBILE: 'Mobile Home',\r\n OTHER_GENERAL: 'Other',\r\n DUPLICATE: 'Duplicate lead',\r\n INCENTIVE_NOTINTENDED: 'Filled Out Form In Error',\r\n },\r\n }\r\n },\r\n}\r\n","export default {\r\n methods: {\r\n capValue(prefix, val) {\r\n return `${prefix ? prefix + ':' : ''}${val >= 0 ? val : 'U'}`\r\n },\r\n },\r\n}\r\n","export default {\r\n methods: {\r\n getPackageBasePrice(quoteType) {\r\n switch (quoteType.toUpperCase()) {\r\n case 'HOME':\r\n return 15.0\r\n case 'RENTER':\r\n return 9.0\r\n case 'HEALTH':\r\n return 8.0\r\n case 'MEDSUPP':\r\n return 12.0\r\n default:\r\n return 11.25\r\n }\r\n },\r\n },\r\n}\r\n","export default {\r\n methods: {\r\n convertTerritoryToGeoMap(territory) {\r\n let geoMapType\r\n\r\n if (territory.zipCode) {\r\n geoMapType = 'ZipCode'\r\n } else if (territory.countyName) {\r\n geoMapType = 'County'\r\n } else {\r\n geoMapType = 'State'\r\n }\r\n\r\n return {\r\n type: geoMapType,\r\n stateAbbreviation: territory.stateAbbr || territory.abbreviation,\r\n county: territory.countyName,\r\n zipCode: territory.zipCode,\r\n }\r\n },\r\n },\r\n}\r\n","export default {\r\n methods: {\r\n translateFarmersCopy(str) {\r\n return str\r\n .replace(/Farmers Fee/i, 'Processing Fee')\r\n .replace(/FARMERS_FEE/i, 'ADMIN_FEE')\r\n },\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n dayOfWeek: [\r\n {\r\n value: '0',\r\n label: 'Sunday',\r\n },\r\n {\r\n value: '1',\r\n label: 'Monday',\r\n },\r\n {\r\n value: '2',\r\n label: 'Tuesday',\r\n },\r\n {\r\n value: '3',\r\n label: 'Wednesday',\r\n },\r\n {\r\n value: '4',\r\n label: 'Thursday',\r\n },\r\n {\r\n value: '5',\r\n label: 'Friday',\r\n },\r\n {\r\n value: '6',\r\n label: 'Saturday',\r\n },\r\n ],\r\n }\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n states: [\r\n {\r\n name: 'Alabama',\r\n abbreviation: 'AL',\r\n },\r\n {\r\n name: 'Alaska',\r\n abbreviation: 'AK',\r\n },\r\n {\r\n name: 'Arizona',\r\n abbreviation: 'AZ',\r\n },\r\n {\r\n name: 'Arkansas',\r\n abbreviation: 'AR',\r\n },\r\n {\r\n name: 'California',\r\n abbreviation: 'CA',\r\n },\r\n {\r\n name: 'Colorado',\r\n abbreviation: 'CO',\r\n },\r\n {\r\n name: 'Connecticut',\r\n abbreviation: 'CT',\r\n },\r\n {\r\n name: 'Delaware',\r\n abbreviation: 'DE',\r\n },\r\n {\r\n name: 'District Of Columbia',\r\n abbreviation: 'DC',\r\n },\r\n {\r\n name: 'Florida',\r\n abbreviation: 'FL',\r\n },\r\n {\r\n name: 'Georgia',\r\n abbreviation: 'GA',\r\n },\r\n {\r\n name: 'Hawaii',\r\n abbreviation: 'HI',\r\n },\r\n {\r\n name: 'Idaho',\r\n abbreviation: 'ID',\r\n },\r\n {\r\n name: 'Illinois',\r\n abbreviation: 'IL',\r\n },\r\n {\r\n name: 'Indiana',\r\n abbreviation: 'IN',\r\n },\r\n {\r\n name: 'Iowa',\r\n abbreviation: 'IA',\r\n },\r\n {\r\n name: 'Kansas',\r\n abbreviation: 'KS',\r\n },\r\n {\r\n name: 'Kentucky',\r\n abbreviation: 'KY',\r\n },\r\n {\r\n name: 'Louisiana',\r\n abbreviation: 'LA',\r\n },\r\n {\r\n name: 'Maine',\r\n abbreviation: 'ME',\r\n },\r\n {\r\n name: 'Maryland',\r\n abbreviation: 'MD',\r\n },\r\n {\r\n name: 'Massachusetts',\r\n abbreviation: 'MA',\r\n },\r\n {\r\n name: 'Michigan',\r\n abbreviation: 'MI',\r\n },\r\n {\r\n name: 'Minnesota',\r\n abbreviation: 'MN',\r\n },\r\n {\r\n name: 'Mississippi',\r\n abbreviation: 'MS',\r\n },\r\n {\r\n name: 'Missouri',\r\n abbreviation: 'MO',\r\n },\r\n {\r\n name: 'Montana',\r\n abbreviation: 'MT',\r\n },\r\n {\r\n name: 'Nebraska',\r\n abbreviation: 'NE',\r\n },\r\n {\r\n name: 'Nevada',\r\n abbreviation: 'NV',\r\n },\r\n {\r\n name: 'New Hampshire',\r\n abbreviation: 'NH',\r\n },\r\n {\r\n name: 'New Jersey',\r\n abbreviation: 'NJ',\r\n },\r\n {\r\n name: 'New Mexico',\r\n abbreviation: 'NM',\r\n },\r\n {\r\n name: 'New York',\r\n abbreviation: 'NY',\r\n },\r\n {\r\n name: 'North Carolina',\r\n abbreviation: 'NC',\r\n },\r\n {\r\n name: 'North Dakota',\r\n abbreviation: 'ND',\r\n },\r\n {\r\n name: 'Ohio',\r\n abbreviation: 'OH',\r\n },\r\n {\r\n name: 'Oklahoma',\r\n abbreviation: 'OK',\r\n },\r\n {\r\n name: 'Oregon',\r\n abbreviation: 'OR',\r\n },\r\n {\r\n name: 'Pennsylvania',\r\n abbreviation: 'PA',\r\n },\r\n {\r\n name: 'Rhode Island',\r\n abbreviation: 'RI',\r\n },\r\n {\r\n name: 'South Carolina',\r\n abbreviation: 'SC',\r\n },\r\n {\r\n name: 'South Dakota',\r\n abbreviation: 'SD',\r\n },\r\n {\r\n name: 'Tennessee',\r\n abbreviation: 'TN',\r\n },\r\n {\r\n name: 'Texas',\r\n abbreviation: 'TX',\r\n },\r\n {\r\n name: 'Utah',\r\n abbreviation: 'UT',\r\n },\r\n {\r\n name: 'Vermont',\r\n abbreviation: 'VT',\r\n },\r\n {\r\n name: 'Virginia',\r\n abbreviation: 'VA',\r\n },\r\n {\r\n name: 'Washington',\r\n abbreviation: 'WA',\r\n },\r\n {\r\n name: 'West Virginia',\r\n abbreviation: 'WV',\r\n },\r\n {\r\n name: 'Wisconsin',\r\n abbreviation: 'WI',\r\n },\r\n {\r\n name: 'Wyoming',\r\n abbreviation: 'WY',\r\n },\r\n ],\r\n }\r\n },\r\n}\r\n","export default {\r\n set: (key, persist) => (state, value) => {\r\n state[key] = value;\r\n\r\n if (persist) {\r\n if (value == null) {\r\n localStorage.removeItem(key);\r\n } else {\r\n localStorage.setItem(key, JSON.stringify(value));\r\n }\r\n }\r\n },\r\n\r\n get(key, defaultValue = null) {\r\n var item = localStorage.getItem(key);\r\n\r\n if (item == null || typeof item === 'undefined') {\r\n return defaultValue;\r\n }\r\n\r\n return JSON.parse(item);\r\n },\r\n};\r\n","\r\n\r\n\r\n","import { render } from \"./Toastr.vue?vue&type=template&id=5908b3a2\"\nimport script from \"./Toastr.vue?vue&type=script&lang=js\"\nexport * from \"./Toastr.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n","import { render } from \"./TempAnnouncement.vue?vue&type=template&id=0115ed6f\"\nimport script from \"./TempAnnouncement.vue?vue&type=script&lang=js\"\nexport * from \"./TempAnnouncement.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n","import { render } from \"./CardForm.vue?vue&type=template&id=34660df4\"\nimport script from \"./CardForm.vue?vue&type=script&lang=js\"\nexport * from \"./CardForm.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./CardFormPartial.vue?vue&type=template&id=7bdda2be&scoped=true\"\nimport script from \"./CardFormPartial.vue?vue&type=script&lang=js\"\nexport * from \"./CardFormPartial.vue?vue&type=script&lang=js\"\n\nimport \"./CardFormPartial.vue?vue&type=style&index=0&id=7bdda2be&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7bdda2be\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n\r\n\r\n","\r\n\r\n\r\n\r\n\r\n","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./HamburgerMenuIcon.vue?vue&type=template&id=80c2a9c8&scoped=true\"\nimport script from \"./HamburgerMenuIcon.vue?vue&type=script&lang=js\"\nexport * from \"./HamburgerMenuIcon.vue?vue&type=script&lang=js\"\n\nimport \"./HamburgerMenuIcon.vue?vue&type=style&index=0&id=80c2a9c8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-80c2a9c8\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n\r\n\r\n","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./NotificationBanner.vue?vue&type=template&id=36525d2e&scoped=true\"\nimport script from \"./NotificationBanner.vue?vue&type=script&lang=js\"\nexport * from \"./NotificationBanner.vue?vue&type=script&lang=js\"\n\nimport \"./NotificationBanner.vue?vue&type=style&index=0&id=36525d2e&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-36525d2e\"]])\n\nexport default __exports__","\r\n\r\n\r\n","import { render } from \"./NotificationDialog.vue?vue&type=template&id=0707a477\"\nimport script from \"./NotificationDialog.vue?vue&type=script&lang=js\"\nexport * from \"./NotificationDialog.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n","\r\n\r\n\r\n\r\n\r\n","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./WelcomeEligible.vue?vue&type=template&id=6907f4ab\"\nimport script from \"./WelcomeEligible.vue?vue&type=script&lang=js\"\nexport * from \"./WelcomeEligible.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./WelcomeIneligible.vue?vue&type=template&id=55cdf298\"\nimport script from \"./WelcomeIneligible.vue?vue&type=script&lang=js\"\nexport * from \"./WelcomeIneligible.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./ChannelSelection.vue?vue&type=template&id=51d20496&scoped=true\"\nimport script from \"./ChannelSelection.vue?vue&type=script&lang=js\"\nexport * from \"./ChannelSelection.vue?vue&type=script&lang=js\"\n\nimport \"./ChannelSelection.vue?vue&type=style&index=0&id=51d20496&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-51d20496\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./ReactivationComplete.vue?vue&type=template&id=15d8abc6\"\nimport script from \"./ReactivationComplete.vue?vue&type=script&lang=js\"\nexport * from \"./ReactivationComplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./ReactivationDepositStep.vue?vue&type=template&id=3a77a25d&scoped=true\"\nimport script from \"./ReactivationDepositStep.vue?vue&type=script&lang=js\"\nexport * from \"./ReactivationDepositStep.vue?vue&type=script&lang=js\"\n\nimport \"./ReactivationDepositStep.vue?vue&type=style&index=0&id=3a77a25d&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3a77a25d\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./ReactivationFailed.vue?vue&type=template&id=2527ffdb\"\nimport script from \"./ReactivationFailed.vue?vue&type=script&lang=js\"\nexport * from \"./ReactivationFailed.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","import { render } from \"./AddPaymentMethod.vue?vue&type=template&id=0210662c&scoped=true\"\nimport script from \"./AddPaymentMethod.vue?vue&type=script&lang=js\"\nexport * from \"./AddPaymentMethod.vue?vue&type=script&lang=js\"\n\nimport \"./AddPaymentMethod.vue?vue&type=style&index=0&id=0210662c&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0210662c\"]])\n\nexport default __exports__","import { render } from \"./ReactivationDialog.vue?vue&type=template&id=3d71433b\"\nimport script from \"./ReactivationDialog.vue?vue&type=script&lang=js\"\nexport * from \"./ReactivationDialog.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=01f4e9da\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./root.vue?vue&type=template&id=7cd652f3&scoped=true\"\nimport script from \"./root.vue?vue&type=script&lang=js\"\nexport * from \"./root.vue?vue&type=script&lang=js\"\n\nimport \"./root.vue?vue&type=style&index=0&id=7cd652f3&scoped=true&lang=css\"\nimport \"./root.vue?vue&type=style&index=1&id=7cd652f3&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7cd652f3\"]])\n\nexport default __exports__","import { render } from \"./HeaderedPage.vue?vue&type=template&id=6d8bf912&scoped=true\"\nimport script from \"./HeaderedPage.vue?vue&type=script&lang=js\"\nexport * from \"./HeaderedPage.vue?vue&type=script&lang=js\"\n\nimport \"./HeaderedPage.vue?vue&type=style&index=0&id=6d8bf912&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6d8bf912\"]])\n\nexport default __exports__","\r\n\r\n\r\n","import { render } from \"./NotificationTray.vue?vue&type=template&id=3b1d40f0\"\nimport script from \"./NotificationTray.vue?vue&type=script&lang=js\"\nexport * from \"./NotificationTray.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./NavHeaderedPage.vue?vue&type=template&id=2980621d&scoped=true\"\nimport script from \"./NavHeaderedPage.vue?vue&type=script&lang=js\"\nexport * from \"./NavHeaderedPage.vue?vue&type=script&lang=js\"\n\nimport \"./NavHeaderedPage.vue?vue&type=style&index=0&id=2980621d&lang=css\"\nimport \"./NavHeaderedPage.vue?vue&type=style&index=1&id=2980621d&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2980621d\"]])\n\nexport default __exports__","\r\n\r\n\r\n","import { render } from \"./main.vue?vue&type=template&id=04feb6cc\"\nimport script from \"./main.vue?vue&type=script&lang=js\"\nexport * from \"./main.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n","import { render } from \"./404.vue?vue&type=template&id=707e0635\"\nimport script from \"./404.vue?vue&type=script&lang=js\"\nexport * from \"./404.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","var map = {\n\t\"./_template.js\": 37376,\n\t\"./appHealth.js\": 82806,\n\t\"./auth.js\": 21441,\n\t\"./billing.js\": 21016,\n\t\"./callCorporateFilter.js\": 1506,\n\t\"./calls.js\": 882,\n\t\"./campaigns.js\": 82360,\n\t\"./channelGroups.js\": 68624,\n\t\"./channels.js\": 14255,\n\t\"./client.js\": 21956,\n\t\"./clientRules.js\": 51385,\n\t\"./creditDialer.js\": 7495,\n\t\"./dashboard.js\": 58563,\n\t\"./farmersVendorImport.js\": 13480,\n\t\"./featureFlagStore.js\": 13376,\n\t\"./index.js\": 13419,\n\t\"./leadCredit.js\": 96200,\n\t\"./leadDetail.js\": 84004,\n\t\"./leadType.js\": 8691,\n\t\"./leads.js\": 90420,\n\t\"./lookupTool.js\": 80427,\n\t\"./lookupValue.js\": 61284,\n\t\"./notifications.js\": 9315,\n\t\"./options.js\": 58201,\n\t\"./packages.js\": 88634,\n\t\"./promo.js\": 96684,\n\t\"./promos.js\": 10595,\n\t\"./reactivation.js\": 73946,\n\t\"./request.js\": 82938,\n\t\"./responsive.js\": 56209,\n\t\"./scheduler.js\": 27625,\n\t\"./signup.js\": 88619,\n\t\"./subsidy.js\": 37974,\n\t\"./toastr.js\": 47620,\n\t\"./transactions.js\": 81898,\n\t\"./upsells.js\": 89549,\n\t\"./vacations.js\": 65803,\n\t\"./vendors.js\": 96196\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 64654;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + ({\"240\":\"support\",\"268\":\"leads\",\"550\":\"subsidy\",\"703\":\"leads_edit\",\"815\":\"loggedout\",\"818\":\"client\",\"964\":\"billing\"}[chunkId] || chunkId) + \".\" + {\"14\":\"7831f56e\",\"25\":\"335c3c7b\",\"46\":\"4184c67b\",\"55\":\"bfe5f178\",\"108\":\"b35ea955\",\"132\":\"6358662a\",\"162\":\"d9b31b58\",\"218\":\"6c3a96da\",\"240\":\"f0c2e4ac\",\"265\":\"a1f9d1eb\",\"268\":\"3f98d581\",\"434\":\"a309f8cc\",\"440\":\"cb16a937\",\"449\":\"88c2e329\",\"475\":\"afa823c7\",\"502\":\"31000068\",\"550\":\"43a576d5\",\"609\":\"1158ee5d\",\"653\":\"9e61f25f\",\"665\":\"011a58a2\",\"678\":\"91f991cb\",\"698\":\"810d40c0\",\"703\":\"e83c9ab0\",\"707\":\"f3232e56\",\"723\":\"c60da89e\",\"734\":\"622aa1dc\",\"815\":\"4483f706\",\"818\":\"6f015a3a\",\"853\":\"2bfe76f2\",\"859\":\"03987e71\",\"866\":\"933c75de\",\"870\":\"ab4ae243\",\"936\":\"49c4c312\",\"964\":\"8813f7ab\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + ({\"240\":\"support\",\"268\":\"leads\",\"550\":\"subsidy\",\"703\":\"leads_edit\",\"818\":\"client\",\"964\":\"billing\"}[chunkId] || chunkId) + \".\" + {\"25\":\"1e7b95ed\",\"218\":\"698ce1f7\",\"240\":\"b00d8c26\",\"268\":\"0a465fef\",\"449\":\"3e46cd68\",\"550\":\"33482adb\",\"653\":\"84eb5994\",\"678\":\"f757af94\",\"698\":\"a7c0cf1f\",\"703\":\"9364a344\",\"818\":\"b7cb4dc1\",\"866\":\"7685b22b\",\"964\":\"c67c42de\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"client_admin:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"25\":1,\"218\":1,\"240\":1,\"268\":1,\"449\":1,\"550\":1,\"653\":1,\"678\":1,\"698\":1,\"703\":1,\"818\":1,\"866\":1,\"964\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(653 != chunkId) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkclient_admin\"] = self[\"webpackChunkclient_admin\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(80627); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","SchedulerService","saveChannelGroupSchedules","group","callback","response","axiosInstance","post","catch","err","console","error","updateChannelGroupSchedulesResponseCache","groupId","responseCache","subscriptionGroupId","get","ChannelGroupService","constructor","this","schedulerService","upsertSubscriptionGroup","client","channelIds","oldGroup","upsertGroup","groupName","clientId","subscriptions","isIntervalEnabled","addedChannelIds","removedChannelIds","filter","channelId","some","sub","clientQuoteTypeId","reduce","removedIds","includes","push","data","length","addChannelsToGroup","removeChannelsFromGroup","method","addRemoveChannelsFromGroup","query","join","channelCallTypes","delete","fetchGroups","deleteSubscriptionGroup","deleteChannelFromGroup","subscription","callTypesResponse","callType","removeResponse","title","description","maxPauseHours","process","weeklyDayCapFactor","callsApiUrl","creditCallUrl","b2cRedirectUrl","b2cClientId","b2cAppId","b2cIdpAuthorityServer","b2cIdpAzureServer","everestApiUrl","environment","notificationCheckTime","inactiveUserTimeThreshold","userActivityThrottlerTime","defaultWeeklyCap","buildNumber","processTerritory","workingData","geoMaps","zipExists","countyExists","stateExists","newTerritory","county","stateAbbreviation","type","zipCode","toUpperCase","countyName","stateAbbr","abbreviation","buildTerrCollection","terrCollection","terrCounts","states","counties","zipcodes","grouped","groupBy","slice","geo","forEach","EntireState","groupedCounties","key","NumCounties","groupedZips","zips","NumZips","convertLutGeoMapsToGeoMaps","lutGeoMaps","lutGeo","stateCode","getLutGeoType","list","keyGetter","Map","item","collection","set","lutGeoMap","Notifications","types","BANNER","DIALOG","TRAY","alertTypes","INFO","WARNING","ERROR","SUCCESS","intervalTypes","DATERANGE","DAILY","WEEKLY","MONTHLY","visibilityTypes","ALL","AGENT","COMPANY","STATE","STATUS","dismiss","notificationId","meta","JSON","parse","window","localStorage","notificationsMeta","isDismissed","stringify","filterSeen","notifications","unseenNotifications","n","lastSeen","seenCount","showNotification","_incrementNotificationMeta","intervalType","interval","Date","now","today","moment","startOf","lastDay","thisWeek","thisMonth","DailySchedule","dayIndex","dailyCap","isActive","dayPartSchedules","dayOfWeek","days","DayPartSchedule","Cap","defaultInstance","active","parseCallResponse","responseData","rawSchedules","subscriptionDailySchedules","isIntervalCapEnabled","monthlyCapLimit","subscriptionMonthlySchedule","subscriptionMonthlyCap","capLimit","parsedSchedules","intervalStep","parseDayPartSchedules","parseClientResponse","parseClientDayPartSchedules","dayParts","sunday","monday","tuesday","wednesday","thursday","friday","saturday","schedule","subscriptionDayPartSchedules","dayPartSchedule","intervalCaps","subscriptionIntervalCaps","intervalCap","newCap","limit","start","startTime","end","endTime","IntervalMap","calculateStep","concurrencyCap","dayPartCap","scheduleDayPartCap","dailySchedule","scheduleDailyCap","buildRequestFromResponseCache","dailySchedules","oldDailySchedules","oldDailySchedule","find","s","subscriptionDailySchedule","dayPart","subscriptionDayPartSchedule","buildClientRequestFromResponseCache","preventCapOverride","buildRequest","requestBody","schedules","step","_step","_schedules","_showInput","bind","_hideInput","_submitCell","init","stepOptions","label","value","allTimeKeys","currentInterval","Array","fill","nextTime","sort","a","b","aSecs","toSeconds","bSecs","buildTableBody","buildCol","intervalRows","rowCount","stepSeconds","priorSeconds","lastKey","nextStepSeconds","actualNextSeconds","disabledHour","toISOString","substr","formatTime","tbody","document","createElement","innerHTML","activeCells","querySelectorAll","cell","addEventListener","ESC","ENTER","TAB","keyCode","currentTarget","parentNode","nextCell","_nextCell","shiftKey","click","preventDefault","flowBack","nodeName","lastRowIndex","querySelector","getAttribute","nextRowIndex","nextColIndex","i","nextColCandidate","isCancelling","FocusEvent","children","input","labelText","innerText","trim","onSubmit","classList","add","remove","removeEventListener","removeChild","_lastCell","focus","select","cap","startSeconds","endSeconds","diffSeconds","parseTime","time","values","split","hours","parseInt","minutes","seconds","Math","floor","total","incSeconds","incAmPm","suffix","compareTime","time1","time2","value1","value2","minutes1","minutes2","max","timeValue","stepValue","next","getTimeRange","result","current","option","WebLeadIntervalMap","store","createStore","modules","strict","install","vue","options","use","$store","defineProperty","config","globalProperties","val","moduleName","actions","dispatch","path","name","component","authRequired","requiredRoles","ROLES","CLIENT_SERVICES","CORPORATE_BUCKET_ACCOUNT_CREATOR","beforeResolve","routeTo","routeFrom","params","then","errorId","uuidv4","props","route","accountDetails","leadResponse","leadId","leadType","lead","packet","toLowerCase","outboundCallSid","sid","sessionId","startingProductType","isCampaign","serviceType","toLocaleLowerCase","stateOverridesEnabled","getters","EVEREST","SALES","STAFF","ioId","agency","state","signup","signupInfo","refreshOnServiceWorkerControllerChanged","auth","user","termsData","PRODUCT","CLIENT_SERVICES_ADMIN","SALES_MANAGER","isTerritoryExpansionEnabled","require","redirect","router","createRouter","routes","history","createWebHistory","linkActiveClass","scrollBehavior","to","from","savedPosition","left","top","routeRequiresAuth","beforeEach","async","NProgress","concat","inRoles","matched","Promise","reject","args","afterEach","register","ready","registered","registration","setInterval","update","cached","updatefound","updated","dispatchEvent","CustomEvent","detail","offline","_createElementBlock","_hoisted_1","_createVNode","_component_notification_display_manager","_ctx","isInactive","_createBlock","_component_router_view","$route","fullPath","useViewSizes","methods","onSizeUpdate","innerWidth","mounted","unmounted","Boolean","isPolling","notificationTimeoutHandle","checkTime","created","handleFetchNotifications","beforeUnmount","clearTimeout","setTimeout","__exports__","components","NotificationDisplayManager","mixins","refreshing","userActivityThrottlerTimeout","userActivityTimeout","showRefreshUI","once","navigator","serviceWorker","location","reload","$loadScript","beforeMount","activateActivityTracker","deactivateActivityTracker","$toasted","show","theme","position","duration","action","text","onClick","toastObject","waiting","postMessage","goAway","userActivityThrottler","tabVisibilityChange","hidden","resetUserActivityTimeout","inactiveUserAction","render","errorHandler","vm","info","onerror","msg","url","line","col","errorDetails","rootErrors","event","sessionStorage","callbackCount","onload","commonBrowserErrors","initSentry","app","Sentry","dsn","release","appConfig","integrations","maskAllInputs","maskAllText","networkDetailAllowUrls","networkResponseHeaders","ignoreErrors","attachStacktrace","trackComponents","tracesSampleRate","replaysSessionSampleRate","replaysOnErrorSampleRate","addCustomValidators","yup","test","message","splits","domainSplits","createApp","ClientAdminApp","prototype","ElementPlus","provide","LoadScript","Toasted","iconPack","VueClipboard","$filters","filters","mount","defaultOptions","baseURL","crossDomain","headers","reqHandleFunc","token","authService","getToken","axios","common","Authorization","reqErrorFunc","resHandleFunc","resErrorFunc","reset","login","authHeader","errorTracker","trackException","exception","interceptors","request","axiosAnonymous","EventBus","dictionary","$emit","eventType","subscribers","eventHandler","$on","eventBus","round","number","precision","Number","float","isNaN","parseFloat","toFixed","percent","decimals","isInteger","formatDate","format","removeItemString","replace","getThousands","toString","newStr","substring","formatPhoneNumber","groupNumbers","toLocaleString","useGrouping","currencyUSD","Intl","NumberFormat","style","currency","toUserDateTime","tz","pluralize","singular","plural","capitalize","secondsToDuration","b2cLoginUrl","authorities","staff","signin","io","ioSignUp","scopes","msalInstance","Msal","authority","postLogoutRedirectUri","redirectUri","validateAuthority","navigateToLoginRequestUrl","knownAuthorities","cache","cacheLocation","storeAuthStateInCookie","isIE","ua","userAgent","msie","indexOf","trident","handleRedirectCallback","redirectFrom","pathname","search","AzureInstance","loginRedirect","loginAndRedirect","logout","getUser","getAccount","setAuthority","authorityKey","account","loginHint","idTokenClaims","emails","res","ssoSilent","idToken","rawIdToken","acquireTokenRedirect","clearCache","storageKeys","startsWith","freeze","ADMIN","AGENT_MANAGER","CALL_CENTER_ADMIN","CANCEL_SAVE","CANCEL_SAVE_ADMIN","CORPORATE_MANAGER","PRODUCT_ADMIN","authComputed","mapState","mapGetters","authMethods","mapActions","handleFailedNetworkResponse","reponse","mutations","isLoading","setHealthLoading","_","flushRedisCache","commit","additionalPrefix","roles","logins","isLoggedIn","auth_loading","SET_CURRENT_USER","SET_CURRENT_ROLES","SET_ALL_LOGINS","SET_IS_LOGGED_IN","SET_LOADING","userAccount","userEmail","email","userInRole","roleName","isArray","role","displayName","userInRoles","roleNames","userInAllRoles","every","isAdmin","isAgentManager","isClientServices","isClientServicesAdmin","isCallCenterAdmin","isStaff","isProductAdmin","isProductViewer","isCancelSave","isSales","isSalesManager","isCancelSaveAdmin","isCorporateManager","isAccountCreator","resetSettings","root","adalUser","errorMessage","lastName","family_name","firstName","given_name","setUser","getAllLogins","setProperties","b2cLoginId","put","status","loading","cardList","statements","cancelStatements","lastStatement","isLastStatementCurrentMonthStatement","clientCancellationReasons","productData","dataLoading","productsLoading","productSettingsLoading","groupBalanceTransferLoading","groupBalanceTransfers","singleGroupBalanceTransfer","billingTypes","productTypeBalances","Web","Call","pendingCancellation","isProcessingCancellation","validationResult","isValid","primaryCardByProductId","productTypeId","product","productId","paymentId","isPendingCancellation","SET_IS_PROCESSING_CANCELLATION","setProductsLoading","setProductSettingsLoading","setProductData","setGroupBalanceTransfers","setSingleGroupBalanceTransfer","setGroupBalanceTransferLoading","SET_CARD_LIST","newValue","SET_STATEMENT_LIST","SET_LAST_STATEMENT","setIsLastStatementCurrentMonthStatement","SET_CANCEL_STATEMENTS","SET_CLIENT_CANCELLATION_REASONS","SET_GROUP_BALANCE_TRANSFER","SET_SINGLE_BALANCE_TRANSFER","SET_BILLING_TYPE_LIST","SET_VALIDATION_RESULT","RESET_VALIDATION_RESULT","setProductTypeBalance","productType","productTypeBalance","setProductTypePaymentMethod","paymentMethod","paymentTerms","setProductTypePaymentCard","paymentCardId","setProductTypeSpendLimit","spendLimitVal","spendLimit","setActiveCardInList","activeCardId","el","objIndex","findIndex","obj","SET_PENDING_CANCELLATION","cancellation","getCards","noCache","getStatements","pagination","page","currentPage","pageSize","sortBy","getLastStatement","currentDate","statementDate","createDate","getMonth","getFullYear","getCancelStatements","setCardAsPrimary","paymentServiceId","getClientCancellationReasons","getProductData","rootState","products","saveProductData","results","getGroupBalances","getSingleBalanceTransfer","groupTransaction","transferBalance","balanceTransfer","getServiceTypeList","getBalanceByProductType","refund","card","serviceTypeId","removeTransaction","removalDetails","alert","amount","getAuthNetData","clientKey","apiLoginID","updatePendingCancellation","cancelPendingCancellation","cancelClient","cancellationData","cancelResult","filterTypeId","filterTypeName","operator","subscriptionFilterId","subscriptionFilterTypeOperator","subscriptionFilterTypeName","subscriptionFilterTypeId","subscriptionFilterTypeInputValue","subscriptionFilterTypeInputLookup","getInitialState","dirty","filterTypes","filterTypesOperators","getFilters","clearIds","subscriptionFilters","subscriptionFilterTypes","saveFilters","saveSucess","addFilter","index","filterId","removeFilter","resetState","setFilters","setLoading","setClientQuoteTypeId","setCallType","setfilterTypesOperators","setFilterTypes","filterType","m","subscriptionFilterTypeID","splice","setDirty","isDirty","initialState","calls","totalRecords","visibleDateRange","dateRangeEnd","callsRefreshInterval","d","setHours","hasOngoingCall","call","getCalls","rootGetters","nowUtcFromClientTimezone","utc","toDate","ClientId","pageNum","PageSize","prependOngoingCalls","items","metaData","setCurrentPage","pageNumber","getCallsData","setSortBy","setVisibleDateRange","dateRange","setCalls","setPagination","setAutoRefreshInterval","setPageSize","campaigns","campaignSummaries","dashboardLoading","detailLoading","totalPages","dashboardPagination","getCampaignsList","apiResponse","loadingMutation","pageCount","ceil","getCampaignDetail","campaign","setDashboardCurrentPage","SET_DETAIL_LOADING","x","SET_CAMPAIGNS","SET_DASHBOARD_CURRENT_PAGE","SET_TOTAL_PAGES","ADD_CAMPAIGN_SUMMARY","newSummary","CALL_TYPE","groups","isSignup","channelGroupService","groupById","callChannelsNotInGroup","channels","clientQuoteTypes","subscriptionIds","ungroupedCallChannels","channel","source","callChannelEditOptions","editingGroup","editingGroupSubIds","editingChannels","isGroupsAvailable","hasCallChannels","groupByClientQuoteTypeId","newGroup","uuidv1","scheduleInfo","monthlyCap","intervalCapEnabled","fetchGroup","setIsSignup","resetGroups","setGroups","setGroupSchedule","saveGroup","isNameExists","g","isChannelGrouped","subscriptionId","SET_IS_SIGNUP","SET_GROUP_SCHEDULE","rawSchedule","SET_GROUPS","apiGroups","UPDATE_CHANNEL_GROUP","channelGroup","leadchannels","dashboardchannels","leadChannelCollection","dayCapMin","sun","mon","tue","wed","thu","fri","sat","channelGroups","webChannels","c","webDashboardChannels","callChannels","callDashboardChannels","totalRecordsDashboard","hasWebChannel","hasCallChannel","hasWebLeadChannel","hasCallLeadChannel","hasdashboardWebChannel","hasdashboardCallChannel","activeChannels","channelsByType","nextIndex","endIndex","setDashboardLoading","SET_CHANNEL_OVERVIEW","SET_LEAD_CHANNEL","SET_CHANNELS","ADD_LEAD_CHANNEL_DETAIL","newDetail","RESET_LeadChannelcollection","SET_DAY_CAP_MINS","setTotalPages","setTotalPagesDashboard","getDashboardChannelOverview","getChannelOverview","getLeadChannelOverview","leadChannels","getLeadChannelDetail","leadChannelDetail","getCapMinimums","packageId","getChannelClone","cloneModel","callProperties","isCloning","sendTestLead","setdashboardCurrentPage","resetLeadChannel","clientLogs","currentClientStatus","clientCreditEligibility","clientSysData","clientCallsSubscription","promoDetails","contract","sendHistory","supressionStatus","subsidyByCountyDetails","salesPeople","SET_CURRENT_CLIENT","SET_ACCOUNT_DETAILS","SET_CLIENT_STATUS","SET_CURRENT_CLIENT_STATUS","SET_CREDIT_ELIGIBILITY","SET_CLIENT_SYS_DATA","SET_CLIENT_CALLS_SUBSCRIPTION","SET_PROMO_DETAILS","details","SET_CONTRACT","SET_SEND_HISTORY","SET_SUPPRESSION_STATUS","SET_SALES_PEOPLE","setAcctDetailFirstName","setAcctDetailLastName","setAcctDetailFullName","fullName","setAcctDetailShortName","shortName","setAcctDetailLicense","license","setAcctDetailAddress1","address1","setAcctDetailAddress2","address2","setAcctDetailCity","city","setAcctDetailState","setAcctDetailZip","zip","setAcctDetailPhone","phone","setAcctDetailEmail","setAcctDetailStatus","setAcctDetailLoyaltyLevel","loyaltyLevel","setAcctDetailParentCompany","setAcctDetailConsentCompanyId","consentCompanyId","setAcctDetailAgencyEmail","agencyEmail","setAcctDetailSalesforceId","salesforceId","setAcctDetailTimeZone","timeZoneOffset","setAcctDetailDNCEmail","dncEmail","SET_SUBSIDY_BY_COUNTY","setLeadState","leadState","setCounty","setProduct","setSubsidy","subsidy","clearData","clientFirstName","hasClient","clientStatus","statusMap","clientTimezone","timeZone","isCorporate","clientType","isAgent","isFolio","farmersFolio","parentCompany","isStateFarm","supportPhone","salesSupportTeamName","supportEmail","billingType","reactivationInfo","isCcBilling","isEligibleForReactivation","fetchClient","fetchClientAccountDetails","updateAccountDetails","getClient","oid","setClient","defaults","clearClient","createDefaultClient","clientInfo","setClientStatus","previousStatus","resetStatus","getConsentCompanyId","setConsentCompanyId","getLogs","startDate","startDates","endDate","last45Days","getReactivationLogs","updateReactivationLog","reactivationLog","getSalesPeople","syncToSalesForce","getClientStatus","getClientCreditEligibility","getClientContractSnapshot","downloadContract","responseType","downloadUrl","URL","createObjectURL","Blob","link","href","setAttribute","body","appendChild","getClientSystemData","getClientCallSubscription","getStateFarmSubsidy","getClientPromoDetails","updateClientPromoDetails","insertClientPromoDetails","zeroClientPromoAmounts","getClientAccountDetails","getClientSendHistory","issues","blockedEmails","bouncedEmails","invalidEmails","spamEmails","messages","date","last_event_time","from_email","subject","clicks_count","opens_count","msg_id","emailAddress","getClientEmailStatus","getEmailTimeline","messageId","getSpamReports","removeSpamReport","clientRules","clientRuleTypes","_getters","rule","ruleName","setClientRules","setClientRuleTypes","getClientRulesList","getClientRuleTypesList","createClientRule","successMessage","deleteClientRule","leadCount","countLoading","getLead","lowCR","highCR","lowCost","highCost","creditReason","devPhoneNumber","leadData","getLeadCount","approveCreditRequest","denyCreditRequest","reason","callCreditCaller","callLead","fromPhone","toPhone","hangup","getCallStatus","ping","setLeadCount","setLead","setCountLoading","searchResults","isSearching","includeCancel","setSearchResults","setIsSearching","setIncludeCancel","searchForClient","q","InProgressStatus","CompleteStatus","ErrorStatus","currentAgentImportStatus","activeAgentImportStatus","terminatedAgentImportStatus","currentAgentImportStatusTime","cooperateEnabledStatus","thisDate","IsFarmersCooperateEnabled","CurrentAgentImportStatus","processingDate","ImportFarmersAgents","dateContent","SET_LOADING_STATUS","SET_CURRENT_IMPORT_STATUS","SET_CURRENT_IMPORT_STATUS_TIME","SET_IS_COOPERATE_ENABLED","getFeatureFlags","flagNames","errorCallback","queryString","getFeatureFlag","flagName","carrier","flags","isInit","getFlag","medicareConsentEnabled","MedicareConsent","populateFlags","checkFlagForClient","setFlags","setIsInit","requireModule","fileName","modulePath","camelCase","getNamespace","thisModule","namespace","pop","subtree","shift","forwardRequest","namespaced","pagedLeads","pagedQueryData","sortByColumn","sortOrder","subtract","searchTerm","leadCreditDetails","topCreditReasons","lifetimeCreditRate","pageData","sortingData","searchData","getPagedLeads","getLeadCreditDetails","sellId","processPendingCreditLeads","pendingCredits","explanation","denialReason","denialDescription","isApproved","fetchTopCreditRequestReasonsAsync","updatePagedData","updateSearchData","updateSortingData","setPagedLeads","setPagedQueryData","setLeadCreditDetails","setLifetimeCreditRate","setTopCreditReasons","getlead","getLeadPacket","packetResponse","getCallLeadPacket","getLeadNotes","saveLeadNote","leadNote","errMsg","deleteLeadNote","leadNoteId","setLeadPacket","SET_LEAD","SET_PACKET","SET_LEADSTAGE","leadStage","SET_LEADCREDITREQUEST","reasonText","requestDate","requestedBy","creditRequestReason","creditRequestDesc","creditApprovalDtg","creditRequestBy","mapStateSettingsToOverrides","settings","selectedStates","override","price","minBid","maxBid","isActivated","campaignService","DEFAULT_PACKAGE_ID","DEFAULT_MAX_SOLD","medsuppHealthCompanies","accountReps","availableLutQuoteTypes","cancelSavePackages","crmTypes","inactivePackage","acceptsBundle","acceptsCombo","answerRate","backfill","bidFloor","billableRate","clientGeoMaps","removed","added","crmDelivery","currentSubsidy","currentPromoDiscount","customName","dayCap","dayCapSchedule","weekly","discount","effectivePayoutRate","effectiveValue","emailDelivery","enableRecording","eprMultiplier","eprResetDate","estimateAmount","estimateId","estimatedMonthlyLeads","expansionOptOut","filterList","initialPackageId","isLegAnchor","lastLeadDate","maxSold","minutesBeforeNext","missedCallPenalty","missedCallRate","modifier","nextActiveDate","payout","payoutDiscount","postFailureRate","postTemplate","phoneNumbers","priceModifiers","productSourceTypeId","quoteMode","quoteType","quoteTypeId","quoteTypeIsLocked","rank","secondaryTerritoryExcludedZipCodes","scrubRate","sourcePackage","subscriptionDescription","tierMixCap","trumpFlag","updateDate","upsellRep","upsellPromo","weekdayNetPayout","weekendNetPayout","subsidyProduct","leadTypes","auto","home","renter","medsupp","health","life","originalPackageId","packageBasePrice","packages","stateSettingsOverrides","storedPriceModifiers","customPriceModifiers","temporaryPauseDuration","territoryDetails","secondaryTerritoryZipCodes","territorySettings","packageRestrictions","hasOwnsHomeFilter","hasCustomPackage","getTerritories","Set","getExcludedZips","getExpansionOptOut","subsidyToolTipMessage","isWeb","isCall","availableLeadTypes","isStaffUser","crmTypesLookup","domain","selectedPackage","p","isCustomMaxSold","RESET_STATE","SET_LEAD_TYPE","isNew","SET_TERRITORY_DETAILS","SET_DAY_CAP","day","weeklyCap","SET_DAY_CAPS","SET_CLIENT_GEOMAP","RESET_DAY_CAPS","resetValue","SET_CRM_TYPES","SET_CRM_DELIVERY","SET_EMAIL_DELIVERY","REMOVE_EMAIL_DELIVERY","ADD_EMAIL_DELIVERY","newEmail","UPDATE_EMAIL_DELIVERY","updatedEmail","RESET_EMAIL_DELIVERY","REMOVE_CRM_DELIVERY","ADD_CRM_DELIVERY","newCrm","UPDATE_CRM_DELIVERY","updatedCrm","RESET_CRM_DELIVERY","SET_PHONE_DELIVERY","phones","REMOVE_PHONE_DELIVERY","ADD_PHONE_DELIVERY","newPhone","UPDATE_PHONE_DELIVERY","updatedPhone","RESET_PHONE_DELIVERY","SET_PACKAGE_ID","SET_ACCEPTS_COMBO","SET_SERVICE_TYPE","SET_PRODUCT_TYPE_ID","SET_QUOTE_TYPE","SET_TRUMP_FLAG","SET_STATUS","SET_CAN_PAUSE","canPause","SET_CHANNEL_TYPE","SET_CHANNEL_NAME","SET_MIN_PRICE","minPayout","SET_MAX_PRICE","maxPayout","SET_IS_HIDE_PHONE_NUMBER","isHidePhoneNumber","SET_CHANNEL_PRICE","SET_POST_TEMPLATE","SET_FILTER_LIST","SET_SCHEDULE","SET_MAX_SOLD","SET_PACKAGE_RESTRICTIONS","SET_SOURCE_PACKAGE","sourcePackageId","sourcePackageUpdated","SET_QUOTE_TYPE_LOCK","SET_BACKFILL","SET_MISSEDCALLPENALTY","SET_PREMIUM","isPremium","SET_APPLYANSWERRATE","applyAnswerRate","SET_ENABLERECORDING","SET_UNANSWEREDTHRESHOLD","unansweredThreshold","SET_ENABLEAUTOPAUSE","enableAutoPause","SET_CALL_TYPE","SET_TERRITORIES","ADD_TERRITORY","ADD_TERRITORIES","REMOVE_TERRITORY","REMOVE_TERRITORY_STATE","tempArray","REMOVE_TERRITORY_STATES","stateAbbrev","REMOVE_ZIPCODE","SET_CLIENT_ID","SET_MODIFIER","SET_BILLABLE_TIME","billTimeThreshold","SET_COMMERCIAL_NAME","commercialName","SET_EPR","SET_CANCEL_SAVE_PACKAGES","SET_PACKAGES","ADD_PRICE_MODIFIER","priceModifier","foundPriceModifier","packagePriceModifierId","isSelected","modifierToAdd","UPDATE_PRICE_MODIFIER","foundPriceModifierIndex","modifierToUpdate","modifierToFind","REMOVE_PRICE_MODIFIER","CLEAR_PRICE_MODIFIERS","SET_STORED_PRICE_MODIFIERS","SET_INACTIVE_PACKAGE","SET_PACKAGE_BASE_PRICE","SET_SUBSCRIPTION_DESCRIPTION","des","SET_ENABLE_RECORDING","SET_TEMPORARY_PAUSE","temporaryPauseModel","temporaryPause","SET_TEMPORARY_PAUSE_DURATION","UPDATE_CUSTOM_PACKAGE_COST","cost","customPackage","SET_ORIGINAL_PACKAGE_ID","SET_BID_FLOOR","bf","SET_ACCOUNT_REPS","reps","SET_UPSELL_REP","rep","SET_IS_LEG_ANCHOR","SET_UPSELL_PROMO","promo","SET_EPR_MULTIPLIER","SET_ESTIMATE","SET_AVAILABLE_LUT_QUOTE_TYPES","SET_EXCLUDE_LIST","SET_EXPANSION_OPTOUT","SET_STATE_SETTINGS_OVERRIDES","SET_NEW_WEB_LEAD_SCHEDULE","scheduleToLeadTypeSchedule","SET_CUSTOM_PRICE_MODIFIERS","SET_SUBSIDY_PRODUCT","addAllStateCounties","countiesSet","t","toAdd","newTerr","addAllCountyZips","zipSet","addState","newTerritories","addCounty","addZipCode","removeZipCode","removeState","removeStateAll","stateEntries","toRemove","removeCountyAll","countyEntries","removeCounty","existingGeos","zipIndex","existing","countyIndex","removeTerritoryCounty","getPackageRestrictions","updateMaxSold","getLeadType","scheduledEnd","stateOverrides","stateSettings","stateOverride","getTerritoryDetails","clearLeadType","getNewLeadType","getCrmTypes","verifyECRM","crm","emailId","exec","variables","getPackage","getPackageUrl","getPackageList","addCustom","isCorpClient","getPackageListUrl","currentPackageId","channelPackage","chanPackage","channelPriceModifier","foundModifier","foundChannelModifier","packageProduct","aName","bName","localeCompare","updateCustomPackageFilters","updatePostTemplate","prefix","postTemplateString","v","workingAddress","createLeadType","createChannel","createCampaign","scheduleData","callCorporateFilter","clientQuoteType","leadTypeSchedule","getCustomPriceModifiers","priceModifieres","selectPackage","isCustomPackage","availablePriceModifier","storedPriceModifier","lodash","priceMin","priceMax","isDefaultSelected","updateLeadType","updateChannel","queryParams","saveScheduleResult","corpFilterSaveResult","updateCampaign","resetEPR","getCancelSavePackages","temporaryPauseLeadType","durationMs","diff","temporaryUnpauseLeadType","getClientGeoMapChanges","changeDate","removeGeoMaps","stateIndex","getQuoteTypeFilterChanges","cloneFrom","updateLeadTypeScheduleForNewChannels","loadAccountRepOptions","setLutInfo","sum","estimate","getAvailableLutQuoteTypes","onError","setTerritories","setExcludedZipCodes","zipCodes","setExpansionOptOut","flag","setWeekdayCaps","newWeekdayCap","bulkUpdateOptInSecondaryTerritories","form","optIn","setDayCaps","setDelivery","phoneDelivery","setLeadType","setMaxSold","leads","metrics","web","deadLetterQueueMessages","dateRangeStart","delivered","getLeads","getLeadMetrics","callMetrics","webMetrics","all","getDeadLetterQueueMessages","getLeadsData","setLeads","setDeadLetterQueueMessages","setLeadMetrics","ALLSTATE","FARMERS","STATEFARM","consolidateGeoMapEstimates","selectedEstimates","addedGeosMap","removedGeosMap","consolidated","pkg","regionMap","regions","selectedGeos","flatMap","addedGeos","removedGeos","uniqueGeos","dedupeGeos","allGeos","combineGeos","package","geos","pruneHierarchy","self","firstOccurence","y","countyFipsCode","selected","prunedZips","prunedCounties","baseState","baseStateAbbreviation","countiesInBaseState","countiesInBaseStateError","quoteTypeState","addLoading","removeLoading","addRadiusLoading","addCountiesLoading","addListLoading","lastParentCompany","lastBaseZip","lastQuoteType","lastProductType","currentVolume","retVal","numCountiesInBaseState","quoteTypesLoaded","packageIdsByQuoteType","sortedPackagesByQuoteType","priorities","packagePriorities","aPriority","bPriority","zipGeosByQuoteType","countyGeosByQuoteType","nearbyFips","radiusBoundary","uniqueNearbyFips","countyGeos","fips","customCountyGeoMaps","stateGeosByQuoteType","stateNames","stateName","uniqueStateNames","stateGeos","allGeosByQuoteType","allCountyZipGeosByQuoteType","countyZipGeosMap","radiusBoundariesByQuoteType","radiusBoundaries","geoMap","regionHeadersByQuoteType","customGeoMaps","boundary","regionHeadersDisplayByQuoteType","geoEstimateMapByQuoteType","estimateMap","packageGeos","entries","packageGeosMap","boundaries","uniqueBoundaries","boundedGeos","isCustomZip","addToEstimateMap","regionKey","consolidatedEstimatesByQuoteType","setAddLoading","setRemoveLoading","setAddRadiusLoading","setAddCountiesLoading","setAddListLoading","setBaseState","setBaseStateAbbreviation","setCountiesInBaseState","setCountiesInBaseStateError","setLastParentCompany","setLastBaseZip","setLastQuoteType","setLastProductType","setCurrentVolume","setAccountReps","RESET","packagesError","noPackagesAvailable","customRadiusGeoMaps","geoMapEstimateErrors","RESET_COUNTIES_IN_BASE_STATE","RESET_GEO_MAP_ESTIMATES","RESET_GEO_MAP_ESTIMATE_ERRORS","SET_AVAILABLE_QUOTE_TYPES","quoteTypes","resetPreviousState","initialQuoteTypeState","buildInitialQuoteTypeState","leadTypeCode","SET_NO_PACKAGES_AVAILABLE","SET_PACKAGES_ERROR","SET_CUSTOM_GEO_MAPS","SET_CUSTOM_COUNTY_GEO_MAPS","ADD_GEO_MAPS","mergedGeos","mergeGeoMaps","ADD_CUSTOM_RADIUS_GEO_MAPS","ADD_CUSTOM_COUNTY_GEO_MAPS","ADD_PACKAGE_GEOS_MAP","DELETE_PACKAGE_GEO_MAPS","TOGGLE_SELECTED_GEO_MAPS","UPDATE_SELECTED_GEO_MAPS","DELETE_SELECTED_GEO_MAP_REGION","SWITCH_SELECTED_REGIONS","isMultiState","endsWith","deleteKeys","regionName","CANCEL_SELECTED_PACKAGES","RESET_SELECTED_ESTIMATES","ADD_ADDED_GEOS_MAP","ADD_REMOVED_GEOS_MAP","REMOVE_REMOVED_GEOS_MAP","REMOVE_ADDED_GEOS_MAP","SET_GEO_MAP_ESTIMATE_ERROR","SET_COUNTY_ZIP_GEOS","RESET_CUSTOM_GEO_MAPS","Custom","RESET_CUSTOM_RADII","customRadiusKeys","r","customRadii","RESET_CUSTOM_COUNTIES","customCountyKeys","getAvailableQuoteTypes","setAvailableQuoteTypes","getDetailedRegionPackageData","overStateLines","addGeoMaps","countyGeo","updateSelectedGeos","deselectAllPackages","cancelSelectedPackage","getAllGeoMapEstimates","getGeoMapEstimate","newGeoMaps","packageGeo","requestPromise","getCountiesByStateAbbreviationWithDistanceFromZip","countyData","milesAway","direction","getCountiesByZipCodeWithDistanceFromZip","addCustomRadius","radius","addCustomList","badZipcodeList","searchedZips","returnedZips","addCustomCounties","retryGeoMapEstimateErrors","errorEntries","regionMapEntries","fetchAddedGeo","isRemoved","responses","estimateResponse","zipCodeResponse","isStateSelected","countyCode","removeGeo","addedGeo","reduceCountyGeo","countyZipGeo","countyZipGeos","fetchCountyZipGeos","submitChannelEstimate","estimates","geoTerritories","createNewChannelsFromEstimate","resetCustomEstimates","getCurrentVolume","getAccountReps","currentGeos","newGeos","leadTypeLabel","serviceId","lookupValues","setLookupValue","SET_PAGE","SET_PAGE_SIZE","SET_SORT_BY","getLookupValues","setPage","save","lookupValue","includeExpired","clientNotifications","bannerNotifications","dialogNotifications","trayNotifications","trayNotificationCount","allNotifications","fetchAllNotifications","fetchClientNotifications","upsertNotification","notificationModel","deleteNotification","dismissNotification","newNotifications","changeIncludeExpired","setNotifications","setAll","setIncludeExpired","ADD_NOTIFICATION","notification","unshift","UPDATE_NOTIFICATION","DELETE_NOTIFICATION","parentCompanyLoading","parentCompanyOptions","statusLoading","statusOptions","loyaltyLevelLoading","loyaltyLevelOptions","getParentCompanyOptions","undefined","parentCompanies","getClientStatusOptions","statuses","getLoyaltyLevelOptions","levels","setParentCompanyLoading","setParentCompanies","setStatusLoading","setStatusOptions","setLoyaltyLevelLoading","setLoyaltyLevelOptions","clientStatusOptions","clientStatusLoading","excludableClients","vendors","editingProduct","deepSearchIds","setIsLoading","setPriceModifiers","setEditingProduct","setExcludableClients","setVendors","setDeepSearchIds","fetchProductSummaries","fetchPackage","requestPackage","getEditingProduct","createProduct","updateProduct","searchDeep","searchText","clearDeepSearch","deleteProduct","getPriceModifiers","getExcludableClients","getVendors","promos","promotions","setPromos","setPromotions","SET_PROMOTIONS","promotionList","getPromos","getCurrentPromotions","insertPendingPromo","defaultMatchPromos","maximum","errors","matchPromos","getMatchPromoValueByProduct","getMatchPromoPercentByProduct","getMatchPromoMaximumByProduct","getErrors","category","getMatchPromos","setMatchPromosFromSource","cleanedPromos","SET_MATCH_PROMO","promoValues","ADD_ERROR","newError","REMOVE_ERROR","SET_MATCH_PROMOS","RESET_MATCH_PROMOS","SET_MATCH_PROMO_MAXIMUM","defaultState","showDialog","paymentInfo","creditCards","reactivationProducts","selectedReactivationOptions","isProcessingReactivation","hasBeenReactivated","reactivationChannelSortFunction","activeChannelsObj","getSortFromBools","isChannelActive","activePkg","hasActivePackage","reactivating","SET_SHOW_DIALOG","setItem","SET_PAYMENT_INFO","emptyOptions","cardId","depositAmount","filteredOptions","fromEntries","assign","SET_HAS_BEEN_REACTIVATED","SET_IS_PROCESSING_REACTIVATION","SET_SELECTED_REACTIVATION_OPTIONS","reactivationOptions","SET_SELECTED_REACTIVATION_OPTIONS_FOR_PRODUCT","depositDetails","SET_SELECTED_ACTIVE_CHANNEL","CLEAR_STATE","productTypes","activeProducts","webProduct","callProduct","selectedReactivationOptionsForProduct","noChannelsSelected","getActiveChannelCountForProduct","getWebChannelCount","getCallChannelCount","getItem","setShowDialog","getReactivationPaymentInfoAsync","sendReactivationRequestAsync","clientDetails","transformedRequest","_id","_isActive","updatePaymentIdForProductAsync","updateDepositAmountForProductAsync","setProductsForNonCcClientsAsync","setChannelActiveForProduct","productChannelInfo","xhrClient","errorCount","validateConfig","_startLoading","mutationPath","_stopLoading","_request","authenticate","restConfig","properties","_handleError","authHead","setErrors","width","size","isNavDrawerOpen","isSidebarOpen","scrollLocks","isXS","isMD","isAtLeastMD","isAtMostMD","isLG","isAtLeastLG","isXL","className","setScrollLock","lockInfo","pageClassList","getElementsByTagName","exists","contains","setWidth","newWidth","newSize","flipSideBarOpenState","flipNavMenuOpenState","closeAllMenus","setSize","setIsSidebarOpen","setIsNavDrawerOpen","updateScrollLock","resetScrollLocks","WebLeadScheduleManager","scheduleMap","createScheduleMap","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","defaultStartTime","defaultEndTime","updateEndTime","getDefaultSchedule","defaultSchedule","defaultScheduleMap","addNewActiveDefaultScheduleDay","webLeadScheduleDay","scheduleLength","recentSchedule","nextStartTime","nextEndTime","convertWebLeadScheduleToLeadTypeSchedule","webLeadSchedules","scheduleItem","intervalMap","webLeadIntervalMap","preventCapsPerScheduleOverride","webLeadInterval","weekdayZeroDayCapCounts","countZeroDayCaps","areAnySchedulesWithStartIsAfterEnd","weekdayZeroConcurrencyCapCounts","countZeroConcurrency","weekendZeroConcurrencyCapCounts","saturdayDayCaps","saturdayCaps","sundayDayCaps","sundayCaps","updateRequestBody","useCache","isWebLeadScheduleValid","isScheduleValid","marshalledScheduleData","buildData","clientQuoteTypeID","setPreventCapOverrideBySchedule","newPreventStatus","setSchedules","postData","fetchCallSchedule","isCloningSchedule","callTypeParam","getWebLeadSchedule","scheduleManager","cloneCallSchedule","getChannelGroupSchedule","fetchChannelGroupSchedule","channelGroupId","resetSchedulerState","getClientSchedule","seal","processCallSchedule","callResponse","saveSchedules","success","saveWebLeadSchedules","webLeadSchedule","saveClientSchedules","updateSchedulesResponseCache","resetSchedules","addDayPartSchedule","lastIndex","newStartTime","newEndTime","lastDayPartSchedule","newDayPartSchedule","count","removeDayPartSchedule","removeWebLeadDayPartSchedule","addWebLeadDayPartSchedule","dayPartEndTime","dayPartStartTime","newWebLeadScheduleDayPart","newScheduleRecord","setDayPartSchedule","startOrEnd","setWebLeadDayPartSchedule","setDayActive","setMonthlyCapLimit","setPartCap","setWebLeadScheduleActive","setConcurrencyCap","setIntervalStep","setIntervalMap","setIntervalCap","setIsIntervalEnabled","isEnabled","setResponseCache","setDaySchedule","daySchedule","newWebLeadDayPartSchedule","updateWebLeadScheduleToLeadTypeSchedule","setWebLeadSchedules","resetIntervalCaps","WEB_TYPE","defaultDeposits","defaultRechargeAmount","mapIoToMatchPromosData","deposits","promoAmount","gravityProfileId","businessContactFirstName","businessContactLastName","businessContactAddress1","businessContactAddress2","businessContactCity","businessContactState","businessContactZip","businessContactPhone","businessContactFax","businessContactEmail","clientAgreements","level","salesId","licenseNumber","salesSupportTeamId","cashcapNoReset","clientSchedule","defaultCardId","webRechargeEnabled","webRechargeAmount","callRechargeAmount","chargeCard","immediateActivation","activationDate","discounts","notes","callSchedule","subscriptionGroups","isElite","isAccountValid","packageDetails","contractExpired","existingLogin","pendingSignups","territories","parentSpecialProgram","sfSubsidy","farmersBMP","sfAutoSubsidy","sfHomeSubsidy","sfRenterSubsidy","stateFarmCombinedUpload","clientIp","isLutVisible","stepData","header","depositErrors","matchPromoErrors","currentErrors","errorList","validationErrors","area","areChannelsIncomplete","incompleteChannels","hasMedsuppChannel","isStandardBilling","channelErrorMsgs","cqt","mapStepErrors","channelErrors","hasBillingErrors","billingErrors","promoErrors","scheduleErrors","medsuppErrors","hasErrors","cqtypesChannelOverview","packageName","caps","ioPriceModifiers","numLeadsToday","delivery","accountState","isMinimumDataAvailable","fax","salesPersonId","salesPersonEmail","isWebRechargeEnabled","specialProgram","getProductDeposit","promoId","promotionName","promotion","promoName","showLut","hideLut","getZipCodes","cqtId","popResponse","zipCodesData","transformResponse","terr","postZipCodes","cloneChannel","dayCaps","leadDelivery","sourceChannel","destinationChannel","clone","updateClientQuoteType","callPackages","ClientQuoteTypeID","deleteClientQuoteType","countOfChannelType","getParentSpecialProgram","uri","isSubsidyByStateEnabled","createSignupInfo","salesForceData","cleanedMatchPromoSettings","getSignupInfo","newSignupInfo","getProductTypeIdByName","productName","saveSignupBlob","cleanedDeposit","newKey","cleanedInfo","updateRechargeAmountForProduct","updateDepositForProduct","depositInfo","getPendingSignups","deleteSignup","getContractInfo","packageList","clientIO","bindRole","sendContract","ioSignIn","signContract","saveClientApproval","initials","setMatchPromos","cleanedMatchPromos","setSignupInfo","setPackageDetails","setContractExpired","setExistingLogin","setPendingSignups","setClientIp","SET_SHOW_LUT","SET_DEPOSIT_ERRORS","newErrors","REMOVE_DEPOSIT_ERRORS","keyToRemove","rest","setFirstName","setLastName","setFullName","setLicenseNumber","setAddress1","setAddress2","setCity","setState","setZip","setPhone","setEmail","setAgencyEmail","setParentCompany","setSalesforceId","setTimeZone","setSalesPersonEmail","UPDATE_CLIENT_QUOTE_TYPE","DELETE_CLIENT_QUOTE_TYPE","ADD_CHANNEL","SET_PARENT_SPECIAL_PROGRAM","UPDATE_GRAVITY_ID","UPDATE_CARD_ID","UPDATE_CASH_CAP","cashCapBalance","UPDATE_CASH_CAP_RESET","UPDATE_LOYALTY_LEVEL","UPDATE_CHARGE_CARD","UPDATE_IMMEDIATE_ACTIVATION","UPDATE_SPECIAL_PROGRAM","UPDATE_DEPOSIT","UPDATE_WEB_RECHARGE_ENABLED","UPDATE_WEB_RECHARGE_AMOUNT","UPDATE_CALL_RECHARGE_AMOUNT","SET_PROMO_CODE","SET_DISCOUNTS","UPDATE_ACTIVATION_DATE","SET_CLIENT_APPROVAL_INITIALS","clientApprovalInitials","SET_CLIENT_APPROVAL_NAME","clientApprovalName","SET_CLIENT_APPROVAL_DATE","clientApprovalDate","SET_CLIENT_APPROVAL_IP","ip","clientApprovalIp","SET_CLIENT_AGREEMENTS","SET_NOTES","SET_IO_SORT_BY","SET_CHANNEL_GROUPS","DELETE_SIGNUP","blobKey","SET_GEO_MAPS","SET_ACCOUNT_ERRORS","SET_MATCH_PROMO_ERRORS","SET_MATCH_PROMO_SETTINGS","SET_CONSENT_COMPANY_ID","isSubsidyTypePickStep","importType","importTypeFriendly","isUploading","isUpload","isUploadComplete","isScheduledUpload","isFarmersVendor","fileSheets","subsidyFile","postedFileName","isSheetPick","selectedSheet","isPreProcessing","isApplyingRules","toBeAdded","toBeUpdated","toBeDeleted","isApplyRules","processSuccess","isFarmersBillingDone","nextProcessingDtg","submitSubsidyFile","formData","isSuccess","submitSFSubsidyFile","processNow","submitFarmersBillingFile","getFileSheets","execPreProcess","sheet","sheetname","reasonPhrase","execApplyRules","SET_FILESHEETS_LIST","SET_IS_SUBSIDY_TYPE_PICK","SET_UPLOADING_STATUS","SET_FARMERS_BILLING_DONE","SET_UPLOAD_STATUS","SET_UPLOAD_COMPLETE","SET_FILE_NAME","SET_SHEET_PICK","SET_IS_PRE_PROCESSING","SET_IS_APPLY_RULES","SET_IS_APPLYING_RULES","SET_IS_PROCESS_SUCCESS","SET_SCHEDULED_UPLOAD","SET_SUBSIDY_TYPE","SET_TO_BE_ADDED","SET_TO_BE_UPDATED","SET_TO_BE_DELETED","SET_DEFAULT_STATE","ToastMessage","Types","warning","clearMessage","setMessage","toastMessage","default","transactionTypes","setServices","setTransactionTypes","setTo","setFrom","getTransactions","createTransactions","service","promoCode","cardCheckNumber","Amount","CreateDate","Description","Service","TypeCode","CardCheckNumber","PromoCode","getGroupDebtReplacementTransactions","transactionId","replaceTransaction","createServiceTransfer","target","Source","Target","getTransactionTypes","upsells","upsellSets","groupKey","repId","upsellDate","upsellType","d1","d2","UPDATE_UPSELL","upsell","u","SET_UPSELLS","getUpsellsList","vacationPauses","hasUnlimited","hoursUsed","hoursAvailable","totalHours","pause","actualEndTime","actualStartTime","asHours","hoursLeft","upcomingPauses","upcoming","activePause","pastPauses","past","getVacationPauses","hoursSummary","resetVacationHours","upsertVacationPause","vacationPause","cancelVacationPause","vacationPauseId","setVacationPauses","setHasUnlimited","addVacationPause","usedHours","updateVacationPause","usedHoursNew","usedHoursCurrent","increasedTime","decreasedTime","completeVacationPause","uncancelVacationPause","setHoursUsed","setHoursAvailable","topVendors","fetchAllVendors","fetchTopVendors","setTop","WarmTransfer","ColdTransfer","callTypes","clientStatusMap","ACTIVE","CANCEL","CANCEL_BADDEBT","COLLECTION","INACTIVE","PAUSE","PAUSE_AR","CORPORATE","PAUSE_RECHARGE","PAUSE_SCHED","PENDING_CANCEL","PENDING_IO","PENDING_VAL","PAUSE_VAC","companyMap","AAA","AFI","AIG","AMERICANNATIONAL","AMFAM","AMLI","ANCHOR_CLIENT","BANKERS","BROOKE","CARRIERDIRECT","COTTON","COUNTRYFINANCIA","ERIE","ESURANCE","FARM_BUREAU","GEICO","HARTFORD","HIGHPOINT","INAD","INDEPENDENT","INFINITY","INSURANCECOM","LIBERTY","MERCURY","METLIFE","MUTOMA","NATIONWIDE","NYLIFE","PEMCO","PROGRESSIVE","REDIRECT","SAFECO","SENTRY","SHELTER","SIAA","TAG","TRAVLERS","UNITRIN","USHA","WESTMUT","WSL","BRIGHTWAY","billingTerms","CC0","SCK","RCHRG_50","RCHRG_100","RCHRG_150","RCHRG_250","RCHRG_350","RCHRG_500","RCHRG_750","RCHRG_1000","RCHRG_2500","RCHRG_5000","RCHRG_10000","RCHRG_20000","BILL_CLIENT","BILL_GROUP","BILL_ANCHOR","BILL_SFSUBS","BILL_FARMERSBMP","getCardIcon","cardType","getRange","low","high","clientCancelReasons","LEAVING_COMPANY","CONVERSION_RATIO","VOLUME_GENERAL","QUALITY_GENERAL","PRICE_INCREASE","EXHAUSTED_PROMOTIONAL_MONEY","CANCELING_ALL_SERVICES","RATES_NOT_COMPETITIVE","COMPANY_PROVIDING_LEADS","COMPANY_SPONSORED_LEAD_PLATFORM","CONTACT_RATIO_VS_OTHERS","CASH_CAPPED","RECHARGE_FAILURE","CHARGEBACK","LEADSAGED","DELIVERY_PROBLEMS","SHORT_STAFFED","FINANCIAL","INACTIVITY","CALLS_QUALITY","CALLS_VOLUME","NOT_MEETING_FILTERS","SALES_REP","OTHER","OTHER_BLOCK","clientLevels","BASIC","enabled","BASIC_50","BASIC_100","BRONZE","SILVER","GOLD","PLATINUM","DIAMOND","ELITE","computed","enabledClientLevels","enabledLevels","serviceTypes","trumpFlags","upsellCodes","requiresChannel","inOutBoundValues","promoCosts","timeZones","creditRequestReasons","BADCONTACT","CONTACT_DISCONNECTED","CONTACT_FAX","CONTACT_NOSUCHPERSON","CONTACT_FAKENAME","DIDNOTREQUEST","NOTINTENDED","LANGUAGEBARRIER","INTENT","INCENTIVE","INCENTIVE_CASH","INCENTIVE_SWEEP","INCENTIVE_GAME","INCENTIVE_PROD","LEADINFOAGED","LEADDIST","DUPLICATE_QW30","DUPLICATE_AGENCY","DUPLICATE_OTHER","DUPLICATE_OTHER_NETQUOTE","DUPLICATE_OTHER_INSUREME","DUPLICATE_OTHER_ALLWEB","DUPLICATE_OTHER_INSWEB","DUPLICATE_OTHER_HTQUOTES","DUPLICATE_OTHER_IAGENTS","DUPLICATE_OTHER_ILEADS","DUPLICATE_OTHER_QSCOUT","DUPLICATE_OTHER_AGNTNSDR","DUPLICATE_OTHER_RELERT","POLICYHOLDER","FILTER","FILTER_HOME_NO_MOBILE","OTHER_GENERAL","DUPLICATE","INCENTIVE_NOTINTENDED","capValue","getPackageBasePrice","convertTerritoryToGeoMap","territory","geoMapType","translateFarmersCopy","str","persist","removeItem","defaultValue","_createCommentVNode","watch","immediate","handler","$notify","$options","showAlert","_component_el_alert","class","onClose","closed","_withCtx","_cache","_createTextVNode","hasClosedAlert","_component_el_form","autocomplete","_createElementVNode","_component_CardFormPartial","$props","isEditCardMode","showPrimarySelect","_hoisted_2","_hoisted_3","_hoisted_4","_component_el_checkbox","modelValue","isDefaultPaymentCard","$event","_hoisted_5","_component_el_button","handleClose","disabled","addBtnDisabled","isSaving","editCreditCard","addCreditCard","CardFormPartial","required","cardNumberDisplay","expiration","setCard","cardNumber","setAsDefaultPaymentCard","cancelCallback","setCardDefaults","saveCardCallback","updatedCard","monthExpires","yearExpires","expirationDate","padStart","expMonthYear","authData","cardData","month","year","secureData","Accept","dispatchData","sendTokenDataToQW","resultCode","errorMessages","addCardFormUpdate","opaqueData","dataValue","_component_el_input","$data","autofocus","onChange","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_component_el_form_item","editing","maxlength","setCardNumber","_hoisted_12","_hoisted_13","_hoisted_14","_component_el_date_picker","shortcuts","datePickerOptions","disabledDate","cellClassName","placeholder","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","company","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_component_el_select","filterable","_Fragment","_renderList","_component_el_option","_hoisted_30","_hoisted_31","_hoisted_32","pattern","setDefaults","dateAdded","_component_HeaderedPageLayout","mainNavSlot","_component_el_menu","mode","menuMode","_normalizeClass","mainNavMenuClass","menuTriggerMode","ellipsis","_component_el_menu_item","_component_el_sub_menu","roleLink","iconNavMenuClass","_component_el_badge","notificationBadgeColor","_component_notification_tray","_toDisplayString","_component_el_menu_item_group","_renderSlot","$slots","_component_LayoutRoot","headerContainerClass","_component_HamburgerMenuIcon","onClicked","handleMenuOpenState","_component_router_link","alt","src","_imports_0","navDrawerDisplayClass","_withModifiers","hamButtonClass","sizeClass","drawerState","_component_reactivation","_component_notification_banner","_component_notification_dialog","_component_toastr","hasNotification","clickable","hasUrl","handleClick","alertType","closable","center","priority","headline","handlePropagation","content","$router","stopPropagation","_component_el_dialog","visible","priorityNotification","isClientActive","showReactivationDialog","_component_reactivation_dialog","hideDialog","dialogWidth","_component_WelcomeEligible","onClickReactivate","startActivationProcess","isCorrectStep","welcomeStep","_component_WelcomeIneligible","ineligibleStep","channelSelectionStep","_component_ChannelSelection","onClickNext","goTo","depositStep","onRequestClose","_component_ReactivationDepositStep","onClickBack","onCardNeeded","addCardStep","onReactivationAttempted","verifyReactivation","_component_AddPaymentMethod","_component_ReactivationComplete","onClickFinish","completeReactivation","successStep","_component_ReactivationFailed","onRetryRequested","failureStep","_component_el_row","_component_el_col","stepClass","_normalizeStyle","rowCountStyle","productRowClass","toggleProductExpando","getProductName","_component_el_icon","productIsExpanded","_component_ArrowDown","_component_ArrowRight","callChannelRowOffset","_component_el_tooltip","placement","checked","toggleActiveChannel","createSelectChannelLink","requestModalClose","formattedPrice","getProductChannelCountMsg","ArrowDown","ArrowRight","wide","narrow","expandoIconClass","open","activeChannelCount","pluralization","_component_VForm","as","validationSchema","initialValues","isFormReady","_component_Field","field","_mergeProps","ref_for","updateCcForProduct","onBlur","updateFocus","isSelectedPaymentIdValid","selectedCc","display","showErrorForField","billingTypeDisplay","handleBack","valid","handleReactivation","VForm","Field","webPaymentId","webAmount","callPaymentId","callAmount","hasBeenFocused","PaymentId","validations","integer","typeError","min","half","cardMatchesSelected","cardExists","debounce","fieldName","hasMaxCards","_component_card_form","ref","onCancel","onSave","handleSave","CardForm","String","initData","sendMaxCardEmail","$refs","cardForm","WelcomeEligible","WelcomeIneligible","ChannelSelection","ReactivationDepositStep","ReactivationComplete","ReactivationFailed","AddPaymentMethod","currentStep","desiredStep","updatePaymentInfo","go","ReactivationDialog","NotificationBanner","NotificationDialog","Toastr","Reactivation","HamburgerMenuIcon","LayoutRoot","HeaderedPageLayout","NotificationTray","roleLinks","farmers","stateFarm","other","contained","_component_NavHeaderedPage","_component_el_container","_component_el_main","_component_TempAnnouncement","NavHeaderedPage","TempAnnouncement","_component_Layout","resource","Layout","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","deferred","O","chunkIds","fn","notFulfilled","Infinity","fulfilled","j","getter","__esModule","definition","enumerable","f","chunkId","promises","miniCssF","globalThis","Function","prop","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","script","needAttach","scripts","charset","timeout","nc","onScriptComplete","prev","doneFns","head","Symbol","toStringTag","nmd","paths","createStylesheet","fullhref","oldTag","linkTag","rel","nonce","onLinkComplete","errorType","realHref","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}