79b08b054957124cbab34134e04ed51174caab45
[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 _0x52b8=['getDataValue','format','seconds','setDataValue','holdtime','INTEGER','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','exports','STRING','DATE'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x52b8,0x182));var _0x852b=function(_0x4a588b,_0x58c105){_0x4a588b=_0x4a588b-0x0;var _0x114c06=_0x52b8[_0x4a588b];return _0x114c06;};'use strict';var Sequelize=require(_0x852b('0x0'));var moment=require('moment');module[_0x852b('0x1')]={'type':{'type':Sequelize[_0x852b('0x2')]},'uniqueid':{'type':Sequelize[_0x852b('0x2')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0x852b('0x2')]},'queuecallerjoinAt':{'type':Sequelize[_0x852b('0x3')]},'queuecallerleaveAt':{'type':Sequelize[_0x852b('0x3')],'set':function(_0x557d2e){var _0x106dc1=moment(_0x557d2e);var _0x4ba819=moment(this[_0x852b('0x4')]('queuecallerjoinAt'))[_0x852b('0x5')]('YYYY-MM-DD\x20HH:mm:ss');var _0x2a4ed7=_0x106dc1['diff'](_0x4ba819,_0x852b('0x6'));this[_0x852b('0x7')]('queuecallerleaveAt',_0x557d2e);this['setDataValue'](_0x852b('0x8'),_0x2a4ed7||null);}},'position':{'type':Sequelize[_0x852b('0x9')]},'count':{'type':Sequelize[_0x852b('0x9')]},'queuecallerabandon':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x852b('0x3')]},'queuecallercomplete':{'type':Sequelize[_0x852b('0xa')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x852b('0x3')]},'queuecallerexit':{'type':Sequelize[_0x852b('0xa')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x852b('0x3')]},'queuecallerexitreason':{'type':Sequelize['STRING'],'comment':_0x852b('0xb')},'originalposition':{'type':Sequelize[_0x852b('0x9')]},'channel':{'type':Sequelize[_0x852b('0x2')]},'connectedlinenum':{'type':Sequelize[_0x852b('0x2')]},'connectedlinename':{'type':Sequelize[_0x852b('0x2')]},'accountcode':{'type':Sequelize[_0x852b('0x2')]},'context':{'type':Sequelize[_0x852b('0x2')]},'exten':{'type':Sequelize[_0x852b('0x2')]},'priority':{'type':Sequelize[_0x852b('0x2')]},'holdtime':{'type':Sequelize['INTEGER']},'mohtime':{'type':Sequelize[_0x852b('0x9')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x852b('0xa')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x852b('0x2')]},'transfer':{'type':Sequelize[_0x852b('0xa')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x852b('0x2')],'comment':_0x852b('0xc')},'transferexten':{'type':Sequelize[_0x852b('0x2')]},'transferuniqueid':{'type':Sequelize[_0x852b('0x2')]},'disposition':{'type':Sequelize[_0x852b('0x2')]},'secondDisposition':{'type':Sequelize[_0x852b('0x2')]},'thirdDisposition':{'type':Sequelize[_0x852b('0x2')]},'queuecallerenterreason':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'note':{'type':Sequelize['STRING']}};