c8552b370dca5f26e71cb02a0eef2952bcb4892a
[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 _0xd7fb=['setDataValue','queuecallerleaveAt','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','INTEGER','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','moment','exports','STRING','DATE','getDataValue','queuecallerjoinAt','format','YYYY-MM-DD\x20HH:mm:ss','diff','seconds'];(function(_0x37cbb8,_0x180ad2){var _0x50378f=function(_0x312285){while(--_0x312285){_0x37cbb8['push'](_0x37cbb8['shift']());}};_0x50378f(++_0x180ad2);}(_0xd7fb,0xc1));var _0xbd7f=function(_0x2d9989,_0x1211f5){_0x2d9989=_0x2d9989-0x0;var _0x3b18db=_0xd7fb[_0x2d9989];return _0x3b18db;};'use strict';var Sequelize=require(_0xbd7f('0x0'));var moment=require(_0xbd7f('0x1'));module[_0xbd7f('0x2')]={'type':{'type':Sequelize[_0xbd7f('0x3')]},'uniqueid':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0xbd7f('0x3')]},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize['STRING']},'queuecallerjoinAt':{'type':Sequelize['DATE']},'queuecallerleaveAt':{'type':Sequelize[_0xbd7f('0x4')],'set':function(_0x3c78d5){var _0x470371=moment(_0x3c78d5);var _0x33d04b=moment(this[_0xbd7f('0x5')](_0xbd7f('0x6')))[_0xbd7f('0x7')](_0xbd7f('0x8'));var _0x5b0eea=_0x470371[_0xbd7f('0x9')](_0x33d04b,_0xbd7f('0xa'));this[_0xbd7f('0xb')](_0xbd7f('0xc'),_0x3c78d5);this[_0xbd7f('0xb')]('holdtime',_0x5b0eea||null);}},'position':{'type':Sequelize['INTEGER']},'count':{'type':Sequelize['INTEGER']},'queuecallerabandon':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0xbd7f('0x4')]},'queuecallercomplete':{'type':Sequelize[_0xbd7f('0xd')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0xbd7f('0x4')]},'queuecallerexit':{'type':Sequelize[_0xbd7f('0xd')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0xbd7f('0x4')]},'queuecallerexitreason':{'type':Sequelize['STRING'],'comment':_0xbd7f('0xe')},'originalposition':{'type':Sequelize[_0xbd7f('0xf')]},'channel':{'type':Sequelize[_0xbd7f('0x3')]},'connectedlinenum':{'type':Sequelize[_0xbd7f('0x3')]},'connectedlinename':{'type':Sequelize[_0xbd7f('0x3')]},'accountcode':{'type':Sequelize[_0xbd7f('0x3')]},'context':{'type':Sequelize[_0xbd7f('0x3')]},'exten':{'type':Sequelize[_0xbd7f('0x3')]},'priority':{'type':Sequelize[_0xbd7f('0x3')]},'holdtime':{'type':Sequelize[_0xbd7f('0xf')]},'mohtime':{'type':Sequelize[_0xbd7f('0xf')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0xbd7f('0xd')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0xbd7f('0x3')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize[_0xbd7f('0x3')],'comment':_0xbd7f('0x10')},'transferexten':{'type':Sequelize[_0xbd7f('0x3')]},'transferuniqueid':{'type':Sequelize[_0xbd7f('0x3')]},'disposition':{'type':Sequelize[_0xbd7f('0x3')]},'secondDisposition':{'type':Sequelize[_0xbd7f('0x3')]},'thirdDisposition':{'type':Sequelize['STRING']},'queuecallerenterreason':{'type':Sequelize[_0xbd7f('0xf')],'defaultValue':0x0},'note':{'type':Sequelize[_0xbd7f('0x3')]}};