1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x8910=['format','YYYY-MM-DD\x20HH:mm:ss','INTEGER','UNSIGNED','contactListQueue','moment','sequelize','exports','STRING','DATE'];(function(_0x3ef634,_0x53da7a){var _0x4edca7=function(_0x495877){while(--_0x495877){_0x3ef634['push'](_0x3ef634['shift']());}};_0x4edca7(++_0x53da7a);}(_0x8910,0x1ef));var _0x0891=function(_0x272156,_0x5e4b0d){_0x272156=_0x272156-0x0;var _0x1071d0=_0x8910[_0x272156];return _0x1071d0;};'use strict';var moment=require(_0x0891('0x0'));var Sequelize=require(_0x0891('0x1'));module[_0x0891('0x2')]={'phone':{'type':Sequelize[_0x0891('0x3')],'allowNull':![]},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'scheduledat':{'type':Sequelize[_0x0891('0x4')],'defaultValue':moment()[_0x0891('0x5')](_0x0891('0x6'))},'countbusyretry':{'type':Sequelize[_0x0891('0x7')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x0891('0x7')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x0891('0x7')],'defaultValue':0x0},'callback':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x0891('0x3')],'defaultValue':null},'callbackat':{'type':Sequelize['DATE']},'priority':{'type':Sequelize['INTEGER'](0x2)[_0x0891('0x8')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'ContactId':{'type':Sequelize[_0x0891('0x7')],'unique':_0x0891('0x9')},'ListId':{'type':Sequelize[_0x0891('0x7')],'unique':_0x0891('0x9')},'UserId':{'type':Sequelize[_0x0891('0x7')]},'VoiceQueueId':{'type':Sequelize[_0x0891('0x7')],'unique':_0x0891('0x9')},'CampaignId':{'type':Sequelize[_0x0891('0x7')]}};