Built motion from commit bab6f49e.|2.6.17
[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 _0x014b=['DATE','getDataValue','queuecallerjoinAt','format','seconds','setDataValue','queuecallerleaveAt','holdtime','INTEGER','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','FORWARD,\x20BLIND,\x20ATTENDED','moment','STRING'];(function(_0x51f593,_0x38d2ec){var _0x4ccfbf=function(_0x4267c8){while(--_0x4267c8){_0x51f593['push'](_0x51f593['shift']());}};_0x4ccfbf(++_0x38d2ec);}(_0x014b,0x1da));var _0xb014=function(_0x57613d,_0x360549){_0x57613d=_0x57613d-0x0;var _0x45bc2d=_0x014b[_0x57613d];return _0x45bc2d;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xb014('0x0'));module['exports']={'type':{'type':Sequelize[_0xb014('0x1')]},'uniqueid':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0xb014('0x1')]},'calleridname':{'type':Sequelize[_0xb014('0x1')]},'queue':{'type':Sequelize[_0xb014('0x1')]},'queuecallerjoinAt':{'type':Sequelize[_0xb014('0x2')]},'queuecallerleaveAt':{'type':Sequelize[_0xb014('0x2')],'set':function(_0x3d3b8d){var _0x200b8c=moment(_0x3d3b8d);var _0x188933=moment(this[_0xb014('0x3')](_0xb014('0x4')))[_0xb014('0x5')]('YYYY-MM-DD\x20HH:mm:ss');var _0x48c197=_0x200b8c['diff'](_0x188933,_0xb014('0x6'));this[_0xb014('0x7')](_0xb014('0x8'),_0x3d3b8d);this['setDataValue'](_0xb014('0x9'),_0x48c197||null);}},'position':{'type':Sequelize[_0xb014('0xa')]},'count':{'type':Sequelize['INTEGER']},'queuecallerabandon':{'type':Sequelize[_0xb014('0xb')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0xb014('0x2')]},'queuecallercomplete':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0xb014('0x2')]},'queuecallerexit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0xb014('0x2')]},'queuecallerexitreason':{'type':Sequelize[_0xb014('0x1')],'comment':_0xb014('0xc')},'originalposition':{'type':Sequelize['INTEGER']},'channel':{'type':Sequelize[_0xb014('0x1')]},'connectedlinenum':{'type':Sequelize[_0xb014('0x1')]},'connectedlinename':{'type':Sequelize[_0xb014('0x1')]},'accountcode':{'type':Sequelize[_0xb014('0x1')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0xb014('0x1')]},'priority':{'type':Sequelize[_0xb014('0x1')]},'holdtime':{'type':Sequelize[_0xb014('0xa')]},'mohtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'assigned':{'type':Sequelize[_0xb014('0xb')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0xb014('0x1')]},'transfer':{'type':Sequelize[_0xb014('0xb')],'defaultValue':![]},'transfertype':{'type':Sequelize['STRING'],'comment':_0xb014('0xd')},'transferexten':{'type':Sequelize[_0xb014('0x1')]},'transferuniqueid':{'type':Sequelize['STRING']},'disposition':{'type':Sequelize[_0xb014('0x1')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0xb014('0x1')]},'queuecallerenterreason':{'type':Sequelize[_0xb014('0xa')],'defaultValue':0x0},'note':{'type':Sequelize[_0xb014('0x1')]}};