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