e7888df9deaf79771aed2170e78c25b5ae947fc9
[motion2.git] / server / api / memberReport / memberReport.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe655=['sequelize','moment','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','seconds','setDataValue','duration','talk:[destination]','talk:[dial\x20string]'];(function(_0x45e98e,_0x169b60){var _0x374dba=function(_0x597612){while(--_0x597612){_0x45e98e['push'](_0x45e98e['shift']());}};_0x374dba(++_0x169b60);}(_0xe655,0xa8));var _0x5e65=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xe655[_0x4565bf];return _0x5610ba;};'use strict';var Sequelize=require(_0x5e65('0x0'));var moment=require(_0x5e65('0x1'));module['exports']={'channel':{'type':Sequelize[_0x5e65('0x2')]},'membername':{'type':Sequelize[_0x5e65('0x2')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x5e65('0x2')],'defaultValue':_0x5e65('0x3'),'comment':_0x5e65('0x4')},'duration':{'type':Sequelize[_0x5e65('0x5')]},'enterAt':{'type':Sequelize[_0x5e65('0x6')]},'exitAt':{'type':Sequelize[_0x5e65('0x6')],'set':function(_0x1942f0){var _0x266bc1=moment(_0x1942f0);var _0x8e5813=moment(this['getDataValue']('enterAt'));var _0x476e08=_0x266bc1['diff'](_0x8e5813,_0x5e65('0x7'));this['setDataValue']('exitAt',_0x1942f0);this[_0x5e65('0x8')](_0x5e65('0x9'),_0x476e08||null);}},'data1':{'type':Sequelize[_0x5e65('0x2')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0x5e65('0x2')],'comment':'talk:[start]'},'data3':{'type':Sequelize[_0x5e65('0x2')],'comment':_0x5e65('0xa')},'data4':{'type':Sequelize[_0x5e65('0x2')],'comment':_0x5e65('0xb')},'data5':{'type':Sequelize[_0x5e65('0x2')],'comment':'talk:[queue]'},'role':{'type':Sequelize[_0x5e65('0x2')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0x5e65('0x2')]}};