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 _0xfae1=['error','inspect','notify','resolve','catch','[Notify]\x20','util','../../../config/logger','preview','lodash','../rpc/faxAccount'];(function(_0x176c68,_0x7cb222){var _0x51e751=function(_0x391d22){while(--_0x391d22){_0x176c68['push'](_0x176c68['shift']());}};_0x51e751(++_0x7cb222);}(_0xfae1,0xd7));var _0x1fae=function(_0x35d414,_0x213fa5){_0x35d414=_0x35d414-0x0;var _0x1a0b9b=_0xfae1[_0x35d414];return _0x1a0b9b;};'use strict';var util=require(_0x1fae('0x0'));var BPromise=require('bluebird');var logger=require(_0x1fae('0x1'))(_0x1fae('0x2'));var _=require(_0x1fae('0x3'));var faxAccount=require(_0x1fae('0x4'));function loggerCatch(_0xcee474){return function(_0x4c4493){logger[_0x1fae('0x5')](_0xcee474,util[_0x1fae('0x6')](_0x4c4493,{'showHidden':![],'depth':null}));};}exports[_0x1fae('0x7')]=function(_0x13613a,_0x55e066){return BPromise[_0x1fae('0x8')]()['then'](faxAccount['notify'](_0x13613a,_0x55e066))[_0x1fae('0x9')](loggerCatch(_0x1fae('0xa')));};