02d60a65f8052c6755ba0d54611974a32f18fc87
[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 _0x35cb=['YYYY-MM-DD\x20HH:mm:ss','diff','seconds','setDataValue','holdtime','INTEGER','BOOLEAN','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','moment','exports','STRING','DATE','queuecallerjoinAt','format'];(function(_0x166cc7,_0x486d0c){var _0x196799=function(_0x598af5){while(--_0x598af5){_0x166cc7['push'](_0x166cc7['shift']());}};_0x196799(++_0x486d0c);}(_0x35cb,0x18e));var _0xb35c=function(_0x1289a2,_0x3e236f){_0x1289a2=_0x1289a2-0x0;var _0x2afb9f=_0x35cb[_0x1289a2];return _0x2afb9f;};'use strict';var Sequelize=require(_0xb35c('0x0'));var moment=require(_0xb35c('0x1'));module[_0xb35c('0x2')]={'type':{'type':Sequelize[_0xb35c('0x3')]},'uniqueid':{'type':Sequelize[_0xb35c('0x3')]},'calleridnum':{'type':Sequelize[_0xb35c('0x3')]},'calleridname':{'type':Sequelize[_0xb35c('0x3')]},'queue':{'type':Sequelize[_0xb35c('0x3')]},'queuecallerjoinAt':{'type':Sequelize[_0xb35c('0x4')]},'queuecallerleaveAt':{'type':Sequelize[_0xb35c('0x4')],'set':function(_0x592bea){var _0x1e0149=moment(_0x592bea);var _0x4b7e58=moment(this['getDataValue'](_0xb35c('0x5')))[_0xb35c('0x6')](_0xb35c('0x7'));var _0x3ac866=_0x1e0149[_0xb35c('0x8')](_0x4b7e58,_0xb35c('0x9'));this[_0xb35c('0xa')]('queuecallerleaveAt',_0x592bea);this[_0xb35c('0xa')](_0xb35c('0xb'),_0x3ac866||null);}},'position':{'type':Sequelize[_0xb35c('0xc')]},'count':{'type':Sequelize[_0xb35c('0xc')]},'queuecallerabandon':{'type':Sequelize[_0xb35c('0xd')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize['DATE']},'queuecallercomplete':{'type':Sequelize[_0xb35c('0xd')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0xb35c('0x4')]},'queuecallerexit':{'type':Sequelize[_0xb35c('0xd')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0xb35c('0x4')]},'queuecallerexitreason':{'type':Sequelize['STRING'],'comment':'COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'},'originalposition':{'type':Sequelize[_0xb35c('0xc')]},'channel':{'type':Sequelize[_0xb35c('0x3')]},'connectedlinenum':{'type':Sequelize[_0xb35c('0x3')]},'connectedlinename':{'type':Sequelize[_0xb35c('0x3')]},'accountcode':{'type':Sequelize[_0xb35c('0x3')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0xb35c('0x3')]},'priority':{'type':Sequelize[_0xb35c('0x3')]},'holdtime':{'type':Sequelize[_0xb35c('0xc')]},'mohtime':{'type':Sequelize[_0xb35c('0xc')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0xb35c('0xd')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0xb35c('0x3')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize['STRING'],'comment':_0xb35c('0xe')},'transferexten':{'type':Sequelize[_0xb35c('0x3')]},'transferuniqueid':{'type':Sequelize['STRING']},'disposition':{'type':Sequelize[_0xb35c('0x3')]},'secondDisposition':{'type':Sequelize[_0xb35c('0x3')]},'thirdDisposition':{'type':Sequelize['STRING']},'queuecallerenterreason':{'type':Sequelize['INTEGER'],'defaultValue':0x0}};