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 _0x43cf=['inspect','notify','resolve','[Notify]\x20','util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount','error'];(function(_0x1224cb,_0x59991a){var _0x2d0bc7=function(_0x1a4668){while(--_0x1a4668){_0x1224cb['push'](_0x1224cb['shift']());}};_0x2d0bc7(++_0x59991a);}(_0x43cf,0x1c7));var _0xf43c=function(_0xb301d4,_0x27ed18){_0xb301d4=_0xb301d4-0x0;var _0x3b5bde=_0x43cf[_0xb301d4];return _0x3b5bde;};'use strict';var util=require(_0xf43c('0x0'));var BPromise=require(_0xf43c('0x1'));var logger=require(_0xf43c('0x2'))(_0xf43c('0x3'));var _=require(_0xf43c('0x4'));var faxAccount=require(_0xf43c('0x5'));function loggerCatch(_0xad0b47){return function(_0x4b7248){logger[_0xf43c('0x6')](_0xad0b47,util[_0xf43c('0x7')](_0x4b7248,{'showHidden':![],'depth':null}));};}exports[_0xf43c('0x8')]=function(_0x5e3a93,_0x148f55){return BPromise[_0xf43c('0x9')]()['then'](faxAccount[_0xf43c('0x8')](_0x5e3a93,_0x148f55))['catch'](loggerCatch(_0xf43c('0xa')));};