c2e8fa98da02d76c9fd197b93342d2d79ea5902e
[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 _0x341f=['talk:[queue]','sequelize','moment','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','enterAt','diff','seconds','exitAt','setDataValue','duration','talk:[destination]'];(function(_0x2fadd4,_0x313b40){var _0x34914c=function(_0x3d0de7){while(--_0x3d0de7){_0x2fadd4['push'](_0x2fadd4['shift']());}};_0x34914c(++_0x313b40);}(_0x341f,0xa6));var _0xf341=function(_0xcce37e,_0x2c587f){_0xcce37e=_0xcce37e-0x0;var _0x57ad35=_0x341f[_0xcce37e];return _0x57ad35;};'use strict';var Sequelize=require(_0xf341('0x0'));var moment=require(_0xf341('0x1'));module['exports']={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0xf341('0x2')]},'interface':{'type':Sequelize[_0xf341('0x2')]},'type':{'type':Sequelize['STRING'],'defaultValue':_0xf341('0x3'),'comment':_0xf341('0x4')},'duration':{'type':Sequelize[_0xf341('0x5')]},'enterAt':{'type':Sequelize[_0xf341('0x6')]},'exitAt':{'type':Sequelize[_0xf341('0x6')],'set':function(_0x269f1d){var _0x155b8d=moment(_0x269f1d);var _0x25e929=moment(this['getDataValue'](_0xf341('0x7')));var _0x43702a=_0x155b8d[_0xf341('0x8')](_0x25e929,_0xf341('0x9'));this['setDataValue'](_0xf341('0xa'),_0x269f1d);this[_0xf341('0xb')](_0xf341('0xc'),_0x43702a>=0x0?_0x43702a:null);}},'data1':{'type':Sequelize[_0xf341('0x2')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize['STRING'],'comment':'talk:[start]'},'data3':{'type':Sequelize[_0xf341('0x2')],'comment':_0xf341('0xd')},'data4':{'type':Sequelize[_0xf341('0x2')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0xf341('0x2')],'comment':_0xf341('0xe')},'role':{'type':Sequelize[_0xf341('0x2')]},'internal':{'type':Sequelize[_0xf341('0x5')]},'uniqueid':{'type':Sequelize['STRING']}};