f631941519ec3dad85be9347a4b837ce403921a6
[motion2.git] / server / api / cmHopper / cmHopper.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 _0x28a1=['moment','sequelize','exports','STRING','BOOLEAN','format','INTEGER','DATE','UNSIGNED','contactListQueue'];(function(_0x3bdb62,_0x15155d){var _0x368f60=function(_0x2fbdcc){while(--_0x2fbdcc){_0x3bdb62['push'](_0x3bdb62['shift']());}};_0x368f60(++_0x15155d);}(_0x28a1,0x19a));var _0x128a=function(_0x36ed48,_0x1ee0d4){_0x36ed48=_0x36ed48-0x0;var _0x51c63a=_0x28a1[_0x36ed48];return _0x51c63a;};'use strict';var moment=require(_0x128a('0x0'));var Sequelize=require(_0x128a('0x1'));module[_0x128a('0x2')]={'phone':{'type':Sequelize[_0x128a('0x3')],'allowNull':![]},'active':{'type':Sequelize[_0x128a('0x4')],'defaultValue':![]},'scheduledat':{'type':Sequelize['DATE'],'defaultValue':moment()[_0x128a('0x5')]('YYYY-MM-DD\x20HH:mm:ss')},'countbusyretry':{'type':Sequelize[_0x128a('0x6')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x128a('0x6')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x128a('0x6')],'defaultValue':0x0},'callback':{'type':Sequelize[_0x128a('0x4')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x128a('0x3')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x128a('0x7')]},'priority':{'type':Sequelize['INTEGER'](0x2)[_0x128a('0x8')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'ContactId':{'type':Sequelize['INTEGER'],'unique':_0x128a('0x9')},'ListId':{'type':Sequelize[_0x128a('0x6')],'unique':'contactListQueue'},'UserId':{'type':Sequelize[_0x128a('0x6')]},'VoiceQueueId':{'type':Sequelize[_0x128a('0x6')],'unique':_0x128a('0x9')},'CampaignId':{'type':Sequelize[_0x128a('0x6')]},'countnosuchnumberretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x128a('0x6')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x128a('0x6')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x128a('0x6')],'defaultValue':0x0},'OrderBy':{'type':Sequelize[_0x128a('0x6')],'allowNull':!![],'defaultValue':0x0},'dialTimezone':{'type':Sequelize[_0x128a('0x3')]},'recallmeNotifiedDate':{'type':Sequelize[_0x128a('0x7')],'allowNull':!![],'defaultValue':null}};