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