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 _0x8273=['preview','lodash','../rpc/faxAccount','error','resolve','then','catch','[Notify]\x20','util','bluebird','../../../config/logger'];(function(_0x34a14d,_0xc49d24){var _0x2015f2=function(_0x2a0b48){while(--_0x2a0b48){_0x34a14d['push'](_0x34a14d['shift']());}};_0x2015f2(++_0xc49d24);}(_0x8273,0x13c));var _0x3827=function(_0x40b082,_0x527541){_0x40b082=_0x40b082-0x0;var _0x4d96ac=_0x8273[_0x40b082];return _0x4d96ac;};'use strict';var util=require(_0x3827('0x0'));var BPromise=require(_0x3827('0x1'));var logger=require(_0x3827('0x2'))(_0x3827('0x3'));var _=require(_0x3827('0x4'));var faxAccount=require(_0x3827('0x5'));function loggerCatch(_0x25502e){return function(_0x427710){logger[_0x3827('0x6')](_0x25502e,util['inspect'](_0x427710,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x42b058,_0x2da3a7){return BPromise[_0x3827('0x7')]()[_0x3827('0x8')](faxAccount['notify'](_0x42b058,_0x2da3a7))[_0x3827('0x9')](loggerCatch(_0x3827('0xa')));};