5eb897709d1f35d34120534b3172f681252d4863
[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 _0x5fbf=['talk:[dial\x20string]','talk:[queue]','moment','exports','STRING','DEFAULT\x20PAUSE','INTEGER','DATE','getDataValue','enterAt','seconds','setDataValue','exitAt','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]'];(function(_0x31e29a,_0x349c9b){var _0x32d892=function(_0x41cc86){while(--_0x41cc86){_0x31e29a['push'](_0x31e29a['shift']());}};_0x32d892(++_0x349c9b);}(_0x5fbf,0x182));var _0xf5fb=function(_0x30e63f,_0x458ce5){_0x30e63f=_0x30e63f-0x0;var _0x4ad0fd=_0x5fbf[_0x30e63f];return _0x4ad0fd;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xf5fb('0x0'));module[_0xf5fb('0x1')]={'channel':{'type':Sequelize[_0xf5fb('0x2')]},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0xf5fb('0x2')]},'type':{'type':Sequelize[_0xf5fb('0x2')],'defaultValue':_0xf5fb('0x3'),'comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize[_0xf5fb('0x4')]},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0xf5fb('0x5')],'set':function(_0x3d8c3c){var _0x58157f=moment(_0x3d8c3c);var _0x58ad62=moment(this[_0xf5fb('0x6')](_0xf5fb('0x7')));var _0x4e2efc=_0x58157f['diff'](_0x58ad62,_0xf5fb('0x8'));this[_0xf5fb('0x9')](_0xf5fb('0xa'),_0x3d8c3c);this['setDataValue']('duration',_0x4e2efc>=0x0?_0x4e2efc:null);}},'data1':{'type':Sequelize['STRING'],'comment':_0xf5fb('0xb')},'data2':{'type':Sequelize[_0xf5fb('0x2')],'comment':_0xf5fb('0xc')},'data3':{'type':Sequelize[_0xf5fb('0x2')],'comment':_0xf5fb('0xd')},'data4':{'type':Sequelize[_0xf5fb('0x2')],'comment':_0xf5fb('0xe')},'data5':{'type':Sequelize[_0xf5fb('0x2')],'comment':_0xf5fb('0xf')},'role':{'type':Sequelize[_0xf5fb('0x2')]},'internal':{'type':Sequelize[_0xf5fb('0x4')]},'uniqueid':{'type':Sequelize[_0xf5fb('0x2')]}};