Ext.namespace('Zarafa.plugins.mdm'); Zarafa.plugins.mdm.data.MDMDeviceRecordFields = [ {name: 'entryid', type: 'string'}, {name: 'devicetype', type: 'string'}, {name: 'deviceos', type: 'string'}, {name: 'devicefriendlyname', type: 'string'}, {name: 'useragent', type: 'string'}, {name: 'asversion', type: 'string'}, {name: 'firstsynctime', type: 'date', dateFormat: 'timestamp'}, {name: 'lastsynctime', type: 'date', dateFormat: 'timestamp'}, {name: 'lastupdatetime', type: 'date', dateFormat: 'timestamp'}, {name: 'wipestatus', type: 'string'}, {name: 'policyname', type: 'string'}, {name: 'totalfolders', type: 'string'}, {name: 'shortfolderids', type: 'string'}, {name: 'synchronizedfolders', type: 'string'}, {name: 'emailsfolder', type: 'string'}, {name: 'contactsfolder', type: 'string'}, {name: 'tasksfolder', type: 'string'}, {name: 'calendarsfolder', type: 'string'}, {name: 'notesfolder', type: 'string'}, {name: 'koeversion', type: 'string'}, {name: 'koebuild', type: 'string'}, {name: 'koebuilddate', type: 'date', dateFormat: 'timestamp'} ]; /** * */ Zarafa.plugins.mdm.data.MDMDeviceRecord = Ext.extend(Zarafa.core.data.IPMRecord, {}); Zarafa.core.data.RecordCustomObjectType.addProperty('ZARAFA_MDM'); Zarafa.core.data.RecordFactory.addFieldToCustomType(Zarafa.core.data.RecordCustomObjectType.ZARAFA_MDM, Zarafa.plugins.mdm.data.MDMDeviceRecordFields); Zarafa.core.data.RecordFactory.addListenerToCustomType(Zarafa.core.data.RecordCustomObjectType.ZARAFA_MDM, 'createphantom', function(record) { // Phantom records must always be marked as opened (they contain the full set of data) record.afterOpen(); }); Zarafa.core.data.RecordFactory.setBaseClassToCustomType(Zarafa.core.data.RecordCustomObjectType.ZARAFA_MDM, Zarafa.plugins.mdm.data.MDMDeviceRecord);