e212670543cd2a0e787fcd5fd26e8e5bf942d36f
[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 _0xd58c=['seconds','setDataValue','exitAt','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[queue]','sequelize','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','getDataValue','diff'];(function(_0x5156c9,_0x46aba7){var _0xceadb9=function(_0x4b8efe){while(--_0x4b8efe){_0x5156c9['push'](_0x5156c9['shift']());}};_0xceadb9(++_0x46aba7);}(_0xd58c,0x1c2));var _0xcd58=function(_0x4bd335,_0x3b47a3){_0x4bd335=_0x4bd335-0x0;var _0x3e3adf=_0xd58c[_0x4bd335];return _0x3e3adf;};'use strict';var Sequelize=require(_0xcd58('0x0'));var moment=require('moment');module[_0xcd58('0x1')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0xcd58('0x2')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xcd58('0x2')],'defaultValue':_0xcd58('0x3'),'comment':_0xcd58('0x4')},'duration':{'type':Sequelize[_0xcd58('0x5')]},'enterAt':{'type':Sequelize[_0xcd58('0x6')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x1e2d41){var _0x2fd255=moment(_0x1e2d41);var _0x2d51a2=moment(this[_0xcd58('0x7')]('enterAt'));var _0x24b7e6=_0x2fd255[_0xcd58('0x8')](_0x2d51a2,_0xcd58('0x9'));this[_0xcd58('0xa')](_0xcd58('0xb'),_0x1e2d41);this['setDataValue'](_0xcd58('0xc'),_0x24b7e6||null);}},'data1':{'type':Sequelize['STRING'],'comment':_0xcd58('0xd')},'data2':{'type':Sequelize['STRING'],'comment':_0xcd58('0xe')},'data3':{'type':Sequelize[_0xcd58('0x2')],'comment':_0xcd58('0xf')},'data4':{'type':Sequelize['STRING'],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize['STRING'],'comment':_0xcd58('0x10')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0xcd58('0x5')]},'uniqueid':{'type':Sequelize[_0xcd58('0x2')]}};