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 _0x345d=['inspect','resolve','notify','[Notify]\x20','util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount','error'];(function(_0x45749a,_0x52b3c5){var _0x36e168=function(_0x429717){while(--_0x429717){_0x45749a['push'](_0x45749a['shift']());}};_0x36e168(++_0x52b3c5);}(_0x345d,0x1d2));var _0xd345=function(_0x21b152,_0x442327){_0x21b152=_0x21b152-0x0;var _0x18a991=_0x345d[_0x21b152];return _0x18a991;};'use strict';var util=require(_0xd345('0x0'));var BPromise=require(_0xd345('0x1'));var logger=require(_0xd345('0x2'))(_0xd345('0x3'));var _=require(_0xd345('0x4'));var faxAccount=require(_0xd345('0x5'));function loggerCatch(_0x132d40){return function(_0x3ac588){logger[_0xd345('0x6')](_0x132d40,util[_0xd345('0x7')](_0x3ac588,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x13e402,_0xab57e0){return BPromise[_0xd345('0x8')]()['then'](faxAccount[_0xd345('0x9')](_0x13e402,_0xab57e0))['catch'](loggerCatch(_0xd345('0xa')));};