6d84c5571eeb1f57a6c10224bcb0c18905adfc4f
[motion2.git] / server / services / ami / model / campaign.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 _0xfc87=['dialAbandonedMaxRetry','dialAbandonedRetryFrequency','dialMachineMaxRetry','dialMachineRetryFrequency','dialAgentRejectRetryFrequency','dialOrderByScheduledAt','dialPrefix','dialRandomLastDigitCallerIdNumber','dialCutDigit','TrunkBackup','Trunk','Interval','SquareProject','dialAMDActive','dialAMDInitialSilence','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDBetweenWordsSilence','dialAMDSilenceThreshold','dialAMDMaximumWordLength','exports','name','type','campaign','originated','ivrAnswerCallsDay','ivrTotalCallsDays','message','sendMessageOneNotActive','active','limitCalls','dialTimezone','dialGlobalInterval','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialCongestionMaxRetry','dialCongestionRetryFrequency','dialBusyRetryFrequency','dialNoAnswerRetryFrequency','dialGlobalMaxRetry','dialNoSuchNumberRetryFrequency','dialDropMaxRetry','dialDropRetryFrequency'];(function(_0x4cf35e,_0x1c4fdf){var _0x201d0f=function(_0x6778ba){while(--_0x6778ba){_0x4cf35e['push'](_0x4cf35e['shift']());}};_0x201d0f(++_0x1c4fdf);}(_0xfc87,0x1ce));var _0x7fc8=function(_0x19ba48,_0x7d9a32){_0x19ba48=_0x19ba48-0x0;var _0x159d85=_0xfc87[_0x19ba48];return _0x159d85;};'use strict';function Campaign(_0x100578){this['id']=_0x100578['id']||0x0;this[_0x7fc8('0x0')]=_0x100578[_0x7fc8('0x0')]||'';this[_0x7fc8('0x1')]=_0x100578[_0x7fc8('0x1')]||_0x7fc8('0x2');this[_0x7fc8('0x3')]=0x0;this['temp']=0x0;this[_0x7fc8('0x4')]=0x0;this[_0x7fc8('0x5')]=0x0;this[_0x7fc8('0x6')]='';this[_0x7fc8('0x7')]=!![];this['active']=_0x100578[_0x7fc8('0x8')];this[_0x7fc8('0x9')]=_0x100578['limitCalls'];this[_0x7fc8('0xa')]=_0x100578[_0x7fc8('0xa')]||null;this[_0x7fc8('0xb')]=_0x100578[_0x7fc8('0xb')]?_0x100578[_0x7fc8('0xb')]:null;this[_0x7fc8('0xc')]=_0x100578[_0x7fc8('0xc')];this[_0x7fc8('0xd')]=_0x100578['dialOriginateCallerIdNumber'];this['dialOriginateTimeout']=_0x100578['dialOriginateTimeout']||0x1e;this[_0x7fc8('0xe')]=_0x100578[_0x7fc8('0xe')];this['dialCongestionRetryFrequency']=_0x100578[_0x7fc8('0xf')];this['dialBusyMaxRetry']=_0x100578['dialBusyMaxRetry'];this[_0x7fc8('0x10')]=_0x100578['dialBusyRetryFrequency'];this['dialNoAnswerMaxRetry']=_0x100578['dialNoAnswerMaxRetry'];this[_0x7fc8('0x11')]=_0x100578[_0x7fc8('0x11')];this[_0x7fc8('0x12')]=_0x100578['dialGlobalMaxRetry'];this['dialNoSuchNumberMaxRetry']=_0x100578['dialNoSuchNumberMaxRetry']||0x3;this[_0x7fc8('0x13')]=_0x100578[_0x7fc8('0x13')]||0x96;this[_0x7fc8('0x14')]=_0x100578[_0x7fc8('0x14')]||0x3;this['dialDropRetryFrequency']=_0x100578[_0x7fc8('0x15')]||0x96;this[_0x7fc8('0x16')]=_0x100578['dialAbandonedMaxRetry']||0x3;this['dialAbandonedRetryFrequency']=_0x100578[_0x7fc8('0x17')]||0x96;this[_0x7fc8('0x18')]=_0x100578[_0x7fc8('0x18')]||0x3;this['dialMachineRetryFrequency']=_0x100578[_0x7fc8('0x19')]||0x96;this['dialAgentRejectMaxRetry']=_0x100578['dialAgentRejectMaxRetry']||0x3;this[_0x7fc8('0x1a')]=_0x100578[_0x7fc8('0x1a')]||0x96;this['dialOrderByScheduledAt']=_0x100578[_0x7fc8('0x1b')]||'DESC';this['dialPrefix']=_0x100578[_0x7fc8('0x1c')]||undefined;this[_0x7fc8('0x1d')]=_0x100578[_0x7fc8('0x1d')]||undefined;this[_0x7fc8('0x1e')]=_0x100578[_0x7fc8('0x1e')]||undefined;this[_0x7fc8('0x1f')]=_0x100578[_0x7fc8('0x1f')]?_0x100578[_0x7fc8('0x1f')]:undefined;this[_0x7fc8('0x20')]=_0x100578[_0x7fc8('0x20')]?_0x100578[_0x7fc8('0x20')]:undefined;this[_0x7fc8('0x21')]=_0x100578['Interval']?_0x100578[_0x7fc8('0x21')]:undefined;this['SquareProject']=_0x100578[_0x7fc8('0x22')]?_0x100578[_0x7fc8('0x22')]:undefined;this['dialQueueProject']=_0x100578[_0x7fc8('0x22')]?_0x100578['SquareProject']['name']:undefined;this[_0x7fc8('0x23')]=_0x100578[_0x7fc8('0x23')]||![];this[_0x7fc8('0x24')]=_0x100578['dialAMDInitialSilence'];this['dialAMDGreeting']=_0x100578[_0x7fc8('0x25')];this['dialAMDAfterGreetingSilence']=_0x100578[_0x7fc8('0x26')];this[_0x7fc8('0x27')]=_0x100578[_0x7fc8('0x27')];this['dialAMDMinWordLength']=_0x100578['dialAMDMinWordLength'];this[_0x7fc8('0x28')]=_0x100578[_0x7fc8('0x28')];this['dialAMDMaximumNumberOfWords']=_0x100578['dialAMDMaximumNumberOfWords'];this['dialAMDSilenceThreshold']=_0x100578[_0x7fc8('0x29')];this[_0x7fc8('0x2a')]=_0x100578['dialAMDMaximumWordLength'];}module[_0x7fc8('0x2b')]=Campaign;