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-whatsapp" class="s24"></md-icon>
17 <span class="logo-text" translate="WHATSAPP.WHATSAPPQUEUES"
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="WHATSAPP.SEARCH_FOR_ANYONE"
53 ng-show="vm.selectedWhatsappQueues.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.selectedWhatsappQueues =[]">
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="WHATSAPP.BACK">Back</span>
65 <div flex layout="row" layout-align="space-between center">
67 <span class="selected-whatsappQueues-count">
68 <span>{{vm.selectedWhatsappQueues.length}}</span>
69 <span translate="WHATSAPP.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="WHATSAPP.MULTI_SELECT_TOGGLE"
80 <md-icon md-font-icon="icon-menu-down"></md-icon>
82 <md-menu-content width="3">
85 ng-click="vm.selectAllWhatsappQueues()"
86 translate="WHATSAPP.SELECT_ALL"
93 ng-click="vm.deselectWhatsappQueues()"
94 translate="WHATSAPP.SELECT_NONE"
103 <div class="multi-select-actions">
105 class="md-icon-button"
106 ng-csv="vm.exportSelectedWhatsappQueues"
108 filename="whatsappQueues.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.deleteSelectedWhatsappQueues($event)"
116 aria-label="delete selected"
118 translate-attr-label="WHATSAPP.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 <!-- WHATSAPPQUEUE TABLE -->
138 ng-model="vm.selectedWhatsappQueues"
139 md-progress="vm.promise"
143 md-order="vm.query.sort"
144 md-on-reorder="vm.getWhatsappQueues"
149 ng-if="vm.table == 'users' || vm.table == 'agents'"
152 <th md-column md-order-by="id">
153 {{ 'WHATSAPP.ID' | translate }}
155 <th md-column md-order-by="name">
156 {{ 'WHATSAPP.NAME' | translate }}
158 <th md-column md-order-by="strategy">
159 {{ 'WHATSAPP.STRATEGY' | translate }}
161 <th md-column width="10px"></th>
165 <tr md-row ng-hide="vm.whatsappQueues.rows.length">
166 <td md-cell colspan="4">
167 <div layout="row" layout-align="center center">
168 <span translate="WHATSAPP.NO_AVAILABLE_INFO"
169 >No Available Info</span
176 md-select="whatsappQueue"
178 ng-repeat="whatsappQueue in vm.whatsappQueues.rows"
180 <td md-cell ng-if="whatsappQueue.userpic">
183 alt="{{whatsappQueue.name}}"
184 ng-src="api/users/{{whatsappQueue.id}}/avatar"
189 ng-if="!whatsappQueue.userpic && (vm.table == 'users' || vm.table == 'agents')"
193 alt="{{whatsappQueue.name}}"
194 ng-src="assets/images/avatars/profile.png"
198 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(whatsappQueue, ev) : vm.createOrEditWhatsappQueue($event, whatsappQueue)"
205 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(whatsappQueue, ev) : vm.createOrEditWhatsappQueue($event, whatsappQueue)"
209 {{whatsappQueue.name}}
212 ng-click="vm.crudPermissions.readOnly || (vm.crudPermissions.canDelete && !vm.crudPermissions.canEdit) ? vm.editstate(whatsappQueue, ev) : vm.createOrEditWhatsappQueue($event, whatsappQueue)"
216 {{ vm.arraystrategy[whatsappQueue.strategy].option }}
219 <td md-cell class="actions">
222 class="md-icon-button"
225 translate-attr-aria-label="WHATSAPP.MORE"
226 ng-click="$mdMenu.open($event)"
228 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
231 <md-menu-content width="3">
236 <md-menu-item ng-if="vm.crudPermissions.canEdit">
238 ng-click="vm.editstate(whatsappQueue, $event )"
239 translate="WHATSAPP.EDIT_WHATSAPPQUEUE"
251 ng-click="vm.teamadddialog(whatsappQueue, $event )"
252 translate="WHATSAPP.TEAMADD_WHATSAPPQUEUE"
254 teamadd WhatsappQueue
264 ng-click="vm.agentadddialog(whatsappQueue, $event )"
265 translate="WHATSAPP.AGENTADD_WHATSAPPQUEUE"
267 agentadd WhatsappQueue
275 <md-menu-item ng-if="vm.crudPermissions.canDelete">
277 ng-click="vm.deleteconfirm(whatsappQueue, $event )"
278 translate="WHATSAPP.DELETE_WHATSAPPQUEUE"
290 ng-click="vm.gotorealtimegoto(whatsappQueue, $event )"
291 translate="WHATSAPP.GOTOREALTIME_WHATSAPPQUEUE"
293 goToRealtime WhatsappQueue
302 </md-table-container>
305 md-label="{page: '{{'WHATSAPP.PAGE' | translate}}:', rowsPerPage: '{{'WHATSAPP.ROWSPERPAGE' | translate}}:', of: '{{'WHATSAPP.OF' | translate}}'}"
306 md-limit="vm.query.limit"
307 md-limit-options="[10, 15, 20, 50, 100, 250]"
308 md-page="vm.query.page"
309 md-total="{{vm.whatsappQueues.count}}"
310 md-on-paginate="vm.getWhatsappQueues"
312 ></md-table-pagination>
314 <!-- / WHATSAPPQUEUE TABLE -->
317 <!-- / NO RESULTS -->
323 <!-- ADD WHATSAPPQUEUE BUTTON -->
325 ng-if="vm.crudPermissions.canEdit"
326 class="md-fab md-accent add-item-button"
327 id="add-whatsappQueue-button"
328 ng-click="vm.createOrEditWhatsappQueue($event)"
329 aria-label="add whatsappQueue"
331 translate-attr-aria-label="WHATSAPP.ADD_WHATSAPPQUEUE"
333 <md-icon md-font-icon="icon-plus"></md-icon>
335 <!-- / ADD WHATSAPPQUEUE BUTTON -->