{"version":3,"file":"js/app-legacy.5281f266.js","mappings":"yCAAA,IAAIA,EAAM,CACT,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,KACX,aAAc,KACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,aAAc,MACd,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,KACR,UAAW,KACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,KACX,aAAc,KACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,OAAQ,KACR,UAAW,KACX,OAAQ,KACR,UAAW,KACX,OAAQ,IACR,UAAW,IACX,OAAQ,MACR,UAAW,MACX,QAAS,MACT,WAAY,MACZ,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,MAC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qB1rG,KAAK,KAAM8rG,EAAmBt8G,KAAKwQ,KAAK8rG,G,ICpFvF,IAAIC,EAAsB/gH,EAAoB+8G,OAAErtG,EAAW,CAAC,MAAM,WAAa,OAAO1P,EAAoB,MAAQ,IAClH+gH,EAAsB/gH,EAAoB+8G,EAAEgE,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) + \"-legacy.\" + {\"46\":\"4184c67b\",\"55\":\"bfe5f178\",\"121\":\"4c908dcb\",\"132\":\"7ff16c82\",\"137\":\"0c253a28\",\"162\":\"d9b31b58\",\"179\":\"1bcc1cbb\",\"193\":\"25ea8e82\",\"240\":\"8ecb83c4\",\"265\":\"49ed4351\",\"268\":\"c73577be\",\"270\":\"aa5bd645\",\"273\":\"6abccf0f\",\"434\":\"980db6e0\",\"440\":\"374634f4\",\"475\":\"b401bcfd\",\"502\":\"310b84a2\",\"550\":\"ef567f47\",\"609\":\"332b1bf9\",\"653\":\"9e61f25f\",\"665\":\"f08ec8ce\",\"698\":\"452ac250\",\"703\":\"a77bbd6e\",\"707\":\"2ffd8ab9\",\"734\":\"02cc4241\",\"815\":\"45455b2f\",\"818\":\"927b56dd\",\"859\":\"cf2340aa\",\"866\":\"79570e6a\",\"870\":\"e214cf3b\",\"877\":\"6694531c\",\"936\":\"b0705e42\",\"941\":\"a1ea4f0e\",\"964\":\"c0c64d8b\"}[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) + \".\" + {\"179\":\"f757af94\",\"193\":\"698ce1f7\",\"240\":\"b00d8c26\",\"268\":\"2bd44cd5\",\"273\":\"3e46cd68\",\"550\":\"33482adb\",\"653\":\"84eb5994\",\"698\":\"a7c0cf1f\",\"703\":\"9364a344\",\"818\":\"272ea505\",\"866\":\"7685b22b\",\"941\":\"1e7b95ed\",\"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 = {\"179\":1,\"193\":1,\"240\":1,\"268\":1,\"273\":1,\"550\":1,\"653\":1,\"698\":1,\"703\":1,\"818\":1,\"866\":1,\"941\":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","_classCallCheck","_createClass","key","value","_saveChannelGroupSchedules","_asyncToGenerator","_regeneratorRuntime","mark","_callee","group","callback","response","wrap","_context","prev","next","axiosInstance","post","catch","err","sent","console","error","stop","saveChannelGroupSchedules","_x","_x2","apply","arguments","_updateChannelGroupSchedulesResponseCache","_callee2","groupId","_context2","responseCache","subscriptionGroupId","get","concat","updateChannelGroupSchedulesResponseCache","_x3","ChannelGroupService","this","schedulerService","_upsertSubscriptionGroup","client","channelIds","oldGroup","upsertGroup","addedChannelIds","removedChannelIds","groupName","clientId","subscriptions","isIntervalEnabled","filter","channelId","some","sub","clientQuoteTypeId","reduce","removedIds","includes","push","data","abrupt","length","addChannelsToGroup","removeChannelsFromGroup","upsertSubscriptionGroup","_x4","_x5","_addChannelsToGroup","method","addRemoveChannelsFromGroup","_x6","_x7","_x8","_removeChannelsFromGroup","_callee3","_context3","_x9","_x10","_x11","_addRemoveChannelsFromGroup","_callee4","query","channelCallTypes","_i","_Object$keys","_context4","join","delete","_x12","_x13","_x14","_x15","_fetchGroups","_callee5","_context5","fetchGroups","_x16","_x17","_deleteSubscriptionGroup","_callee6","_context6","deleteSubscriptionGroup","_x18","_x19","_deleteChannelFromGroup","_callee7","subscription","callTypesResponse","callType","removeResponse","_context7","deleteChannelFromGroup","_x20","_x21","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","_ref","EntireState","groupedCounties","_terrCollection$key","NumCounties","groupedZips","zips","NumZips","convertLutGeoMapsToGeoMaps","lutGeoMaps","lutGeo","_lutGeo$countyName","stateCode","getLutGeoType","list","keyGetter","Map","item","collection","set","lutGeoMap","Notifications","BANNER","DIALOG","TRAY","INFO","WARNING","ERROR","SUCCESS","DATERANGE","DAILY","WEEKLY","MONTHLY","ALL","AGENT","COMPANY","STATE","STATUS","notificationId","meta","JSON","parse","window","localStorage","notificationsMeta","isDismissed","stringify","notifications","unseenNotifications","n","_Notifications$_incre","_incrementNotificationMeta","intervalType","interval","lastSeen","seenCount","showNotification","Date","now","today","moment","startOf","lastDay","thisWeek","thisMonth","intervalTypes","DailySchedule","dayIndex","dailyCap","isActive","_ref$dayPartSchedules","dayPartSchedules","dayOfWeek","days","DayPartSchedule","Cap","active","undefined","defaultInstance","responseData","rawSchedules","subscriptionDailySchedules","isIntervalCapEnabled","monthlyCapLimit","subscriptionMonthlySchedule","subscriptionMonthlyCap","capLimit","_DailySchedule$parseD","parseDayPartSchedules","parsedSchedules","intervalStep","_DailySchedule$parseC","parseClientDayPartSchedules","dayParts","_step","sunday","monday","tuesday","wednesday","thursday","friday","saturday","_iterator","_createForOfIteratorHelper","_loop","schedule","subscriptionDayPartSchedules","dayPartSchedule","intervalCaps","subscriptionIntervalCaps","intervalCap","newCap","limit","start","startTime","end","endTime","IntervalMap","calculateStep","concurrencyCap","dayPartCap","scheduleDayPartCap","dailySchedule","scheduleDailyCap","s","done","f","_step2","_iterator2","_loop2","_ref2","dailySchedules","oldDailySchedules","_step3","_iterator3","_loop3","oldDailySchedule","find","_step4","subscriptionDailySchedule","_iterator4","_step5","dayPart","subscriptionDayPartSchedule","_iterator5","_ref3","_ref3$preventCapOverr","preventCapOverride","_step6","_iterator6","_step7","_iterator7","_ref4","requestBody","_ref5","_ref6","_ref6$start","_ref6$end","_ref6$dayIndex","schedules","step","_schedules","_showInput","bind","_hideInput","_submitCell","init","_toConsumableArray","allTimeKeys","currentInterval","Array","fill","nextTime","sort","a","b","aSecs","toSeconds","bSecs","_this","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","label","children","input","labelText","innerText","trim","onSubmit","classList","add","remove","removeEventListener","removeChild","_lastCell","focus","select","cap","startSeconds","endSeconds","diffSeconds","time","values","split","hours","parseInt","minutes","seconds","Math","floor","total","incSeconds","incAmPm","parseTime","suffix","time1","time2","value1","value2","minutes1","minutes2","max","timeValue","stepValue","compareTime","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","packet","leadId","leadType","lead","toLowerCase","outboundCallSid","sid","sessionId","t0","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","inRoles","NProgress","matched","Promise","reject","_len","args","_key","delegateYield","t1","finish","t2","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","_this2","$toasted","show","theme","position","duration","action","text","onClick","toastObject","waiting","postMessage","goAway","userActivityThrottler","tabVisibilityChange","hidden","resetUserActivityTimeout","_this3","inactiveUserAction","_this4","render","errorHandler","vm","info","onerror","msg","url","line","col","errorDetails","rootErrors","event","_window","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","_reqHandleFunc","token","authService","getToken","axios","common","Authorization","reqErrorFunc","_reqErrorFunc","resHandleFunc","resErrorFunc","_error$response$heade","reset","login","authHeader","errorTracker","trackException","exception","interceptors","request","axiosAnonymous","EventBus","dictionary","eventType","subscribers","eventHandler","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","_window2","logout","getUser","getAccount","setAuthority","authorityKey","account","loginHint","res","idTokenClaims","emails","ssoSilent","idToken","rawIdToken","acquireTokenRedirect","_window3","clearCache","storageKeys","startsWith","freeze","ADMIN","AGENT_MANAGER","CALL_CENTER_ADMIN","CANCEL_SAVE","CANCEL_SAVE_ADMIN","CORPORATE_MANAGER","PRODUCT_ADMIN","authComputed","_objectSpread","mapState","mapGetters","authMethods","mapActions","handleFailedNetworkResponse","_error$reponse","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","_ref7","isProductViewer","_ref8","isCancelSave","_ref9","isSales","_ref10","isSalesManager","_ref11","isCancelSaveAdmin","_ref12","isCorporateManager","_ref13","isAccountCreator","_ref14","resetSettings","_ref15","_ref16","_ref17","root","_ref18","adalUser","errorMessage","lastName","family_name","firstName","given_name","setUser","getAllLogins","_ref19","setProperties","_ref20","_ref21","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","_ref6$noCache","noCache","getStatements","pagination","page","currentPage","pageSize","sortBy","getLastStatement","currentDate","statementDate","createDate","getMonth","getFullYear","getCancelStatements","setCardAsPrimary","_this5","paymentServiceId","getClientCancellationReasons","_this6","getProductData","_this7","rootState","products","saveProductData","_this8","results","getGroupBalances","_ref22","_this9","getSingleBalanceTransfer","_ref23","_ref24","_this10","groupTransaction","transferBalance","_ref25","_ref26","_this11","balanceTransfer","getServiceTypeList","_ref27","_this12","getBalanceByProductType","_ref28","_this13","refund","_ref29","_ref30","_this14","card","serviceTypeId","removeTransaction","_ref31","removalDetails","_callee8","_context8","alert","amount","getAuthNetData","_ref32","_this15","_callee9","_context9","clientKey","apiLoginID","updatePendingCancellation","_ref33","_this16","_callee10","_context10","cancelPendingCancellation","_ref34","_this17","_callee11","_context11","cancelClient","_ref35","cancellationData","_this18","_callee12","cancelResult","_context12","_ref36","filterTypeId","filterTypeName","operator","subscriptionFilterId","subscriptionFilterTypeOperator","subscriptionFilterTypeName","subscriptionFilterTypeId","subscriptionFilterTypeInputValue","subscriptionFilterTypeInputLookup","getInitialState","dirty","filterTypes","filterTypesOperators","getFilters","_ref3$clearIds","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","pageCount","loadingMutation","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","isChannelGrouped","g","_arguments","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","_state$pagination","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","_state$client","hasClient","clientStatus","statusMap","clientTimezone","timeZone","isCorporate","clientType","isAgent","_state$client2","isFolio","farmersFolio","parentCompany","isStateFarm","supportPhone","_state$client3","salesSupportTeamName","supportEmail","_state$client4","billingType","_state$client5","reactivationInfo","isCcBilling","_state$client6","isEligibleForReactivation","_state$client7","fetchClient","fetchClientAccountDetails","updateAccountDetails","getClient","oid","setClient","defaults","clearClient","createDefaultClient","clientInfo","setClientStatus","previousStatus","resetStatus","getConsentCompanyId","_response$data","setConsentCompanyId","getLogs","startDate","startDates","endDate","last45Days","getReactivationLogs","updateReactivationLog","reactivationLog","getSalesPeople","syncToSalesForce","getClientStatus","_callee13","_context13","getClientCreditEligibility","_callee14","_context14","getClientContractSnapshot","_callee15","_context15","downloadContract","_callee16","_context16","responseType","downloadUrl","URL","createObjectURL","Blob","link","href","setAttribute","body","appendChild","getClientSystemData","_callee17","_context17","getClientCallSubscription","_ref37","_ref38","_callee18","_context18","getStateFarmSubsidy","_ref39","_ref40","_callee19","_context19","getClientPromoDetails","_ref41","_callee20","_context20","updateClientPromoDetails","_ref42","_callee21","_context21","insertClientPromoDetails","_ref43","_callee22","_context22","zeroClientPromoAmounts","_ref44","_callee23","_context23","getClientAccountDetails","_ref45","_ref46","_callee24","_context24","getClientSendHistory","_ref47","_callee25","issues","messages","_context25","blockedEmails","bouncedEmails","invalidEmails","spamEmails","date","last_event_time","from_email","subject","clicks_count","opens_count","msg_id","emailAddress","getClientEmailStatus","_ref48","_callee26","_context26","getEmailTimeline","_ref49","_ref50","_callee27","messageId","_context27","getSpamReports","_ref51","_ref52","_callee28","_ref52$noCache","_context28","removeSpamReport","_ref53","_ref54","_callee29","_ref54$emails","_context29","_ref55","clientRules","clientRuleTypes","_getters","rule","ruleName","setClientRules","setClientRuleTypes","getClientRulesList","getClientRuleTypesList","createClientRule","successMessage","deleteClientRule","leadCount","countLoading","getLead","lowCR","highCR","lowCost","highCost","creditReason","leadData","devPhoneNumber","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","_state$flags$flagName","medicareConsentEnabled","MedicareConsent","populateFlags","checkFlagForClient","setFlags","setIsInit","requireModule","fileName","modulePath","camelCase","_getNamespace","getNamespace","thisModule","namespace","pop","forwardRequest","namespaced","subtree","shift","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","_err$response$data","_err$response","deleteLeadNote","leadNoteId","_err$response$data2","_err$response2","setLeadPacket","SET_LEAD","SET_PACKET","SET_LEADSTAGE","leadStage","SET_LEADCREDITREQUEST","reasonText","requestDate","requestedBy","creditRequestReason","creditRequestDesc","creditApprovalDtg","creditRequestBy","mapStateSettingsToOverrides","settings","selectedStates","_settings$filter$map","_settings$filter","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","_state$leadType","hasCustomPackage","getTerritories","Set","getExcludedZips","getExpansionOptOut","subsidyToolTipMessage","isWeb","_state$leadType2","isCall","_state$leadType3","availableLeadTypes","_rootState$client$cli","_rootState$signup$sig","_rootState$client$cli2","_rootState$signup$sig2","isStaffUser","_state$leadTypes","crmTypesLookup","_state$crmTypes","domain","selectedPackage","_state$leadType4","p","_state$leadType5","isCustomMaxSold","_state$leadType6","_state$packageRestric","_state$packageRestric2","RESET_STATE","SET_LEAD_TYPE","isNew","SET_TERRITORY_DETAILS","SET_DAY_CAP","day","weeklyCap","SET_DAY_CAPS","SET_CLIENT_GEOMAP","RESET_DAY_CAPS","resetValue","_days","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","_state$leadType$geoMa","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","_state$leadType7","_state$leadType7$pric","foundPriceModifier","packagePriceModifierId","isSelected","modifierToAdd","UPDATE_PRICE_MODIFIER","foundPriceModifierIndex","modifierToUpdate","modifierToFind","_state$leadType8","_state$leadType8$pric","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","toAdd","t","newTerr","addAllCountyZips","zipSet","addState","newTerritories","addCounty","addZipCode","removeZipCode","removeState","removeStateAll","stateEntries","toRemove","removeCountyAll","countyEntries","removeCounty","existingGeos","countyIndex","zipIndex","existing","removeTerritoryCounty","getPackageRestrictions","updateMaxSold","getLeadType","_response$data$stateO","scheduledEnd","stateSettings","stateOverrides","stateOverride","getTerritoryDetails","clearLeadType","getNewLeadType","getCrmTypes","verifyECRM","crm","_rootState$signup","_rootState$client","_exec","_exec2","emailId","exec","_slicedToArray","variables","getPackage","getPackageUrl","getPackageList","addCustom","isCorpClient","getPackageListUrl","_state$leadType9","currentPackageId","channelPackage","_channelPackage$price","chanPackage","_chanPackage$id","_state$leadType10","channelPriceModifier","_state$leadType$price","foundModifier","foundChannelModifier","packageProduct","_packageProduct$price","_a$name","_b$name","aName","bName","localeCompare","updateCustomPackageFilters","updatePostTemplate","prefix","postTemplateString","v","workingAddress","createLeadType","_ref39$getters","createChannel","createCampaign","leadTypeSchedule","scheduleData","callCorporateFilter","clientQuoteType","getCustomPriceModifiers","priceModifieres","_state$leadType$price2","selectPackage","isCustomPackage","availablePriceModifier","_state$storedPriceMod","storedPriceModifier","lodash","priceMin","priceMax","isDefaultSelected","updateLeadType","_ref45$getters","updateChannel","updateCampaign","queryParams","saveScheduleResult","corpFilterSaveResult","resetEPR","getCancelSavePackages","_context30","temporaryPauseLeadType","durationMs","_context31","diff","temporaryUnpauseLeadType","_callee30","_context32","getClientGeoMapChanges","_callee31","changeDate","_context33","removeGeoMaps","_callee32","_context35","stateIndex","_context34","getQuoteTypeFilterChanges","_ref56","_callee33","_context36","cloneFrom","_ref57","_ref58","_callee34","_context37","_ref59","updateLeadTypeScheduleForNewChannels","_ref60","loadAccountRepOptions","_ref61","_callee35","_context38","setLutInfo","_ref62","sum","estimate","getAvailableLutQuoteTypes","_ref63","_callee36","_context39","onError","setTerritories","_ref64","_callee37","_context40","setExcludedZipCodes","_ref65","zipCodes","_callee38","_context41","setExpansionOptOut","_ref66","flag","_callee39","_context42","setWeekdayCaps","_ref67","newWeekdayCap","_i2","_days2","bulkUpdateOptInSecondaryTerritories","_ref68","_ref69","_callee40","form","optIn","_context43","setDayCaps","_ref70","setDelivery","_ref71","_ref72","phoneDelivery","setLeadType","_ref73","setMaxSold","_ref74","leads","metrics","web","deadLetterQueueMessages","dateRangeStart","delivered","getLeads","getLeadMetrics","_yield$Promise$all","_yield$Promise$all2","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","_Object$keys2","sortedPackagesByQuoteType","priorities","packagePriorities","_i3","_Object$keys3","aPriority","bPriority","zipGeosByQuoteType","_i4","_Object$keys4","countyGeosByQuoteType","_Object$keys5","_i5","nearbyFips","radiusBoundary","uniqueNearbyFips","countyGeos","fips","customCountyGeoMaps","stateGeosByQuoteType","_Object$keys6","_i6","stateNames","stateName","uniqueStateNames","stateGeos","allGeosByQuoteType","_i7","_Object$keys7","allCountyZipGeosByQuoteType","_i8","_Object$keys8","countyZipGeosMap","radiusBoundariesByQuoteType","_i9","_Object$keys9","radiusBoundaries","geoMap","regionHeadersByQuoteType","_i10","_Object$keys10","customGeoMaps","boundary","regionHeadersDisplayByQuoteType","_i11","_Object$keys11","_step5$value","geoEstimateMapByQuoteType","_Object$keys12","_i12","estimateMap","packageGeos","entries","packageGeosMap","_loop4","_packageGeos$_i","_packageGeos","_i13","boundaries","uniqueBoundaries","boundedGeos","isCustomZip","_loop5","addToEstimateMap","regionKey","consolidatedEstimatesByQuoteType","_i14","_Object$keys13","setAddLoading","setRemoveLoading","setAddRadiusLoading","setAddCountiesLoading","setAddListLoading","setBaseState","setBaseStateAbbreviation","setCountiesInBaseState","setCountiesInBaseStateError","setLastParentCompany","setLastBaseZip","setLastQuoteType","setLastProductType","setCurrentVolume","setAccountReps","RESET","_i15","_Object$keys14","packagesError","noPackagesAvailable","customRadiusGeoMaps","geoMapEstimateErrors","RESET_COUNTIES_IN_BASE_STATE","RESET_GEO_MAP_ESTIMATES","RESET_GEO_MAP_ESTIMATE_ERRORS","SET_AVAILABLE_QUOTE_TYPES","_step8","quoteTypes","resetPreviousState","_iterator8","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","_state$quoteTypeState","UPDATE_SELECTED_GEO_MAPS","DELETE_SELECTED_GEO_MAP_REGION","SWITCH_SELECTED_REGIONS","deleteKeys","isMultiState","endsWith","_step9","_iterator9","regionName","_state$quoteTypeState2","CANCEL_SELECTED_PACKAGES","RESET_SELECTED_ESTIMATES","_step10","_iterator10","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","_step11","_iterator11","_state$quoteTypeState3","Custom","RESET_CUSTOM_RADII","customRadiusKeys","r","customRadii","_step12","_iterator12","_i16","_Object$keys15","RESET_CUSTOM_COUNTIES","customCountyKeys","_step13","_iterator13","_i17","_Object$keys16","getAvailableQuoteTypes","setAvailableQuoteTypes","getDetailedRegionPackageData","overStateLines","addGeoMaps","_step14","_iterator14","countyGeo","updateSelectedGeos","deselectAllPackages","_i18","_Object$keys17","_i19","_Object$keys18","cancelSelectedPackage","getAllGeoMapEstimates","_step15","_iterator15","getGeoMapEstimate","_ref44$regionKey","newGeoMaps","_state$quoteTypeState4","packageGeo","requestPromise","getCountiesByStateAbbreviationWithDistanceFromZip","countyData","milesAway","direction","getCountiesByZipCodeWithDistanceFromZip","addCustomRadius","radius","_iterator16","_step16","addCustomList","badZipcodeList","_iterator17","_step17","searchedZips","returnedZips","addCustomCounties","_iterator18","_step18","_iterator19","_step19","retryGeoMapEstimateErrors","errorEntries","_i20","_errorEntries","_errorEntries$_i","regionMapEntries","_i21","_regionMapEntries","_regionMapEntries$_i","fetchAddedGeo","_state$quoteTypeState5","isRemoved","responses","estimateResponse","zipCodeResponse","isStateSelected","countyCode","removeGeo","addedGeo","reduceCountyGeo","countyZipGeo","countyZipGeos","fetchCountyZipGeos","submitChannelEstimate","_iterator20","_step20","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","types","dialogNotifications","trayNotifications","trayNotificationCount","allNotifications","fetchAllNotifications","fetchClientNotifications","filterSeen","upsertNotification","notificationModel","deleteNotification","dismissNotification","dismiss","newNotifications","changeIncludeExpired","setNotifications","setAll","setIncludeExpired","ADD_NOTIFICATION","notification","unshift","UPDATE_NOTIFICATION","DELETE_NOTIFICATION","parentCompanyLoading","parentCompanyOptions","statusLoading","statusOptions","loyaltyLevelLoading","loyaltyLevelOptions","getParentCompanyOptions","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","_requestPackage","promos","promotions","setPromos","setPromotions","SET_PROMOTIONS","promotionList","getPromos","getCurrentPromotions","insertPendingPromo","defaultMatchPromos","maximum","errors","matchPromos","getMatchPromoValueByProduct","getMatchPromoPercentByProduct","getMatchPromoMaximumByProduct","getErrors","category","getMatchPromos","_state$matchPromos","_objectWithoutProperties","_excluded","setMatchPromosFromSource","cleanedPromos","SET_MATCH_PROMO","promoValues","_excluded2","ADD_ERROR","newError","_excluded3","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","_state$selectedReacti","noChannelsSelected","_Object$values","_Object$values2","getActiveChannelCountForProduct","getWebChannelCount","_state$paymentInfo$re","_state$paymentInfo","getCallChannelCount","_state$paymentInfo$re2","_state$paymentInfo2","getItem","setShowDialog","getReactivationPaymentInfoAsync","sendReactivationRequestAsync","clientDetails","transformedRequest","updatePaymentIdForProductAsync","updateDepositAmountForProductAsync","setProductsForNonCcClientsAsync","setChannelActiveForProduct","productChannelInfo","xhrClient","errorCount","validateConfig","_startLoading","mutationPath","_stopLoading","_request","_ref8$loadingMutation","_ref8$errorMessage","_ref8$successMessage","_ref8$onError","_ref8$authenticate","authenticate","_ref8$headers","restConfig","properties","_handleError","authHead","setErrors","_typeof","width","size","isNavDrawerOpen","isSidebarOpen","scrollLocks","isXS","isMD","isAtLeastMD","isAtMostMD","isLG","isAtLeastLG","isXL","className","setScrollLock","lockInfo","_document$getElements","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","defaultSchedule","defaultScheduleMap","webLeadScheduleDay","scheduleLength","recentSchedule","nextStartTime","nextEndTime","webLeadSchedules","scheduleItem","intervalMap","webLeadIntervalMap","preventCapsPerScheduleOverride","webLeadInterval","weekdayZeroDayCapCounts","countZeroDayCaps","areAnySchedulesWithStartIsAfterEnd","weekdayZeroConcurrencyCapCounts","countZeroConcurrency","weekendZeroConcurrencyCapCounts","saturdayDayCaps","saturdayCaps","sundayDayCaps","sundayCaps","updateRequestBody","useCache","buildRequestFromResponseCache","buildRequest","isWebLeadScheduleValid","isScheduleValid","marshalledScheduleData","buildData","clientQuoteTypeID","setPreventCapOverrideBySchedule","newPreventStatus","setSchedules","postData","fetchCallSchedule","_leadType$id","isCloningSchedule","callTypeParam","getWebLeadSchedule","_leadType$schedule","scheduleManager","getDefaultSchedule","cloneCallSchedule","getChannelGroupSchedule","fetchChannelGroupSchedule","channelGroupId","resetSchedulerState","getClientSchedule","parseClientResponse","seal","processCallSchedule","callResponse","_DailySchedule$parseC2","parseCallResponse","saveSchedules","success","saveWebLeadSchedules","_rootState$leadType","webLeadSchedule","convertWebLeadScheduleToLeadTypeSchedule","saveClientSchedules","buildClientRequestFromResponseCache","updateSchedulesResponseCache","resetSchedules","_DailySchedule$parseC3","addDayPartSchedule","_ref19$intervalStep","lastIndex","newStartTime","newEndTime","lastDayPartSchedule","newDayPartSchedule","count","removeDayPartSchedule","removeWebLeadDayPartSchedule","addWebLeadDayPartSchedule","dayPartEndTime","dayPartStartTime","newWebLeadScheduleDayPart","newScheduleRecord","addNewActiveDefaultScheduleDay","setDayPartSchedule","startOrEnd","setWebLeadDayPartSchedule","setDayActive","setMonthlyCapLimit","setPartCap","setWebLeadScheduleActive","setConcurrencyCap","setIntervalStep","setIntervalMap","setIntervalCap","setIsIntervalEnabled","isEnabled","setResponseCache","setDaySchedule","_start","_end","daySchedule","newWebLeadDayPartSchedule","updateWebLeadScheduleToLeadTypeSchedule","setWebLeadSchedules","resetIntervalCaps","WEB_TYPE","defaultDeposits","defaultRechargeAmount","mapIoToMatchPromosData","deposits","_deposits$productType","_promo$amount","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","_state$validationResu","_state$validationResu2","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","_state$signupInfo","isWebRechargeEnabled","specialProgram","getProductDeposit","_state$signupInfo$dep","promoId","promotionName","promotion","promoName","showLut","hideLut","getZipCodes","cqtId","popResponse","zipCodesData","transformResponse","terr","_processTerritory","postZipCodes","cloneChannel","dayCaps","leadDelivery","sourceChannel","destinationChannel","clone","updateClientQuoteType","callPackages","_response","ClientQuoteTypeID","deleteClientQuoteType","countOfChannelType","getParentSpecialProgram","_state$signupInfo$cli","uri","isSubsidyByStateEnabled","createSignupInfo","salesForceData","cleanedMatchPromoSettings","getSignupInfo","_newSignupInfo$deposi","newSignupInfo","getProductTypeIdByName","productName","saveSignupBlob","cleanedDeposit","newKey","cleanedInfo","_response$response","_response$response2","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","_state$depositErrors","rest","_toPropertyKey","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","_defineProperty","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","_ref7$type","default","transactionTypes","setServices","setTransactionTypes","setTo","setFrom","getTransactions","createTransactions","service","promoCode","cardCheckNumber","Amount","CreateDate","Description","Service","TypeCode","CardCheckNumber","PromoCode","getGroupDebtReplacementTransactions","_getGroupDebtReplacementTransactions","transactionId","replaceTransaction","_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","$emit","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","_productTypes","_this$selectedReactiv","_this$webProduct","_this$selectedReactiv2","_this$callProduct","_this$selectedReactiv3","_this$selectedReactiv4","debounce","fieldName","hasMaxCards","_component_card_form","ref","onCancel","onSave","handleSave","CardForm","String","_this$creditCards","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","chunkId","promises","miniCssF","globalThis","Function","prop","hasOwnProperty","inProgress","dataWebpackPrefix","l","script","needAttach","scripts","charset","timeout","nc","onScriptComplete","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":""}