e122bffc5c7d8624e60578e2a56d6dbf6c05f23f
[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 _0x1af3=['BOOLEAN','sequelize','moment','exports','STRING','DATE','getDataValue','format','YYYY-MM-DD\x20HH:mm:ss','seconds','queuecallerleaveAt','setDataValue','INTEGER'];(function(_0x5a4825,_0x27644a){var _0x9f2654=function(_0x464f90){while(--_0x464f90){_0x5a4825['push'](_0x5a4825['shift']());}};_0x9f2654(++_0x27644a);}(_0x1af3,0x1bb));var _0x31af=function(_0x1269c6,_0x1c8942){_0x1269c6=_0x1269c6-0x0;var _0x4868c7=_0x1af3[_0x1269c6];return _0x4868c7;};'use strict';var Sequelize=require(_0x31af('0x0'));var moment=require(_0x31af('0x1'));module[_0x31af('0x2')]={'type':{'type':Sequelize[_0x31af('0x3')]},'uniqueid':{'type':Sequelize[_0x31af('0x3')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x31af('0x3')]},'queue':{'type':Sequelize['STRING']},'queuecallerjoinAt':{'type':Sequelize[_0x31af('0x4')]},'queuecallerleaveAt':{'type':Sequelize[_0x31af('0x4')],'set':function(_0x2ae22a){var _0x26ab5b=moment(_0x2ae22a);var _0x2c5787=moment(this[_0x31af('0x5')]('queuecallerjoinAt'))[_0x31af('0x6')](_0x31af('0x7'));var _0x568e83=_0x26ab5b['diff'](_0x2c5787,_0x31af('0x8'));this['setDataValue'](_0x31af('0x9'),_0x2ae22a);this[_0x31af('0xa')]('holdtime',_0x568e83||null);}},'position':{'type':Sequelize[_0x31af('0xb')]},'count':{'type':Sequelize[_0x31af('0xb')]},'queuecallerabandon':{'type':Sequelize[_0x31af('0xc')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x31af('0x4')]},'queuecallercomplete':{'type':Sequelize[_0x31af('0xc')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x31af('0x4')]},'queuecallerexit':{'type':Sequelize[_0x31af('0xc')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x31af('0x4')]},'queuecallerexitreason':{'type':Sequelize[_0x31af('0x3')],'comment':'COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'},'originalposition':{'type':Sequelize['INTEGER']},'channel':{'type':Sequelize[_0x31af('0x3')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x31af('0x3')]},'accountcode':{'type':Sequelize[_0x31af('0x3')]},'context':{'type':Sequelize[_0x31af('0x3')]},'exten':{'type':Sequelize[_0x31af('0x3')]},'priority':{'type':Sequelize[_0x31af('0x3')]},'holdtime':{'type':Sequelize[_0x31af('0xb')]},'mohtime':{'type':Sequelize[_0x31af('0xb')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x31af('0xc')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x31af('0x3')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize['STRING'],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize[_0x31af('0x3')]},'transferuniqueid':{'type':Sequelize[_0x31af('0x3')]},'disposition':{'type':Sequelize[_0x31af('0x3')]},'secondDisposition':{'type':Sequelize[_0x31af('0x3')]},'thirdDisposition':{'type':Sequelize[_0x31af('0x3')]},'queuecallerenterreason':{'type':Sequelize[_0x31af('0xb')],'defaultValue':0x0},'note':{'type':Sequelize[_0x31af('0x3')]}};