Built motion from commit 0c5f406c.|2.6.29
[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 _0xd19f=['setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[dial\x20string]','talk:[queue]','sequelize','moment','STRING','DEFAULT\x20PAUSE','DATE','getDataValue','seconds'];(function(_0x392e52,_0x41196e){var _0x38ff9d=function(_0xd34be3){while(--_0xd34be3){_0x392e52['push'](_0x392e52['shift']());}};_0x38ff9d(++_0x41196e);}(_0xd19f,0x1e7));var _0xfd19=function(_0x2d34d6,_0x397ff9){_0x2d34d6=_0x2d34d6-0x0;var _0x1d3d12=_0xd19f[_0x2d34d6];return _0x1d3d12;};'use strict';var Sequelize=require(_0xfd19('0x0'));var moment=require(_0xfd19('0x1'));module['exports']={'channel':{'type':Sequelize[_0xfd19('0x2')]},'membername':{'type':Sequelize[_0xfd19('0x2')]},'interface':{'type':Sequelize[_0xfd19('0x2')]},'type':{'type':Sequelize[_0xfd19('0x2')],'defaultValue':_0xfd19('0x3'),'comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize[_0xfd19('0x4')]},'exitAt':{'type':Sequelize[_0xfd19('0x4')],'set':function(_0x237db7){var _0x411c73=moment(_0x237db7);var _0x1da879=moment(this[_0xfd19('0x5')]('enterAt'));var _0x4f8e85=_0x411c73['diff'](_0x1da879,_0xfd19('0x6'));this[_0xfd19('0x7')]('exitAt',_0x237db7);this[_0xfd19('0x7')](_0xfd19('0x8'),_0x4f8e85>=0x0?_0x4f8e85:null);}},'data1':{'type':Sequelize[_0xfd19('0x2')],'comment':_0xfd19('0x9')},'data2':{'type':Sequelize[_0xfd19('0x2')],'comment':_0xfd19('0xa')},'data3':{'type':Sequelize['STRING'],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0xfd19('0x2')],'comment':_0xfd19('0xb')},'data5':{'type':Sequelize[_0xfd19('0x2')],'comment':_0xfd19('0xc')},'role':{'type':Sequelize[_0xfd19('0x2')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0xfd19('0x2')]}};