376e248db0313ef4de80e677dda0fefdef5c1d2d
[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 _0xed3c=['Request','VoiceQueueId','Contact','phone','GetCmHopperBlack','CampaignId','../client','checkIsBlackList'];(function(_0x705da6,_0x5d688c){var _0x59a2e3=function(_0x1fc4c9){while(--_0x1fc4c9){_0x705da6['push'](_0x705da6['shift']());}};_0x59a2e3(++_0x5d688c);}(_0xed3c,0x1a6));var _0xced3=function(_0x21b0ef,_0x2bec64){_0x21b0ef=_0x21b0ef-0x0;var _0x135500=_0xed3c[_0x21b0ef];return _0x135500;};'use strict';var client=require(_0xced3('0x0'));exports[_0xced3('0x1')]=function(_0xa7adca){return function(){return client[_0xced3('0x2')]('GetCmHopperBlack',{'options':{'where':{'VoiceQueueId':_0xa7adca[_0xced3('0x3')],'phone':_0xa7adca[_0xced3('0x4')][_0xced3('0x5')]},'raw':![]},'log':'GetCmHopperBlack'});};};exports['checkIsBlackListIvr']=function(_0x3d3aa0){return function(){return client[_0xced3('0x2')](_0xced3('0x6'),{'options':{'where':{'CampaignId':_0x3d3aa0[_0xced3('0x7')],'phone':_0x3d3aa0['Contact']['phone']},'raw':![]},'log':'GetCmHopperBlackIvr'});};};