c62c026fa6aac7953eb985283a6480378f89795f
[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 _0x20e5=['getDataValue','enterAt','diff','seconds','setDataValue','exitAt','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','INTEGER','sequelize','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','DATE'];(function(_0x30ae5e,_0x391fc4){var _0x1f2e93=function(_0x60307d){while(--_0x60307d){_0x30ae5e['push'](_0x30ae5e['shift']());}};_0x1f2e93(++_0x391fc4);}(_0x20e5,0xbb));var _0x520e=function(_0x1cf2b0,_0x3be4e0){_0x1cf2b0=_0x1cf2b0-0x0;var _0x4e849b=_0x20e5[_0x1cf2b0];return _0x4e849b;};'use strict';var Sequelize=require(_0x520e('0x0'));var moment=require('moment');module[_0x520e('0x1')]={'channel':{'type':Sequelize[_0x520e('0x2')]},'membername':{'type':Sequelize[_0x520e('0x2')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x520e('0x2')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x520e('0x3')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize[_0x520e('0x4')]},'exitAt':{'type':Sequelize[_0x520e('0x4')],'set':function(_0x225dcf){var _0x4d5d66=moment(_0x225dcf);var _0x3e66e6=moment(this[_0x520e('0x5')](_0x520e('0x6')));var _0x160309=_0x4d5d66[_0x520e('0x7')](_0x3e66e6,_0x520e('0x8'));this[_0x520e('0x9')](_0x520e('0xa'),_0x225dcf);this[_0x520e('0x9')]('duration',_0x160309>=0x0?_0x160309:null);}},'data1':{'type':Sequelize[_0x520e('0x2')],'comment':_0x520e('0xb')},'data2':{'type':Sequelize[_0x520e('0x2')],'comment':'talk:[start]'},'data3':{'type':Sequelize[_0x520e('0x2')],'comment':_0x520e('0xc')},'data4':{'type':Sequelize[_0x520e('0x2')],'comment':_0x520e('0xd')},'data5':{'type':Sequelize['STRING'],'comment':_0x520e('0xe')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0x520e('0xf')]},'uniqueid':{'type':Sequelize[_0x520e('0x2')]}};