1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xc8ef=['notify','resolve','then','[Notify]\x20','util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount','error'];(function(_0x25b47c,_0x255f3e){var _0x471f48=function(_0x3299ad){while(--_0x3299ad){_0x25b47c['push'](_0x25b47c['shift']());}};_0x471f48(++_0x255f3e);}(_0xc8ef,0xf6));var _0xfc8e=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0xc8ef[_0x2b4411];return _0x8e41ef;};'use strict';var util=require(_0xfc8e('0x0'));var BPromise=require(_0xfc8e('0x1'));var logger=require(_0xfc8e('0x2'))(_0xfc8e('0x3'));var _=require(_0xfc8e('0x4'));var faxAccount=require(_0xfc8e('0x5'));function loggerCatch(_0x123f69){return function(_0x374dbb){logger[_0xfc8e('0x6')](_0x123f69,util['inspect'](_0x374dbb,{'showHidden':![],'depth':null}));};}exports[_0xfc8e('0x7')]=function(_0x193fcb,_0x45dfff){return BPromise[_0xfc8e('0x8')]()[_0xfc8e('0x9')](faxAccount[_0xfc8e('0x7')](_0x193fcb,_0x45dfff))['catch'](loggerCatch(_0xfc8e('0xa')));};