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 _0x5bcb=['catch','[Notify]\x20','util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount','error','resolve'];(function(_0x5ed96d,_0x390d0f){var _0x24dd4d=function(_0x47e37f){while(--_0x47e37f){_0x5ed96d['push'](_0x5ed96d['shift']());}};_0x24dd4d(++_0x390d0f);}(_0x5bcb,0x7a));var _0xb5bc=function(_0x2c8e89,_0x595030){_0x2c8e89=_0x2c8e89-0x0;var _0x4f17a8=_0x5bcb[_0x2c8e89];return _0x4f17a8;};'use strict';var util=require(_0xb5bc('0x0'));var BPromise=require(_0xb5bc('0x1'));var logger=require(_0xb5bc('0x2'))(_0xb5bc('0x3'));var _=require(_0xb5bc('0x4'));var faxAccount=require(_0xb5bc('0x5'));function loggerCatch(_0x457bfd){return function(_0x40d789){logger[_0xb5bc('0x6')](_0x457bfd,util['inspect'](_0x40d789,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x172fc5,_0x41a873){return BPromise[_0xb5bc('0x7')]()['then'](faxAccount['notify'](_0x172fc5,_0x41a873))[_0xb5bc('0x8')](loggerCatch(_0xb5bc('0x9')));};