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