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 _0xa72a=['preview','lodash','../rpc/faxAccount','error','notify','resolve','then','catch','[Notify]\x20','util','bluebird'];(function(_0x3cec15,_0x121af4){var _0x239080=function(_0x52c61b){while(--_0x52c61b){_0x3cec15['push'](_0x3cec15['shift']());}};_0x239080(++_0x121af4);}(_0xa72a,0x77));var _0xaa72=function(_0x1f87a3,_0x3799c5){_0x1f87a3=_0x1f87a3-0x0;var _0x17ebae=_0xa72a[_0x1f87a3];return _0x17ebae;};'use strict';var util=require(_0xaa72('0x0'));var BPromise=require(_0xaa72('0x1'));var logger=require('../../../config/logger')(_0xaa72('0x2'));var _=require(_0xaa72('0x3'));var faxAccount=require(_0xaa72('0x4'));function loggerCatch(_0x219623){return function(_0x3da8c6){logger[_0xaa72('0x5')](_0x219623,util['inspect'](_0x3da8c6,{'showHidden':![],'depth':null}));};}exports[_0xaa72('0x6')]=function(_0x7712cb,_0x1f1277){return BPromise[_0xaa72('0x7')]()[_0xaa72('0x8')](faxAccount[_0xaa72('0x6')](_0x7712cb,_0x1f1277))[_0xaa72('0x9')](loggerCatch(_0xaa72('0xa')));};