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 _0xf209=['then','catch','[Notify]\x20','util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount','error','inspect','notify','resolve'];(function(_0x214070,_0x38277e){var _0x358944=function(_0x582963){while(--_0x582963){_0x214070['push'](_0x214070['shift']());}};_0x358944(++_0x38277e);}(_0xf209,0xe0));var _0x9f20=function(_0x8854f2,_0x79542c){_0x8854f2=_0x8854f2-0x0;var _0x38505d=_0xf209[_0x8854f2];return _0x38505d;};'use strict';var util=require(_0x9f20('0x0'));var BPromise=require(_0x9f20('0x1'));var logger=require(_0x9f20('0x2'))(_0x9f20('0x3'));var _=require(_0x9f20('0x4'));var faxAccount=require(_0x9f20('0x5'));function loggerCatch(_0x570e75){return function(_0x58fe02){logger[_0x9f20('0x6')](_0x570e75,util[_0x9f20('0x7')](_0x58fe02,{'showHidden':![],'depth':null}));};}exports[_0x9f20('0x8')]=function(_0x46f87d,_0x4809ea){return BPromise[_0x9f20('0x9')]()[_0x9f20('0xa')](faxAccount[_0x9f20('0x8')](_0x46f87d,_0x4809ea))[_0x9f20('0xb')](loggerCatch(_0x9f20('0xc')));};