Built motion from commit 85328c08.|2.5.50
[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 _0xb58b=['checkIsBlackList','Request','VoiceQueueId','Contact','GetCmHopperBlack','phone','GetCmHopperBlackIvr'];(function(_0x521929,_0x479be5){var _0x632436=function(_0x288290){while(--_0x288290){_0x521929['push'](_0x521929['shift']());}};_0x632436(++_0x479be5);}(_0xb58b,0x1f1));var _0xbb58=function(_0x2d70ab,_0x4ea6a1){_0x2d70ab=_0x2d70ab-0x0;var _0x49f7c7=_0xb58b[_0x2d70ab];return _0x49f7c7;};'use strict';var client=require('../client');exports[_0xbb58('0x0')]=function(_0x3de0dd){return function(){return client[_0xbb58('0x1')]('GetCmHopperBlack',{'options':{'where':{'VoiceQueueId':_0x3de0dd[_0xbb58('0x2')],'phone':_0x3de0dd[_0xbb58('0x3')]['phone']},'raw':![]},'log':_0xbb58('0x4')});};};exports['checkIsBlackListIvr']=function(_0x2edb10){return function(){return client[_0xbb58('0x1')](_0xbb58('0x4'),{'options':{'where':{'CampaignId':_0x2edb10['CampaignId'],'phone':_0x2edb10[_0xbb58('0x3')][_0xbb58('0x5')]},'raw':![]},'log':_0xbb58('0x6')});};};