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 _0xbfe4=['preview','lodash','../rpc/faxAccount','notify','resolve','[Notify]\x20','util','bluebird','../../../config/logger'];(function(_0x4af1fd,_0x166611){var _0x2acc3a=function(_0x32aa97){while(--_0x32aa97){_0x4af1fd['push'](_0x4af1fd['shift']());}};_0x2acc3a(++_0x166611);}(_0xbfe4,0x1ec));var _0x4bfe=function(_0x3bbb91,_0x177da8){_0x3bbb91=_0x3bbb91-0x0;var _0x1a427f=_0xbfe4[_0x3bbb91];return _0x1a427f;};'use strict';var util=require(_0x4bfe('0x0'));var BPromise=require(_0x4bfe('0x1'));var logger=require(_0x4bfe('0x2'))(_0x4bfe('0x3'));var _=require(_0x4bfe('0x4'));var faxAccount=require(_0x4bfe('0x5'));function loggerCatch(_0xe52f96){return function(_0x24ff6e){logger['error'](_0xe52f96,util['inspect'](_0x24ff6e,{'showHidden':![],'depth':null}));};}exports[_0x4bfe('0x6')]=function(_0x49c394,_0x5566af){return BPromise[_0x4bfe('0x7')]()['then'](faxAccount[_0x4bfe('0x6')](_0x49c394,_0x5566af))['catch'](loggerCatch(_0x4bfe('0x8')));};