Built motion from commit (unavailable).|2.5.16
[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 _0xf9f4=['inspect','notify','resolve','then','util','bluebird','../../../config/logger','lodash','../rpc/faxAccount','error'];(function(_0x35885a,_0x42fed7){var _0xe86249=function(_0x98edb3){while(--_0x98edb3){_0x35885a['push'](_0x35885a['shift']());}};_0xe86249(++_0x42fed7);}(_0xf9f4,0x144));var _0x4f9f=function(_0x4ff714,_0x201a1d){_0x4ff714=_0x4ff714-0x0;var _0x255d8e=_0xf9f4[_0x4ff714];return _0x255d8e;};'use strict';var util=require(_0x4f9f('0x0'));var BPromise=require(_0x4f9f('0x1'));var logger=require(_0x4f9f('0x2'))('preview');var _=require(_0x4f9f('0x3'));var faxAccount=require(_0x4f9f('0x4'));function loggerCatch(_0x526c4c){return function(_0x784617){logger[_0x4f9f('0x5')](_0x526c4c,util[_0x4f9f('0x6')](_0x784617,{'showHidden':![],'depth':null}));};}exports[_0x4f9f('0x7')]=function(_0x3e8749,_0x3596cb){return BPromise[_0x4f9f('0x8')]()[_0x4f9f('0x9')](faxAccount[_0x4f9f('0x7')](_0x3e8749,_0x3596cb))['catch'](loggerCatch('[Notify]\x20'));};