3 class="page-layout simple left-sidenav inner-sidenav motion-list"
7 class="header md-accent-bg"
9 layout-align="space-between center"
12 <div layout="row" layout-align="start center">
13 <div class="logo" layout="row" layout-align="start center">
14 <span class="logo-icon">
15 <md-icon md-font-icon="icon-fire" class="s24"></md-icon>
17 <span class="logo-text" translate="MOTIONDIALER.QUEUECAMPAIGNS"
27 class="search-input-wrapper"
29 layout-align="start center"
32 <md-icon md-font-icon="icon-magnify"></md-icon>
34 <md-input-container md-no-float class="m-0">
37 placeholder="Search for anyone"
39 ng-model="vm.query.filter"
40 ng-model-options="{ debounce: 1000 }"
42 translate-attr-placeholder="MOTIONDIALER.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedQueueCampaigns.length > 0"
54 class="selected-bar header animate-slide-down md-accent-bg"
56 layout-align="start center"
58 <div class="close-button-wrapper" ng-click="vm.selectedQueueCampaigns =[]">
59 <md-button layout="row" layout-align="start center">
60 <md-icon md-font-icon="icon-arrow-left" class="mr-8"></md-icon>
61 <span translate="MOTIONDIALER.BACK">Back</span>
65 <div flex layout="row" layout-align="space-between center">
67 <span class="selected-queueCampaigns-count">
68 <span>{{vm.selectedQueueCampaigns.length}}</span>
69 <span translate="MOTIONDIALER.SELECTED">selected</span>
72 <md-menu class="select-menu" ng-if="!vm.currentThread">
74 class="md-icon-button"
75 ng-click="$mdMenu.open($event)"
76 aria-label="multi select toggle"
78 translate-attr-aria-label="MOTIONDIALER.MULTI_SELECT_TOGGLE"
80 <md-icon md-font-icon="icon-menu-down"></md-icon>
82 <md-menu-content width="3">
85 ng-click="vm.selectAllQueueCampaigns()"
86 translate="MOTIONDIALER.SELECT_ALL"
93 ng-click="vm.deselectQueueCampaigns()"
94 translate="MOTIONDIALER.SELECT_NONE"
103 <div class="multi-select-actions">
105 class="md-icon-button"
106 ng-csv="vm.exportSelectedQueueCampaigns"
108 filename="queueCampaigns.csv"
110 <md-icon md-font-icon="icon-file-excel"></md-icon>
113 class="md-icon-button"
114 ng-if="vm.crudPermissions.canDelete"
115 ng-click="vm.deleteSelectedQueueCampaigns($event)"
116 aria-label="delete selected"
118 translate-attr-label="MOTIONDIALER.DELETE_SELECTED"
120 <md-icon md-font-icon="icon-delete"></md-icon>
125 <!-- / SELECTED BAR -->
128 <div class="content" md-background-bg layout="row" layout-align="start start">
130 <div class="main scrollable" ms-scroll>
131 <!-- QUEUECAMPAIGN TABLE -->
138 ng-model="vm.selectedQueueCampaigns"
139 md-progress="vm.promise"
143 md-order="vm.query.sort"
144 md-on-reorder="vm.getQueueCampaigns"
149 ng-if="vm.table == 'users' || vm.table == 'agents'"
152 <th md-column md-order-by="id">
153 {{ 'MOTIONDIALER.ID' | translate }}
155 <th md-column md-order-by="name">
156 {{ 'MOTIONDIALER.NAME' | translate }}
158 <th md-column md-order-by="dialActive">
159 {{ 'MOTIONDIALER.ACTIVE' | translate }}
161 <th md-column md-order-by="TrunkId">
162 {{ 'MOTIONDIALER.TRUNK' | translate }}
164 <th md-column md-order-by="dialMethod">
165 {{ 'MOTIONDIALER.METHOD' | translate }}
167 <th md-column md-order-by="strategy">
168 {{ 'MOTIONDIALER.STRATEGY' | translate }}
170 <th md-column width="10px"></th>
174 <tr md-row ng-hide="vm.queueCampaigns.rows.length">
175 <td md-cell colspan="7">
176 <div layout="row" layout-align="center center">
177 <span translate="MOTIONDIALER.NO_AVAILABLE_INFO"
178 >No Available Info</span
185 md-select="queueCampaign"
187 ng-repeat="queueCampaign in vm.queueCampaigns.rows"
189 <td md-cell ng-if="queueCampaign.userpic">
192 alt="{{queueCampaign.name}}"
193 ng-src="api/users/{{queueCampaign.id}}/avatar"
198 ng-if="!queueCampaign.userpic && (vm.table == 'users' || vm.table == 'agents')"
202 alt="{{queueCampaign.name}}"
203 ng-src="assets/images/avatars/profile.png"
207 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(queueCampaign, ev) : vm.createOrEditQueueCampaign($event, queueCampaign)"
214 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(queueCampaign, ev) : vm.createOrEditQueueCampaign($event, queueCampaign)"
218 {{queueCampaign.name}}
221 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(queueCampaign, ev) : vm.createOrEditQueueCampaign($event, queueCampaign)"
226 md-colors="{color: {{queueCampaign.dialActive ? '\'green\'' : '\'grey\''}}}"
227 md-font-icon="{{queueCampaign.dialActive ? 'icon-check' : 'icon-close'}}"
231 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(queueCampaign, ev) : vm.createOrEditQueueCampaign($event, queueCampaign)"
235 {{ (vm.trunks | filter : {'id':queueCampaign.TrunkId} :
239 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(queueCampaign, ev) : vm.createOrEditQueueCampaign($event, queueCampaign)"
243 {{ vm.arraydialMethod[queueCampaign.dialMethod].option }}
246 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(queueCampaign, ev) : vm.createOrEditQueueCampaign($event, queueCampaign)"
250 {{ vm.arraystrategy[queueCampaign.strategy].option }}
253 <td md-cell class="actions">
256 class="md-icon-button"
259 translate-attr-aria-label="MOTIONDIALER.MORE"
260 ng-click="$mdMenu.open($event)"
262 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
265 <md-menu-content width="3">
270 <md-menu-item ng-if="vm.crudPermissions.canEdit">
272 ng-click="vm.editstate(queueCampaign, $event )"
273 translate="MOTIONDIALER.EDIT_QUEUECAMPAIGN"
283 <md-menu-item ng-if="vm.crudPermissions.canEdit">
285 ng-click="vm.clonedialog(queueCampaign, $event )"
286 translate="MOTIONDIALER.CLONE_QUEUECAMPAIGN"
298 ng-click="vm.listadddialog(queueCampaign, $event )"
299 translate="MOTIONDIALER.LISTADD_QUEUECAMPAIGN"
301 listadd QueueCampaign
311 ng-click="vm.blacklistadddialog(queueCampaign, $event )"
312 translate="MOTIONDIALER.BLACKLISTADD_QUEUECAMPAIGN"
314 blacklistadd QueueCampaign
324 ng-click="vm.teamadddialog(queueCampaign, $event )"
325 translate="MOTIONDIALER.TEAMADD_QUEUECAMPAIGN"
327 teamadd QueueCampaign
337 ng-click="vm.agentadddialog(queueCampaign, $event )"
338 translate="MOTIONDIALER.AGENTADD_QUEUECAMPAIGN"
340 agentadd QueueCampaign
348 <md-menu-item ng-if="vm.crudPermissions.canDelete">
350 ng-click="vm.deleteconfirm(queueCampaign, $event )"
351 translate="MOTIONDIALER.DELETE_QUEUECAMPAIGN"
363 ng-click="vm.gotorealtimegoto(queueCampaign, $event )"
364 translate="MOTIONDIALER.GOTOREALTIME_QUEUECAMPAIGN"
366 goToRealtime QueueCampaign
375 </md-table-container>
378 md-label="{page: '{{'MOTIONDIALER.PAGE' | translate}}:', rowsPerPage: '{{'MOTIONDIALER.ROWSPERPAGE' | translate}}:', of: '{{'MOTIONDIALER.OF' | translate}}'}"
379 md-limit="vm.query.limit"
380 md-limit-options="[10, 15, 20, 50, 100, 250]"
381 md-page="vm.query.page"
382 md-total="{{vm.queueCampaigns.count}}"
383 md-on-paginate="vm.getQueueCampaigns"
385 ></md-table-pagination>
387 <!-- / QUEUECAMPAIGN TABLE -->
390 <!-- / NO RESULTS -->
396 <!-- ADD QUEUECAMPAIGN BUTTON -->
398 ng-if="vm.crudPermissions.canEdit"
399 class="md-fab md-accent add-item-button"
400 id="add-queueCampaign-button"
401 ng-click="vm.createOrEditQueueCampaign($event)"
402 aria-label="add queueCampaign"
404 translate-attr-aria-label="MOTIONDIALER.ADD_QUEUECAMPAIGN"
406 <md-icon md-font-icon="icon-plus"></md-icon>
408 <!-- / ADD QUEUECAMPAIGN BUTTON -->