ea7f6e68e51abcef3136b19602d57c843e3451a3
[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 _0xb458=['GetCmHopperBlack','CampaignId','GetCmHopperBlackIvr','../client','checkIsBlackList','VoiceQueueId','Contact','phone'];(function(_0x3c8a87,_0x5f3399){var _0x18f306=function(_0x45043e){while(--_0x45043e){_0x3c8a87['push'](_0x3c8a87['shift']());}};_0x18f306(++_0x5f3399);}(_0xb458,0x103));var _0x8b45=function(_0xf458be,_0x1cf158){_0xf458be=_0xf458be-0x0;var _0x52b318=_0xb458[_0xf458be];return _0x52b318;};'use strict';var client=require(_0x8b45('0x0'));exports[_0x8b45('0x1')]=function(_0x4544e3){return function(){return client['Request']('GetCmHopperBlack',{'options':{'where':{'VoiceQueueId':_0x4544e3[_0x8b45('0x2')],'phone':_0x4544e3[_0x8b45('0x3')][_0x8b45('0x4')]},'raw':![]},'log':_0x8b45('0x5')});};};exports['checkIsBlackListIvr']=function(_0x333bc7){return function(){return client['Request']('GetCmHopperBlack',{'options':{'where':{'CampaignId':_0x333bc7[_0x8b45('0x6')],'phone':_0x333bc7[_0x8b45('0x3')][_0x8b45('0x4')]},'raw':![]},'log':_0x8b45('0x7')});};};