5a98b217fe4404d4253e56baa8656faaa7da7f74
[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 _0x6cb4=['checkIsBlackList','Request','GetCmHopperBlack','VoiceQueueId','Contact','phone','GetCmHopperBlackIvr','../client'];(function(_0x4241eb,_0x19517d){var _0x5564e0=function(_0x5db4ac){while(--_0x5db4ac){_0x4241eb['push'](_0x4241eb['shift']());}};_0x5564e0(++_0x19517d);}(_0x6cb4,0xff));var _0x46cb=function(_0x1cb0f2,_0x41a912){_0x1cb0f2=_0x1cb0f2-0x0;var _0x3e6247=_0x6cb4[_0x1cb0f2];return _0x3e6247;};'use strict';var client=require(_0x46cb('0x0'));exports[_0x46cb('0x1')]=function(_0x205a8d){return function(){return client[_0x46cb('0x2')](_0x46cb('0x3'),{'options':{'where':{'VoiceQueueId':_0x205a8d[_0x46cb('0x4')],'phone':_0x205a8d[_0x46cb('0x5')][_0x46cb('0x6')]},'raw':![]},'log':_0x46cb('0x3')});};};exports['checkIsBlackListIvr']=function(_0x1a3fe4){return function(){return client['Request'](_0x46cb('0x3'),{'options':{'where':{'CampaignId':_0x1a3fe4['CampaignId'],'phone':_0x1a3fe4[_0x46cb('0x5')][_0x46cb('0x6')]},'raw':![]},'log':_0x46cb('0x7')});};};