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 _0xd5fd=['util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount','inspect','notify','resolve','then','catch','[Notify]\x20'];(function(_0x5c1c15,_0x5a0e25){var _0x2d4176=function(_0x37430c){while(--_0x37430c){_0x5c1c15['push'](_0x5c1c15['shift']());}};_0x2d4176(++_0x5a0e25);}(_0xd5fd,0x198));var _0xdd5f=function(_0x1440d9,_0x4a2c7e){_0x1440d9=_0x1440d9-0x0;var _0x4a0cfb=_0xd5fd[_0x1440d9];return _0x4a0cfb;};'use strict';var util=require(_0xdd5f('0x0'));var BPromise=require(_0xdd5f('0x1'));var logger=require(_0xdd5f('0x2'))(_0xdd5f('0x3'));var _=require(_0xdd5f('0x4'));var faxAccount=require(_0xdd5f('0x5'));function loggerCatch(_0x59bfb2){return function(_0x3a804a){logger['error'](_0x59bfb2,util[_0xdd5f('0x6')](_0x3a804a,{'showHidden':![],'depth':null}));};}exports[_0xdd5f('0x7')]=function(_0x417e06,_0x199627){return BPromise[_0xdd5f('0x8')]()[_0xdd5f('0x9')](faxAccount[_0xdd5f('0x7')](_0x417e06,_0x199627))[_0xdd5f('0xa')](loggerCatch(_0xdd5f('0xb')));};