radius-read
Version:
Realtime Dashboard
108 lines • 3.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DarkRequest = exports.LightRequest = exports.IRequest = void 0;
var randomId = Math.floor(1000 + Math.random() * 9000);
function getReqId() {
randomId++;
return randomId;
}
exports.IRequest = {
Id: getReqId(),
Type: {
Auth: "Auth",
Activity: "Activity",
Config: "Config",
Control: "Control"
},
Code: {
Register: "Register",
Unregister: "Unregister",
Login: "Login",
UserRegister: "UserRegister",
RegisterService: "RegisterService",
PullRtEvents: "PullRtEvents",
EntityFetch: "EntityFetch",
AbandonCallFetch: "AbandonCallFetch",
CallAbandonCancel: "CallAbandonCancel",
RegisteredEntityFetch: "RegisteredEntityFetch",
AOPsStatFetch: "AOPsStatFetch",
PredictiveDialerStatusFetch: "PredictiveDialerStatusFetch",
},
User: {
Type: {
Agent: 'Agent',
Admin: 'Admin'
}
},
Entity: {
Campaign: 'Campaign',
CampaignProperties: 'CampaignProperties',
CampaignMedia: 'CampaignMedia',
XServer: 'XServer',
Queue: 'Queue',
Project: 'Project',
AbandonCall: 'AbandonCall',
AbandonCallHistory: 'AbandonCallHistory',
Sessions: 'Sessions',
InboundCallOverview: 'InboundCallOverview',
InboundCallStatistics: 'InboundCallStatistics',
CallSummaryCampaignWise: 'CallSummaryCampaignWise', // Gulfsotheby
CallSummaryProjectWise: 'CallSummaryProjectWise', // Gulfsotheby
CallSummaryInbound: 'CallSummaryInbound', // Gulfsotheby
QueueCall: 'QueueCall',
Average: 'Average',
ConnectedCallVolumeTrend: 'ConnectedCallVolumeTrend',
TotalCalls: 'TotalCalls',
TotalCallDurations: 'TotalCallDurations',
UserDisposition: 'UserDisposition',
SysDisposition: 'SysDisposition',
AOPs: 'AOPs',
AOPsProperties: 'AOPsProperties',
AOPsStatus: 'AOPsStatus',
ContactListSummary: 'ContactListSummary',
PredictiveDialerStatus: "PredictiveDialerStatus",
Leads: 'Leads',
}
};
var lightRandomId = Math.floor(1000 + Math.random() * 9000);
function getLightReqId() {
lightRandomId++;
return lightRandomId;
}
exports.LightRequest = {
Id: getLightReqId(),
Type: {
Auth: 'Auth',
Activity: 'Activity',
Control: 'Control'
},
Code: {
Login: 'Login',
RegisterService: 'RegisterService',
PullRtEvents: 'PullRtEvents'
}
};
var darkRandomId = Math.floor(1000 + Math.random() * 9000);
function getDarkReqId() {
darkRandomId++;
return darkRandomId;
}
exports.DarkRequest = {
Id: getDarkReqId(),
Type: {
Auth: 'Auth',
Activity: 'Activity',
Control: 'Control',
Config: 'Config'
},
Code: {
Login: 'Login',
AbandonCallFetch: 'AbandonCallFetch',
EntityFetch: 'EntityFetch'
},
Entity: {
Campaign: 'Campaign',
CTClient: 'CTClient'
}
};
//# sourceMappingURL=request.constant.js.map