b0937501d3b1e934e0667024705054b59619b6fd
[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 _0x405c=['talk:[queue]','sequelize','moment','exports','STRING','DATE','getDataValue','enterAt','diff','setDataValue','duration','talk:[destination]','talk:[dial\x20string]'];(function(_0x307c41,_0x22d7d1){var _0xea2d0=function(_0x97cb9a){while(--_0x97cb9a){_0x307c41['push'](_0x307c41['shift']());}};_0xea2d0(++_0x22d7d1);}(_0x405c,0x187));var _0xc405=function(_0x281165,_0x47220d){_0x281165=_0x281165-0x0;var _0x4c70df=_0x405c[_0x281165];return _0x4c70df;};'use strict';var Sequelize=require(_0xc405('0x0'));var moment=require(_0xc405('0x1'));module[_0xc405('0x2')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0xc405('0x3')]},'interface':{'type':Sequelize[_0xc405('0x3')]},'type':{'type':Sequelize[_0xc405('0x3')],'defaultValue':'DEFAULT\x20PAUSE','comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize[_0xc405('0x4')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x447f9a){var _0x3b0e80=moment(_0x447f9a);var _0x5185b7=moment(this[_0xc405('0x5')](_0xc405('0x6')));var _0x39810f=_0x3b0e80[_0xc405('0x7')](_0x5185b7,'seconds');this[_0xc405('0x8')]('exitAt',_0x447f9a);this[_0xc405('0x8')](_0xc405('0x9'),_0x39810f||null);}},'data1':{'type':Sequelize[_0xc405('0x3')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0xc405('0x3')],'comment':'talk:[start]'},'data3':{'type':Sequelize['STRING'],'comment':_0xc405('0xa')},'data4':{'type':Sequelize[_0xc405('0x3')],'comment':_0xc405('0xb')},'data5':{'type':Sequelize['STRING'],'comment':_0xc405('0xc')},'role':{'type':Sequelize[_0xc405('0x3')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0xc405('0x3')]}};