Built motion from commit 5ba5b610.|2.5.33
[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 _0x1bfe=['INTEGER','BOOLEAN','DATE','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','STRING','getDataValue','queuecallerjoinAt','format','YYYY-MM-DD\x20HH:mm:ss','seconds','setDataValue','queuecallerleaveAt'];(function(_0x5c3ae9,_0x450f9a){var _0x3f5950=function(_0x594c1f){while(--_0x594c1f){_0x5c3ae9['push'](_0x5c3ae9['shift']());}};_0x3f5950(++_0x450f9a);}(_0x1bfe,0xad));var _0xe1bf=function(_0x6131cd,_0x4c26a1){_0x6131cd=_0x6131cd-0x0;var _0x47e916=_0x1bfe[_0x6131cd];return _0x47e916;};'use strict';var Sequelize=require(_0xe1bf('0x0'));var moment=require('moment');module['exports']={'type':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0xe1bf('0x1')]},'calleridname':{'type':Sequelize[_0xe1bf('0x1')]},'queue':{'type':Sequelize[_0xe1bf('0x1')]},'queuecallerjoinAt':{'type':Sequelize['DATE']},'queuecallerleaveAt':{'type':Sequelize['DATE'],'set':function(_0x1699ee){var _0x2ac805=moment(_0x1699ee);var _0x28dbe6=moment(this[_0xe1bf('0x2')](_0xe1bf('0x3')))[_0xe1bf('0x4')](_0xe1bf('0x5'));var _0x3dc9e4=_0x2ac805['diff'](_0x28dbe6,_0xe1bf('0x6'));this[_0xe1bf('0x7')](_0xe1bf('0x8'),_0x1699ee);this['setDataValue']('holdtime',_0x3dc9e4||null);}},'position':{'type':Sequelize[_0xe1bf('0x9')]},'count':{'type':Sequelize[_0xe1bf('0x9')]},'queuecallerabandon':{'type':Sequelize[_0xe1bf('0xa')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0xe1bf('0xb')]},'queuecallercomplete':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize['DATE']},'queuecallerexit':{'type':Sequelize[_0xe1bf('0xa')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize['DATE']},'queuecallerexitreason':{'type':Sequelize[_0xe1bf('0x1')],'comment':_0xe1bf('0xc')},'originalposition':{'type':Sequelize[_0xe1bf('0x9')]},'channel':{'type':Sequelize[_0xe1bf('0x1')]},'connectedlinenum':{'type':Sequelize[_0xe1bf('0x1')]},'connectedlinename':{'type':Sequelize[_0xe1bf('0x1')]},'accountcode':{'type':Sequelize[_0xe1bf('0x1')]},'context':{'type':Sequelize[_0xe1bf('0x1')]},'exten':{'type':Sequelize[_0xe1bf('0x1')]},'priority':{'type':Sequelize[_0xe1bf('0x1')]},'holdtime':{'type':Sequelize[_0xe1bf('0x9')]},'mohtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'assigned':{'type':Sequelize[_0xe1bf('0xa')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0xe1bf('0x1')]},'transfer':{'type':Sequelize[_0xe1bf('0xa')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0xe1bf('0x1')],'comment':_0xe1bf('0xd')},'transferexten':{'type':Sequelize[_0xe1bf('0x1')]},'transferuniqueid':{'type':Sequelize['STRING']},'disposition':{'type':Sequelize[_0xe1bf('0x1')]},'secondDisposition':{'type':Sequelize[_0xe1bf('0x1')]},'thirdDisposition':{'type':Sequelize[_0xe1bf('0x1')]},'queuecallerenterreason':{'type':Sequelize[_0xe1bf('0x9')],'defaultValue':0x0}};