8122b3ea4c75359156e7727d00f39c3a31607e36
[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 _0xe537=['lodash','../rpc/faxAccount','inspect','then','notify','[Notify]\x20','util','bluebird','../../../config/logger'];(function(_0x26b5ff,_0x92009a){var _0x58603e=function(_0x4454ff){while(--_0x4454ff){_0x26b5ff['push'](_0x26b5ff['shift']());}};_0x58603e(++_0x92009a);}(_0xe537,0x8d));var _0x7e53=function(_0x3227c1,_0x4318c5){_0x3227c1=_0x3227c1-0x0;var _0x31fd48=_0xe537[_0x3227c1];return _0x31fd48;};'use strict';var util=require(_0x7e53('0x0'));var BPromise=require(_0x7e53('0x1'));var logger=require(_0x7e53('0x2'))('preview');var _=require(_0x7e53('0x3'));var faxAccount=require(_0x7e53('0x4'));function loggerCatch(_0x4b38de){return function(_0x1250fe){logger['error'](_0x4b38de,util[_0x7e53('0x5')](_0x1250fe,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x6b7334,_0x12e689){return BPromise['resolve']()[_0x7e53('0x6')](faxAccount[_0x7e53('0x7')](_0x6b7334,_0x12e689))['catch'](loggerCatch(_0x7e53('0x8')));};