Built motion from commit 9efc8423.|2.6.31
[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 _0x1fcd=['getDataValue','queuecallerjoinAt','diff','seconds','queuecallerleaveAt','holdtime','INTEGER','BOOLEAN','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','moment','exports','STRING','DATE'];(function(_0x32ded9,_0x4bf49b){var _0x316c2d=function(_0x5d22e5){while(--_0x5d22e5){_0x32ded9['push'](_0x32ded9['shift']());}};_0x316c2d(++_0x4bf49b);}(_0x1fcd,0x1ad));var _0xd1fc=function(_0x4b2436,_0x452299){_0x4b2436=_0x4b2436-0x0;var _0x4f5ab2=_0x1fcd[_0x4b2436];return _0x4f5ab2;};'use strict';var Sequelize=require(_0xd1fc('0x0'));var moment=require(_0xd1fc('0x1'));module[_0xd1fc('0x2')]={'type':{'type':Sequelize[_0xd1fc('0x3')]},'uniqueid':{'type':Sequelize[_0xd1fc('0x3')]},'calleridnum':{'type':Sequelize[_0xd1fc('0x3')]},'calleridname':{'type':Sequelize[_0xd1fc('0x3')]},'queue':{'type':Sequelize['STRING']},'queuecallerjoinAt':{'type':Sequelize['DATE']},'queuecallerleaveAt':{'type':Sequelize[_0xd1fc('0x4')],'set':function(_0x3bdd10){var _0x4e308d=moment(_0x3bdd10);var _0x2c57a2=moment(this[_0xd1fc('0x5')](_0xd1fc('0x6')))['format']('YYYY-MM-DD\x20HH:mm:ss');var _0x6efb71=_0x4e308d[_0xd1fc('0x7')](_0x2c57a2,_0xd1fc('0x8'));this['setDataValue'](_0xd1fc('0x9'),_0x3bdd10);this['setDataValue'](_0xd1fc('0xa'),_0x6efb71||null);}},'position':{'type':Sequelize[_0xd1fc('0xb')]},'count':{'type':Sequelize[_0xd1fc('0xb')]},'queuecallerabandon':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0xd1fc('0x4')]},'queuecallercomplete':{'type':Sequelize[_0xd1fc('0xc')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0xd1fc('0x4')]},'queuecallerexit':{'type':Sequelize[_0xd1fc('0xc')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0xd1fc('0x4')]},'queuecallerexitreason':{'type':Sequelize[_0xd1fc('0x3')],'comment':'COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'},'originalposition':{'type':Sequelize[_0xd1fc('0xb')]},'channel':{'type':Sequelize[_0xd1fc('0x3')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0xd1fc('0x3')]},'accountcode':{'type':Sequelize[_0xd1fc('0x3')]},'context':{'type':Sequelize[_0xd1fc('0x3')]},'exten':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0xd1fc('0x3')]},'holdtime':{'type':Sequelize['INTEGER']},'mohtime':{'type':Sequelize[_0xd1fc('0xb')],'defaultValue':0x0},'assigned':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0xd1fc('0x3')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize[_0xd1fc('0x3')],'comment':_0xd1fc('0xd')},'transferexten':{'type':Sequelize['STRING']},'transferuniqueid':{'type':Sequelize['STRING']},'disposition':{'type':Sequelize[_0xd1fc('0x3')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0xd1fc('0x3')]},'queuecallerenterreason':{'type':Sequelize[_0xd1fc('0xb')],'defaultValue':0x0},'note':{'type':Sequelize[_0xd1fc('0x3')]}};