Built motion from commit (unavailable).|2.5.4
[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 _0xb4e6=['Contact','phone','../client','Request','GetCmHopperBlack','VoiceQueueId'];(function(_0x4af7e7,_0x2a727c){var _0x9451dd=function(_0x30a470){while(--_0x30a470){_0x4af7e7['push'](_0x4af7e7['shift']());}};_0x9451dd(++_0x2a727c);}(_0xb4e6,0x1f4));var _0x6b4e=function(_0x39f34f,_0x298f45){_0x39f34f=_0x39f34f-0x0;var _0x59fee1=_0xb4e6[_0x39f34f];return _0x59fee1;};'use strict';var client=require(_0x6b4e('0x0'));exports['checkIsBlackList']=function(_0x2708ca){return function(){return client[_0x6b4e('0x1')](_0x6b4e('0x2'),{'options':{'where':{'VoiceQueueId':_0x2708ca[_0x6b4e('0x3')],'phone':_0x2708ca[_0x6b4e('0x4')][_0x6b4e('0x5')]},'raw':![]},'log':_0x6b4e('0x2')});};};exports['checkIsBlackListIvr']=function(_0x40da90){return function(){return client[_0x6b4e('0x1')](_0x6b4e('0x2'),{'options':{'where':{'CampaignId':_0x40da90['CampaignId'],'phone':_0x40da90[_0x6b4e('0x4')]['phone']},'raw':![]},'log':'GetCmHopperBlackIvr'});};};