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 _0xc124=['[Notify]\x20','util','bluebird','../../../config/logger','preview','../rpc/faxAccount','inspect','resolve','notify','catch'];(function(_0x366544,_0xbfbb67){var _0x27c7af=function(_0x134caf){while(--_0x134caf){_0x366544['push'](_0x366544['shift']());}};_0x27c7af(++_0xbfbb67);}(_0xc124,0xa1));var _0x4c12=function(_0x2c347a,_0x375498){_0x2c347a=_0x2c347a-0x0;var _0x29ef92=_0xc124[_0x2c347a];return _0x29ef92;};'use strict';var util=require(_0x4c12('0x0'));var BPromise=require(_0x4c12('0x1'));var logger=require(_0x4c12('0x2'))(_0x4c12('0x3'));var _=require('lodash');var faxAccount=require(_0x4c12('0x4'));function loggerCatch(_0x42fcdd){return function(_0x37c590){logger['error'](_0x42fcdd,util[_0x4c12('0x5')](_0x37c590,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x2b49a0,_0x6a158b){return BPromise[_0x4c12('0x6')]()['then'](faxAccount[_0x4c12('0x7')](_0x2b49a0,_0x6a158b))[_0x4c12('0x8')](loggerCatch(_0x4c12('0x9')));};