Built motion from commit (unavailable).|2.5.3
[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 _0xe379=['lodash','../rpc/faxAccount','error','inspect','notify','resolve','util','bluebird','../../../config/logger','preview'];(function(_0x3c1eeb,_0x5905a5){var _0x1ad9bd=function(_0x2df42b){while(--_0x2df42b){_0x3c1eeb['push'](_0x3c1eeb['shift']());}};_0x1ad9bd(++_0x5905a5);}(_0xe379,0x1c8));var _0x9e37=function(_0x4f21f6,_0x503992){_0x4f21f6=_0x4f21f6-0x0;var _0x44a693=_0xe379[_0x4f21f6];return _0x44a693;};'use strict';var util=require(_0x9e37('0x0'));var BPromise=require(_0x9e37('0x1'));var logger=require(_0x9e37('0x2'))(_0x9e37('0x3'));var _=require(_0x9e37('0x4'));var faxAccount=require(_0x9e37('0x5'));function loggerCatch(_0xc5c3d6){return function(_0x4db22f){logger[_0x9e37('0x6')](_0xc5c3d6,util[_0x9e37('0x7')](_0x4db22f,{'showHidden':![],'depth':null}));};}exports[_0x9e37('0x8')]=function(_0x1f0b4d,_0x182bc9){return BPromise[_0x9e37('0x9')]()['then'](faxAccount[_0x9e37('0x8')](_0x1f0b4d,_0x182bc9))['catch'](loggerCatch('[Notify]\x20'));};