1 <md-content layout="column" layout-align="end center">
4 <md-select ng-model="vm.channel" placeholder="Channel">
5 <md-option ng-value="undefined" translate="DASHBOARDS.ALL"
8 <md-option ng-value="'voice'" translate="DASHBOARDS.VOICE"
11 <md-option ng-value="'chat'">Chat</md-option>
12 <md-option ng-value="'mail'">Mail</md-option>
13 <md-option ng-value="'sms'">Sms</md-option>
14 <md-option ng-value="'fax'">Fax</md-option>
15 <md-option ng-value="'openchannel'">Openchannel</md-option>
16 <md-option ng-value="'whatsapp'">WhatsApp Connector</md-option>
20 <div layout-margin layout="row" layout-align="space-between center">
23 ng-model="vm.dateFrom"
24 md-placeholder="Enter date"
25 ng-init="vm.dateFrom = vm.firstDayMonth"
32 md-placeholder="Enter date"
33 ng-init="vm.dateTo = vm.lastDayMonth"
42 ms-timeline="vm.timelineOptions"
44 ng-if="vm.journey && vm.journey.length"
46 <!-- TIMELINE ITEM -->
48 class="ms-timeline-item"
49 layout-align="center center"
50 ng-repeat="item in vm.journey | getChannelByItem:vm.channel:vm.dateFrom:vm.dateTo | orderBy:'-createdAt'"
52 <div class="timeline-card">
55 ng-class="{'md-grey-200-bg': item.id == vm.interaction.id}"
60 layout-align="space-between center"
63 class="md-fab md-mini"
64 aria-label="icon-channel"
65 ng-class="vm.getColorByItem(item) + '-bg'"
68 ng-if="item.FaxAccountId"
69 md-font-icon="icon-deskphone"
72 ng-if="item.OpenchannelAccountId"
73 md-font-icon="icon-google-earth"
76 ng-if="item.SmsAccountId"
77 md-font-icon="icon-message-text"
80 ng-if="item.WhatsappAccountId"
81 md-font-icon="icon-whatsapp"
84 ng-if="item.MailAccountId"
85 md-font-icon="icon-email"
88 ng-if="item.ChatWebsiteId"
89 md-font-icon="icon-hangouts"
91 <md-icon ng-if="item.amaflags" md-font-icon="icon-phone"></md-icon>
93 <div class="info" layout="column" ng-init="item.showMore = false">
94 <span class="font-size-12 text-truncate">
95 #{{item.id}} - {{ item.Account.key || item.destination }}
97 <span class="font-size-10"
98 >{{item.createdAt | date: 'medium'}}</span
102 class="toggle-details md-accent-color"
103 ng-hide="item.showMore"
104 ng-click="item.showMore = !item.showMore"
105 translate="DASHBOARDS.SHOW_DETAILS"
110 class="toggle-details md-accent-color"
111 ng-show="item.showMore"
112 ng-click="item.showMore = !item.showMore"
113 translate="DASHBOARDS.HIDE_DETAILS"
123 ng-src="api/users/{{item.UserId}}/avatar"
125 <md-tooltip md-direction="left"
126 >{{item.Owner.fullname || item.User.fullname}}</md-tooltip
130 <div ng-if="item.showMore">
132 ng-if="!item.amaflags"
133 ng-include="'app/main/apps/dashboards/views/general/agent/interaction/views/agent.general.info.journey.all.html'"
136 ng-if="item.amaflags"
137 ng-include="'app/main/apps/dashboards/views/general/agent/interaction/views/agent.general.info.journey.voice.html'"
140 <md-divider></md-divider>
142 ng-if="item.id != vm.interaction.id"
144 layout-align="space-around center"
147 ng-if="item.closed && !amaflags"
148 class="text-truncate text-boxed-light"
152 title="{{ 'DASHBOARDS.STATUS' | translate}} : {{ 'DASHBOARDS.CLOSED' | translate }} {{ item.dispositionsValues }}"
154 {{ 'DASHBOARDS.STATUS' | translate}} : {{ 'DASHBOARDS.CLOSED' |
155 translate}} {{ item.dispositionsValues }}
159 class="text-boxed md-background-bg green-fg"
160 ng-if="!item.closed && !item.amaflags"
161 title="{{ 'DASHBOARDS.STATUS' | translate}}: {{ 'DASHBOARDS.OPENED' | translate}}"
163 {{ 'DASHBOARDS.STATUS' | translate}}: {{ 'DASHBOARDS.OPENED' |
165 <span ng-if="item.substatus"> - {{ item.substatus }}</span>
168 ng-if="item.amaflags"
169 class="text-boxed md-background-bg red-fg"
170 title="{{ 'DASHBOARDS.DISPOSITION' | translate}}: {{ item.userDisposition || 'No Dispose'}}"
172 {{ 'DASHBOARDS.DISPOSITION' | translate}}: {{ item.userDisposition
173 || ('DASHBOARDS.NO_DISPOSITION_SET' | translate)}}
176 ng-if="item.amaflags && item.userSecondDisposition"
177 class="text-boxed md-background-bg red-fg"
178 title="{{ 'DASHBOARDS.SECOND_LEVEL_DISPOSITION' | translate}}: {{ item.userSecondDisposition }}"
180 {{ 'DASHBOARDS.SECOND_LEVEL_DISPOSITION' | translate}}: {{
181 item.userSecondDisposition }}
184 ng-if="item.amaflags && item.userThirdDisposition"
185 class="text-boxed md-background-bg red-fg"
186 title="{{ 'DASHBOARDS.THIRD_LEVEL_DISPOSITION' | translate}}: {{ item.userThirdDisposition }}"
188 {{ 'DASHBOARDS.THIRD_LEVEL_DISPOSITION' | translate}}: {{
189 item.userThirdDisposition }}
193 ng-if="!vm.tab.spy && vm.user.role === 'agent' && vm.isMyAccount(item)"
194 ng-disabled="item.amaflags"
195 class="md-icon-button"
197 ng-click="vm.openInteraction($event, item)"
199 <md-icon md-font-icon="icon-open-in-new" class="s20"></md-icon>
205 <!-- / TIMELINE ITEM -->
208 ng-if="!vm.journey || !vm.journey.length"
210 layout-align="center center"
212 <em translate="DASHBOARDS.NO_DATA_AVAILABLE">No data available</em>