ebfa8464787c46884576fcc7119dc534d7708e06
[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 _0xe4fc=['diff','seconds','setDataValue','INTEGER','BOOLEAN','DATE','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','FORWARD,\x20BLIND,\x20ATTENDED','moment','STRING','getDataValue','queuecallerjoinAt','format','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x559a80,_0x3d193d){var _0x42f555=function(_0x24e596){while(--_0x24e596){_0x559a80['push'](_0x559a80['shift']());}};_0x42f555(++_0x3d193d);}(_0xe4fc,0x1e4));var _0xce4f=function(_0x87d3ec,_0x387888){_0x87d3ec=_0x87d3ec-0x0;var _0x5f3f6f=_0xe4fc[_0x87d3ec];return _0x5f3f6f;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xce4f('0x0'));module['exports']={'type':{'type':Sequelize[_0xce4f('0x1')]},'uniqueid':{'type':Sequelize[_0xce4f('0x1')]},'calleridnum':{'type':Sequelize[_0xce4f('0x1')]},'calleridname':{'type':Sequelize[_0xce4f('0x1')]},'queue':{'type':Sequelize[_0xce4f('0x1')]},'queuecallerjoinAt':{'type':Sequelize['DATE']},'queuecallerleaveAt':{'type':Sequelize['DATE'],'set':function(_0x450126){var _0x5e6bd7=moment(_0x450126);var _0x1c1c97=moment(this[_0xce4f('0x2')](_0xce4f('0x3')))[_0xce4f('0x4')](_0xce4f('0x5'));var _0x5e774b=_0x5e6bd7[_0xce4f('0x6')](_0x1c1c97,_0xce4f('0x7'));this[_0xce4f('0x8')]('queuecallerleaveAt',_0x450126);this[_0xce4f('0x8')]('holdtime',_0x5e774b||null);}},'position':{'type':Sequelize[_0xce4f('0x9')]},'count':{'type':Sequelize[_0xce4f('0x9')]},'queuecallerabandon':{'type':Sequelize[_0xce4f('0xa')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0xce4f('0xb')]},'queuecallercomplete':{'type':Sequelize[_0xce4f('0xa')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0xce4f('0xb')]},'queuecallerexit':{'type':Sequelize[_0xce4f('0xa')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0xce4f('0xb')]},'queuecallerexitreason':{'type':Sequelize[_0xce4f('0x1')],'comment':_0xce4f('0xc')},'originalposition':{'type':Sequelize[_0xce4f('0x9')]},'channel':{'type':Sequelize[_0xce4f('0x1')]},'connectedlinenum':{'type':Sequelize[_0xce4f('0x1')]},'connectedlinename':{'type':Sequelize[_0xce4f('0x1')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0xce4f('0x1')]},'exten':{'type':Sequelize[_0xce4f('0x1')]},'priority':{'type':Sequelize[_0xce4f('0x1')]},'holdtime':{'type':Sequelize['INTEGER']},'mohtime':{'type':Sequelize[_0xce4f('0x9')],'defaultValue':0x0},'assigned':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0xce4f('0x1')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize[_0xce4f('0x1')],'comment':_0xce4f('0xd')},'transferexten':{'type':Sequelize[_0xce4f('0x1')]},'transferuniqueid':{'type':Sequelize['STRING']},'disposition':{'type':Sequelize[_0xce4f('0x1')]},'secondDisposition':{'type':Sequelize[_0xce4f('0x1')]},'thirdDisposition':{'type':Sequelize[_0xce4f('0x1')]},'queuecallerenterreason':{'type':Sequelize[_0xce4f('0x9')],'defaultValue':0x0},'note':{'type':Sequelize[_0xce4f('0x1')]}};