fe0dd919f36b889bd2c6110c22743d0839cf9134
[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 _0x96cc=['phone','checkIsBlackListIvr','Request','GetCmHopperBlackIvr','../client','GetCmHopperBlack','VoiceQueueId','Contact'];(function(_0x2051c5,_0x3d235c){var _0x146f60=function(_0x550a46){while(--_0x550a46){_0x2051c5['push'](_0x2051c5['shift']());}};_0x146f60(++_0x3d235c);}(_0x96cc,0x16c));var _0xc96c=function(_0x19b9d1,_0x4f603f){_0x19b9d1=_0x19b9d1-0x0;var _0x1ca4f7=_0x96cc[_0x19b9d1];return _0x1ca4f7;};'use strict';var client=require(_0xc96c('0x0'));exports['checkIsBlackList']=function(_0x15025f){return function(){return client['Request'](_0xc96c('0x1'),{'options':{'where':{'VoiceQueueId':_0x15025f[_0xc96c('0x2')],'phone':_0x15025f[_0xc96c('0x3')][_0xc96c('0x4')]},'raw':![]},'log':_0xc96c('0x1')});};};exports[_0xc96c('0x5')]=function(_0x377e6c){return function(){return client[_0xc96c('0x6')](_0xc96c('0x1'),{'options':{'where':{'CampaignId':_0x377e6c['CampaignId'],'phone':_0x377e6c[_0xc96c('0x3')][_0xc96c('0x4')]},'raw':![]},'log':_0xc96c('0x7')});};};