101158d943547b89a7479b0d2250c5990335893b
[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 _0x0cbd=['GetCmHopperBlackIvr','Request','GetCmHopperBlack','VoiceQueueId','phone'];(function(_0x3bb9a0,_0x487264){var _0x4bda1b=function(_0x3317ca){while(--_0x3317ca){_0x3bb9a0['push'](_0x3bb9a0['shift']());}};_0x4bda1b(++_0x487264);}(_0x0cbd,0x196));var _0xd0cb=function(_0x12df8a,_0x2eef74){_0x12df8a=_0x12df8a-0x0;var _0x1fa694=_0x0cbd[_0x12df8a];return _0x1fa694;};'use strict';var client=require('../client');exports['checkIsBlackList']=function(_0x5af205){return function(){return client[_0xd0cb('0x0')](_0xd0cb('0x1'),{'options':{'where':{'VoiceQueueId':_0x5af205[_0xd0cb('0x2')],'phone':_0x5af205[_0xd0cb('0x3')]},'raw':![]},'log':_0xd0cb('0x1')});};};exports['checkIsBlackListIvr']=function(_0x47896b){return function(){return client[_0xd0cb('0x0')](_0xd0cb('0x1'),{'options':{'where':{'CampaignId':_0x47896b['CampaignId'],'phone':_0x47896b[_0xd0cb('0x3')]},'raw':![]},'log':_0xd0cb('0x4')});};};