38fa1c8a7308b418152c9bba99f8cf0de1f4fc18
[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 _0x62bf=['duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','INTEGER','sequelize','moment','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','DATE','getDataValue','enterAt','diff','exitAt','setDataValue'];(function(_0x504cea,_0x421102){var _0x18cdba=function(_0x1fc7d0){while(--_0x1fc7d0){_0x504cea['push'](_0x504cea['shift']());}};_0x18cdba(++_0x421102);}(_0x62bf,0x14a));var _0xf62b=function(_0x436f33,_0xd8282e){_0x436f33=_0x436f33-0x0;var _0x380393=_0x62bf[_0x436f33];return _0x380393;};'use strict';var Sequelize=require(_0xf62b('0x0'));var moment=require(_0xf62b('0x1'));module[_0xf62b('0x2')]={'channel':{'type':Sequelize[_0xf62b('0x3')]},'membername':{'type':Sequelize[_0xf62b('0x3')]},'interface':{'type':Sequelize[_0xf62b('0x3')]},'type':{'type':Sequelize[_0xf62b('0x3')],'defaultValue':_0xf62b('0x4'),'comment':_0xf62b('0x5')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize[_0xf62b('0x6')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x1c778e){var _0x2700f8=moment(_0x1c778e);var _0x26f7a8=moment(this[_0xf62b('0x7')](_0xf62b('0x8')));var _0xa9f403=_0x2700f8[_0xf62b('0x9')](_0x26f7a8,'seconds');this['setDataValue'](_0xf62b('0xa'),_0x1c778e);this[_0xf62b('0xb')](_0xf62b('0xc'),_0xa9f403>=0x0?_0xa9f403:null);}},'data1':{'type':Sequelize[_0xf62b('0x3')],'comment':_0xf62b('0xd')},'data2':{'type':Sequelize[_0xf62b('0x3')],'comment':_0xf62b('0xe')},'data3':{'type':Sequelize[_0xf62b('0x3')],'comment':_0xf62b('0xf')},'data4':{'type':Sequelize['STRING'],'comment':_0xf62b('0x10')},'data5':{'type':Sequelize['STRING'],'comment':_0xf62b('0x11')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0xf62b('0x12')]},'uniqueid':{'type':Sequelize[_0xf62b('0x3')]}};