047c8db9ed5ad901d16874896f89d8dce2f5b831
[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 _0xfcab=['queuecallerjoinAt','format','YYYY-MM-DD\x20HH:mm:ss','setDataValue','queuecallerleaveAt','INTEGER','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','sequelize','moment','exports','STRING','DATE','getDataValue'];(function(_0x3c4fac,_0x4de388){var _0x33e488=function(_0x56d326){while(--_0x56d326){_0x3c4fac['push'](_0x3c4fac['shift']());}};_0x33e488(++_0x4de388);}(_0xfcab,0x166));var _0xbfca=function(_0x1fd675,_0x165dfe){_0x1fd675=_0x1fd675-0x0;var _0x16b554=_0xfcab[_0x1fd675];return _0x16b554;};'use strict';var Sequelize=require(_0xbfca('0x0'));var moment=require(_0xbfca('0x1'));module[_0xbfca('0x2')]={'type':{'type':Sequelize[_0xbfca('0x3')]},'uniqueid':{'type':Sequelize[_0xbfca('0x3')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0xbfca('0x3')]},'queue':{'type':Sequelize[_0xbfca('0x3')]},'queuecallerjoinAt':{'type':Sequelize[_0xbfca('0x4')]},'queuecallerleaveAt':{'type':Sequelize[_0xbfca('0x4')],'set':function(_0x3d6ed1){var _0x1b17e6=moment(_0x3d6ed1);var _0x5060aa=moment(this[_0xbfca('0x5')](_0xbfca('0x6')))[_0xbfca('0x7')](_0xbfca('0x8'));var _0x4b0f1b=_0x1b17e6['diff'](_0x5060aa,'seconds');this[_0xbfca('0x9')](_0xbfca('0xa'),_0x3d6ed1);this[_0xbfca('0x9')]('holdtime',_0x4b0f1b||null);}},'position':{'type':Sequelize[_0xbfca('0xb')]},'count':{'type':Sequelize['INTEGER']},'queuecallerabandon':{'type':Sequelize[_0xbfca('0xc')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0xbfca('0x4')]},'queuecallercomplete':{'type':Sequelize[_0xbfca('0xc')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0xbfca('0x4')]},'queuecallerexit':{'type':Sequelize[_0xbfca('0xc')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0xbfca('0x4')]},'queuecallerexitreason':{'type':Sequelize[_0xbfca('0x3')],'comment':_0xbfca('0xd')},'originalposition':{'type':Sequelize[_0xbfca('0xb')]},'channel':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0xbfca('0x3')]},'connectedlinename':{'type':Sequelize[_0xbfca('0x3')]},'accountcode':{'type':Sequelize[_0xbfca('0x3')]},'context':{'type':Sequelize[_0xbfca('0x3')]},'exten':{'type':Sequelize[_0xbfca('0x3')]},'priority':{'type':Sequelize[_0xbfca('0x3')]},'holdtime':{'type':Sequelize[_0xbfca('0xb')]},'mohtime':{'type':Sequelize[_0xbfca('0xb')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0xbfca('0xc')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize['STRING']},'transfer':{'type':Sequelize[_0xbfca('0xc')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0xbfca('0x3')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize['STRING']},'transferuniqueid':{'type':Sequelize[_0xbfca('0x3')]},'disposition':{'type':Sequelize[_0xbfca('0x3')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0xbfca('0x3')]},'queuecallerenterreason':{'type':Sequelize[_0xbfca('0xb')],'defaultValue':0x0},'note':{'type':Sequelize[_0xbfca('0x3')]}};