fd604f5cd647ac23cba9c66ccfd75b79e092029b
[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 _0xdd8c=['getDataValue','enterAt','diff','seconds','setDataValue','duration','talk:[start]','talk:[destination]','talk:[dial\x20string]','sequelize','moment','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE'];(function(_0x4f8ebc,_0x35583d){var _0x51c9fa=function(_0x43c6d5){while(--_0x43c6d5){_0x4f8ebc['push'](_0x4f8ebc['shift']());}};_0x51c9fa(++_0x35583d);}(_0xdd8c,0x108));var _0xcdd8=function(_0x30c4cd,_0x1d3643){_0x30c4cd=_0x30c4cd-0x0;var _0x3776af=_0xdd8c[_0x30c4cd];return _0x3776af;};'use strict';var Sequelize=require(_0xcdd8('0x0'));var moment=require(_0xcdd8('0x1'));module[_0xcdd8('0x2')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xcdd8('0x3')],'defaultValue':_0xcdd8('0x4'),'comment':_0xcdd8('0x5')},'duration':{'type':Sequelize[_0xcdd8('0x6')]},'enterAt':{'type':Sequelize[_0xcdd8('0x7')]},'exitAt':{'type':Sequelize[_0xcdd8('0x7')],'set':function(_0x26f23d){var _0x3dd3ea=moment(_0x26f23d);var _0x485ecc=moment(this[_0xcdd8('0x8')](_0xcdd8('0x9')));var _0x34a12e=_0x3dd3ea[_0xcdd8('0xa')](_0x485ecc,_0xcdd8('0xb'));this[_0xcdd8('0xc')]('exitAt',_0x26f23d);this['setDataValue'](_0xcdd8('0xd'),_0x34a12e>=0x0?_0x34a12e:null);}},'data1':{'type':Sequelize[_0xcdd8('0x3')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0xcdd8('0x3')],'comment':_0xcdd8('0xe')},'data3':{'type':Sequelize['STRING'],'comment':_0xcdd8('0xf')},'data4':{'type':Sequelize[_0xcdd8('0x3')],'comment':_0xcdd8('0x10')},'data5':{'type':Sequelize[_0xcdd8('0x3')],'comment':'talk:[queue]'},'role':{'type':Sequelize[_0xcdd8('0x3')]},'internal':{'type':Sequelize[_0xcdd8('0x6')]},'uniqueid':{'type':Sequelize['STRING']}};