This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
/
AttendanceRecorder.js
534 lines (471 loc) · 23.7 KB
/
AttendanceRecorder.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
/*
* Tine 2.0
*
* @license http://www.gnu.org/licenses/agpl.html AGPL Version 3
* @author Cornelius Weiss <c.weiss@metaways.de>
* @copyright Copyright (c) 2022 Metaways Infosystems GmbH (http://www.metaways.de)
*/
import waitFor from 'util/waitFor.es6';
/* HumanResources_Model_AttendanceRecorderDevice */
const FLD_ALLOW_MULTI_START = 'allowMultiStart';
const FLD_ALLOW_PAUSE = 'allowPause';
const FLD_BLPIPE = 'blpipe';
const FLD_IS_TINE_UI_DEVICE = 'is_tine_ui_device';
const FLD_NAME = 'name';
const FLD_STOPS = 'stops';
const FLD_STARTS = 'starts';
const SYSTEM_WORKING_TIME_ID = 'wt00000000000000000000000000000000000000';
const SYSTEM_PROJECT_TIME_ID = 'pt00000000000000000000000000000000000000';
/* HumanResources_Model_AttendanceRecord */
const STATUS_CLOSED = 'closed';
const STATUS_FAULTY = 'faulty';
const STATUS_OPEN = 'open';
const TYPE_CLOCK_IN = 'clock_in';
const TYPE_CLOCK_OUT = 'clock_out';
const TYPE_CLOCK_PAUSED = 'clock_paused';
const FLD_ACCOUNT_ID = 'account_id';
const FLD_AUTOGEN = 'autogen';
const FLD_BLPROCESSED = 'blprocessed';
const FLD_CREATION_CONFIG = 'creation_config';
const FLD_DEVICE_ID = 'device_id';
const FLD_FREETIMETYPE_ID = 'freetimetype_id';
const FLD_SEQUENCE = 'sequence';
const FLD_STATUS = 'status';
const FLD_TIMESTAMP = 'ts';
const FLD_TYPE = 'type';
const FLD_REFID = 'refId';
const META_DATA = 'metaData';
const CLOCK_OUT_GRACEFULLY = 'clockOutGracefully';
const CLOCK_OUT_OTHERS = 'clockOutOthers';
const attendanceRecorder = Ext.extend(Ext.Button, {
/**
* @cfg {Number} autoRefreshInterval (seconds)
*/
autoRefreshInterval: 300,
/**
* @property autoRefreshTask
* @type Ext.util.DelayedTask
*/
autoRefreshTask: null,
// internal config
showIcon: true,
iconCls: 'attendance-clock',
stateful: true,
stateId: 'attendance-clock',
cls: 'attendance-clock-menu-button',
// properties
ptAllowPause: true,
ptAllowMultiStart: true,
currentTimeDiff: 0,
initComponent() {
const me = this;
this.app = Tine.Tinebase.appMgr.get('HumanResources');
this.actionClockIn = new Ext.Action({
text: this.app.i18n._('Clock in'),
iconCls: 'clock-in',
handler: _.bind(this.onWTClock, this, 'clockIn', null),
disabled: true,
});
this.actionClockPause = new Ext.Action({
text: this.app.i18n._('Absence'),
iconCls: 'clock-break',
handler: this.onClockPause,
disabled: true,
scope: this
});
this.actionClockOut = new Ext.Action({
text: this.app.i18n._('Clock out'),
iconCls: 'clock-out',
handler:_.bind(this.onWTClock, this, 'clockOut', null),
disabled: true,
});
this.actionESC = new Ext.Action({
text: this.app.i18n._('ESC'),
iconCls: 'clock-esc',
handler: this.onESC,
scope: this
});
this.actionProjectTime = new Ext.Action({
text: this.app.i18n._('Project Time'),
iconCls: 'clock-projecttime',
handler: this.onProjectTime,
// disabled: true,
scope: this
});
this.actionInfo = new Ext.Action({
text: this.app.i18n._('Info'),
iconCls: 'clock-info',
handler: this.onInfo,
// disabled: true,
scope: this
});
const defaults = {
scale: 'medium',
width: 100,
rowspan: 2,
iconAlign: 'top',
};
this.menu = new Ext.menu.Menu({
cls: 'attendance-recorder',
width: 300,
height: 450,
items: new Ext.Container({
layout: 'vbox',
layoutConfig: {
align:'stretch'
},
// height: 400,
border: false,
items: [{
height: 150,
// setHeight: function() {},
border: false,
bodyStyle: 'background-color: #f2f2f2;',
items: {
ref: '../../displayPanel',
style: 'margin: 10px; box-sizing: border-box;',
height: 130,
html: ''
}
},{
title: this.app.i18n._('Working Time'),
height: 20
},new Ext.Toolbar({
items: [
Object.assign(new Ext.Button(this.actionClockIn), defaults),
Object.assign(new Ext.Button(this.actionClockPause), defaults),
Object.assign(new Ext.Button(this.actionClockOut), defaults)
],
listeners: {
resize: (tb, w) => { tb.items.each((b) => {b.setWidth(w/3)}) }
}
}),new Ext.Toolbar({
items: [
Object.assign(new Ext.Button(this.actionESC), defaults),
Object.assign(new Ext.Button(this.actionProjectTime), defaults),
Object.assign(new Ext.Button(this.actionInfo), defaults)
],
listeners: {
resize: (tb, w) => { tb.items.each((b) => {b.setWidth(w/3)}) }
}
}), new Tine.widgets.grid.PickerGridPanel({
border: false,
title: this.app.i18n._('Project Time'),
ref: '../timeAccountPickerGrid',
flex: 1,
recordClass: 'Timetracker.Timeaccount',
hideHeaders: true,
enableBbar: false,
editDialogClass: false,
contextMenuItems: ['-', new Ext.Action({
text: this.app.i18n._('Create Timesheet'),
iconCls: 'TimetrackerTimesheet',
handler: () => {
const timeAccount = this.menu.timeAccountPickerGrid.selModel.getSelected();
const timeSheet = Object.assign(Tine.Timetracker.Model.Timesheet.getDefaultData(), {
timeaccount_id: timeAccount,
id: 0
});
Tine.Timetracker.TimesheetEditDialog.openWindow({
record: timeSheet
});
}
})],
getColumnModel: function() {
const colModel = Tine.widgets.grid.PickerGridPanel.prototype.getColumnModel.call(this);
colModel.columns.unshift({
width: 40,
id: 'buttons',
renderer: (value, metaData, record) => {
const type = _.get(record, 'data.xprops.HumanResources_Model_AttendanceRecord.type', TYPE_CLOCK_OUT);
return `<div class="tine-row-action-icons">
<div class="tine-recordclass-gridicon ${type === TYPE_CLOCK_IN ? 'x-item-disabled' : ''} project-clock-in" data-action="clockIn" ext:qtip="${me.app.i18n._('Start')}"> </div>
<div class="tine-recordclass-gridicon ${!me.ptAllowPause || type !== TYPE_CLOCK_IN ? 'x-item-disabled' : ''} ${true || me.ptAllowPause ? '' : 'x-hidden'} project-clock-pause" data-action="clockPause" ext:qtip="${me.app.i18n._('Pause')}"> </div>
<div class="tine-recordclass-gridicon ${type === TYPE_CLOCK_OUT ? 'x-item-disabled' : ''} project-clock-out" data-action="clockOut" ext:qtip="${me.app.i18n._('Stop')}"> </div>
</div>`;
}
}, {
width: 35,
// reziseable: false,
renderer: (value, metaData, record) => {
const type = _.get(record, 'data.xprops.HumanResources_Model_AttendanceRecord.type', TYPE_CLOCK_OUT);
if (type === TYPE_CLOCK_OUT) return `--:--`;
const {time, lastClockIn} = _.get(record, 'data.xprops.HumanResources_Model_AttendanceRecord.records', []).reduce((a, record) => {
const lastClockIn = record[FLD_TYPE] === TYPE_CLOCK_IN ? record[FLD_TIMESTAMP] : a.lastClockIn;
return Object.assign(a, {
lastClockIn: lastClockIn,
time: a.time + (record[FLD_TYPE] !== TYPE_CLOCK_IN ? Date.parseDate(record[FLD_TIMESTAMP], Date.patterns.ISO8601Long).getTime() - Date.parseDate(lastClockIn, Date.patterns.ISO8601Long).getTime() : 0)
});
}, {time: 0, lastClockIn: 0});
const duration = time + (type === TYPE_CLOCK_IN ? (me.getServerDate().getTime() - Date.parseDate(lastClockIn, Date.patterns.ISO8601Long).getTime()) : 0);
window.setTimeout(() => {
me.menu.timeAccountPickerGrid.view.refresh()
}, 60000 - Math.floor(duration)%60000);
return `<div class="tine-row-action-icons"><div style="float: left;">` + Ext.ux.form.DurationSpinner.durationRenderer(duration, { baseUnit: 'milliseconds' }).replace(':',
`<span style="font-weight: bolder;" class="${type === TYPE_CLOCK_IN ? 'attendance-clock-blink' : 'attendance-clock-stale'}">\u2236</span>`) + `
</div><div class="tine-recordclass-gridicon ${type === TYPE_CLOCK_OUT ? 'x-item-disabled' : ''} action_pencil" data-action="editTimesheet" ext:qtip="${me.app.i18n._('Edit Timesheet')}"> </div>
</div>`;
}
})
return colModel;
},
listeners: { change: (pgp, value, old) => {
this.saveState();
}}
})]
})
});
this.menu.on('show', this.showClock, this);
this.menu.on('hide', this.hideClock, this);
this.menu.on('beforehide', () => {
const [x ,y] = Ext.EventObject.getXY();
const box = this.menu.el.getBox();
return !((x>box.x && x<box.x+box.width && y>box.y && y<box.y+box.height)
|| Ext.EventObject.getTarget('.x-combo-selected'));
}, this);
this.menu.on('render', async () => {
this.menu.mon(this.menu.el, { 'click': this.onMenuClick, scope: this });
this.resizer = new Ext.Resizable(this.menu.el, {
pinned:true, handles:'se'
});
this.mon(this.resizer, 'resize', function(r, w, h){
this.menu.items.get(0).doLayout();
this.saveState();
}, this);
})
this.autoRefreshTask = new Ext.util.DelayedTask(this.applyDeviceStates, this);
this.autoRefreshTask.delay(2000);
this.sounds = {
shortbeep: new Audio('Tinebase/assets/sounds/shortbeep.mp3'),
failure: new Audio('Tinebase/assets/sounds/failure.mp3'),
};
Tine.Tinebase.UploadManagerStatusButton.superclass.initComponent.call(this);
},
// component state
getState() {
let state = this.state || {};
if (this.menu.timeAccountPickerGrid) {
state.timeaccounts = _.map(this.menu.timeAccountPickerGrid.getValue(), 'id');
}
state.menuSize = this.menu.getSize();
return state;
},
// component state
applyState(state) {
if (_.get(state, 'timeaccounts.length', 0) > 0) {
Tine.Timetracker.searchTimeaccounts([{field: 'id', operator: 'in', value: state.timeaccounts}]).then((timeaccounts) => {
this.menu.timeAccountPickerGrid.store.suspendEvents();
state.timeaccounts.forEach((timeaccount) => {
const data = _.find(timeaccounts.results, {id: timeaccount});
if (data) {
this.menu.timeAccountPickerGrid.store.add(Tine.Tinebase.data.Record.setFromJson(data, Tine.Timetracker.Model.Timeaccount));
}
});
this.menu.timeAccountPickerGrid.store.resumeEvents();
});
}
if (_.get(state, 'menuSize') ) {
this.menu.setSize(_.get(state, 'menuSize'));
}
},
async applyDeviceStates() {
this.autoRefreshTask.delay(this.autoRefreshInterval * 1000);
const { results: deviceRecords, currentTime } = await Tine.HumanResources.getAttendanceRecorderDeviceStates();
this.currentTimeDiff = Date.parseDate(currentTime, Date.patterns.ISO8601Long).getTime() - new Date().getTime();
const wtDeviceRecord = _.findLast(deviceRecords, {
[FLD_STATUS]: STATUS_OPEN,
[FLD_DEVICE_ID]: { id: SYSTEM_WORKING_TIME_ID }
});
this.wtType = _.get(wtDeviceRecord, FLD_TYPE, TYPE_CLOCK_OUT); // NOTE: wt device is allowMultiStart === 0
const wtAllowPause = !!+_.get(wtDeviceRecord, `device_id.${FLD_ALLOW_PAUSE}`, '0');
this.actionClockIn.setDisabled(this.wtType === TYPE_CLOCK_IN);
this.actionClockPause.setDisabled(!wtAllowPause || this.wtType !== TYPE_CLOCK_IN);
this.actionClockOut.setDisabled(this.wtType === TYPE_CLOCK_OUT);
// find out if we are absence
if (this.wtType === TYPE_CLOCK_OUT) {
const lastWTDeviceRecord = _.findLast(deviceRecords, {
[FLD_STATUS]: STATUS_CLOSED,
[FLD_DEVICE_ID]: { id: SYSTEM_WORKING_TIME_ID }
});
if (lastWTDeviceRecord?.freetimetype_id) {
this.wtType = TYPE_CLOCK_PAUSED;
this.freeTimeType = lastWTDeviceRecord.freetimetype_id;
// NOTE: lot's of problems here:
// * can't clock out from absence
// * planed absences (e.g. vacation/sicknes) are not represended by attendenceRecorder
// * ...
}
}
// NOTE: pt device is allowMultiStart === 1
const ptDeviceRecords = _.filter(deviceRecords, {
[FLD_STATUS]: STATUS_OPEN,
[FLD_DEVICE_ID]: { id: SYSTEM_PROJECT_TIME_ID }
});
const missingTimeAccounts = _.difference(_.compact(_.uniq(_.map(ptDeviceRecords, `xprops.${META_DATA}.Timetracker_Model_Timeaccount`))), this.menu.timeAccountPickerGrid.store.data.keys)
if (missingTimeAccounts.length) {
const { results: timeAccounts } = await Tine.Timetracker.searchTimeaccounts([{field: 'id', operator: 'in', value: missingTimeAccounts}]);
timeAccounts.forEach((timeAccount) => { this.menu.timeAccountPickerGrid.store.add(Tine.Tinebase.data.Record.setFromJson(timeAccount, Tine.Timetracker.Model.Timeaccount)) });
}
this.menu.timeAccountPickerGrid.store.suspendEvents();
this.menu.timeAccountPickerGrid.store.each((record) => {
record.set('xprops', Object.assign(record.get('xprops') || {}, { HumanResources_Model_AttendanceRecord: { } }));
});
_.forEach(_.groupBy(ptDeviceRecords, FLD_REFID), (records, refId) => {
// records per timeaccount
records = _.sortBy(records);
const top = _.last(records);
const bottom = _.first(records);
const timeAccountId = _.get(_.compact(_.uniq(_.map(records, `xprops.${META_DATA}.Timetracker_Model_Timeaccount`))), [0]);
const record = this.menu.timeAccountPickerGrid.store.getById(timeAccountId);
record.set('xprops', Object.assign(record.get('xprops') || {}, { HumanResources_Model_AttendanceRecord: { top, bottom, records,
type: _.get(top, FLD_TYPE, TYPE_CLOCK_OUT),
}}));
});
// @FIXME this is bad as we don't get device config w.o. records!
this.ptAllowPause = !!+_.get(_.first(ptDeviceRecords), `device_id.${FLD_ALLOW_PAUSE}`, '0');
this.ptAllowMultiStart = !!+_.get(_.first(ptDeviceRecords), `device_id.${FLD_ALLOW_MULTI_START}`, '0');
// this.menu.timeAccountPickerGrid.colModel.setColumnWidth(this.menu.timeAccountPickerGrid.colModel.getIndexById('buttons'), this.ptAllowPause ? 65 : 45, true);
this.menu.timeAccountPickerGrid.store.resumeEvents();
this.menu.timeAccountPickerGrid.view.refresh();
this.el.removeClass(_.get(this.el.dom.className.match(/(attendance-clock-menu-button-[_a-z]+)/), [0]));
this.el.addClass(`attendance-clock-menu-button-${this.wtType}`);
},
getServerDate() {
return new Date().add(Date.MILLI, this.currentTimeDiff);
},
async onWTClock(fn, options, btn) {
_.defer(_.bind(btn.setDisabled, btn, true))
this.sounds.shortbeep.play();
this.hideClock();
this.menu.displayPanel.update(`<div class="attendance-clock-msg">${this.app.i18n._('Data saving is performed ...')}</div>`);
// let result
try {
const result = await Tine.HumanResources[fn](Object.assign({ [FLD_DEVICE_ID]: SYSTEM_WORKING_TIME_ID }, options));
// this.menu.displayPanel.update(`<div class="attendance-clock-msg">${this.app.i18n._('Data saving successful!')}</div>`);
const message = await Tine.HumanResources.wtInfo();
this.menu.displayPanel.update(`<div class="attendance-clock-msg">${ Ext.util.Format.nl2br(message) }</div>`);
return result;
} catch (e) {
this.sounds.failure.play();
this.menu.displayPanel.update(`<div class="attendance-clock-msg attendance-clock-error">${this.app.i18n._hidden(e.message).replace(/^((\S+\s+){4}\S+)\s+/, '$1<br>')}</div>`);
} finally {
_.delay(_.bind(this.showClock, this), 2000);
this.applyDeviceStates();
}
},
async onClockPause(btn) {
this.hideClock();
const menu = this.menu;
const picker = this.displayCmp = Tine.widgets.form.RecordPickerManager.get('HumanResources', Tine.HumanResources.Model.FreeTimeType, {
renderTo: this.menu.displayPanel.body,
getListParent() { return menu.el },
blurOnSelect: true,
additionalFilters: [{field: 'allow_booking', operator: 'equals', value: true}],
listWidth: 276,
listeners: { select: (combo, type) => {
this.onESC();
this.onWTClock('clockOut', { [FLD_FREETIMETYPE_ID]: type.id }, btn)
}}
});
picker.onTriggerClick();
},
onESC() {
if (this.displayCmp) {
this.displayCmp.destroy();
this.displayCmp = null;
}
this.showClock();
},
onProjectTime() {
this.menu.timeAccountPickerGrid.getSearchCombo().focus(true);
// this.hideClock();
},
async onInfo(btn) {
_.defer(_.bind(btn.setDisabled, btn, true))
this.sounds.shortbeep.play();
this.hideClock();
this.menu.displayPanel.update(`<div class="attendance-clock-msg">${this.app.i18n._('Data loading is performed ...')}</div>`);
try {
const message = await Tine.HumanResources.wtInfo();
this.menu.displayPanel.update(`<div class="attendance-clock-msg">${ Ext.util.Format.nl2br(message) }</div>`);
} catch (e) {
this.sounds.failure.play();
this.menu.displayPanel.update(`<div class="attendance-clock-msg attendance-clock-error">${this.app.i18n._hidden(e.message)}</div>`);
}
_.delay(() => {
this.showClock();
btn.setDisabled(false);
}, 3000);
},
async onMenuClick(e) {
const el = e.getTarget('.tine-recordclass-gridicon');
if (el && !Ext.fly(el).hasClass('x-item-disabled')) {
const row = this.menu.timeAccountPickerGrid.view.findRowIndex(el);
const timeAccount = this.menu.timeAccountPickerGrid.store.getAt(row);
const timesheet = { id: _.get(timeAccount, `data.xprops.HumanResources_Model_AttendanceRecord.bottom.xprops.metaData.Timetracker_Model_Timesheet.id[0]`) };
const action = el.dataset.action;
const multiStart = e.ctrlKey || e.shiftKey;
if (String(action).match(/^clock.*/)) {
_.defer(() => {
Ext.fly(el).addClass('x-item-disabled');
});
let result;
const openTimesheet = (timeAccount) => {
const timesheet = { id: _.get(timeAccount, `data.xprops.HumanResources_Model_AttendanceRecord.bottom.xprops.metaData.Timetracker_Model_Timesheet.id[0]`) };
Tine.Timetracker.TimesheetEditDialog.openWindow({
record: timesheet,
contentPanelConstructorInterceptor: async (config) => {
await waitFor(() => { return !! result});
}
});
}
if (action === 'clockOut') {
openTimesheet(timeAccount);
}
const clockedId = _.filter(this.menu.timeAccountPickerGrid.store.data.items, (timeAccount) => { return _.get(timeAccount, 'data.xprops.HumanResources_Model_AttendanceRecord.type') === TYPE_CLOCK_IN});
if (action === 'clockIn' && clockedId.length && !multiStart) {
clockedId.forEach(openTimesheet);
}
result = await this.onWTClock(action, {
[FLD_DEVICE_ID]: SYSTEM_PROJECT_TIME_ID,
[FLD_REFID]: _.get(timeAccount, `data.xprops.HumanResources_Model_AttendanceRecord.top.${FLD_REFID}`),
xprops: {
[META_DATA]: {
[CLOCK_OUT_OTHERS]: !multiStart,
'Timetracker_Model_Timeaccount': timeAccount.id
}
}
}, this.actionProjectTime);
this.actionProjectTime.setDisabled(false);
} else if (action === 'editTimesheet') {
Tine.Timetracker.TimesheetEditDialog.openWindow({
record: timesheet,
fixedFields: {
timeaccount_id: '###CURRENT###',
duration: '###CURRENT###',
account_id: '###CURRENT###',
end_time: '###CURRENT###'
}
});
}
}
},
showClock() {
const date = this.getServerDate();
let wtStatus = this.wtType === TYPE_CLOCK_PAUSED ? `${this.app.i18n._('Away')}: ${this.app.i18n._hidden(this.freeTimeType.name)}` : (this.wtType === TYPE_CLOCK_IN ? this.app.i18n._('Clocked-in') : this.app.i18n._('Clocked-out'));
this.menu.displayPanel.update(`
<div class="attendance-clock-status">${wtStatus}</div>
<div class="attendance-clock-msg attendance-clock-clock">${date.format('H')}<span class="attendance-clock-blink">\u2236</span>${date.format('i')}</div>
`);
this.clockTimeout = window.setTimeout(this.showClock.createDelegate(this), 60000 - date.getSeconds()*1000 + date.getMilliseconds());
},
hideClock() {
this.menu.displayPanel.update('');
if (this.clockTimeout) {
window.clearTimeout(this.clockTimeout);
}
},
startProject(timeAccount) {
}
});
Ext.ux.ItemRegistry.registerItem('Tine.Tinebase.MainMenu', attendanceRecorder, 10);