3df0bd7b3f71bc0a46a1ba313688268fb48099c0
[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 _0xb821=['Request','CampaignId','Contact','phone','GetCmHopperBlackIvr','checkIsBlackList','VoiceQueueId','GetCmHopperBlack','checkIsBlackListIvr'];(function(_0x360b60,_0x42b46a){var _0x49da30=function(_0xe3eb28){while(--_0xe3eb28){_0x360b60['push'](_0x360b60['shift']());}};_0x49da30(++_0x42b46a);}(_0xb821,0xa7));var _0x1b82=function(_0x1f092a,_0x569c78){_0x1f092a=_0x1f092a-0x0;var _0x4cb929=_0xb821[_0x1f092a];return _0x4cb929;};'use strict';var client=require('../client');exports[_0x1b82('0x0')]=function(_0x4f6190){return function(){return client['Request']('GetCmHopperBlack',{'options':{'where':{'VoiceQueueId':_0x4f6190[_0x1b82('0x1')],'phone':_0x4f6190['Contact']['phone']},'raw':![]},'log':_0x1b82('0x2')});};};exports[_0x1b82('0x3')]=function(_0x3fadf0){return function(){return client[_0x1b82('0x4')]('GetCmHopperBlack',{'options':{'where':{'CampaignId':_0x3fadf0[_0x1b82('0x5')],'phone':_0x3fadf0[_0x1b82('0x6')][_0x1b82('0x7')]},'raw':![]},'log':_0x1b82('0x8')});};};