Built motion from commit (unavailable).|2.3.96
[motion2.git] / server / api / voiceQueue / voiceQueue.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 _0x865b=['never','onlyIfOpen','Active/Disactive\x20AMD','#AMD\x20After\x20Greeting\x20Silence','#AMD\x20Total\x20Analysis\x20Time','#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','#RecallMe\x20Timeout\x20(min:1)','Active/Disactive\x20Recall\x20In\x20Queue','DESC','ASC','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','Cut\x20Digit\x20(min:1,\x20max:15)','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','ENUM','inbound','outbound','STRING','default','ringall','leastrecent','fewestcalls','random','linear','setDataValue','strategy','rrmemory','getDataValue','type','dialMethod','booked','roundrobin','progressive','predictive','power','INTEGER','yes','all','join','periodic_announce','joinempty','split','leavewhenempty','BOOLEAN','acw','wrapuptime','Active/Disactive\x20Campaign','Dial\x20Method.','UNSIGNED','Max\x209999\x20channels,\x200\x20means\x20unlimited.','Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.','Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).','agentBusyFactor','dropRate','Only\x20for\x20predictive\x20method.','FLOAT','Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)','Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','tTxX','https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,<project_name>)','#Congestion\x20Retry\x20(min:1,\x20max:999)','#Busy\x20Retry\x20(min:1,\x20max:999)','#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'];(function(_0x2652ef,_0x234230){var _0x2db578=function(_0x56b137){while(--_0x56b137){_0x2652ef['push'](_0x2652ef['shift']());}};_0x2db578(++_0x234230);}(_0x865b,0xae));var _0xb865=function(_0xf3e0bb,_0x242698){_0xf3e0bb=_0xf3e0bb-0x0;var _0x3c5130=_0x865b[_0xf3e0bb];return _0x3c5130;};'use strict';var Sequelize=require(_0xb865('0x0'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9\.\_]+$/i}},'type':{'type':Sequelize[_0xb865('0x1')](_0xb865('0x2'),_0xb865('0x3')),'allowNull':![],'defaultValue':'inbound'},'musiconhold':{'type':Sequelize[_0xb865('0x4')],'defaultValue':_0xb865('0x5')},'announce':{'type':Sequelize[_0xb865('0x4')],'defaultValue':''},'strategy':{'type':Sequelize[_0xb865('0x1')]('rr',_0xb865('0x6'),_0xb865('0x7'),_0xb865('0x8'),_0xb865('0x9'),'rrmemory',_0xb865('0xa'),'wrandom','rrordered'),'allowNull':![],'defaultValue':_0xb865('0x6'),'set':function(_0x472264){this[_0xb865('0xb')](_0xb865('0xc'),_0x472264?_0x472264:_0xb865('0xd'));},'get':function(){var _0x46d979=this[_0xb865('0xe')](_0xb865('0xf'));var _0x3facca=this[_0xb865('0xe')](_0xb865('0x10'));var _0xa37fa8=this[_0xb865('0xe')](_0xb865('0xc'));if(_0x46d979===_0xb865('0x2')){return _0xa37fa8;}if(_0x3facca===_0xb865('0x11')&&_0xa37fa8===_0xb865('0xd')||_0x3facca===_0xb865('0x11')&&_0xa37fa8===_0xb865('0x12')){return _0xa37fa8;}if(_0x3facca===_0xb865('0x13')||_0x3facca===_0xb865('0x14')||_0x3facca===_0xb865('0x15')){return _0xa37fa8;}return null;}},'servicelevel':{'type':Sequelize[_0xb865('0x16')](0xb),'defaultValue':0x0},'context':{'type':Sequelize[_0xb865('0x4')],'defaultValue':null},'penaltymemberslimit':{'type':Sequelize[_0xb865('0x16')](0xb)},'timeout':{'type':Sequelize[_0xb865('0x16')](0xb),'defaultValue':0xf},'retry':{'type':Sequelize[_0xb865('0x16')](0xb),'defaultValue':0x2},'timeoutpriority':{'type':Sequelize[_0xb865('0x4')]},'weight':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':Sequelize[_0xb865('0x16')](0xb),'defaultValue':0x0},'autofill':{'type':Sequelize[_0xb865('0x1')]('yes','no'),'defaultValue':_0xb865('0x17')},'autopause':{'type':Sequelize['ENUM'](_0xb865('0x17'),'no',_0xb865('0x18')),'defaultValue':'no'},'autopausedelay':{'type':Sequelize[_0xb865('0x16')](0xb)},'autopausebusy':{'type':Sequelize['ENUM'](_0xb865('0x17'),'no'),'defaultValue':'no'},'autopauseunavail':{'type':Sequelize[_0xb865('0x1')](_0xb865('0x17'),'no'),'defaultValue':'no'},'maxlen':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'setinterfacevar':{'type':Sequelize[_0xb865('0x1')](_0xb865('0x17'),'no'),'defaultValue':'no'},'setqueueentryvar':{'type':Sequelize[_0xb865('0x1')](_0xb865('0x17'),'no'),'defautValue':'no'},'setqueuevar':{'type':Sequelize[_0xb865('0x1')]('yes','no'),'defaultValue':'no'},'eventmemberstatus':{'type':Sequelize[_0xb865('0x1')](_0xb865('0x17'),'no'),'defaultValue':'no'},'membermacro':{'type':Sequelize[_0xb865('0x4')],'allowNull':!![]},'membergosub':{'type':Sequelize[_0xb865('0x4')],'allowNull':!![]},'announce_frequency':{'type':Sequelize[_0xb865('0x16')](0xb),'defaultValue':0x0},'min_announce_frequency':{'type':Sequelize[_0xb865('0x16')](0xb),'defaultValue':0x0},'periodic_announce_frequency':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'random_periodic_announce':{'type':Sequelize['ENUM'](_0xb865('0x17'),'no'),'defaultValue':'no'},'relative_periodic_announce':{'type':Sequelize[_0xb865('0x1')]('yes','no'),'defaultValue':_0xb865('0x17')},'announce_holdtime':{'type':Sequelize[_0xb865('0x1')](_0xb865('0x17'),'no','once'),'defaultValue':'no'},'announce_position':{'type':Sequelize['STRING'],'defaultValue':'no'},'announce_to_first_user':{'type':Sequelize['ENUM'](_0xb865('0x17'),'no')},'announce_position_limit':{'type':Sequelize['INTEGER'](0xb)},'announce_round_seconds':{'type':Sequelize[_0xb865('0x1')]('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':Sequelize[_0xb865('0x4')],'defaultValue':''},'monitor_type':{'type':Sequelize['STRING']},'queue_youarenext':{'type':Sequelize[_0xb865('0x4')],'defaultValue':null},'queue_thereare':{'type':Sequelize['STRING'],'defaultValue':null},'queue_callswaiting':{'type':Sequelize[_0xb865('0x4')],'defaultValue':null},'queue_holdtime':{'type':Sequelize[_0xb865('0x4')],'defaultValue':null},'queue_minute':{'type':Sequelize[_0xb865('0x4')],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':Sequelize[_0xb865('0x4')],'defaultValue':null},'queue_seconds':{'type':Sequelize['STRING'],'defaultValue':null},'queue_thankyou':{'type':Sequelize[_0xb865('0x4')],'defaultValue':null},'queue_reporthold':{'type':Sequelize['STRING']},'queue_quantity1':{'type':Sequelize['STRING']},'queue_quantity2':{'type':Sequelize[_0xb865('0x4')]},'queue_periodic_announce':{'type':Sequelize[_0xb865('0x4')]},'queue_less_than':{'type':Sequelize[_0xb865('0x4')]},'periodic_announce':{'type':Sequelize['TEXT'],'set':function(_0x1a325a){this[_0xb865('0xb')]('periodic_announce',_0x1a325a?_0x1a325a[_0xb865('0x19')](','):[]);},'get':function(){return this[_0xb865('0xe')](_0xb865('0x1a'))?this['getDataValue'](_0xb865('0x1a'))['split'](','):[];}},'joinempty':{'type':Sequelize[_0xb865('0x4')],'defaultValue':_0xb865('0x17'),'set':function(_0x213e38){this[_0xb865('0xb')](_0xb865('0x1b'),_0x213e38?_0x213e38[_0xb865('0x19')](','):[]);},'get':function(){return this[_0xb865('0xe')](_0xb865('0x1b'))?this[_0xb865('0xe')](_0xb865('0x1b'))[_0xb865('0x1c')](','):[];}},'leavewhenempty':{'type':Sequelize[_0xb865('0x4')],'defaultValue':'no','set':function(_0x2a2e0c){this['setDataValue'](_0xb865('0x1d'),_0x2a2e0c?_0x2a2e0c['join'](','):[]);},'get':function(){return this[_0xb865('0xe')](_0xb865('0x1d'))?this[_0xb865('0xe')](_0xb865('0x1d'))[_0xb865('0x1c')](','):[];}},'reportholdtime':{'type':Sequelize['ENUM'](_0xb865('0x17'),'no'),'defaultValue':'no'},'ringinuse':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no'},'memberdelay':{'type':Sequelize[_0xb865('0x16')](0xb),'defaultValue':0x0},'timeoutrestart':{'type':Sequelize[_0xb865('0x1')](_0xb865('0x17'),'no'),'defaultValue':'no'},'defaultrule':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0xb865('0x4')]},'acw':{'type':Sequelize[_0xb865('0x1e')],'defaultValue':0x0,'set':function(_0x271ef9){this[_0xb865('0xb')](_0xb865('0x1f'),_0x271ef9);if(_0x271ef9){if(this[_0xb865('0xe')](_0xb865('0x20'))<0x2){this[_0xb865('0xb')]('wrapuptime',0x2);}}}},'acwTimeout':{'type':Sequelize[_0xb865('0x16')](0xb),'defaultValue':0xa},'dialActive':{'type':Sequelize[_0xb865('0x1e')],'defaultValue':0x0,'comment':_0xb865('0x21')},'dialMethod':{'type':Sequelize[_0xb865('0x1')]('preview',_0xb865('0x13'),_0xb865('0x15'),_0xb865('0x14'),'booked'),'defaultValue':_0xb865('0x13'),'comment':_0xb865('0x22')},'dialLimitChannel':{'type':Sequelize[_0xb865('0x16')](0x4)[_0xb865('0x23')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0xb865('0x24')},'dialLimitQueue':{'type':Sequelize['INTEGER'](0x4)[_0xb865('0x23')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0xb865('0x25')},'dialPowerLevel':{'type':Sequelize['FLOAT'](0x2)['UNSIGNED'],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':_0xb865('0x26')},'dialPredictiveOptimization':{'type':Sequelize[_0xb865('0x1')](_0xb865('0x27'),_0xb865('0x28')),'defaultValue':_0xb865('0x28'),'comment':_0xb865('0x29')},'dialPredictiveOptimizationPercentage':{'type':Sequelize[_0xb865('0x2a')](0x2)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':_0xb865('0x2b')},'dialPredictiveInterval':{'type':Sequelize[_0xb865('0x16')](0x3)[_0xb865('0x23')],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':_0xb865('0x2c')},'dialOriginateCallerIdName':{'type':Sequelize[_0xb865('0x4')]},'dialOriginateCallerIdNumber':{'type':Sequelize[_0xb865('0x4')]},'dialOriginateTimeout':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb865('0x2d')},'dialQueueOptions':{'type':Sequelize[_0xb865('0x4')],'defaultValue':_0xb865('0x2e'),'comment':_0xb865('0x2f')},'dialQueueTimeout':{'type':Sequelize[_0xb865('0x16')](0x3)[_0xb865('0x23')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb865('0x30')},'dialQueueProject':{'type':Sequelize['STRING'],'comment':_0xb865('0x31')},'dialCongestionMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0xb865('0x23')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb865('0x32')},'dialCongestionRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0xb865('0x23')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialBusyMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0xb865('0x23')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb865('0x33')},'dialBusyRetryFrequency':{'type':Sequelize[_0xb865('0x16')](0x5)[_0xb865('0x23')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':Sequelize[_0xb865('0x16')](0x3)[_0xb865('0x23')],'defaultValue':0x3,'comment':_0xb865('0x34')},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0xb865('0x16')](0x5)[_0xb865('0x23')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xb865('0x35')},'dialGlobalMaxRetry':{'type':Sequelize[_0xb865('0x16')](0x3)['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0xb865('0x36')},'dialTimezone':{'type':Sequelize['STRING'],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0xb865('0x4')],'defaultValue':_0xb865('0x37')},'dialPrefix':{'type':Sequelize['STRING'],'defaultValue':null},'dialCheckDuplicateType':{'type':Sequelize['ENUM'](_0xb865('0x38'),_0xb865('0x39'),_0xb865('0x3a')),'defaultValue':'always'},'dialAMDActive':{'type':Sequelize[_0xb865('0x1e')],'defaultValue':0x0,'comment':_0xb865('0x3b')},'dialAMDInitialSilence':{'type':Sequelize[_0xb865('0x16')](0x9)['UNSIGNED'],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':Sequelize[_0xb865('0x16')](0x9)[_0xb865('0x23')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':'#AMD\x20Greeting'},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0xb865('0x16')](0x9)[_0xb865('0x23')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0xb865('0x3c')},'dialAMDTotalAnalysisTime':{'type':Sequelize['INTEGER'](0x9)[_0xb865('0x23')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0xb865('0x3d')},'dialAMDMinWordLength':{'type':Sequelize[_0xb865('0x16')](0x9)[_0xb865('0x23')],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0xb865('0x3e')},'dialAMDBetweenWordsSilence':{'type':Sequelize['INTEGER'](0x9)[_0xb865('0x23')],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0xb865('0x3f')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0xb865('0x16')](0x9)[_0xb865('0x23')],'defaultValue':0x3,'validate':{'min':0x0},'comment':_0xb865('0x40')},'dialAMDSilenceThreshold':{'type':Sequelize['INTEGER'](0x5)[_0xb865('0x23')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0xb865('0x41')},'dialAMDMaximumWordLength':{'type':Sequelize[_0xb865('0x16')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0xb865('0x42')},'dialRecallMeTimeout':{'type':Sequelize['INTEGER'](0x5)['UNSIGNED'],'validate':{'min':0x1},'defaultValue':0x1e,'comment':_0xb865('0x43')},'dialRecallInQueue':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0xb865('0x44')},'dialOrderByScheduledAt':{'type':Sequelize[_0xb865('0x1')](_0xb865('0x45'),_0xb865('0x46')),'defaultValue':'DESC'},'dialQueueProject2':{'type':Sequelize[_0xb865('0x4')],'comment':_0xb865('0x31')},'dialAgiAfterHangupClient':{'type':Sequelize[_0xb865('0x1e')],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':Sequelize[_0xb865('0x1e')],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize['INTEGER'](0x3)[_0xb865('0x23')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0xb865('0x47')},'dialCutDigit':{'type':Sequelize[_0xb865('0x16')](0x3)[_0xb865('0x23')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0xb865('0x48')},'mandatoryDispositionPauseId':{'type':Sequelize[_0xb865('0x16')],'allowNull':!![],'comment':_0xb865('0x49')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0xb865('0x4a'),'set':function(_0x42a3de){if(!_0x42a3de)this[_0xb865('0xb')](_0xb865('0x4b'),null);this['setDataValue'](_0xb865('0x4c'),_0x42a3de);}}};