Skip to content

Commit

Permalink
Merge pull request #435 from webitel/feature/queue-logs-agent-filter
Browse files Browse the repository at this point in the history
feature: added agent filter to queue logs [WTEL-2861]
  • Loading branch information
dlohvinov authored Feb 24, 2023
2 parents 9969be8 + 5ed906d commit f97d16e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const _getQueueLogs = (getList) => function({
joinedAtFrom,
joinedAtTo,
result,
agent,
leavingAtFrom,
leavingAtTo,
offeringAtFrom,
Expand All @@ -25,7 +26,7 @@ const _getQueueLogs = (getList) => function({
// parent id == queue id
const params = [
page, size, search, sort, fields, joinedAtFrom, joinedAtTo, undefined,
parentId, undefined, undefined, undefined, result, leavingAtFrom,
parentId, undefined, undefined, agent, result, leavingAtFrom,
leavingAtTo, offeringAtFrom, offeringAtTo, durationFrom, durationTo,
];
return getList(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default {
data: () => ({
filters: [
{ type: 'enum', filterQuery: 'result' },
{ type: 'api', filterQuery: 'agent' },
],
}),
methods: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import ApiFilterSchema
from '@webitel/ui-sdk/src/modules/QueryFilters/classes/ApiFilterSchema';
import BaseFilterSchema
from '@webitel/ui-sdk/src/modules/QueryFilters/classes/BaseFilterSchema';
import EnumFilterSchema
from '@webitel/ui-sdk/src/modules/QueryFilters/classes/EnumFilterSchema';
import QueryFiltersStoreModule
from '@webitel/ui-sdk/src/modules/QueryFilters/store/QueryFiltersStoreModule';
import { CallReportingStatus } from 'webitel-sdk';
import AgentsAPI from '../../../../../../agents/api/agents';

const state = {
search: new BaseFilterSchema(),
Expand All @@ -24,6 +27,10 @@ const state = {
})),
locale: { label: 'objects.ccenter.queues.logs.result' },
}),
agent: new ApiFilterSchema({
API: AgentsAPI.getLookup,
locale: { label: ['objects.ccenter.agents.agents', 1] },
}),
duration: new BaseFilterSchema({
value: { from: 0, to: undefined },
defaultValue: { from: 0, to: undefined },
Expand Down

0 comments on commit f97d16e

Please sign in to comment.