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