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 _0x12ef=['bluebird','../../../config/logger','lodash','../rpc/faxAccount','error','inspect','notify','resolve','then','catch','[Notify]\x20','util'];(function(_0x1440ea,_0x49da64){var _0x399487=function(_0x5bbcf4){while(--_0x5bbcf4){_0x1440ea['push'](_0x1440ea['shift']());}};_0x399487(++_0x49da64);}(_0x12ef,0x15b));var _0xf12e=function(_0x3ea913,_0x255df2){_0x3ea913=_0x3ea913-0x0;var _0x2b4f28=_0x12ef[_0x3ea913];return _0x2b4f28;};'use strict';var util=require(_0xf12e('0x0'));var BPromise=require(_0xf12e('0x1'));var logger=require(_0xf12e('0x2'))('preview');var _=require(_0xf12e('0x3'));var faxAccount=require(_0xf12e('0x4'));function loggerCatch(_0x2429ca){return function(_0x15b4d7){logger[_0xf12e('0x5')](_0x2429ca,util[_0xf12e('0x6')](_0x15b4d7,{'showHidden':![],'depth':null}));};}exports[_0xf12e('0x7')]=function(_0x59878d,_0x28563e){return BPromise[_0xf12e('0x8')]()[_0xf12e('0x9')](faxAccount[_0xf12e('0x7')](_0x59878d,_0x28563e))[_0xf12e('0xa')](loggerCatch(_0xf12e('0xb')));};