Built motion from commit (unavailable).|2.4.3
[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 _0x4fd3=['STRING','INTEGER','DATE','enterAt','diff','seconds','setDataValue','exitAt','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[dial\x20string]','talk:[queue]','sequelize','moment'];(function(_0x1d8f95,_0xcd1d0e){var _0x4cb618=function(_0xddea13){while(--_0xddea13){_0x1d8f95['push'](_0x1d8f95['shift']());}};_0x4cb618(++_0xcd1d0e);}(_0x4fd3,0x6e));var _0x34fd=function(_0x4f1874,_0x2aff4d){_0x4f1874=_0x4f1874-0x0;var _0x5e8a73=_0x4fd3[_0x4f1874];return _0x5e8a73;};'use strict';var Sequelize=require(_0x34fd('0x0'));var moment=require(_0x34fd('0x1'));module['exports']={'channel':{'type':Sequelize[_0x34fd('0x2')]},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0x34fd('0x2')]},'type':{'type':Sequelize['STRING'],'defaultValue':'DEFAULT\x20PAUSE','comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize[_0x34fd('0x3')]},'enterAt':{'type':Sequelize[_0x34fd('0x4')]},'exitAt':{'type':Sequelize[_0x34fd('0x4')],'set':function(_0x338003){var _0x11e884=moment(_0x338003);var _0x3ef92c=moment(this['getDataValue'](_0x34fd('0x5')));var _0x22a674=_0x11e884[_0x34fd('0x6')](_0x3ef92c,_0x34fd('0x7'));this[_0x34fd('0x8')](_0x34fd('0x9'),_0x338003);this[_0x34fd('0x8')]('duration',_0x22a674||null);}},'data1':{'type':Sequelize[_0x34fd('0x2')],'comment':_0x34fd('0xa')},'data2':{'type':Sequelize[_0x34fd('0x2')],'comment':_0x34fd('0xb')},'data3':{'type':Sequelize[_0x34fd('0x2')],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0x34fd('0x2')],'comment':_0x34fd('0xc')},'data5':{'type':Sequelize[_0x34fd('0x2')],'comment':_0x34fd('0xd')},'role':{'type':Sequelize[_0x34fd('0x2')]},'internal':{'type':Sequelize[_0x34fd('0x3')]},'uniqueid':{'type':Sequelize[_0x34fd('0x2')]}};