814b46ed25ef0179c93ba8a387ecd01ff11660cc
[motion-next.git] /
1 <div layout="row" ngCloak>
2   <md-card flex="50">
3     <md-toolbar class="md-table-toolbar md-default table-header red-900-bg">
4       <div class="md-toolbar-tools">
5         <span class="md-subhead" translate="VOICE.QUEUES">Queues</span>
6         <div flex></div>
7       </div>
8     </md-toolbar>
9     <md-table-container>
10       <table md-table md-progress="vm_bull.promise">
11         <thead
12           md-head
13           md-order="vm_bull.query.sort"
14           md-on-reorder="vm_bull.getVoiceQueues"
15         >
16           <tr md-row>
17             <th md-column>{{ 'VOICE.NAME' | translate }}</th>
18             <th md-column>{{ 'VOICE.TYPE' | translate }}</th>
19             <th md-column>{{ 'VOICE.WAITING' | translate }}</th>
20             <th ng-if="voiceQueue.type === 'outbound'" md-column>
21               {{ 'VOICE.ACTIVE' | translate }}
22             </th>
23             <!-- <th md-column md-order-by="active">{{ 'VOICE.ACTIVE' | translate }}</th> -->
24           </tr>
25         </thead>
26         <tbody md-body>
27           <tr md-row ng-hide="vm_bull.getSize(vm_bull.voiceQueues)">
28             <td md-cell colspan="4">
29               <div layout="row" layout-align="center center">
30                 <span translate="VOICE.NO_AVAILABLE_INFO"
31                   >No Available Info</span
32                 >
33               </div>
34             </td>
35           </tr>
36           <tr md-row ng-repeat="(key, voiceQueue) in vm_bull.voiceQueues">
37             <td md-cell class="name">{{voiceQueue.name}}</td>
38             <td ng-if="voiceQueue.type === 'outbound'" md-cell class="waiting">
39               {{voiceQueue.dialMethod}}
40             </td>
41             <td md-cell class="waiting">{{voiceQueue.waiting || 0}}</td>
42             <td
43               md-cell
44               ng-if="voiceQueue.type === 'outbound'"
45               class="dialActive"
46             >
47               <md-icon
48                 md-colors="{color: {{voiceQueue.dialActive ? '\'green\'' : '\'grey\''}}}"
49                 md-font-icon="{{voiceQueue.dialActive ? 'icon-check' : 'icon-close'}}"
50               ></md-icon>
51             </td>
52           </tr>
53         </tbody>
54       </table>
55     </md-table-container>
56
57     <md-table-pagination
58       md-limit="vm_bull.query.limit"
59       md-limit-options="[10, 15, 20, 50, 100, 250]"
60       md-page="vm_bull.query.page"
61       md-total="{{vm_bull.voiceQueuesTotal}}"
62       md-on-paginate="vm_bull.getVoiceQueues"
63       md-page-select
64     ></md-table-pagination>
65   </md-card>
66   <md-card flex="50">
67     <md-toolbar class="md-table-toolbar md-default table-header red-900-bg">
68       <div class="md-toolbar-tools">
69         <span class="md-subhead" translate="DASHBOARDS.WAITING_TEXT"></span>
70         <div flex></div>
71       </div>
72     </md-toolbar>
73     <md-table-container>
74       <table md-table>
75         <thead md-head>
76           <tr md-row>
77             <th md-column>{{ 'VOICE.DID' | translate }}</th>
78             <th md-column>{{ 'VOICE.QUEUE' | translate }}</th>
79             <th md-column>{{ 'VOICE.CALLER' | translate }}</th>
80           </tr>
81         </thead>
82         <tbody md-body>
83           <tr md-row ng-hide="vm_bull.getSize(vm_bull.rpcVoiceQueuesChannels)">
84             <td md-cell colspan="3">
85               <div layout="row" layout-align="center center">
86                 <span translate="VOICE.NO_AVAILABLE_INFO"
87                   >No Available Info</span
88                 >
89               </div>
90             </td>
91           </tr>
92           <tr
93             md-row
94             ng-repeat="(key, channel) in vm_bull.rpcVoiceQueuesChannels | limitObjectFromTo: vm_bull.queryChannels.limit:(vm_bull.queryChannels.page - 1) * vm_bull.queryChannels.limit"
95           >
96             <td md-cell>{{channel.exten}}</td>
97             <td md-cell>{{channel.queue}}</td>
98             <td md-cell>{{channel.calleridnum}}</td>
99           </tr>
100         </tbody>
101       </table>
102     </md-table-container>
103
104     <md-table-pagination
105       md-limit="vm_bull.queryChannels.limit"
106       md-page="vm_bull.queryChannels.page"
107       md-limit-options="[10, 15, 20, 50, 100, 250]"
108       md-total="{{vm_bull.getSize(vm_bull.rpcVoiceQueuesChannels)}}"
109       md-page-select
110     ></md-table-pagination>
111   </md-card>
112 </div>