e53851f0628e113a885e1e0fd57d685f214bf1de
[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 _0xff4a=['GetCmHopperBlack','VoiceQueueId','Contact','phone','Request','CampaignId','GetCmHopperBlackIvr','../client','checkIsBlackList'];(function(_0x5549b4,_0x58da1b){var _0xcebb39=function(_0x3d7e28){while(--_0x3d7e28){_0x5549b4['push'](_0x5549b4['shift']());}};_0xcebb39(++_0x58da1b);}(_0xff4a,0x16f));var _0xaff4=function(_0x447267,_0x104195){_0x447267=_0x447267-0x0;var _0x43d266=_0xff4a[_0x447267];return _0x43d266;};'use strict';var client=require(_0xaff4('0x0'));exports[_0xaff4('0x1')]=function(_0x4fbce5){return function(){return client['Request'](_0xaff4('0x2'),{'options':{'where':{'VoiceQueueId':_0x4fbce5[_0xaff4('0x3')],'phone':_0x4fbce5[_0xaff4('0x4')][_0xaff4('0x5')]},'raw':![]},'log':_0xaff4('0x2')});};};exports['checkIsBlackListIvr']=function(_0x5e9272){return function(){return client[_0xaff4('0x6')](_0xaff4('0x2'),{'options':{'where':{'CampaignId':_0x5e9272[_0xaff4('0x7')],'phone':_0x5e9272[_0xaff4('0x4')]['phone']},'raw':![]},'log':_0xaff4('0x8')});};};