Built motion from commit 3d6333b4.|2.6.31
[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 _0x953b=['lodash','../rpc/faxAccount','inspect','notify','resolve','then','[Notify]\x20','bluebird','preview'];(function(_0x46d68b,_0x154971){var _0x3a7893=function(_0x17e56a){while(--_0x17e56a){_0x46d68b['push'](_0x46d68b['shift']());}};_0x3a7893(++_0x154971);}(_0x953b,0x142));var _0xb953=function(_0x2763c3,_0x529ce6){_0x2763c3=_0x2763c3-0x0;var _0x322379=_0x953b[_0x2763c3];return _0x322379;};'use strict';var util=require('util');var BPromise=require(_0xb953('0x0'));var logger=require('../../../config/logger')(_0xb953('0x1'));var _=require(_0xb953('0x2'));var faxAccount=require(_0xb953('0x3'));function loggerCatch(_0x34af97){return function(_0x291e32){logger['error'](_0x34af97,util[_0xb953('0x4')](_0x291e32,{'showHidden':![],'depth':null}));};}exports[_0xb953('0x5')]=function(_0x1c4afd,_0x37cf8c){return BPromise[_0xb953('0x6')]()[_0xb953('0x7')](faxAccount[_0xb953('0x5')](_0x1c4afd,_0x37cf8c))['catch'](loggerCatch(_0xb953('0x8')));};