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