Built motion from commit fe909640.|2.6.8
[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 _0xbc72=['COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','BOOLEAN','sequelize','moment','exports','STRING','DATE','getDataValue','queuecallerjoinAt','format','diff','queuecallerleaveAt','setDataValue','INTEGER'];(function(_0xc37a23,_0x3f1f49){var _0x273908=function(_0x16fb84){while(--_0x16fb84){_0xc37a23['push'](_0xc37a23['shift']());}};_0x273908(++_0x3f1f49);}(_0xbc72,0x1a6));var _0x2bc7=function(_0x40dfa8,_0x35f6c8){_0x40dfa8=_0x40dfa8-0x0;var _0x6919b9=_0xbc72[_0x40dfa8];return _0x6919b9;};'use strict';var Sequelize=require(_0x2bc7('0x0'));var moment=require(_0x2bc7('0x1'));module[_0x2bc7('0x2')]={'type':{'type':Sequelize[_0x2bc7('0x3')]},'uniqueid':{'type':Sequelize[_0x2bc7('0x3')]},'calleridnum':{'type':Sequelize[_0x2bc7('0x3')]},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0x2bc7('0x3')]},'queuecallerjoinAt':{'type':Sequelize[_0x2bc7('0x4')]},'queuecallerleaveAt':{'type':Sequelize[_0x2bc7('0x4')],'set':function(_0x434990){var _0x735a3a=moment(_0x434990);var _0x13e2e2=moment(this[_0x2bc7('0x5')](_0x2bc7('0x6')))[_0x2bc7('0x7')]('YYYY-MM-DD\x20HH:mm:ss');var _0xa0c019=_0x735a3a[_0x2bc7('0x8')](_0x13e2e2,'seconds');this['setDataValue'](_0x2bc7('0x9'),_0x434990);this[_0x2bc7('0xa')]('holdtime',_0xa0c019||null);}},'position':{'type':Sequelize[_0x2bc7('0xb')]},'count':{'type':Sequelize['INTEGER']},'queuecallerabandon':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x2bc7('0x4')]},'queuecallercomplete':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x2bc7('0x4')]},'queuecallerexit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x2bc7('0x4')]},'queuecallerexitreason':{'type':Sequelize[_0x2bc7('0x3')],'comment':_0x2bc7('0xc')},'originalposition':{'type':Sequelize['INTEGER']},'channel':{'type':Sequelize[_0x2bc7('0x3')]},'connectedlinenum':{'type':Sequelize[_0x2bc7('0x3')]},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x2bc7('0x3')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x2bc7('0x3')]},'priority':{'type':Sequelize['STRING']},'holdtime':{'type':Sequelize[_0x2bc7('0xb')]},'mohtime':{'type':Sequelize[_0x2bc7('0xb')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x2bc7('0xd')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize['STRING']},'transfer':{'type':Sequelize[_0x2bc7('0xd')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x2bc7('0x3')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize[_0x2bc7('0x3')]},'transferuniqueid':{'type':Sequelize[_0x2bc7('0x3')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0x2bc7('0x3')]},'thirdDisposition':{'type':Sequelize[_0x2bc7('0x3')]},'queuecallerenterreason':{'type':Sequelize[_0x2bc7('0xb')],'defaultValue':0x0}};