5d9c1f55137708594d805d8711d98107d5ca0582
[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 _0xd0dc=['duration','talk:[inbound,\x20outbound],\x20pause:[reason]','talk:[start]','talk:[destination]','talk:[queue]','INTEGER','sequelize','moment','exports','STRING','LOGIN,\x20PAUSE,\x20TALKING','DATE','getDataValue','enterAt','seconds','setDataValue','exitAt'];(function(_0xf3f1ed,_0x57e63e){var _0x3f5837=function(_0x29216f){while(--_0x29216f){_0xf3f1ed['push'](_0xf3f1ed['shift']());}};_0x3f5837(++_0x57e63e);}(_0xd0dc,0xf4));var _0xcd0d=function(_0x3b0b34,_0xe6a14f){_0x3b0b34=_0x3b0b34-0x0;var _0x5f5496=_0xd0dc[_0x3b0b34];return _0x5f5496;};'use strict';var Sequelize=require(_0xcd0d('0x0'));var moment=require(_0xcd0d('0x1'));module[_0xcd0d('0x2')]={'channel':{'type':Sequelize[_0xcd0d('0x3')]},'membername':{'type':Sequelize[_0xcd0d('0x3')]},'interface':{'type':Sequelize[_0xcd0d('0x3')]},'type':{'type':Sequelize[_0xcd0d('0x3')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0xcd0d('0x4')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize[_0xcd0d('0x5')]},'exitAt':{'type':Sequelize[_0xcd0d('0x5')],'set':function(_0x20d9eb){var _0x4576fc=moment(_0x20d9eb);var _0x5a72aa=moment(this[_0xcd0d('0x6')](_0xcd0d('0x7')));var _0x480e37=_0x4576fc['diff'](_0x5a72aa,_0xcd0d('0x8'));this[_0xcd0d('0x9')](_0xcd0d('0xa'),_0x20d9eb);this['setDataValue'](_0xcd0d('0xb'),_0x480e37||null);}},'data1':{'type':Sequelize[_0xcd0d('0x3')],'comment':_0xcd0d('0xc')},'data2':{'type':Sequelize[_0xcd0d('0x3')],'comment':_0xcd0d('0xd')},'data3':{'type':Sequelize[_0xcd0d('0x3')],'comment':_0xcd0d('0xe')},'data4':{'type':Sequelize[_0xcd0d('0x3')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize['STRING'],'comment':_0xcd0d('0xf')},'role':{'type':Sequelize[_0xcd0d('0x3')]},'internal':{'type':Sequelize[_0xcd0d('0x10')]},'uniqueid':{'type':Sequelize[_0xcd0d('0x3')]}};