Built motion from commit 53172ac8.|2.6.30
[motion2.git] / server / api / campaign / campaign.attributes.js
index c02f565..28e7202 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc26f=['#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)','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','sequelize','exports','name','ivr','STRING','BOOLEAN','INTEGER','UNSIGNED','Max\x20200\x20calls.','#Congestion\x20Retry\x20(min:1,\x20max:999)','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','ENUM','always','onlyIfOpen','Active/Disactive\x20AMD','#AMD\x20Initial\x20Silence','#AMD\x20After\x20Greeting\x20Silence','#AMD\x20Total\x20Analysis\x20Time','#AMD\x20Min\x20Word\x20Length','#AMD\x20Maximum\x20Number\x20Of\x20Words','#AMD\x20Maximum\x20Word\x20Length','DESC','ASC','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','Cut\x20Digit\x20(min:1,\x20max:15)','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','#Drop\x20Retry\x20(min:1,\x20max:999)','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'];(function(_0x28efcb,_0x976815){var _0x9fcee8=function(_0x46bd8a){while(--_0x46bd8a){_0x28efcb['push'](_0x28efcb['shift']());}};_0x9fcee8(++_0x976815);}(_0xc26f,0xdd));var _0xfc26=function(_0x2c7618,_0x26be9c){_0x2c7618=_0x2c7618-0x0;var _0x5ce3f0=_0xc26f[_0x2c7618];return _0x5ce3f0;};'use strict';var Sequelize=require(_0xfc26('0x0'));module[_0xfc26('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0xfc26('0x2'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize['ENUM']('ivr'),'allowNull':![],'defaultValue':_0xfc26('0x3')},'description':{'type':Sequelize[_0xfc26('0x4')]},'active':{'type':Sequelize[_0xfc26('0x5')],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'limitCalls':{'type':Sequelize[_0xfc26('0x6')](0x4)[_0xfc26('0x7')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':_0xfc26('0x8')},'dialOriginateCallerIdName':{'type':Sequelize['STRING']},'dialOriginateCallerIdNumber':{'type':Sequelize[_0xfc26('0x4')]},'dialOriginateTimeout':{'type':Sequelize[_0xfc26('0x6')](0x3)[_0xfc26('0x7')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':'Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'},'dialCongestionMaxRetry':{'type':Sequelize[_0xfc26('0x6')](0x3)[_0xfc26('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xfc26('0x9')},'dialCongestionRetryFrequency':{'type':Sequelize['INTEGER'](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xfc26('0xa')},'dialBusyMaxRetry':{'type':Sequelize[_0xfc26('0x6')](0x3)[_0xfc26('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Busy\x20Retry\x20(min:1,\x20max:999)'},'dialBusyRetryFrequency':{'type':Sequelize[_0xfc26('0x6')](0x5)[_0xfc26('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':Sequelize[_0xfc26('0x6')](0x3)['UNSIGNED'],'defaultValue':0x3,'comment':_0xfc26('0xb')},'dialNoAnswerRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0xfc26('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xfc26('0xc')},'dialGlobalMaxRetry':{'type':Sequelize[_0xfc26('0x6')](0x3)[_0xfc26('0x7')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0xfc26('0xd')},'dialTimezone':{'type':Sequelize[_0xfc26('0x4')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0xfc26('0x4')],'defaultValue':'07:00-22:00,*,*,*'},'dialCheckDuplicateType':{'type':Sequelize[_0xfc26('0xe')](_0xfc26('0xf'),'never',_0xfc26('0x10')),'defaultValue':_0xfc26('0xf')},'dialAMDActive':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0xfc26('0x11')},'dialAMDInitialSilence':{'type':Sequelize[_0xfc26('0x6')](0x9)['UNSIGNED'],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0xfc26('0x12')},'dialAMDGreeting':{'type':Sequelize[_0xfc26('0x6')](0x9)[_0xfc26('0x7')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':'#AMD\x20Greeting'},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0xfc26('0x6')](0x9)[_0xfc26('0x7')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0xfc26('0x13')},'dialAMDTotalAnalysisTime':{'type':Sequelize['INTEGER'](0x9)[_0xfc26('0x7')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0xfc26('0x14')},'dialAMDMinWordLength':{'type':Sequelize[_0xfc26('0x6')](0x9)[_0xfc26('0x7')],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0xfc26('0x15')},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0xfc26('0x6')](0x9)[_0xfc26('0x7')],'defaultValue':0x32,'validate':{'min':0x0},'comment':'#AMD\x20Between\x20Words\x20Silence'},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0xfc26('0x6')](0x9)[_0xfc26('0x7')],'defaultValue':0x3,'validate':{'min':0x0},'comment':_0xfc26('0x16')},'dialAMDSilenceThreshold':{'type':Sequelize[_0xfc26('0x6')](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'},'dialAMDMaximumWordLength':{'type':Sequelize['INTEGER'](0x9)[_0xfc26('0x7')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0xfc26('0x17')},'dialOrderByScheduledAt':{'type':Sequelize[_0xfc26('0xe')](_0xfc26('0x18'),_0xfc26('0x19')),'defaultValue':_0xfc26('0x18')},'dialPrefix':{'type':Sequelize[_0xfc26('0x4')],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0xfc26('0x6')](0x3)[_0xfc26('0x7')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0xfc26('0x1a')},'dialCutDigit':{'type':Sequelize['INTEGER'](0x3)[_0xfc26('0x7')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0xfc26('0x1b')},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0xfc26('0x6')](0x3)[_0xfc26('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xfc26('0x1c')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0xfc26('0x6')](0x5)[_0xfc26('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialDropMaxRetry':{'type':Sequelize[_0xfc26('0x6')](0x3)[_0xfc26('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xfc26('0x1d')},'dialDropRetryFrequency':{'type':Sequelize[_0xfc26('0x6')](0x5)[_0xfc26('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xfc26('0x1e')},'dialAbandonedMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0xfc26('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xfc26('0x1f')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0xfc26('0x6')](0x5)[_0xfc26('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xfc26('0x20')},'dialMachineMaxRetry':{'type':Sequelize[_0xfc26('0x6')](0x3)[_0xfc26('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xfc26('0x21')},'dialMachineRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0xfc26('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xfc26('0x22')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0xfc26('0x6')](0x3)[_0xfc26('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#AgentReject\x20Retry\x20(min:1,\x20max:999)'},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0xfc26('0x6')](0x5)[_0xfc26('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xfc26('0x23')}};
\ No newline at end of file
+var _0x4ffa=['Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','#Busy\x20Retry\x20(min:1,\x20max:999)','07:00-22:00,*,*,*','always','never','Active/Disactive\x20AMD','#AMD\x20Initial\x20Silence','#AMD\x20Greeting','#AMD\x20After\x20Greeting\x20Silence','#AMD\x20Between\x20Words\x20Silence','#AMD\x20Maximum\x20Word\x20Length','DESC','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','Cut\x20Digit\x20(min:1,\x20max:15)','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#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)','#AgentReject\x20Retry\x20(min:1,\x20max:999)','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','STRING','ENUM','ivr','BOOLEAN','Active/Disactive\x20Campaign','UNSIGNED','Max\x20200\x20calls.','INTEGER'];(function(_0x1f4674,_0x146085){var _0x3e7f42=function(_0x4bd366){while(--_0x4bd366){_0x1f4674['push'](_0x1f4674['shift']());}};_0x3e7f42(++_0x146085);}(_0x4ffa,0x124));var _0xa4ff=function(_0x1cc8fe,_0x105328){_0x1cc8fe=_0x1cc8fe-0x0;var _0x230054=_0x4ffa[_0x1cc8fe];return _0x230054;};'use strict';var Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0xa4ff('0x0')],'unique':'name','allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize[_0xa4ff('0x1')](_0xa4ff('0x2')),'allowNull':![],'defaultValue':_0xa4ff('0x2')},'description':{'type':Sequelize[_0xa4ff('0x0')]},'active':{'type':Sequelize[_0xa4ff('0x3')],'defaultValue':0x0,'comment':_0xa4ff('0x4')},'limitCalls':{'type':Sequelize['INTEGER'](0x4)[_0xa4ff('0x5')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':_0xa4ff('0x6')},'dialOriginateCallerIdName':{'type':Sequelize[_0xa4ff('0x0')]},'dialOriginateCallerIdNumber':{'type':Sequelize['STRING']},'dialOriginateTimeout':{'type':Sequelize[_0xa4ff('0x7')](0x3)['UNSIGNED'],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0xa4ff('0x8')},'dialCongestionMaxRetry':{'type':Sequelize[_0xa4ff('0x7')](0x3)[_0xa4ff('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Congestion\x20Retry\x20(min:1,\x20max:999)'},'dialCongestionRetryFrequency':{'type':Sequelize[_0xa4ff('0x7')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialBusyMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0xa4ff('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xa4ff('0x9')},'dialBusyRetryFrequency':{'type':Sequelize[_0xa4ff('0x7')](0x5)[_0xa4ff('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':Sequelize[_0xa4ff('0x7')](0x3)[_0xa4ff('0x5')],'defaultValue':0x3,'comment':'#NoAnswer\x20Retry\x20(min:1,\x20max:999)'},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0xa4ff('0x7')](0x5)[_0xa4ff('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialGlobalMaxRetry':{'type':Sequelize[_0xa4ff('0x7')](0x3)[_0xa4ff('0x5')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':'#Global\x20Max\x20Retry\x20(min:1,\x20max:999)'},'dialTimezone':{'type':Sequelize[_0xa4ff('0x0')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize['STRING'],'defaultValue':_0xa4ff('0xa')},'dialCheckDuplicateType':{'type':Sequelize['ENUM'](_0xa4ff('0xb'),_0xa4ff('0xc'),'onlyIfOpen'),'defaultValue':_0xa4ff('0xb')},'dialAMDActive':{'type':Sequelize[_0xa4ff('0x3')],'defaultValue':0x0,'comment':_0xa4ff('0xd')},'dialAMDInitialSilence':{'type':Sequelize[_0xa4ff('0x7')](0x9)[_0xa4ff('0x5')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0xa4ff('0xe')},'dialAMDGreeting':{'type':Sequelize['INTEGER'](0x9)[_0xa4ff('0x5')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0xa4ff('0xf')},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0xa4ff('0x7')](0x9)['UNSIGNED'],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0xa4ff('0x10')},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0xa4ff('0x7')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Total\x20Analysis\x20Time'},'dialAMDMinWordLength':{'type':Sequelize[_0xa4ff('0x7')](0x9)['UNSIGNED'],'defaultValue':0x64,'validate':{'min':0x0},'comment':'#AMD\x20Min\x20Word\x20Length'},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0xa4ff('0x7')](0x9)[_0xa4ff('0x5')],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0xa4ff('0x11')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0xa4ff('0x7')](0x9)[_0xa4ff('0x5')],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':Sequelize[_0xa4ff('0x7')](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'},'dialAMDMaximumWordLength':{'type':Sequelize[_0xa4ff('0x7')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0xa4ff('0x12')},'dialOrderByScheduledAt':{'type':Sequelize['ENUM'](_0xa4ff('0x13'),'ASC'),'defaultValue':'DESC'},'dialPrefix':{'type':Sequelize[_0xa4ff('0x0')],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0xa4ff('0x7')](0x3)[_0xa4ff('0x5')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0xa4ff('0x14')},'dialCutDigit':{'type':Sequelize['INTEGER'](0x3)[_0xa4ff('0x5')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0xa4ff('0x15')},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0xa4ff('0x7')](0x3)[_0xa4ff('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xa4ff('0x16')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0xa4ff('0x7')](0x5)[_0xa4ff('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialDropMaxRetry':{'type':Sequelize[_0xa4ff('0x7')](0x3)[_0xa4ff('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Drop\x20Retry\x20(min:1,\x20max:999)'},'dialDropRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0xa4ff('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xa4ff('0x17')},'dialAbandonedMaxRetry':{'type':Sequelize[_0xa4ff('0x7')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xa4ff('0x18')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0xa4ff('0x7')](0x5)[_0xa4ff('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xa4ff('0x19')},'dialMachineMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0xa4ff('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xa4ff('0x1a')},'dialMachineRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0xa4ff('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xa4ff('0x1b')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0xa4ff('0x7')](0x3)[_0xa4ff('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xa4ff('0x1c')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0xa4ff('0x7')](0x5)[_0xa4ff('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xa4ff('0x1d')}};
\ No newline at end of file