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