Built motion from commit b0a9a629.|2.6.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 _0x8f18=['BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','exports','STRING','DATE','getDataValue','YYYY-MM-DD\x20HH:mm:ss','seconds','setDataValue','queuecallerleaveAt','INTEGER'];(function(_0x57f45a,_0x5736ff){var _0x1f6966=function(_0x458ea0){while(--_0x458ea0){_0x57f45a['push'](_0x57f45a['shift']());}};_0x1f6966(++_0x5736ff);}(_0x8f18,0x121));var _0x88f1=function(_0x2bf3c4,_0x3563fc){_0x2bf3c4=_0x2bf3c4-0x0;var _0x237c08=_0x8f18[_0x2bf3c4];return _0x237c08;};'use strict';var Sequelize=require(_0x88f1('0x0'));var moment=require('moment');module[_0x88f1('0x1')]={'type':{'type':Sequelize[_0x88f1('0x2')]},'uniqueid':{'type':Sequelize[_0x88f1('0x2')]},'calleridnum':{'type':Sequelize[_0x88f1('0x2')]},'calleridname':{'type':Sequelize[_0x88f1('0x2')]},'queue':{'type':Sequelize['STRING']},'queuecallerjoinAt':{'type':Sequelize[_0x88f1('0x3')]},'queuecallerleaveAt':{'type':Sequelize[_0x88f1('0x3')],'set':function(_0x4d61e6){var _0x45d218=moment(_0x4d61e6);var _0x19a20f=moment(this[_0x88f1('0x4')]('queuecallerjoinAt'))['format'](_0x88f1('0x5'));var _0x366acf=_0x45d218['diff'](_0x19a20f,_0x88f1('0x6'));this[_0x88f1('0x7')](_0x88f1('0x8'),_0x4d61e6);this['setDataValue']('holdtime',_0x366acf||null);}},'position':{'type':Sequelize['INTEGER']},'count':{'type':Sequelize[_0x88f1('0x9')]},'queuecallerabandon':{'type':Sequelize[_0x88f1('0xa')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize['DATE']},'queuecallercomplete':{'type':Sequelize[_0x88f1('0xa')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize['DATE']},'queuecallerexit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x88f1('0x3')]},'queuecallerexitreason':{'type':Sequelize[_0x88f1('0x2')],'comment':_0x88f1('0xb')},'originalposition':{'type':Sequelize['INTEGER']},'channel':{'type':Sequelize[_0x88f1('0x2')]},'connectedlinenum':{'type':Sequelize[_0x88f1('0x2')]},'connectedlinename':{'type':Sequelize[_0x88f1('0x2')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0x88f1('0x2')]},'exten':{'type':Sequelize[_0x88f1('0x2')]},'priority':{'type':Sequelize[_0x88f1('0x2')]},'holdtime':{'type':Sequelize[_0x88f1('0x9')]},'mohtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'assigned':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize['STRING']},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize['STRING'],'comment':_0x88f1('0xc')},'transferexten':{'type':Sequelize[_0x88f1('0x2')]},'transferuniqueid':{'type':Sequelize[_0x88f1('0x2')]},'disposition':{'type':Sequelize[_0x88f1('0x2')]},'secondDisposition':{'type':Sequelize[_0x88f1('0x2')]},'thirdDisposition':{'type':Sequelize[_0x88f1('0x2')]},'queuecallerenterreason':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'note':{'type':Sequelize['STRING']}};