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 _0x76a8=['notify','catch','[Notify]\x20','util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount','error','resolve','then'];(function(_0x355082,_0x2ef631){var _0x4517d6=function(_0x58455e){while(--_0x58455e){_0x355082['push'](_0x355082['shift']());}};_0x4517d6(++_0x2ef631);}(_0x76a8,0xcf));var _0x876a=function(_0x488231,_0x5c0751){_0x488231=_0x488231-0x0;var _0x447423=_0x76a8[_0x488231];return _0x447423;};'use strict';var util=require(_0x876a('0x0'));var BPromise=require(_0x876a('0x1'));var logger=require(_0x876a('0x2'))(_0x876a('0x3'));var _=require(_0x876a('0x4'));var faxAccount=require(_0x876a('0x5'));function loggerCatch(_0x2c4797){return function(_0x34299d){logger[_0x876a('0x6')](_0x2c4797,util['inspect'](_0x34299d,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x37f132,_0x223c63){return BPromise[_0x876a('0x7')]()[_0x876a('0x8')](faxAccount[_0x876a('0x9')](_0x37f132,_0x223c63))[_0x876a('0xa')](loggerCatch(_0x876a('0xb')));};