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