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 _0x0cd7=['error','notify','resolve','then','catch','[Notify]\x20','util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount'];(function(_0x3c2a62,_0x424cb9){var _0x2a7c73=function(_0x9f305f){while(--_0x9f305f){_0x3c2a62['push'](_0x3c2a62['shift']());}};_0x2a7c73(++_0x424cb9);}(_0x0cd7,0x1b6));var _0x70cd=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x0cd7[_0x19e35c];return _0x3e1fe8;};'use strict';var util=require(_0x70cd('0x0'));var BPromise=require(_0x70cd('0x1'));var logger=require(_0x70cd('0x2'))(_0x70cd('0x3'));var _=require(_0x70cd('0x4'));var faxAccount=require(_0x70cd('0x5'));function loggerCatch(_0x40c925){return function(_0x22cb1f){logger[_0x70cd('0x6')](_0x40c925,util['inspect'](_0x22cb1f,{'showHidden':![],'depth':null}));};}exports[_0x70cd('0x7')]=function(_0x4e719c,_0x42c376){return BPromise[_0x70cd('0x8')]()[_0x70cd('0x9')](faxAccount[_0x70cd('0x7')](_0x4e719c,_0x42c376))[_0x70cd('0xa')](loggerCatch(_0x70cd('0xb')));};