Built motion from commit 85328c08.|2.5.50
[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 _0x2eb8=['inspect','notify','then','catch','[Notify]\x20','util','bluebird','preview','lodash','error'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x2eb8,0xe1));var _0x82eb=function(_0x51ad19,_0x3e8325){_0x51ad19=_0x51ad19-0x0;var _0x3dc6a7=_0x2eb8[_0x51ad19];return _0x3dc6a7;};'use strict';var util=require(_0x82eb('0x0'));var BPromise=require(_0x82eb('0x1'));var logger=require('../../../config/logger')(_0x82eb('0x2'));var _=require(_0x82eb('0x3'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x21c6ad){return function(_0xa68b43){logger[_0x82eb('0x4')](_0x21c6ad,util[_0x82eb('0x5')](_0xa68b43,{'showHidden':![],'depth':null}));};}exports[_0x82eb('0x6')]=function(_0x972d02,_0x477c48){return BPromise['resolve']()[_0x82eb('0x7')](faxAccount[_0x82eb('0x6')](_0x972d02,_0x477c48))[_0x82eb('0x8')](loggerCatch(_0x82eb('0x9')));};