Built motion from commit (unavailable).|2.5.19
[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 _0x9457=['../../../config/logger','preview','lodash','error','inspect','notify','resolve','then','catch','[Notify]\x20','bluebird'];(function(_0x26b622,_0x237e9e){var _0x58a028=function(_0xde1652){while(--_0xde1652){_0x26b622['push'](_0x26b622['shift']());}};_0x58a028(++_0x237e9e);}(_0x9457,0x1cd));var _0x7945=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x9457[_0x3dd15e];return _0x231fd0;};'use strict';var util=require('util');var BPromise=require(_0x7945('0x0'));var logger=require(_0x7945('0x1'))(_0x7945('0x2'));var _=require(_0x7945('0x3'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x473568){return function(_0x1a727d){logger[_0x7945('0x4')](_0x473568,util[_0x7945('0x5')](_0x1a727d,{'showHidden':![],'depth':null}));};}exports[_0x7945('0x6')]=function(_0x216603,_0x991ec6){return BPromise[_0x7945('0x7')]()[_0x7945('0x8')](faxAccount[_0x7945('0x6')](_0x216603,_0x991ec6))[_0x7945('0x9')](loggerCatch(_0x7945('0xa')));};