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