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