1d177213c857fc00129703834b5ee4ddd79c4f7c
[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 _0xdb94=['Contact','phone','CampaignId','../client','checkIsBlackList','Request','GetCmHopperBlack'];(function(_0x398f02,_0x3393a0){var _0x19039f=function(_0x2945d0){while(--_0x2945d0){_0x398f02['push'](_0x398f02['shift']());}};_0x19039f(++_0x3393a0);}(_0xdb94,0xab));var _0x4db9=function(_0x3a7713,_0x1adb4d){_0x3a7713=_0x3a7713-0x0;var _0x4acc13=_0xdb94[_0x3a7713];return _0x4acc13;};'use strict';var client=require(_0x4db9('0x0'));exports[_0x4db9('0x1')]=function(_0xd9669b){return function(){return client[_0x4db9('0x2')](_0x4db9('0x3'),{'options':{'where':{'VoiceQueueId':_0xd9669b['VoiceQueueId'],'phone':_0xd9669b[_0x4db9('0x4')][_0x4db9('0x5')]},'raw':![]},'log':'GetCmHopperBlack'});};};exports['checkIsBlackListIvr']=function(_0x209f80){return function(){return client['Request']('GetCmHopperBlack',{'options':{'where':{'CampaignId':_0x209f80[_0x4db9('0x6')],'phone':_0x209f80['Contact'][_0x4db9('0x5')]},'raw':![]},'log':'GetCmHopperBlackIvr'});};};