Built motion from commit (unavailable).|2.4.21
[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 _0xbaf0=['dialOriginateTimeout','dialCongestionMaxRetry','dialCongestionRetryFrequency','dialBusyRetryFrequency','dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','dialGlobalMaxRetry','dialOrderByScheduledAt','DESC','dialPrefix','dialCutDigit','TrunkBackup','Trunk','Interval','SquareProject','dialAMDActive','dialAMDInitialSilence','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDBetweenWordsSilence','dialAMDSilenceThreshold','dialAMDMaximumWordLength','exports','name','type','campaign','originated','ivrAnswerCallsDay','ivrTotalCallsDays','message','sendMessageOneNotActive','active','limitCalls','dialTimezone','dialGlobalInterval','dialOriginateCallerIdName','dialOriginateCallerIdNumber'];(function(_0x5f51ec,_0x1b359b){var _0x2ca232=function(_0x1c95d2){while(--_0x1c95d2){_0x5f51ec['push'](_0x5f51ec['shift']());}};_0x2ca232(++_0x1b359b);}(_0xbaf0,0x12a));var _0x0baf=function(_0x2f5ac5,_0x1ee939){_0x2f5ac5=_0x2f5ac5-0x0;var _0x37c9a8=_0xbaf0[_0x2f5ac5];return _0x37c9a8;};'use strict';function Campaign(_0x61caa9){this['id']=_0x61caa9['id']||0x0;this[_0x0baf('0x0')]=_0x61caa9[_0x0baf('0x0')]||'';this[_0x0baf('0x1')]=_0x61caa9[_0x0baf('0x1')]||_0x0baf('0x2');this[_0x0baf('0x3')]=0x0;this['temp']=0x0;this[_0x0baf('0x4')]=0x0;this[_0x0baf('0x5')]=0x0;this[_0x0baf('0x6')]='';this[_0x0baf('0x7')]=!![];this[_0x0baf('0x8')]=_0x61caa9[_0x0baf('0x8')];this[_0x0baf('0x9')]=_0x61caa9[_0x0baf('0x9')];this[_0x0baf('0xa')]=_0x61caa9['dialTimezone']||null;this[_0x0baf('0xb')]=_0x61caa9['dialGlobalInterval']?_0x61caa9[_0x0baf('0xb')]:null;this[_0x0baf('0xc')]=_0x61caa9[_0x0baf('0xc')];this[_0x0baf('0xd')]=_0x61caa9[_0x0baf('0xd')];this[_0x0baf('0xe')]=_0x61caa9[_0x0baf('0xe')]||0x1e;this[_0x0baf('0xf')]=_0x61caa9[_0x0baf('0xf')];this[_0x0baf('0x10')]=_0x61caa9[_0x0baf('0x10')];this['dialBusyMaxRetry']=_0x61caa9['dialBusyMaxRetry'];this[_0x0baf('0x11')]=_0x61caa9[_0x0baf('0x11')];this[_0x0baf('0x12')]=_0x61caa9[_0x0baf('0x12')];this['dialNoAnswerRetryFrequency']=_0x61caa9[_0x0baf('0x13')];this['dialGlobalMaxRetry']=_0x61caa9[_0x0baf('0x14')];this[_0x0baf('0x15')]=_0x61caa9[_0x0baf('0x15')]||_0x0baf('0x16');this[_0x0baf('0x17')]=_0x61caa9[_0x0baf('0x17')]||undefined;this['dialRandomLastDigitCallerIdNumber']=_0x61caa9['dialRandomLastDigitCallerIdNumber']||undefined;this[_0x0baf('0x18')]=_0x61caa9[_0x0baf('0x18')]||undefined;this[_0x0baf('0x19')]=_0x61caa9[_0x0baf('0x19')]?_0x61caa9[_0x0baf('0x19')]:undefined;this[_0x0baf('0x1a')]=_0x61caa9['Trunk']?_0x61caa9[_0x0baf('0x1a')]:undefined;this[_0x0baf('0x1b')]=_0x61caa9[_0x0baf('0x1b')]?_0x61caa9[_0x0baf('0x1b')]:undefined;this[_0x0baf('0x1c')]=_0x61caa9[_0x0baf('0x1c')]?_0x61caa9['SquareProject']:undefined;this['dialQueueProject']=_0x61caa9[_0x0baf('0x1c')]?_0x61caa9[_0x0baf('0x1c')][_0x0baf('0x0')]:undefined;this[_0x0baf('0x1d')]=_0x61caa9[_0x0baf('0x1d')]||![];this[_0x0baf('0x1e')]=_0x61caa9[_0x0baf('0x1e')];this[_0x0baf('0x1f')]=_0x61caa9[_0x0baf('0x1f')];this[_0x0baf('0x20')]=_0x61caa9['dialAMDAfterGreetingSilence'];this[_0x0baf('0x21')]=_0x61caa9['dialAMDTotalAnalysisTime'];this[_0x0baf('0x22')]=_0x61caa9['dialAMDMinWordLength'];this['dialAMDBetweenWordsSilence']=_0x61caa9[_0x0baf('0x23')];this['dialAMDMaximumNumberOfWords']=_0x61caa9['dialAMDMaximumNumberOfWords'];this[_0x0baf('0x24')]=_0x61caa9[_0x0baf('0x24')];this[_0x0baf('0x25')]=_0x61caa9[_0x0baf('0x25')];}module[_0x0baf('0x26')]=Campaign;