Built motion from commit da24aabd.|2.6.20
[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 _0x96ae=['CampaignId','GetCmHopperBlackIvr','../client','GetCmHopperBlack','phone','checkIsBlackListIvr','Request'];(function(_0x486c19,_0x43e2e8){var _0x2cc051=function(_0xe7d60c){while(--_0xe7d60c){_0x486c19['push'](_0x486c19['shift']());}};_0x2cc051(++_0x43e2e8);}(_0x96ae,0x159));var _0xe96a=function(_0x5b5eb4,_0x117c87){_0x5b5eb4=_0x5b5eb4-0x0;var _0x42af53=_0x96ae[_0x5b5eb4];return _0x42af53;};'use strict';var client=require(_0xe96a('0x0'));exports['checkIsBlackList']=function(_0x505af0){return client['Request'](_0xe96a('0x1'),{'options':{'where':{'VoiceQueueId':_0x505af0['VoiceQueueId'],'phone':_0x505af0[_0xe96a('0x2')]},'raw':![]},'log':_0xe96a('0x1')});};exports[_0xe96a('0x3')]=function(_0x124672){return client[_0xe96a('0x4')](_0xe96a('0x1'),{'options':{'where':{'CampaignId':_0x124672[_0xe96a('0x5')],'phone':_0x124672['phone']},'raw':![]},'log':_0xe96a('0x6')});};