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 _0x050e=['bluebird','../../../config/logger','preview','lodash','error','inspect','notify','resolve','then','catch','[Notify]\x20','util'];(function(_0x147340,_0x58c888){var _0x70e8=function(_0x1d2abe){while(--_0x1d2abe){_0x147340['push'](_0x147340['shift']());}};_0x70e8(++_0x58c888);}(_0x050e,0xe3));var _0xe050=function(_0x7dfbe8,_0x430dd9){_0x7dfbe8=_0x7dfbe8-0x0;var _0x39c50c=_0x050e[_0x7dfbe8];return _0x39c50c;};'use strict';var util=require(_0xe050('0x0'));var BPromise=require(_0xe050('0x1'));var logger=require(_0xe050('0x2'))(_0xe050('0x3'));var _=require(_0xe050('0x4'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x3acddb){return function(_0x293522){logger[_0xe050('0x5')](_0x3acddb,util[_0xe050('0x6')](_0x293522,{'showHidden':![],'depth':null}));};}exports[_0xe050('0x7')]=function(_0x319e85,_0x1ea3a2){return BPromise[_0xe050('0x8')]()[_0xe050('0x9')](faxAccount['notify'](_0x319e85,_0x1ea3a2))[_0xe050('0xa')](loggerCatch(_0xe050('0xb')));};