f37cedab79a421c96895bf13272897246c5d33ea
[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 _0x25b8=['duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[dial\x20string]','talk:[queue]','sequelize','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','enterAt','diff','setDataValue'];(function(_0x474c91,_0x412782){var _0x5991cc=function(_0x2a6283){while(--_0x2a6283){_0x474c91['push'](_0x474c91['shift']());}};_0x5991cc(++_0x412782);}(_0x25b8,0xd7));var _0x825b=function(_0x51fe5f,_0x1d8632){_0x51fe5f=_0x51fe5f-0x0;var _0x4abce9=_0x25b8[_0x51fe5f];return _0x4abce9;};'use strict';var Sequelize=require(_0x825b('0x0'));var moment=require('moment');module[_0x825b('0x1')]={'channel':{'type':Sequelize[_0x825b('0x2')]},'membername':{'type':Sequelize[_0x825b('0x2')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x825b('0x2')],'defaultValue':_0x825b('0x3'),'comment':_0x825b('0x4')},'duration':{'type':Sequelize[_0x825b('0x5')]},'enterAt':{'type':Sequelize[_0x825b('0x6')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x4b1a6a){var _0x17d249=moment(_0x4b1a6a);var _0x28589f=moment(this['getDataValue'](_0x825b('0x7')));var _0x58a4c6=_0x17d249[_0x825b('0x8')](_0x28589f,'seconds');this[_0x825b('0x9')]('exitAt',_0x4b1a6a);this[_0x825b('0x9')](_0x825b('0xa'),_0x58a4c6>=0x0?_0x58a4c6:null);}},'data1':{'type':Sequelize['STRING'],'comment':_0x825b('0xb')},'data2':{'type':Sequelize[_0x825b('0x2')],'comment':_0x825b('0xc')},'data3':{'type':Sequelize['STRING'],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0x825b('0x2')],'comment':_0x825b('0xd')},'data5':{'type':Sequelize[_0x825b('0x2')],'comment':_0x825b('0xe')},'role':{'type':Sequelize[_0x825b('0x2')]},'internal':{'type':Sequelize[_0x825b('0x5')]},'uniqueid':{'type':Sequelize['STRING']}};