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