Built motion from commit (unavailable).|2.5.6
[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 _0x4ba9=['seconds','setDataValue','exitAt','talk:[start]','sequelize','moment','exports','STRING','DEFAULT\x20PAUSE','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE'];(function(_0x3bc396,_0x5bf311){var _0x249c7a=function(_0x197587){while(--_0x197587){_0x3bc396['push'](_0x3bc396['shift']());}};_0x249c7a(++_0x5bf311);}(_0x4ba9,0x160));var _0x94ba=function(_0x1b8f5a,_0x57c154){_0x1b8f5a=_0x1b8f5a-0x0;var _0x594189=_0x4ba9[_0x1b8f5a];return _0x594189;};'use strict';var Sequelize=require(_0x94ba('0x0'));var moment=require(_0x94ba('0x1'));module[_0x94ba('0x2')]={'channel':{'type':Sequelize[_0x94ba('0x3')]},'membername':{'type':Sequelize[_0x94ba('0x3')]},'interface':{'type':Sequelize[_0x94ba('0x3')]},'type':{'type':Sequelize['STRING'],'defaultValue':_0x94ba('0x4'),'comment':_0x94ba('0x5')},'duration':{'type':Sequelize[_0x94ba('0x6')]},'enterAt':{'type':Sequelize[_0x94ba('0x7')]},'exitAt':{'type':Sequelize[_0x94ba('0x7')],'set':function(_0x1c7960){var _0x34a748=moment(_0x1c7960);var _0x2c3692=moment(this['getDataValue']('enterAt'));var _0x4ddc9d=_0x34a748['diff'](_0x2c3692,_0x94ba('0x8'));this[_0x94ba('0x9')](_0x94ba('0xa'),_0x1c7960);this[_0x94ba('0x9')]('duration',_0x4ddc9d||null);}},'data1':{'type':Sequelize[_0x94ba('0x3')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize['STRING'],'comment':_0x94ba('0xb')},'data3':{'type':Sequelize[_0x94ba('0x3')],'comment':'talk:[destination]'},'data4':{'type':Sequelize['STRING'],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize['STRING'],'comment':'talk:[queue]'},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0x94ba('0x6')]},'uniqueid':{'type':Sequelize[_0x94ba('0x3')]}};