05a2f7502af38f8e899c8d7d04e31702d494933b
[motion2.git] / server / services / ami / fax / rpcDb.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 _0xc5aa=['../rpc/faxAccount','inspect','notify','[Notify]\x20','bluebird','preview','lodash'];(function(_0xa2671e,_0x5707ae){var _0x3c1369=function(_0x552e7c){while(--_0x552e7c){_0xa2671e['push'](_0xa2671e['shift']());}};_0x3c1369(++_0x5707ae);}(_0xc5aa,0x138));var _0xac5a=function(_0x575aa0,_0x222ae2){_0x575aa0=_0x575aa0-0x0;var _0x451559=_0xc5aa[_0x575aa0];return _0x451559;};'use strict';var util=require('util');var BPromise=require(_0xac5a('0x0'));var logger=require('../../../config/logger')(_0xac5a('0x1'));var _=require(_0xac5a('0x2'));var faxAccount=require(_0xac5a('0x3'));function loggerCatch(_0x55a286){return function(_0x18a6ae){logger['error'](_0x55a286,util[_0xac5a('0x4')](_0x18a6ae,{'showHidden':![],'depth':null}));};}exports[_0xac5a('0x5')]=function(_0x16d61a,_0x4a893f){return BPromise['resolve']()['then'](faxAccount[_0xac5a('0x5')](_0x16d61a,_0x4a893f))['catch'](loggerCatch(_0xac5a('0x6')));};