3165b9fef74c19eaa019fc0849a35d714ddf331f
[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 _0x35c1=['FORWARD,\x20BLIND,\x20ATTENDED','sequelize','exports','STRING','DATE','queuecallerjoinAt','format','YYYY-MM-DD\x20HH:mm:ss','diff','setDataValue','queuecallerleaveAt','holdtime','INTEGER','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'];(function(_0x5b36bd,_0x4dfb36){var _0x1614fe=function(_0x559b7c){while(--_0x559b7c){_0x5b36bd['push'](_0x5b36bd['shift']());}};_0x1614fe(++_0x4dfb36);}(_0x35c1,0x1a5));var _0x135c=function(_0xa808d9,_0x186110){_0xa808d9=_0xa808d9-0x0;var _0x2ae6af=_0x35c1[_0xa808d9];return _0x2ae6af;};'use strict';var Sequelize=require(_0x135c('0x0'));var moment=require('moment');module[_0x135c('0x1')]={'type':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x135c('0x2')]},'queue':{'type':Sequelize[_0x135c('0x2')]},'queuecallerjoinAt':{'type':Sequelize[_0x135c('0x3')]},'queuecallerleaveAt':{'type':Sequelize[_0x135c('0x3')],'set':function(_0x1a1fcc){var _0x2aea0f=moment(_0x1a1fcc);var _0x273e4f=moment(this['getDataValue'](_0x135c('0x4')))[_0x135c('0x5')](_0x135c('0x6'));var _0x1ec3d1=_0x2aea0f[_0x135c('0x7')](_0x273e4f,'seconds');this[_0x135c('0x8')](_0x135c('0x9'),_0x1a1fcc);this['setDataValue'](_0x135c('0xa'),_0x1ec3d1||null);}},'position':{'type':Sequelize[_0x135c('0xb')]},'count':{'type':Sequelize['INTEGER']},'queuecallerabandon':{'type':Sequelize[_0x135c('0xc')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x135c('0x3')]},'queuecallercomplete':{'type':Sequelize[_0x135c('0xc')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x135c('0x3')]},'queuecallerexit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x135c('0x3')]},'queuecallerexitreason':{'type':Sequelize[_0x135c('0x2')],'comment':_0x135c('0xd')},'originalposition':{'type':Sequelize[_0x135c('0xb')]},'channel':{'type':Sequelize[_0x135c('0x2')]},'connectedlinenum':{'type':Sequelize[_0x135c('0x2')]},'connectedlinename':{'type':Sequelize[_0x135c('0x2')]},'accountcode':{'type':Sequelize[_0x135c('0x2')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x135c('0x2')]},'priority':{'type':Sequelize[_0x135c('0x2')]},'holdtime':{'type':Sequelize['INTEGER']},'mohtime':{'type':Sequelize[_0x135c('0xb')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x135c('0xc')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x135c('0x2')]},'transfer':{'type':Sequelize[_0x135c('0xc')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x135c('0x2')],'comment':_0x135c('0xe')},'transferexten':{'type':Sequelize['STRING']},'transferuniqueid':{'type':Sequelize[_0x135c('0x2')]},'disposition':{'type':Sequelize[_0x135c('0x2')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize['STRING']},'queuecallerenterreason':{'type':Sequelize[_0x135c('0xb')],'defaultValue':0x0},'note':{'type':Sequelize[_0x135c('0x2')]}};