Built motion from commit c116dc8b.|2.6.30
[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 _0x1f99=['DATE','enterAt','diff','seconds','setDataValue','duration','talk:[destination]','sequelize','moment','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER'];(function(_0x4916f2,_0x3555e5){var _0x5e8612=function(_0x5cfb3b){while(--_0x5cfb3b){_0x4916f2['push'](_0x4916f2['shift']());}};_0x5e8612(++_0x3555e5);}(_0x1f99,0x6f));var _0x91f9=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x1f99[_0x3dd15e];return _0x231fd0;};'use strict';var Sequelize=require(_0x91f9('0x0'));var moment=require(_0x91f9('0x1'));module[_0x91f9('0x2')]={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x91f9('0x3')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x91f9('0x4')},'duration':{'type':Sequelize[_0x91f9('0x5')]},'enterAt':{'type':Sequelize[_0x91f9('0x6')]},'exitAt':{'type':Sequelize[_0x91f9('0x6')],'set':function(_0x5de8e6){var _0x4a0c06=moment(_0x5de8e6);var _0x297e5a=moment(this['getDataValue'](_0x91f9('0x7')));var _0x1e7950=_0x4a0c06[_0x91f9('0x8')](_0x297e5a,_0x91f9('0x9'));this[_0x91f9('0xa')]('exitAt',_0x5de8e6);this[_0x91f9('0xa')](_0x91f9('0xb'),_0x1e7950>=0x0?_0x1e7950:null);}},'data1':{'type':Sequelize[_0x91f9('0x3')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize['STRING'],'comment':'talk:[start]'},'data3':{'type':Sequelize[_0x91f9('0x3')],'comment':_0x91f9('0xc')},'data4':{'type':Sequelize['STRING'],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0x91f9('0x3')],'comment':'talk:[queue]'},'role':{'type':Sequelize[_0x91f9('0x3')]},'internal':{'type':Sequelize[_0x91f9('0x5')]},'uniqueid':{'type':Sequelize[_0x91f9('0x3')]}};