Built motion from commit (unavailable).|2.5.0
[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 _0xbaf0=['dialAMDInitialSilence','dialAMDGreeting','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords','dialAMDSilenceThreshold','dialAMDMaximumWordLength','dialOrderByScheduledAt','dialCutDigit','Trunk','TrunkBackup','callerid','Interval','Intervals','interval','SquareProject','getCampaigns','Request','GetCampaign','name','type','active','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialCongestionMaxRetry','dialCongestionRetryFrequency','dialBusyMaxRetry','dialBusyRetryFrequency','dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','dialTimezone','dialAMDActive'];(function(_0x332005,_0x15ac21){var _0x10febe=function(_0x3933b7){while(--_0x3933b7){_0x332005['push'](_0x332005['shift']());}};_0x10febe(++_0x15ac21);}(_0xbaf0,0x12a));var _0x0baf=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0xbaf0[_0x2b4411];return _0x8e41ef;};'use strict';var client=require('../client');exports[_0x0baf('0x0')]=function(){return function(){return client[_0x0baf('0x1')](_0x0baf('0x2'),{'options':{'raw':![],'attributes':['id',_0x0baf('0x3'),_0x0baf('0x4'),_0x0baf('0x5'),'limitCalls',_0x0baf('0x6'),_0x0baf('0x7'),_0x0baf('0x8'),_0x0baf('0x9'),_0x0baf('0xa'),_0x0baf('0xb'),_0x0baf('0xc'),_0x0baf('0xd'),_0x0baf('0xe'),'dialGlobalMaxRetry',_0x0baf('0xf'),'dialGlobalInterval',_0x0baf('0x10'),_0x0baf('0x11'),_0x0baf('0x12'),_0x0baf('0x13'),_0x0baf('0x14'),_0x0baf('0x15'),_0x0baf('0x16'),_0x0baf('0x17'),_0x0baf('0x18'),_0x0baf('0x19'),_0x0baf('0x1a'),'dialPrefix','dialRandomLastDigitCallerIdNumber',_0x0baf('0x1b')],'include':[{'model':_0x0baf('0x1c'),'as':_0x0baf('0x1c'),'attributes':['id',_0x0baf('0x3'),'callerid',_0x0baf('0x5')]},{'model':'Trunk','as':_0x0baf('0x1d'),'attributes':['id',_0x0baf('0x3'),_0x0baf('0x1e'),_0x0baf('0x5')]},{'model':_0x0baf('0x1f'),'as':_0x0baf('0x1f'),'attributes':['id','name'],'include':[{'model':'Interval','as':_0x0baf('0x20'),'attributes':['id',_0x0baf('0x3'),_0x0baf('0x21')]}]},{'model':_0x0baf('0x22'),'as':_0x0baf('0x22'),'attributes':['id',_0x0baf('0x3')]}]},'log':'getCampaign'});};};