Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / services / ami / rpc / cmHopperBlack.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 _0x0e85=['Request','GetCmHopperBlack','CampaignId','phone','GetCmHopperBlackIvr','../client','checkIsBlackList'];(function(_0x3e46d8,_0xb5ef62){var _0x1199fd=function(_0x14ef03){while(--_0x14ef03){_0x3e46d8['push'](_0x3e46d8['shift']());}};_0x1199fd(++_0xb5ef62);}(_0x0e85,0x7c));var _0x50e8=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x0e85[_0x59ee6f];return _0x4c0979;};'use strict';var client=require(_0x50e8('0x0'));exports[_0x50e8('0x1')]=function(_0x5a568b){return function(){return client[_0x50e8('0x2')](_0x50e8('0x3'),{'options':{'where':{'VoiceQueueId':_0x5a568b['VoiceQueueId'],'phone':_0x5a568b['Contact']['phone']},'raw':![]},'log':_0x50e8('0x3')});};};exports['checkIsBlackListIvr']=function(_0x3048e3){return function(){return client[_0x50e8('0x2')](_0x50e8('0x3'),{'options':{'where':{'CampaignId':_0x3048e3[_0x50e8('0x4')],'phone':_0x3048e3['Contact'][_0x50e8('0x5')]},'raw':![]},'log':_0x50e8('0x6')});};};