c323228538e584fc952e8a49446ae451d6754973
[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 _0x469f=['talk:[start]','talk:[destination]','talk:[dial\x20string]','talk:[queue]','sequelize','moment','STRING','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','DATE','enterAt','diff','seconds','exitAt','setDataValue','talk:[inbound,\x20outbound],\x20pause:[reason]'];(function(_0x5dd548,_0x3f2ff8){var _0xb9cb12=function(_0x593889){while(--_0x593889){_0x5dd548['push'](_0x5dd548['shift']());}};_0xb9cb12(++_0x3f2ff8);}(_0x469f,0x144));var _0xf469=function(_0x567f4c,_0x14e3d3){_0x567f4c=_0x567f4c-0x0;var _0x2ccb2a=_0x469f[_0x567f4c];return _0x2ccb2a;};'use strict';var Sequelize=require(_0xf469('0x0'));var moment=require(_0xf469('0x1'));module['exports']={'channel':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0xf469('0x2')]},'interface':{'type':Sequelize[_0xf469('0x2')]},'type':{'type':Sequelize['STRING'],'defaultValue':'DEFAULT\x20PAUSE','comment':_0xf469('0x3')},'duration':{'type':Sequelize[_0xf469('0x4')]},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0xf469('0x5')],'set':function(_0x208bc0){var _0x2a3308=moment(_0x208bc0);var _0x2ad2c4=moment(this['getDataValue'](_0xf469('0x6')));var _0x182ebb=_0x2a3308[_0xf469('0x7')](_0x2ad2c4,_0xf469('0x8'));this['setDataValue'](_0xf469('0x9'),_0x208bc0);this[_0xf469('0xa')]('duration',_0x182ebb>=0x0?_0x182ebb:null);}},'data1':{'type':Sequelize[_0xf469('0x2')],'comment':_0xf469('0xb')},'data2':{'type':Sequelize[_0xf469('0x2')],'comment':_0xf469('0xc')},'data3':{'type':Sequelize[_0xf469('0x2')],'comment':_0xf469('0xd')},'data4':{'type':Sequelize[_0xf469('0x2')],'comment':_0xf469('0xe')},'data5':{'type':Sequelize[_0xf469('0x2')],'comment':_0xf469('0xf')},'role':{'type':Sequelize[_0xf469('0x2')]},'internal':{'type':Sequelize[_0xf469('0x4')]},'uniqueid':{'type':Sequelize['STRING']}};