Built motion from commit e6806ed6.|2.6.0
[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 _0xea06=['dialAgentRejectRetryFrequency','dialOrderByScheduledAt','dialPrefix','dialRandomLastDigitCallerIdNumber','dialCutDigit','TrunkBackup','Trunk','Interval','SquareProject','dialQueueProject','dialAMDActive','dialAMDInitialSilence','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','exports','name','type','campaign','ivrAnswerCallsDay','ivrTotalCallsDays','message','sendMessageOneNotActive','active','limitCalls','dialTimezone','dialGlobalInterval','dialOriginateCallerIdNumber','dialOriginateTimeout','dialCongestionMaxRetry','dialCongestionRetryFrequency','dialBusyMaxRetry','dialBusyRetryFrequency','dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','dialGlobalMaxRetry','dialNoSuchNumberMaxRetry','dialNoSuchNumberRetryFrequency','dialDropMaxRetry','dialDropRetryFrequency','dialAbandonedMaxRetry','dialAbandonedRetryFrequency','dialMachineMaxRetry','dialMachineRetryFrequency','dialAgentRejectMaxRetry'];(function(_0x3bdde1,_0x1122e9){var _0x3cc806=function(_0x14178f){while(--_0x14178f){_0x3bdde1['push'](_0x3bdde1['shift']());}};_0x3cc806(++_0x1122e9);}(_0xea06,0xd8));var _0x6ea0=function(_0xe355b0,_0x227265){_0xe355b0=_0xe355b0-0x0;var _0xcef12=_0xea06[_0xe355b0];return _0xcef12;};'use strict';function Campaign(_0x40913e){this['id']=_0x40913e['id']||0x0;this[_0x6ea0('0x0')]=_0x40913e[_0x6ea0('0x0')]||'';this[_0x6ea0('0x1')]=_0x40913e[_0x6ea0('0x1')]||_0x6ea0('0x2');this['originated']=0x0;this['temp']=0x0;this[_0x6ea0('0x3')]=0x0;this[_0x6ea0('0x4')]=0x0;this[_0x6ea0('0x5')]='';this[_0x6ea0('0x6')]=!![];this[_0x6ea0('0x7')]=_0x40913e[_0x6ea0('0x7')];this['limitCalls']=_0x40913e[_0x6ea0('0x8')];this[_0x6ea0('0x9')]=_0x40913e[_0x6ea0('0x9')]||null;this[_0x6ea0('0xa')]=_0x40913e[_0x6ea0('0xa')]?_0x40913e[_0x6ea0('0xa')]:null;this['dialOriginateCallerIdName']=_0x40913e['dialOriginateCallerIdName'];this[_0x6ea0('0xb')]=_0x40913e[_0x6ea0('0xb')];this[_0x6ea0('0xc')]=_0x40913e[_0x6ea0('0xc')]||0x1e;this[_0x6ea0('0xd')]=_0x40913e[_0x6ea0('0xd')];this['dialCongestionRetryFrequency']=_0x40913e[_0x6ea0('0xe')];this[_0x6ea0('0xf')]=_0x40913e[_0x6ea0('0xf')];this['dialBusyRetryFrequency']=_0x40913e[_0x6ea0('0x10')];this[_0x6ea0('0x11')]=_0x40913e[_0x6ea0('0x11')];this[_0x6ea0('0x12')]=_0x40913e[_0x6ea0('0x12')];this[_0x6ea0('0x13')]=_0x40913e['dialGlobalMaxRetry'];this[_0x6ea0('0x14')]=_0x40913e[_0x6ea0('0x14')]||0x3;this[_0x6ea0('0x15')]=_0x40913e['dialNoSuchNumberRetryFrequency']||0x96;this[_0x6ea0('0x16')]=_0x40913e['dialDropMaxRetry']||0x3;this[_0x6ea0('0x17')]=_0x40913e['dialDropRetryFrequency']||0x96;this[_0x6ea0('0x18')]=_0x40913e[_0x6ea0('0x18')]||0x3;this[_0x6ea0('0x19')]=_0x40913e[_0x6ea0('0x19')]||0x96;this[_0x6ea0('0x1a')]=_0x40913e[_0x6ea0('0x1a')]||0x3;this[_0x6ea0('0x1b')]=_0x40913e[_0x6ea0('0x1b')]||0x96;this[_0x6ea0('0x1c')]=_0x40913e[_0x6ea0('0x1c')]||0x3;this[_0x6ea0('0x1d')]=_0x40913e[_0x6ea0('0x1d')]||0x96;this[_0x6ea0('0x1e')]=_0x40913e[_0x6ea0('0x1e')]||'DESC';this['dialPrefix']=_0x40913e[_0x6ea0('0x1f')]||undefined;this[_0x6ea0('0x20')]=_0x40913e['dialRandomLastDigitCallerIdNumber']||undefined;this[_0x6ea0('0x21')]=_0x40913e[_0x6ea0('0x21')]||undefined;this[_0x6ea0('0x22')]=_0x40913e['TrunkBackup']?_0x40913e[_0x6ea0('0x22')]:undefined;this[_0x6ea0('0x23')]=_0x40913e[_0x6ea0('0x23')]?_0x40913e[_0x6ea0('0x23')]:undefined;this[_0x6ea0('0x24')]=_0x40913e[_0x6ea0('0x24')]?_0x40913e[_0x6ea0('0x24')]:undefined;this[_0x6ea0('0x25')]=_0x40913e[_0x6ea0('0x25')]?_0x40913e[_0x6ea0('0x25')]:undefined;this[_0x6ea0('0x26')]=_0x40913e[_0x6ea0('0x25')]?_0x40913e[_0x6ea0('0x25')]['name']:undefined;this[_0x6ea0('0x27')]=_0x40913e[_0x6ea0('0x27')]||![];this[_0x6ea0('0x28')]=_0x40913e[_0x6ea0('0x28')];this['dialAMDGreeting']=_0x40913e[_0x6ea0('0x29')];this[_0x6ea0('0x2a')]=_0x40913e['dialAMDAfterGreetingSilence'];this[_0x6ea0('0x2b')]=_0x40913e[_0x6ea0('0x2b')];this[_0x6ea0('0x2c')]=_0x40913e[_0x6ea0('0x2c')];this[_0x6ea0('0x2d')]=_0x40913e['dialAMDBetweenWordsSilence'];this[_0x6ea0('0x2e')]=_0x40913e['dialAMDMaximumNumberOfWords'];this[_0x6ea0('0x2f')]=_0x40913e[_0x6ea0('0x2f')];this['dialAMDMaximumWordLength']=_0x40913e['dialAMDMaximumWordLength'];}module[_0x6ea0('0x30')]=Campaign;