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 _0x6989=['resolve','then','notify','catch','util','../../../config/logger','preview','lodash','../rpc/faxAccount','inspect'];(function(_0x18ed7b,_0x528023){var _0x293a87=function(_0x4c1b3b){while(--_0x4c1b3b){_0x18ed7b['push'](_0x18ed7b['shift']());}};_0x293a87(++_0x528023);}(_0x6989,0x130));var _0x9698=function(_0xc2597b,_0x389b1d){_0xc2597b=_0xc2597b-0x0;var _0x16d754=_0x6989[_0xc2597b];return _0x16d754;};'use strict';var util=require(_0x9698('0x0'));var BPromise=require('bluebird');var logger=require(_0x9698('0x1'))(_0x9698('0x2'));var _=require(_0x9698('0x3'));var faxAccount=require(_0x9698('0x4'));function loggerCatch(_0x21e976){return function(_0x584477){logger['error'](_0x21e976,util[_0x9698('0x5')](_0x584477,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x581ee0,_0x25e9bf){return BPromise[_0x9698('0x6')]()[_0x9698('0x7')](faxAccount[_0x9698('0x8')](_0x581ee0,_0x25e9bf))[_0x9698('0x9')](loggerCatch('[Notify]\x20'));};