Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / 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 _0x00c2=['callerid','Interval','Intervals','interval','SquareProject','getCampaign','getCampaigns','Request','GetCampaign','name','type','active','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialCongestionMaxRetry','dialCongestionRetryFrequency','dialBusyMaxRetry','dialBusyRetryFrequency','dialNoAnswerMaxRetry','dialGlobalMaxRetry','dialNoSuchNumberMaxRetry','dialNoSuchNumberRetryFrequency','dialDropMaxRetry','dialAbandonedMaxRetry','dialAbandonedRetryFrequency','dialMachineMaxRetry','dialMachineRetryFrequency','dialAgentRejectRetryFrequency','dialAMDActive','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','dialAMDMaximumWordLength','dialOrderByScheduledAt','dialPrefix','dialCutDigit','Trunk'];(function(_0x4b7b62,_0x4920a9){var _0x2280df=function(_0x21e1f8){while(--_0x21e1f8){_0x4b7b62['push'](_0x4b7b62['shift']());}};_0x2280df(++_0x4920a9);}(_0x00c2,0x146));var _0x200c=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x00c2[_0x14add3];return _0x4a174f;};'use strict';var client=require('../client');exports[_0x200c('0x0')]=function(){return function(){return client[_0x200c('0x1')](_0x200c('0x2'),{'options':{'raw':![],'attributes':['id',_0x200c('0x3'),_0x200c('0x4'),_0x200c('0x5'),'limitCalls',_0x200c('0x6'),_0x200c('0x7'),_0x200c('0x8'),_0x200c('0x9'),_0x200c('0xa'),_0x200c('0xb'),_0x200c('0xc'),_0x200c('0xd'),'dialNoAnswerRetryFrequency',_0x200c('0xe'),_0x200c('0xf'),_0x200c('0x10'),_0x200c('0x11'),'dialDropRetryFrequency',_0x200c('0x12'),_0x200c('0x13'),_0x200c('0x14'),_0x200c('0x15'),'dialAgentRejectMaxRetry',_0x200c('0x16'),'dialTimezone','dialGlobalInterval',_0x200c('0x17'),'dialAMDInitialSilence','dialAMDGreeting',_0x200c('0x18'),_0x200c('0x19'),_0x200c('0x1a'),'dialAMDBetweenWordsSilence',_0x200c('0x1b'),_0x200c('0x1c'),_0x200c('0x1d'),_0x200c('0x1e'),_0x200c('0x1f'),'dialRandomLastDigitCallerIdNumber',_0x200c('0x20')],'include':[{'model':'Trunk','as':_0x200c('0x21'),'attributes':['id',_0x200c('0x3'),_0x200c('0x22'),'active']},{'model':_0x200c('0x21'),'as':'TrunkBackup','attributes':['id','name','callerid',_0x200c('0x5')]},{'model':_0x200c('0x23'),'as':_0x200c('0x23'),'attributes':['id',_0x200c('0x3')],'include':[{'model':_0x200c('0x23'),'as':_0x200c('0x24'),'attributes':['id',_0x200c('0x3'),_0x200c('0x25')]}]},{'model':_0x200c('0x26'),'as':_0x200c('0x26'),'attributes':['id','name']}]},'log':_0x200c('0x27')});};};