af65717ae40b2206cfe5bf9951d995116e3fb14f
[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 _0x979b=['queuecallerleaveAt','holdtime','INTEGER','BOOLEAN','FORWARD,\x20BLIND,\x20ATTENDED','moment','exports','STRING','DATE','getDataValue','queuecallerjoinAt','format','YYYY-MM-DD\x20HH:mm:ss','diff','seconds','setDataValue'];(function(_0x57dc85,_0x3a6d51){var _0x563a2e=function(_0x5713b2){while(--_0x5713b2){_0x57dc85['push'](_0x57dc85['shift']());}};_0x563a2e(++_0x3a6d51);}(_0x979b,0xa5));var _0xb979=function(_0x5d4f12,_0x11e67c){_0x5d4f12=_0x5d4f12-0x0;var _0x4eb577=_0x979b[_0x5d4f12];return _0x4eb577;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xb979('0x0'));module[_0xb979('0x1')]={'type':{'type':Sequelize[_0xb979('0x2')]},'uniqueid':{'type':Sequelize[_0xb979('0x2')]},'calleridnum':{'type':Sequelize[_0xb979('0x2')]},'calleridname':{'type':Sequelize[_0xb979('0x2')]},'queue':{'type':Sequelize['STRING']},'queuecallerjoinAt':{'type':Sequelize[_0xb979('0x3')]},'queuecallerleaveAt':{'type':Sequelize['DATE'],'set':function(_0x49c57d){var _0x4942fb=moment(_0x49c57d);var _0x4e523c=moment(this[_0xb979('0x4')](_0xb979('0x5')))[_0xb979('0x6')](_0xb979('0x7'));var _0x276e6a=_0x4942fb[_0xb979('0x8')](_0x4e523c,_0xb979('0x9'));this[_0xb979('0xa')](_0xb979('0xb'),_0x49c57d);this[_0xb979('0xa')](_0xb979('0xc'),_0x276e6a||null);}},'position':{'type':Sequelize[_0xb979('0xd')]},'count':{'type':Sequelize['INTEGER']},'queuecallerabandon':{'type':Sequelize[_0xb979('0xe')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0xb979('0x3')]},'queuecallercomplete':{'type':Sequelize[_0xb979('0xe')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0xb979('0x3')]},'queuecallerexit':{'type':Sequelize[_0xb979('0xe')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0xb979('0x3')]},'queuecallerexitreason':{'type':Sequelize[_0xb979('0x2')],'comment':'COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'},'originalposition':{'type':Sequelize[_0xb979('0xd')]},'channel':{'type':Sequelize[_0xb979('0x2')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0xb979('0x2')]},'accountcode':{'type':Sequelize[_0xb979('0x2')]},'context':{'type':Sequelize[_0xb979('0x2')]},'exten':{'type':Sequelize[_0xb979('0x2')]},'priority':{'type':Sequelize[_0xb979('0x2')]},'holdtime':{'type':Sequelize['INTEGER']},'mohtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'assigned':{'type':Sequelize[_0xb979('0xe')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0xb979('0x2')]},'transfer':{'type':Sequelize[_0xb979('0xe')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0xb979('0x2')],'comment':_0xb979('0xf')},'transferexten':{'type':Sequelize['STRING']},'transferuniqueid':{'type':Sequelize[_0xb979('0x2')]},'disposition':{'type':Sequelize[_0xb979('0x2')]},'secondDisposition':{'type':Sequelize[_0xb979('0x2')]},'thirdDisposition':{'type':Sequelize[_0xb979('0x2')]},'queuecallerenterreason':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'note':{'type':Sequelize[_0xb979('0x2')]}};