6847200f03a9be3795d25ee152571b39f8bf48f4
[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 _0x8ca7=['LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','getDataValue','diff','seconds','exitAt','setDataValue','duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[destination]','talk:[dial\x20string]','sequelize','exports','STRING'];(function(_0x5add57,_0x50f735){var _0x1ed737=function(_0x45f175){while(--_0x45f175){_0x5add57['push'](_0x5add57['shift']());}};_0x1ed737(++_0x50f735);}(_0x8ca7,0xb1));var _0x78ca=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8ca7[_0x3dd15e];return _0x231fd0;};'use strict';var Sequelize=require(_0x78ca('0x0'));var moment=require('moment');module[_0x78ca('0x1')]={'channel':{'type':Sequelize[_0x78ca('0x2')]},'membername':{'type':Sequelize[_0x78ca('0x2')]},'interface':{'type':Sequelize[_0x78ca('0x2')]},'type':{'type':Sequelize[_0x78ca('0x2')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x78ca('0x3')},'duration':{'type':Sequelize[_0x78ca('0x4')]},'enterAt':{'type':Sequelize[_0x78ca('0x5')]},'exitAt':{'type':Sequelize[_0x78ca('0x5')],'set':function(_0xa84b17){var _0x3a73e2=moment(_0xa84b17);var _0x5abcd4=moment(this[_0x78ca('0x6')]('enterAt'));var _0x4a2b1c=_0x3a73e2[_0x78ca('0x7')](_0x5abcd4,_0x78ca('0x8'));this['setDataValue'](_0x78ca('0x9'),_0xa84b17);this[_0x78ca('0xa')](_0x78ca('0xb'),_0x4a2b1c>=0x0?_0x4a2b1c:null);}},'data1':{'type':Sequelize['STRING'],'comment':_0x78ca('0xc')},'data2':{'type':Sequelize[_0x78ca('0x2')],'comment':'talk:[start]'},'data3':{'type':Sequelize['STRING'],'comment':_0x78ca('0xd')},'data4':{'type':Sequelize[_0x78ca('0x2')],'comment':_0x78ca('0xe')},'data5':{'type':Sequelize[_0x78ca('0x2')],'comment':'talk:[queue]'},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0x78ca('0x4')]},'uniqueid':{'type':Sequelize[_0x78ca('0x2')]}};