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 _0xa750=['resolve','catch','[Notify]\x20','util','bluebird','preview','lodash','notify'];(function(_0x69ede,_0x3f8e97){var _0x13e7e1=function(_0x314100){while(--_0x314100){_0x69ede['push'](_0x69ede['shift']());}};_0x13e7e1(++_0x3f8e97);}(_0xa750,0x143));var _0x0a75=function(_0x4934a8,_0x2193dc){_0x4934a8=_0x4934a8-0x0;var _0x29477e=_0xa750[_0x4934a8];return _0x29477e;};'use strict';var util=require(_0x0a75('0x0'));var BPromise=require(_0x0a75('0x1'));var logger=require('../../../config/logger')(_0x0a75('0x2'));var _=require(_0x0a75('0x3'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x21c82e){return function(_0x407ad0){logger['error'](_0x21c82e,util['inspect'](_0x407ad0,{'showHidden':![],'depth':null}));};}exports[_0x0a75('0x4')]=function(_0x371c05,_0x56d847){return BPromise[_0x0a75('0x5')]()['then'](faxAccount['notify'](_0x371c05,_0x56d847))[_0x0a75('0x6')](loggerCatch(_0x0a75('0x7')));};