Built motion from commit (unavailable).|2.5.2
[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 _0x7c3a=['../../../config/logger','../rpc/faxAccount','error','notify','then','catch','[Notify]\x20','bluebird'];(function(_0x11a39e,_0x440924){var _0xea4764=function(_0x3ba839){while(--_0x3ba839){_0x11a39e['push'](_0x11a39e['shift']());}};_0xea4764(++_0x440924);}(_0x7c3a,0x1ef));var _0xa7c3=function(_0x1e7b16,_0x4607a1){_0x1e7b16=_0x1e7b16-0x0;var _0x37fadc=_0x7c3a[_0x1e7b16];return _0x37fadc;};'use strict';var util=require('util');var BPromise=require(_0xa7c3('0x0'));var logger=require(_0xa7c3('0x1'))('preview');var _=require('lodash');var faxAccount=require(_0xa7c3('0x2'));function loggerCatch(_0x3dfe85){return function(_0x4f2a2f){logger[_0xa7c3('0x3')](_0x3dfe85,util['inspect'](_0x4f2a2f,{'showHidden':![],'depth':null}));};}exports[_0xa7c3('0x4')]=function(_0x13108e,_0x1140a3){return BPromise['resolve']()[_0xa7c3('0x5')](faxAccount[_0xa7c3('0x4')](_0x13108e,_0x1140a3))[_0xa7c3('0x6')](loggerCatch(_0xa7c3('0x7')));};