Built motion from commit 56a37f2a.|2.6.21
[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 _0x7bc5=['INTEGER','DATE','enterAt','diff','setDataValue','exitAt','duration','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','sequelize','moment','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING'];(function(_0x3b29cf,_0x171bc9){var _0x1dc73b=function(_0x2531e6){while(--_0x2531e6){_0x3b29cf['push'](_0x3b29cf['shift']());}};_0x1dc73b(++_0x171bc9);}(_0x7bc5,0x19b));var _0x57bc=function(_0x4a5494,_0x3ad336){_0x4a5494=_0x4a5494-0x0;var _0x57cbb5=_0x7bc5[_0x4a5494];return _0x57cbb5;};'use strict';var Sequelize=require(_0x57bc('0x0'));var moment=require(_0x57bc('0x1'));module[_0x57bc('0x2')]={'channel':{'type':Sequelize[_0x57bc('0x3')]},'membername':{'type':Sequelize[_0x57bc('0x3')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x57bc('0x3')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x57bc('0x4')},'duration':{'type':Sequelize[_0x57bc('0x5')]},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x57bc('0x6')],'set':function(_0x3c0288){var _0xf0259d=moment(_0x3c0288);var _0x2305ed=moment(this['getDataValue'](_0x57bc('0x7')));var _0x5923ad=_0xf0259d[_0x57bc('0x8')](_0x2305ed,'seconds');this[_0x57bc('0x9')](_0x57bc('0xa'),_0x3c0288);this[_0x57bc('0x9')](_0x57bc('0xb'),_0x5923ad>=0x0?_0x5923ad:null);}},'data1':{'type':Sequelize[_0x57bc('0x3')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0x57bc('0x3')],'comment':_0x57bc('0xc')},'data3':{'type':Sequelize['STRING'],'comment':_0x57bc('0xd')},'data4':{'type':Sequelize['STRING'],'comment':_0x57bc('0xe')},'data5':{'type':Sequelize['STRING'],'comment':_0x57bc('0xf')},'role':{'type':Sequelize[_0x57bc('0x3')]},'internal':{'type':Sequelize[_0x57bc('0x5')]},'uniqueid':{'type':Sequelize['STRING']}};