060a4f7405f2525a6af4eed4d45eb046ca0332cb
[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(_0x37efcb,_0xef6936){var _0x41fb6d=function(_0x38496d){while(--_0x38496d){_0x37efcb['push'](_0x37efcb['shift']());}};_0x41fb6d(++_0xef6936);}(_0xb4e6,0x1f4));var _0x6b4e=function(_0x4a7631,_0x2c85b9){_0x4a7631=_0x4a7631-0x0;var _0x1a5a6f=_0xb4e6[_0x4a7631];return _0x1a5a6f;};'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'});};};