d9fdf0458bf823f32cf421b2b9f52ee5f7ab3dbd
[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 _0x97c1=['dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','dialAMDMaximumWordLength','dialOrderByScheduledAt','dialPrefix','dialRandomLastDigitCallerIdNumber','Trunk','name','callerid','TrunkBackup','Interval','Intervals','interval','SquareProject','getCampaign','../client','getCampaigns','GetCampaign','active','limitCalls','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialBusyMaxRetry','dialBusyRetryFrequency','dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','dialNoSuchNumberRetryFrequency','dialDropRetryFrequency','dialAbandonedMaxRetry','dialAbandonedRetryFrequency','dialMachineMaxRetry','dialAgentRejectMaxRetry','dialAgentRejectRetryFrequency','dialTimezone','dialGlobalInterval','dialAMDActive','dialAMDGreeting'];(function(_0x45b73f,_0x2eeb2c){var _0x57434d=function(_0x107646){while(--_0x107646){_0x45b73f['push'](_0x45b73f['shift']());}};_0x57434d(++_0x2eeb2c);}(_0x97c1,0xdf));var _0x197c=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x97c1[_0x59ee6f];return _0x4c0979;};'use strict';var client=require(_0x197c('0x0'));exports[_0x197c('0x1')]=function(){return function(){return client['Request'](_0x197c('0x2'),{'options':{'raw':![],'attributes':['id','name','type',_0x197c('0x3'),_0x197c('0x4'),_0x197c('0x5'),_0x197c('0x6'),_0x197c('0x7'),'dialCongestionMaxRetry','dialCongestionRetryFrequency',_0x197c('0x8'),_0x197c('0x9'),_0x197c('0xa'),_0x197c('0xb'),'dialGlobalMaxRetry','dialNoSuchNumberMaxRetry',_0x197c('0xc'),'dialDropMaxRetry',_0x197c('0xd'),_0x197c('0xe'),_0x197c('0xf'),_0x197c('0x10'),'dialMachineRetryFrequency',_0x197c('0x11'),_0x197c('0x12'),_0x197c('0x13'),_0x197c('0x14'),_0x197c('0x15'),'dialAMDInitialSilence',_0x197c('0x16'),_0x197c('0x17'),_0x197c('0x18'),_0x197c('0x19'),'dialAMDBetweenWordsSilence',_0x197c('0x1a'),_0x197c('0x1b'),_0x197c('0x1c'),_0x197c('0x1d'),_0x197c('0x1e'),_0x197c('0x1f'),'dialCutDigit'],'include':[{'model':'Trunk','as':_0x197c('0x20'),'attributes':['id',_0x197c('0x21'),_0x197c('0x22'),_0x197c('0x3')]},{'model':_0x197c('0x20'),'as':_0x197c('0x23'),'attributes':['id',_0x197c('0x21'),_0x197c('0x22'),'active']},{'model':_0x197c('0x24'),'as':'Interval','attributes':['id','name'],'include':[{'model':_0x197c('0x24'),'as':_0x197c('0x25'),'attributes':['id',_0x197c('0x21'),_0x197c('0x26')]}]},{'model':'SquareProject','as':_0x197c('0x27'),'attributes':['id',_0x197c('0x21')]}]},'log':_0x197c('0x28')});};};