194a707071bb10999d25ceb814767b42d49ae046
[motion2.git] / server / api / campaign / campaign.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 _0x1f74=['onlyIfOpen','#AMD\x20Initial\x20Silence','#AMD\x20Greeting','#AMD\x20After\x20Greeting\x20Silence','#AMD\x20Min\x20Word\x20Length','#AMD\x20Between\x20Words\x20Silence','#AMD\x20Maximum\x20Number\x20Of\x20Words','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','#AMD\x20Maximum\x20Word\x20Length','DESC','Cut\x20Digit\x20(min:1,\x20max:15)','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','#Drop\x20Retry\x20(min:1,\x20max:999)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Machine\x20Retry\x20(min:1,\x20max:999)','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','sequelize','STRING','name','ENUM','ivr','BOOLEAN','INTEGER','UNSIGNED','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Busy\x20Retry\x20(min:1,\x20max:999)','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','07:00-22:00,*,*,*','always','never'];(function(_0x9dbbdb,_0x17d677){var _0x9dcf45=function(_0x119ae7){while(--_0x119ae7){_0x9dbbdb['push'](_0x9dbbdb['shift']());}};_0x9dcf45(++_0x17d677);}(_0x1f74,0x1df));var _0x41f7=function(_0x87e0dc,_0x577dce){_0x87e0dc=_0x87e0dc-0x0;var _0x2cd2d1=_0x1f74[_0x87e0dc];return _0x2cd2d1;};'use strict';var Sequelize=require(_0x41f7('0x0'));module['exports']={'name':{'type':Sequelize[_0x41f7('0x1')],'unique':_0x41f7('0x2'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize[_0x41f7('0x3')](_0x41f7('0x4')),'allowNull':![],'defaultValue':'ivr'},'description':{'type':Sequelize[_0x41f7('0x1')]},'active':{'type':Sequelize[_0x41f7('0x5')],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'limitCalls':{'type':Sequelize['INTEGER'](0x4)['UNSIGNED'],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':'Max\x20200\x20calls.'},'dialOriginateCallerIdName':{'type':Sequelize[_0x41f7('0x1')]},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x41f7('0x1')]},'dialOriginateTimeout':{'type':Sequelize[_0x41f7('0x6')](0x3)[_0x41f7('0x7')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':'Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'},'dialCongestionMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x41f7('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Congestion\x20Retry\x20(min:1,\x20max:999)'},'dialCongestionRetryFrequency':{'type':Sequelize[_0x41f7('0x6')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x41f7('0x8')},'dialBusyMaxRetry':{'type':Sequelize[_0x41f7('0x6')](0x3)[_0x41f7('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x41f7('0x9')},'dialBusyRetryFrequency':{'type':Sequelize['INTEGER'](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x41f7('0xa')},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x41f7('0x6')](0x3)[_0x41f7('0x7')],'defaultValue':0x3,'comment':_0x41f7('0xb')},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x41f7('0x6')](0x5)[_0x41f7('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialGlobalMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x41f7('0x7')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x41f7('0xc')},'dialTimezone':{'type':Sequelize[_0x41f7('0x1')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0x41f7('0x1')],'defaultValue':_0x41f7('0xd')},'dialCheckDuplicateType':{'type':Sequelize[_0x41f7('0x3')](_0x41f7('0xe'),_0x41f7('0xf'),_0x41f7('0x10')),'defaultValue':_0x41f7('0xe')},'dialAMDActive':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':'Active/Disactive\x20AMD'},'dialAMDInitialSilence':{'type':Sequelize[_0x41f7('0x6')](0x9)[_0x41f7('0x7')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0x41f7('0x11')},'dialAMDGreeting':{'type':Sequelize[_0x41f7('0x6')](0x9)['UNSIGNED'],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x41f7('0x12')},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0x41f7('0x6')](0x9)[_0x41f7('0x7')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x41f7('0x13')},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0x41f7('0x6')](0x9)[_0x41f7('0x7')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Total\x20Analysis\x20Time'},'dialAMDMinWordLength':{'type':Sequelize[_0x41f7('0x6')](0x9)[_0x41f7('0x7')],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0x41f7('0x14')},'dialAMDBetweenWordsSilence':{'type':Sequelize['INTEGER'](0x9)[_0x41f7('0x7')],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x41f7('0x15')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x41f7('0x6')](0x9)[_0x41f7('0x7')],'defaultValue':0x3,'validate':{'min':0x0},'comment':_0x41f7('0x16')},'dialAMDSilenceThreshold':{'type':Sequelize[_0x41f7('0x6')](0x5)[_0x41f7('0x7')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x41f7('0x17')},'dialAMDMaximumWordLength':{'type':Sequelize[_0x41f7('0x6')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x41f7('0x18')},'dialOrderByScheduledAt':{'type':Sequelize[_0x41f7('0x3')]('DESC','ASC'),'defaultValue':_0x41f7('0x19')},'dialPrefix':{'type':Sequelize[_0x41f7('0x1')],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x41f7('0x6')](0x3)[_0x41f7('0x7')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Random\x20Last\x20Digit\x20(min:1,\x20max:15)'},'dialCutDigit':{'type':Sequelize[_0x41f7('0x6')](0x3)['UNSIGNED'],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x41f7('0x1a')},'dialNoSuchNumberMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x41f7('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x41f7('0x1b')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0x41f7('0x6')](0x5)[_0x41f7('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialDropMaxRetry':{'type':Sequelize[_0x41f7('0x6')](0x3)[_0x41f7('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x41f7('0x1c')},'dialDropRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x41f7('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialAbandonedMaxRetry':{'type':Sequelize[_0x41f7('0x6')](0x3)[_0x41f7('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x41f7('0x1d')},'dialAbandonedRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x41f7('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x41f7('0x1e')},'dialMachineMaxRetry':{'type':Sequelize[_0x41f7('0x6')](0x3)[_0x41f7('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x41f7('0x1f')},'dialMachineRetryFrequency':{'type':Sequelize[_0x41f7('0x6')](0x5)[_0x41f7('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x41f7('0x20')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x41f7('0x6')](0x3)[_0x41f7('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#AgentReject\x20Retry\x20(min:1,\x20max:999)'},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x41f7('0x6')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'}};