c39061b8f8f907fb7f4825005a3321c88d84594f
[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 _0x1fae=['holdtime','INTEGER','BOOLEAN','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','moment','STRING','DATE','getDataValue','queuecallerjoinAt','format','YYYY-MM-DD\x20HH:mm:ss','diff','seconds','setDataValue','queuecallerleaveAt'];(function(_0x2ed6ce,_0x48875c){var _0x537266=function(_0x2972e7){while(--_0x2972e7){_0x2ed6ce['push'](_0x2ed6ce['shift']());}};_0x537266(++_0x48875c);}(_0x1fae,0xc4));var _0xe1fa=function(_0x17d581,_0x55ec2a){_0x17d581=_0x17d581-0x0;var _0x137ab8=_0x1fae[_0x17d581];return _0x137ab8;};'use strict';var Sequelize=require(_0xe1fa('0x0'));var moment=require(_0xe1fa('0x1'));module['exports']={'type':{'type':Sequelize[_0xe1fa('0x2')]},'uniqueid':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0xe1fa('0x2')]},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0xe1fa('0x2')]},'queuecallerjoinAt':{'type':Sequelize[_0xe1fa('0x3')]},'queuecallerleaveAt':{'type':Sequelize['DATE'],'set':function(_0x5eed22){var _0x2628c9=moment(_0x5eed22);var _0x4eb347=moment(this[_0xe1fa('0x4')](_0xe1fa('0x5')))[_0xe1fa('0x6')](_0xe1fa('0x7'));var _0x1a8492=_0x2628c9[_0xe1fa('0x8')](_0x4eb347,_0xe1fa('0x9'));this[_0xe1fa('0xa')](_0xe1fa('0xb'),_0x5eed22);this['setDataValue'](_0xe1fa('0xc'),_0x1a8492||null);}},'position':{'type':Sequelize[_0xe1fa('0xd')]},'count':{'type':Sequelize[_0xe1fa('0xd')]},'queuecallerabandon':{'type':Sequelize[_0xe1fa('0xe')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0xe1fa('0x3')]},'queuecallercomplete':{'type':Sequelize[_0xe1fa('0xe')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0xe1fa('0x3')]},'queuecallerexit':{'type':Sequelize[_0xe1fa('0xe')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0xe1fa('0x3')]},'queuecallerexitreason':{'type':Sequelize[_0xe1fa('0x2')],'comment':'COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'},'originalposition':{'type':Sequelize[_0xe1fa('0xd')]},'channel':{'type':Sequelize[_0xe1fa('0x2')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0xe1fa('0x2')]},'accountcode':{'type':Sequelize[_0xe1fa('0x2')]},'context':{'type':Sequelize[_0xe1fa('0x2')]},'exten':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0xe1fa('0x2')]},'holdtime':{'type':Sequelize[_0xe1fa('0xd')]},'mohtime':{'type':Sequelize[_0xe1fa('0xd')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0xe1fa('0xe')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0xe1fa('0x2')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize[_0xe1fa('0x2')],'comment':_0xe1fa('0xf')},'transferexten':{'type':Sequelize[_0xe1fa('0x2')]},'transferuniqueid':{'type':Sequelize[_0xe1fa('0x2')]},'disposition':{'type':Sequelize[_0xe1fa('0x2')]},'secondDisposition':{'type':Sequelize[_0xe1fa('0x2')]},'thirdDisposition':{'type':Sequelize['STRING']},'queuecallerenterreason':{'type':Sequelize[_0xe1fa('0xd')],'defaultValue':0x0}};