dfb8932e6a65cfb07613b4967c9c0e3d423f2835
[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 _0x5ac3=['setDataValue','queuecallerleaveAt','holdtime','INTEGER','BOOLEAN','sequelize','moment','exports','STRING','DATE','YYYY-MM-DD\x20HH:mm:ss','seconds'];(function(_0x5571c1,_0x170538){var _0x4b432a=function(_0x510aa1){while(--_0x510aa1){_0x5571c1['push'](_0x5571c1['shift']());}};_0x4b432a(++_0x170538);}(_0x5ac3,0xe9));var _0x35ac=function(_0x557c36,_0x4b180c){_0x557c36=_0x557c36-0x0;var _0x4e6f11=_0x5ac3[_0x557c36];return _0x4e6f11;};'use strict';var Sequelize=require(_0x35ac('0x0'));var moment=require(_0x35ac('0x1'));module[_0x35ac('0x2')]={'type':{'type':Sequelize[_0x35ac('0x3')]},'uniqueid':{'type':Sequelize[_0x35ac('0x3')]},'calleridnum':{'type':Sequelize[_0x35ac('0x3')]},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0x35ac('0x3')]},'queuecallerjoinAt':{'type':Sequelize['DATE']},'queuecallerleaveAt':{'type':Sequelize[_0x35ac('0x4')],'set':function(_0x34aabd){var _0x300bcb=moment(_0x34aabd);var _0x2d2de6=moment(this['getDataValue']('queuecallerjoinAt'))['format'](_0x35ac('0x5'));var _0x2d24d1=_0x300bcb['diff'](_0x2d2de6,_0x35ac('0x6'));this[_0x35ac('0x7')](_0x35ac('0x8'),_0x34aabd);this['setDataValue'](_0x35ac('0x9'),_0x2d24d1||null);}},'position':{'type':Sequelize[_0x35ac('0xa')]},'count':{'type':Sequelize[_0x35ac('0xa')]},'queuecallerabandon':{'type':Sequelize[_0x35ac('0xb')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x35ac('0x4')]},'queuecallercomplete':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x35ac('0x4')]},'queuecallerexit':{'type':Sequelize[_0x35ac('0xb')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x35ac('0x4')]},'queuecallerexitreason':{'type':Sequelize['STRING'],'comment':'COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'},'originalposition':{'type':Sequelize['INTEGER']},'channel':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0x35ac('0x3')]},'connectedlinename':{'type':Sequelize[_0x35ac('0x3')]},'accountcode':{'type':Sequelize[_0x35ac('0x3')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x35ac('0x3')]},'priority':{'type':Sequelize[_0x35ac('0x3')]},'holdtime':{'type':Sequelize[_0x35ac('0xa')]},'mohtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'assigned':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x35ac('0x3')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x35ac('0x3')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize[_0x35ac('0x3')]},'transferuniqueid':{'type':Sequelize[_0x35ac('0x3')]},'disposition':{'type':Sequelize[_0x35ac('0x3')]},'secondDisposition':{'type':Sequelize[_0x35ac('0x3')]},'thirdDisposition':{'type':Sequelize[_0x35ac('0x3')]},'queuecallerenterreason':{'type':Sequelize[_0x35ac('0xa')],'defaultValue':0x0}};