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 _0x8d8e=['lodash','../rpc/faxAccount','error','inspect','resolve','notify','catch','[Notify]\x20','util','bluebird','preview'];(function(_0x34352e,_0x2673bb){var _0xa9bdfb=function(_0x2fb157){while(--_0x2fb157){_0x34352e['push'](_0x34352e['shift']());}};_0xa9bdfb(++_0x2673bb);}(_0x8d8e,0xb8));var _0xe8d8=function(_0x3899d1,_0x4aa04c){_0x3899d1=_0x3899d1-0x0;var _0xeb4a7d=_0x8d8e[_0x3899d1];return _0xeb4a7d;};'use strict';var util=require(_0xe8d8('0x0'));var BPromise=require(_0xe8d8('0x1'));var logger=require('../../../config/logger')(_0xe8d8('0x2'));var _=require(_0xe8d8('0x3'));var faxAccount=require(_0xe8d8('0x4'));function loggerCatch(_0x1e19f2){return function(_0xefe448){logger[_0xe8d8('0x5')](_0x1e19f2,util[_0xe8d8('0x6')](_0xefe448,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0xe20c00,_0x9bafb1){return BPromise[_0xe8d8('0x7')]()['then'](faxAccount[_0xe8d8('0x8')](_0xe20c00,_0x9bafb1))[_0xe8d8('0x9')](loggerCatch(_0xe8d8('0xa')));};