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