Built motion from commit d5e4af8c.|2.6.23
[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 _0x714e=['getDataValue','enterAt','diff','setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[queue]','sequelize','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER'];(function(_0x3219cc,_0x50a602){var _0x480c96=function(_0x3c3bf2){while(--_0x3c3bf2){_0x3219cc['push'](_0x3219cc['shift']());}};_0x480c96(++_0x50a602);}(_0x714e,0xcc));var _0xe714=function(_0x568427,_0x742280){_0x568427=_0x568427-0x0;var _0x3c2f86=_0x714e[_0x568427];return _0x3c2f86;};'use strict';var Sequelize=require(_0xe714('0x0'));var moment=require('moment');module[_0xe714('0x1')]={'channel':{'type':Sequelize[_0xe714('0x2')]},'membername':{'type':Sequelize[_0xe714('0x2')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xe714('0x2')],'defaultValue':_0xe714('0x3'),'comment':_0xe714('0x4')},'duration':{'type':Sequelize[_0xe714('0x5')]},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x44eeba){var _0x24c5b0=moment(_0x44eeba);var _0x54be19=moment(this[_0xe714('0x6')](_0xe714('0x7')));var _0x564be3=_0x24c5b0[_0xe714('0x8')](_0x54be19,'seconds');this['setDataValue']('exitAt',_0x44eeba);this[_0xe714('0x9')](_0xe714('0xa'),_0x564be3>=0x0?_0x564be3:null);}},'data1':{'type':Sequelize[_0xe714('0x2')],'comment':_0xe714('0xb')},'data2':{'type':Sequelize['STRING'],'comment':_0xe714('0xc')},'data3':{'type':Sequelize[_0xe714('0x2')],'comment':_0xe714('0xd')},'data4':{'type':Sequelize[_0xe714('0x2')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0xe714('0x2')],'comment':_0xe714('0xe')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0xe714('0x5')]},'uniqueid':{'type':Sequelize[_0xe714('0x2')]}};