b946f5fe0697b9425e8413d5bd502028bd989c71
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.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 _0xfa02=['INTEGER','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','FORWARD,\x20BLIND,\x20ATTENDED','exports','STRING','DATE','getDataValue','format','diff','seconds','setDataValue','queuecallerleaveAt','holdtime'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xfa02,0x10e));var _0x2fa0=function(_0x127539,_0x58cb14){_0x127539=_0x127539-0x0;var _0x359376=_0xfa02[_0x127539];return _0x359376;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');module[_0x2fa0('0x0')]={'type':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize[_0x2fa0('0x1')]},'calleridnum':{'type':Sequelize[_0x2fa0('0x1')]},'calleridname':{'type':Sequelize[_0x2fa0('0x1')]},'queue':{'type':Sequelize[_0x2fa0('0x1')]},'queuecallerjoinAt':{'type':Sequelize[_0x2fa0('0x2')]},'queuecallerleaveAt':{'type':Sequelize[_0x2fa0('0x2')],'set':function(_0x3d34c2){var _0x12c037=moment(_0x3d34c2);var _0x4d4cc4=moment(this[_0x2fa0('0x3')]('queuecallerjoinAt'))[_0x2fa0('0x4')]('YYYY-MM-DD\x20HH:mm:ss');var _0x50322a=_0x12c037[_0x2fa0('0x5')](_0x4d4cc4,_0x2fa0('0x6'));this[_0x2fa0('0x7')](_0x2fa0('0x8'),_0x3d34c2);this[_0x2fa0('0x7')](_0x2fa0('0x9'),_0x50322a||null);}},'position':{'type':Sequelize[_0x2fa0('0xa')]},'count':{'type':Sequelize[_0x2fa0('0xa')]},'queuecallerabandon':{'type':Sequelize[_0x2fa0('0xb')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x2fa0('0x2')]},'queuecallercomplete':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x2fa0('0x2')]},'queuecallerexit':{'type':Sequelize[_0x2fa0('0xb')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x2fa0('0x2')]},'queuecallerexitreason':{'type':Sequelize['STRING'],'comment':_0x2fa0('0xc')},'originalposition':{'type':Sequelize['INTEGER']},'channel':{'type':Sequelize[_0x2fa0('0x1')]},'connectedlinenum':{'type':Sequelize[_0x2fa0('0x1')]},'connectedlinename':{'type':Sequelize[_0x2fa0('0x1')]},'accountcode':{'type':Sequelize[_0x2fa0('0x1')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x2fa0('0x1')]},'priority':{'type':Sequelize[_0x2fa0('0x1')]},'holdtime':{'type':Sequelize['INTEGER']},'mohtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'assigned':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize['STRING']},'transfer':{'type':Sequelize[_0x2fa0('0xb')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x2fa0('0x1')],'comment':_0x2fa0('0xd')},'transferexten':{'type':Sequelize[_0x2fa0('0x1')]},'transferuniqueid':{'type':Sequelize[_0x2fa0('0x1')]},'disposition':{'type':Sequelize[_0x2fa0('0x1')]},'secondDisposition':{'type':Sequelize[_0x2fa0('0x1')]},'thirdDisposition':{'type':Sequelize[_0x2fa0('0x1')]},'queuecallerenterreason':{'type':Sequelize[_0x2fa0('0xa')],'defaultValue':0x0}};