IO-3020 IO-3036 Initial removal of ProManager
This commit is contained in:
@@ -8,8 +8,7 @@ const INITIAL_STATE = {
|
||||
name: "ShopName",
|
||||
address: InstanceRenderManager({
|
||||
imex: "noreply@iemx.online",
|
||||
rome: "noreply@romeonline.io",
|
||||
promanager: "noreply@promanager.web-est.com"
|
||||
rome: "noreply@romeonline.io"
|
||||
})
|
||||
},
|
||||
to: null,
|
||||
|
||||
@@ -15,7 +15,6 @@ import { getToken } from "firebase/messaging";
|
||||
import i18next from "i18next";
|
||||
import LogRocket from "logrocket";
|
||||
import { all, call, delay, put, select, takeLatest } from "redux-saga/effects";
|
||||
import { Userpilot } from "userpilot";
|
||||
import { factory } from "../../App/App.container";
|
||||
import {
|
||||
analytics,
|
||||
@@ -245,12 +244,6 @@ export function* signInSuccessSaga({ payload }) {
|
||||
rome: () => {
|
||||
window.$zoho.salesiq.visitor.name(payload.displayName || payload.email);
|
||||
window.$zoho.salesiq.visitor.email(payload.email);
|
||||
},
|
||||
promanager: () => {
|
||||
Userpilot.identify(payload.email, {
|
||||
email: payload.email
|
||||
});
|
||||
console.log("*** Userpilot identified.");
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
@@ -281,8 +274,7 @@ export function* sendPasswordResetEmailSaga({ payload }) {
|
||||
yield sendPasswordResetEmail(auth, payload, {
|
||||
url: InstanceRenderManager({
|
||||
imex: "https://imex.online/passwordreset",
|
||||
rome: "https://romeonline.io/passwordreset",
|
||||
promanager: "https:promanager.web-est.com/passwordreset"
|
||||
rome: "https://romeonline.io/passwordreset"
|
||||
})
|
||||
});
|
||||
|
||||
@@ -330,41 +322,10 @@ export function* SetAuthLevelFromShopDetails({ payload }) {
|
||||
|
||||
const user = yield select((state) => state.user.currentUser);
|
||||
if (payload.features.singleDeviceOnly) {
|
||||
if (
|
||||
!(
|
||||
user.email.includes("@imex.") ||
|
||||
user.email.includes("@rome.") ||
|
||||
user.email.includes("@rometech.") ||
|
||||
user.email.includes("@promanager.")
|
||||
)
|
||||
)
|
||||
if (!(user.email.includes("@imex.") || user.email.includes("@rome.") || user.email.includes("@rometech.")))
|
||||
yield put(setInstanceId(user.uid));
|
||||
}
|
||||
|
||||
//For Rome, check to make sure it's not a PM shop.
|
||||
try {
|
||||
InstanceRenderManager({
|
||||
executeFunction: true,
|
||||
args: [],
|
||||
rome: () => {
|
||||
if (
|
||||
payload.imexshopid.toLowerCase().startsWith("pm_") &&
|
||||
!(
|
||||
user.email.includes("@imex.") ||
|
||||
user.email.includes("@rome.") ||
|
||||
user.email.includes("@rometech.") ||
|
||||
user.email.includes("@promanager.")
|
||||
)
|
||||
) {
|
||||
throw new Error("You are not authorized to use this application.");
|
||||
}
|
||||
},
|
||||
promanager: () => {}
|
||||
});
|
||||
} catch (error) {
|
||||
yield put(setInstanceConflict());
|
||||
}
|
||||
|
||||
try {
|
||||
InstanceRenderManager({
|
||||
executeFunction: true,
|
||||
|
||||
Reference in New Issue
Block a user