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