38fa39e3e14573e9574134954724ff09102a5c13
[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 _0x0f77=['getDataValue','queuecallerjoinAt','format','YYYY-MM-DD\x20HH:mm:ss','diff','setDataValue','holdtime','INTEGER','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','moment','exports','STRING','DATE'];(function(_0x49f45f,_0x17a489){var _0x22c73d=function(_0x50b9eb){while(--_0x50b9eb){_0x49f45f['push'](_0x49f45f['shift']());}};_0x22c73d(++_0x17a489);}(_0x0f77,0xb2));var _0x70f7=function(_0x39e1f0,_0x560848){_0x39e1f0=_0x39e1f0-0x0;var _0x240e82=_0x0f77[_0x39e1f0];return _0x240e82;};'use strict';var Sequelize=require('sequelize');var moment=require(_0x70f7('0x0'));module[_0x70f7('0x1')]={'type':{'type':Sequelize[_0x70f7('0x2')]},'uniqueid':{'type':Sequelize[_0x70f7('0x2')]},'calleridnum':{'type':Sequelize[_0x70f7('0x2')]},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0x70f7('0x2')]},'queuecallerjoinAt':{'type':Sequelize[_0x70f7('0x3')]},'queuecallerleaveAt':{'type':Sequelize['DATE'],'set':function(_0x2051bd){var _0xb109de=moment(_0x2051bd);var _0x4b4e0e=moment(this[_0x70f7('0x4')](_0x70f7('0x5')))[_0x70f7('0x6')](_0x70f7('0x7'));var _0x3b7547=_0xb109de[_0x70f7('0x8')](_0x4b4e0e,'seconds');this[_0x70f7('0x9')]('queuecallerleaveAt',_0x2051bd);this[_0x70f7('0x9')](_0x70f7('0xa'),_0x3b7547||null);}},'position':{'type':Sequelize[_0x70f7('0xb')]},'count':{'type':Sequelize[_0x70f7('0xb')]},'queuecallerabandon':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x70f7('0x3')]},'queuecallercomplete':{'type':Sequelize[_0x70f7('0xc')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x70f7('0x3')]},'queuecallerexit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize['DATE']},'queuecallerexitreason':{'type':Sequelize['STRING'],'comment':_0x70f7('0xd')},'originalposition':{'type':Sequelize['INTEGER']},'channel':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x70f7('0x2')]},'accountcode':{'type':Sequelize[_0x70f7('0x2')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x70f7('0x2')]},'priority':{'type':Sequelize[_0x70f7('0x2')]},'holdtime':{'type':Sequelize['INTEGER']},'mohtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x70f7('0xc')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x70f7('0x2')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize['STRING'],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize['STRING']},'transferuniqueid':{'type':Sequelize['STRING']},'disposition':{'type':Sequelize[_0x70f7('0x2')]},'secondDisposition':{'type':Sequelize[_0x70f7('0x2')]},'thirdDisposition':{'type':Sequelize[_0x70f7('0x2')]},'queuecallerenterreason':{'type':Sequelize[_0x70f7('0xb')],'defaultValue':0x0},'note':{'type':Sequelize[_0x70f7('0x2')]}};