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 _0x37d9=['[Notify]\x20','bluebird','preview','lodash','../rpc/faxAccount','error','inspect','notify','resolve','catch'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x37d9,0x1af));var _0x937d=function(_0x586879,_0x35a043){_0x586879=_0x586879-0x0;var _0x3a7478=_0x37d9[_0x586879];return _0x3a7478;};'use strict';var util=require('util');var BPromise=require(_0x937d('0x0'));var logger=require('../../../config/logger')(_0x937d('0x1'));var _=require(_0x937d('0x2'));var faxAccount=require(_0x937d('0x3'));function loggerCatch(_0x718d9d){return function(_0x145251){logger[_0x937d('0x4')](_0x718d9d,util[_0x937d('0x5')](_0x145251,{'showHidden':![],'depth':null}));};}exports[_0x937d('0x6')]=function(_0x3fb51c,_0x46a1af){return BPromise[_0x937d('0x7')]()['then'](faxAccount['notify'](_0x3fb51c,_0x46a1af))[_0x937d('0x8')](loggerCatch(_0x937d('0x9')));};