Built motion from commit 52c8a02d.|2.6.29
[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 _0x5b46=['INTEGER','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','FORWARD,\x20BLIND,\x20ATTENDED','exports','STRING','DATE','getDataValue','format','diff','seconds','setDataValue','queuecallerleaveAt','holdtime'];(function(_0x2779e9,_0x1d6a6a){var _0x3b3a46=function(_0x2a2bab){while(--_0x2a2bab){_0x2779e9['push'](_0x2779e9['shift']());}};_0x3b3a46(++_0x1d6a6a);}(_0x5b46,0x1d2));var _0x65b4=function(_0x1c10dc,_0x1d220b){_0x1c10dc=_0x1c10dc-0x0;var _0x55c774=_0x5b46[_0x1c10dc];return _0x55c774;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');module[_0x65b4('0x0')]={'type':{'type':Sequelize[_0x65b4('0x1')]},'uniqueid':{'type':Sequelize[_0x65b4('0x1')]},'calleridnum':{'type':Sequelize[_0x65b4('0x1')]},'calleridname':{'type':Sequelize[_0x65b4('0x1')]},'queue':{'type':Sequelize[_0x65b4('0x1')]},'queuecallerjoinAt':{'type':Sequelize[_0x65b4('0x2')]},'queuecallerleaveAt':{'type':Sequelize['DATE'],'set':function(_0x4ba06d){var _0x1df25f=moment(_0x4ba06d);var _0x5af232=moment(this[_0x65b4('0x3')]('queuecallerjoinAt'))[_0x65b4('0x4')]('YYYY-MM-DD\x20HH:mm:ss');var _0x490474=_0x1df25f[_0x65b4('0x5')](_0x5af232,_0x65b4('0x6'));this[_0x65b4('0x7')](_0x65b4('0x8'),_0x4ba06d);this[_0x65b4('0x7')](_0x65b4('0x9'),_0x490474||null);}},'position':{'type':Sequelize[_0x65b4('0xa')]},'count':{'type':Sequelize[_0x65b4('0xa')]},'queuecallerabandon':{'type':Sequelize[_0x65b4('0xb')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize['DATE']},'queuecallercomplete':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x65b4('0x2')]},'queuecallerexit':{'type':Sequelize[_0x65b4('0xb')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize['DATE']},'queuecallerexitreason':{'type':Sequelize['STRING'],'comment':_0x65b4('0xc')},'originalposition':{'type':Sequelize[_0x65b4('0xa')]},'channel':{'type':Sequelize[_0x65b4('0x1')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x65b4('0x1')]},'accountcode':{'type':Sequelize[_0x65b4('0x1')]},'context':{'type':Sequelize[_0x65b4('0x1')]},'exten':{'type':Sequelize[_0x65b4('0x1')]},'priority':{'type':Sequelize[_0x65b4('0x1')]},'holdtime':{'type':Sequelize[_0x65b4('0xa')]},'mohtime':{'type':Sequelize[_0x65b4('0xa')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x65b4('0xb')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize['STRING']},'transfer':{'type':Sequelize[_0x65b4('0xb')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x65b4('0x1')],'comment':_0x65b4('0xd')},'transferexten':{'type':Sequelize[_0x65b4('0x1')]},'transferuniqueid':{'type':Sequelize[_0x65b4('0x1')]},'disposition':{'type':Sequelize[_0x65b4('0x1')]},'secondDisposition':{'type':Sequelize[_0x65b4('0x1')]},'thirdDisposition':{'type':Sequelize[_0x65b4('0x1')]},'queuecallerenterreason':{'type':Sequelize[_0x65b4('0xa')],'defaultValue':0x0},'note':{'type':Sequelize[_0x65b4('0x1')]}};