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