Built motion from commit e6806ed6.|2.6.0
[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 _0x80ae=['error','inspect','notify','resolve','catch','util','bluebird','preview','lodash','../rpc/faxAccount'];(function(_0x4381a4,_0x59f702){var _0xc2aec=function(_0x19b619){while(--_0x19b619){_0x4381a4['push'](_0x4381a4['shift']());}};_0xc2aec(++_0x59f702);}(_0x80ae,0x163));var _0xe80a=function(_0x593d89,_0x45145f){_0x593d89=_0x593d89-0x0;var _0x4aa403=_0x80ae[_0x593d89];return _0x4aa403;};'use strict';var util=require(_0xe80a('0x0'));var BPromise=require(_0xe80a('0x1'));var logger=require('../../../config/logger')(_0xe80a('0x2'));var _=require(_0xe80a('0x3'));var faxAccount=require(_0xe80a('0x4'));function loggerCatch(_0x2105a2){return function(_0x4e3bac){logger[_0xe80a('0x5')](_0x2105a2,util[_0xe80a('0x6')](_0x4e3bac,{'showHidden':![],'depth':null}));};}exports[_0xe80a('0x7')]=function(_0x1253b2,_0x29cc42){return BPromise[_0xe80a('0x8')]()['then'](faxAccount[_0xe80a('0x7')](_0x1253b2,_0x29cc42))[_0xe80a('0x9')](loggerCatch('[Notify]\x20'));};