Built motion from commit b5996064.|2.6.21
[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 _0x7c71=['sequelize','STRING','getDataValue','queuecallerjoinAt','format','YYYY-MM-DD\x20HH:mm:ss','seconds','setDataValue','queuecallerleaveAt','INTEGER','DATE','BOOLEAN','FORWARD,\x20BLIND,\x20ATTENDED'];(function(_0x19dd7a,_0x51de21){var _0x3feb6a=function(_0x4a3c84){while(--_0x4a3c84){_0x19dd7a['push'](_0x19dd7a['shift']());}};_0x3feb6a(++_0x51de21);}(_0x7c71,0x75));var _0x17c7=function(_0x1265ed,_0x4b85e8){_0x1265ed=_0x1265ed-0x0;var _0x5ac459=_0x7c71[_0x1265ed];return _0x5ac459;};'use strict';var Sequelize=require(_0x17c7('0x0'));var moment=require('moment');module['exports']={'type':{'type':Sequelize[_0x17c7('0x1')]},'uniqueid':{'type':Sequelize[_0x17c7('0x1')]},'calleridnum':{'type':Sequelize[_0x17c7('0x1')]},'calleridname':{'type':Sequelize[_0x17c7('0x1')]},'queue':{'type':Sequelize[_0x17c7('0x1')]},'queuecallerjoinAt':{'type':Sequelize['DATE']},'queuecallerleaveAt':{'type':Sequelize['DATE'],'set':function(_0x387a61){var _0x515b76=moment(_0x387a61);var _0x4d9bd5=moment(this[_0x17c7('0x2')](_0x17c7('0x3')))[_0x17c7('0x4')](_0x17c7('0x5'));var _0x1dbb9f=_0x515b76['diff'](_0x4d9bd5,_0x17c7('0x6'));this[_0x17c7('0x7')](_0x17c7('0x8'),_0x387a61);this['setDataValue']('holdtime',_0x1dbb9f||null);}},'position':{'type':Sequelize[_0x17c7('0x9')]},'count':{'type':Sequelize[_0x17c7('0x9')]},'queuecallerabandon':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x17c7('0xa')]},'queuecallercomplete':{'type':Sequelize[_0x17c7('0xb')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize['DATE']},'queuecallerexit':{'type':Sequelize[_0x17c7('0xb')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x17c7('0xa')]},'queuecallerexitreason':{'type':Sequelize[_0x17c7('0x1')],'comment':'COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'},'originalposition':{'type':Sequelize[_0x17c7('0x9')]},'channel':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0x17c7('0x1')]},'connectedlinename':{'type':Sequelize[_0x17c7('0x1')]},'accountcode':{'type':Sequelize[_0x17c7('0x1')]},'context':{'type':Sequelize[_0x17c7('0x1')]},'exten':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0x17c7('0x1')]},'holdtime':{'type':Sequelize[_0x17c7('0x9')]},'mohtime':{'type':Sequelize[_0x17c7('0x9')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x17c7('0xb')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x17c7('0x1')]},'transfer':{'type':Sequelize[_0x17c7('0xb')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x17c7('0x1')],'comment':_0x17c7('0xc')},'transferexten':{'type':Sequelize[_0x17c7('0x1')]},'transferuniqueid':{'type':Sequelize[_0x17c7('0x1')]},'disposition':{'type':Sequelize[_0x17c7('0x1')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x17c7('0x1')]},'queuecallerenterreason':{'type':Sequelize[_0x17c7('0x9')],'defaultValue':0x0},'note':{'type':Sequelize[_0x17c7('0x1')]}};