8afff093322edec6b0b3a53e65abc831e7f504bf
[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 _0x00c2=['talk:[dial\x20string]','talk:[queue]','INTEGER','STRING','DATE','getDataValue','enterAt','diff','seconds','setDataValue','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]'];(function(_0x4fa1df,_0x5555d9){var _0x1bff8b=function(_0x1d3e4d){while(--_0x1d3e4d){_0x4fa1df['push'](_0x4fa1df['shift']());}};_0x1bff8b(++_0x5555d9);}(_0x00c2,0x78));var _0x200c=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x00c2[_0x19e35c];return _0x3e1fe8;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');module['exports']={'channel':{'type':Sequelize[_0x200c('0x0')]},'membername':{'type':Sequelize[_0x200c('0x0')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x200c('0x0')],'defaultValue':'DEFAULT\x20PAUSE','comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x200c('0x1')],'set':function(_0x25d8ab){var _0x5e11c0=moment(_0x25d8ab);var _0xcf30d2=moment(this[_0x200c('0x2')](_0x200c('0x3')));var _0x47f1cb=_0x5e11c0[_0x200c('0x4')](_0xcf30d2,_0x200c('0x5'));this['setDataValue']('exitAt',_0x25d8ab);this[_0x200c('0x6')]('duration',_0x47f1cb>=0x0?_0x47f1cb:null);}},'data1':{'type':Sequelize['STRING'],'comment':_0x200c('0x7')},'data2':{'type':Sequelize['STRING'],'comment':_0x200c('0x8')},'data3':{'type':Sequelize[_0x200c('0x0')],'comment':_0x200c('0x9')},'data4':{'type':Sequelize[_0x200c('0x0')],'comment':_0x200c('0xa')},'data5':{'type':Sequelize[_0x200c('0x0')],'comment':_0x200c('0xb')},'role':{'type':Sequelize[_0x200c('0x0')]},'internal':{'type':Sequelize[_0x200c('0xc')]},'uniqueid':{'type':Sequelize[_0x200c('0x0')]}};