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 _0xe0be=['bluebird','../../../config/logger','lodash','error','inspect','notify','resolve','then','catch','[Notify]\x20','util'];(function(_0x144f90,_0x564002){var _0xbb4bc8=function(_0x40e137){while(--_0x40e137){_0x144f90['push'](_0x144f90['shift']());}};_0xbb4bc8(++_0x564002);}(_0xe0be,0x180));var _0xee0b=function(_0x5d274c,_0x452902){_0x5d274c=_0x5d274c-0x0;var _0x2922e3=_0xe0be[_0x5d274c];return _0x2922e3;};'use strict';var util=require(_0xee0b('0x0'));var BPromise=require(_0xee0b('0x1'));var logger=require(_0xee0b('0x2'))('preview');var _=require(_0xee0b('0x3'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x14c3b5){return function(_0x28978a){logger[_0xee0b('0x4')](_0x14c3b5,util[_0xee0b('0x5')](_0x28978a,{'showHidden':![],'depth':null}));};}exports[_0xee0b('0x6')]=function(_0x2b2f7f,_0x4819e1){return BPromise[_0xee0b('0x7')]()[_0xee0b('0x8')](faxAccount[_0xee0b('0x6')](_0x2b2f7f,_0x4819e1))[_0xee0b('0x9')](loggerCatch(_0xee0b('0xa')));};