Built motion from commit 10af8726.|2.6.34
[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 _0xc61a=['diff','seconds','setDataValue','queuecallerleaveAt','holdtime','INTEGER','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','moment','exports','STRING','DATE','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x2cfb90,_0x18474c){var _0x40db9b=function(_0x5c46c4){while(--_0x5c46c4){_0x2cfb90['push'](_0x2cfb90['shift']());}};_0x40db9b(++_0x18474c);}(_0xc61a,0x1ad));var _0xac61=function(_0x249718,_0x21947f){_0x249718=_0x249718-0x0;var _0x28a63a=_0xc61a[_0x249718];return _0x28a63a;};'use strict';var Sequelize=require(_0xac61('0x0'));var moment=require(_0xac61('0x1'));module[_0xac61('0x2')]={'type':{'type':Sequelize[_0xac61('0x3')]},'uniqueid':{'type':Sequelize[_0xac61('0x3')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize['STRING']},'queuecallerjoinAt':{'type':Sequelize['DATE']},'queuecallerleaveAt':{'type':Sequelize[_0xac61('0x4')],'set':function(_0xe1a222){var _0x3bb769=moment(_0xe1a222);var _0x112d59=moment(this['getDataValue']('queuecallerjoinAt'))['format'](_0xac61('0x5'));var _0x433632=_0x3bb769[_0xac61('0x6')](_0x112d59,_0xac61('0x7'));this[_0xac61('0x8')](_0xac61('0x9'),_0xe1a222);this[_0xac61('0x8')](_0xac61('0xa'),_0x433632||null);}},'position':{'type':Sequelize[_0xac61('0xb')]},'count':{'type':Sequelize[_0xac61('0xb')]},'queuecallerabandon':{'type':Sequelize[_0xac61('0xc')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0xac61('0x4')]},'queuecallercomplete':{'type':Sequelize[_0xac61('0xc')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0xac61('0x4')]},'queuecallerexit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0xac61('0x4')]},'queuecallerexitreason':{'type':Sequelize[_0xac61('0x3')],'comment':_0xac61('0xd')},'originalposition':{'type':Sequelize[_0xac61('0xb')]},'channel':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0xac61('0x3')]},'connectedlinename':{'type':Sequelize[_0xac61('0x3')]},'accountcode':{'type':Sequelize[_0xac61('0x3')]},'context':{'type':Sequelize[_0xac61('0x3')]},'exten':{'type':Sequelize[_0xac61('0x3')]},'priority':{'type':Sequelize[_0xac61('0x3')]},'holdtime':{'type':Sequelize[_0xac61('0xb')]},'mohtime':{'type':Sequelize[_0xac61('0xb')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0xac61('0xc')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize['STRING']},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize[_0xac61('0x3')],'comment':_0xac61('0xe')},'transferexten':{'type':Sequelize[_0xac61('0x3')]},'transferuniqueid':{'type':Sequelize['STRING']},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0xac61('0x3')]},'thirdDisposition':{'type':Sequelize[_0xac61('0x3')]},'queuecallerenterreason':{'type':Sequelize[_0xac61('0xb')],'defaultValue':0x0},'note':{'type':Sequelize[_0xac61('0x3')]}};