25e22fd4c0ecb88d32611e571825c000d811d243
[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 _0x8c9b=['enterAt','seconds','setDataValue','exitAt','talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','moment','exports','STRING','INTEGER','DATE','getDataValue'];(function(_0x346f31,_0x3616bc){var _0x31920f=function(_0x21b578){while(--_0x21b578){_0x346f31['push'](_0x346f31['shift']());}};_0x31920f(++_0x3616bc);}(_0x8c9b,0x120));var _0xb8c9=function(_0x17afca,_0x5d6455){_0x17afca=_0x17afca-0x0;var _0x4691c9=_0x8c9b[_0x17afca];return _0x4691c9;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xb8c9('0x0'));module[_0xb8c9('0x1')]={'channel':{'type':Sequelize[_0xb8c9('0x2')]},'membername':{'type':Sequelize[_0xb8c9('0x2')]},'interface':{'type':Sequelize[_0xb8c9('0x2')]},'type':{'type':Sequelize[_0xb8c9('0x2')],'defaultValue':'DEFAULT\x20PAUSE','comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize[_0xb8c9('0x3')]},'enterAt':{'type':Sequelize[_0xb8c9('0x4')]},'exitAt':{'type':Sequelize[_0xb8c9('0x4')],'set':function(_0x3f4a33){var _0x1a652b=moment(_0x3f4a33);var _0x33560d=moment(this[_0xb8c9('0x5')](_0xb8c9('0x6')));var _0x47447d=_0x1a652b['diff'](_0x33560d,_0xb8c9('0x7'));this[_0xb8c9('0x8')](_0xb8c9('0x9'),_0x3f4a33);this['setDataValue']('duration',_0x47447d>=0x0?_0x47447d:null);}},'data1':{'type':Sequelize[_0xb8c9('0x2')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0xb8c9('0x2')],'comment':_0xb8c9('0xa')},'data3':{'type':Sequelize['STRING'],'comment':_0xb8c9('0xb')},'data4':{'type':Sequelize[_0xb8c9('0x2')],'comment':_0xb8c9('0xc')},'data5':{'type':Sequelize[_0xb8c9('0x2')],'comment':_0xb8c9('0xd')},'role':{'type':Sequelize[_0xb8c9('0x2')]},'internal':{'type':Sequelize[_0xb8c9('0x3')]},'uniqueid':{'type':Sequelize[_0xb8c9('0x2')]}};