90a05346b49ac984035376df57de2db65033d766
[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 _0xaefa=['enterAt','diff','setDataValue','exitAt','duration','talk:[destination]','talk:[queue]','moment','STRING','DEFAULT\x20PAUSE','INTEGER','DATE','getDataValue'];(function(_0x5f09c5,_0x2bfca0){var _0x426ad9=function(_0x18fe5f){while(--_0x18fe5f){_0x5f09c5['push'](_0x5f09c5['shift']());}};_0x426ad9(++_0x2bfca0);}(_0xaefa,0x159));var _0xaaef=function(_0x2c72ea,_0x1d7828){_0x2c72ea=_0x2c72ea-0x0;var _0x3bb993=_0xaefa[_0x2c72ea];return _0x3bb993;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xaaef('0x0'));module['exports']={'channel':{'type':Sequelize[_0xaaef('0x1')]},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0xaaef('0x1')]},'type':{'type':Sequelize[_0xaaef('0x1')],'defaultValue':_0xaaef('0x2'),'comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize[_0xaaef('0x3')]},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0xaaef('0x4')],'set':function(_0x9d4d13){var _0x7369eb=moment(_0x9d4d13);var _0x521583=moment(this[_0xaaef('0x5')](_0xaaef('0x6')));var _0x5639dc=_0x7369eb[_0xaaef('0x7')](_0x521583,'seconds');this[_0xaaef('0x8')](_0xaaef('0x9'),_0x9d4d13);this[_0xaaef('0x8')](_0xaaef('0xa'),_0x5639dc>=0x0?_0x5639dc:null);}},'data1':{'type':Sequelize['STRING'],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0xaaef('0x1')],'comment':'talk:[start]'},'data3':{'type':Sequelize[_0xaaef('0x1')],'comment':_0xaaef('0xb')},'data4':{'type':Sequelize[_0xaaef('0x1')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0xaaef('0x1')],'comment':_0xaaef('0xc')},'role':{'type':Sequelize[_0xaaef('0x1')]},'internal':{'type':Sequelize[_0xaaef('0x3')]},'uniqueid':{'type':Sequelize[_0xaaef('0x1')]}};