3ab05a91ea67a4dd85c019181f9429ea104190be
[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 _0x12d0=['STRING','DEFAULT\x20PAUSE','INTEGER','DATE','getDataValue','enterAt','diff','seconds','setDataValue','exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','sequelize','exports'];(function(_0x2bc6be,_0x9bf473){var _0x3a1197=function(_0x35d452){while(--_0x35d452){_0x2bc6be['push'](_0x2bc6be['shift']());}};_0x3a1197(++_0x9bf473);}(_0x12d0,0x1d2));var _0x012d=function(_0xb7ba3f,_0x3b4b15){_0xb7ba3f=_0xb7ba3f-0x0;var _0x47c212=_0x12d0[_0xb7ba3f];return _0x47c212;};'use strict';var Sequelize=require(_0x012d('0x0'));var moment=require('moment');module[_0x012d('0x1')]={'channel':{'type':Sequelize[_0x012d('0x2')]},'membername':{'type':Sequelize[_0x012d('0x2')]},'interface':{'type':Sequelize[_0x012d('0x2')]},'type':{'type':Sequelize[_0x012d('0x2')],'defaultValue':_0x012d('0x3'),'comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize[_0x012d('0x4')]},'enterAt':{'type':Sequelize[_0x012d('0x5')]},'exitAt':{'type':Sequelize[_0x012d('0x5')],'set':function(_0x482f03){var _0x23245c=moment(_0x482f03);var _0x2cccce=moment(this[_0x012d('0x6')](_0x012d('0x7')));var _0xe209bf=_0x23245c[_0x012d('0x8')](_0x2cccce,_0x012d('0x9'));this[_0x012d('0xa')](_0x012d('0xb'),_0x482f03);this[_0x012d('0xa')](_0x012d('0xc'),_0xe209bf>=0x0?_0xe209bf:null);}},'data1':{'type':Sequelize[_0x012d('0x2')],'comment':_0x012d('0xd')},'data2':{'type':Sequelize[_0x012d('0x2')],'comment':_0x012d('0xe')},'data3':{'type':Sequelize[_0x012d('0x2')],'comment':_0x012d('0xf')},'data4':{'type':Sequelize['STRING'],'comment':_0x012d('0x10')},'data5':{'type':Sequelize['STRING'],'comment':_0x012d('0x11')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0x012d('0x2')]}};