Built motion from commit (unavailable).|2.3.4
[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 _0x9992=['[Notify]\x20','util','bluebird','preview','lodash','error','notify','resolve','then','catch'];(function(_0x2f8e2d,_0x4a80e7){var _0x599298=function(_0x18447a){while(--_0x18447a){_0x2f8e2d['push'](_0x2f8e2d['shift']());}};_0x599298(++_0x4a80e7);}(_0x9992,0x6f));var _0x2999=function(_0x133fe4,_0x1f473b){_0x133fe4=_0x133fe4-0x0;var _0x4c4017=_0x9992[_0x133fe4];return _0x4c4017;};'use strict';var util=require(_0x2999('0x0'));var BPromise=require(_0x2999('0x1'));var logger=require('../../../config/logger')(_0x2999('0x2'));var _=require(_0x2999('0x3'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x16426e){return function(_0x118471){logger[_0x2999('0x4')](_0x16426e,util['inspect'](_0x118471,{'showHidden':![],'depth':null}));};}exports[_0x2999('0x5')]=function(_0x58fc49,_0x3797ec){return BPromise[_0x2999('0x6')]()[_0x2999('0x7')](faxAccount[_0x2999('0x5')](_0x58fc49,_0x3797ec))[_0x2999('0x8')](loggerCatch(_0x2999('0x9')));};