e1f4cea410de7dd34ce1e0940360079f40a4cb2c
[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 _0x855f=['LOGIN,\x20PAUSE,\x20TALKING','DATE','enterAt','diff','seconds','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','INTEGER','moment','exports','STRING','DEFAULT\x20PAUSE'];(function(_0x621266,_0x184451){var _0x81fcc1=function(_0x7eee5f){while(--_0x7eee5f){_0x621266['push'](_0x621266['shift']());}};_0x81fcc1(++_0x184451);}(_0x855f,0xfc));var _0xf855=function(_0x5f38c2,_0x2f490c){_0x5f38c2=_0x5f38c2-0x0;var _0x43b534=_0x855f[_0x5f38c2];return _0x43b534;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xf855('0x0'));module[_0xf855('0x1')]={'channel':{'type':Sequelize[_0xf855('0x2')]},'membername':{'type':Sequelize[_0xf855('0x2')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xf855('0x2')],'defaultValue':_0xf855('0x3'),'comment':_0xf855('0x4')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize[_0xf855('0x5')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x1666ff){var _0x38dd10=moment(_0x1666ff);var _0x57116=moment(this['getDataValue'](_0xf855('0x6')));var _0x5c4497=_0x38dd10[_0xf855('0x7')](_0x57116,_0xf855('0x8'));this['setDataValue']('exitAt',_0x1666ff);this['setDataValue'](_0xf855('0x9'),_0x5c4497||null);}},'data1':{'type':Sequelize[_0xf855('0x2')],'comment':_0xf855('0xa')},'data2':{'type':Sequelize[_0xf855('0x2')],'comment':_0xf855('0xb')},'data3':{'type':Sequelize['STRING'],'comment':_0xf855('0xc')},'data4':{'type':Sequelize[_0xf855('0x2')],'comment':_0xf855('0xd')},'data5':{'type':Sequelize[_0xf855('0x2')],'comment':_0xf855('0xe')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0xf855('0xf')]},'uniqueid':{'type':Sequelize[_0xf855('0x2')]}};