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 _0xc2ff=['then','notify','catch','[Notify]\x20','util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount','error','inspect','resolve'];(function(_0x5df4ce,_0x368d3f){var _0x2aef63=function(_0x4c2cd7){while(--_0x4c2cd7){_0x5df4ce['push'](_0x5df4ce['shift']());}};_0x2aef63(++_0x368d3f);}(_0xc2ff,0x13c));var _0xfc2f=function(_0x8bda20,_0x52ad98){_0x8bda20=_0x8bda20-0x0;var _0x29407b=_0xc2ff[_0x8bda20];return _0x29407b;};'use strict';var util=require(_0xfc2f('0x0'));var BPromise=require(_0xfc2f('0x1'));var logger=require(_0xfc2f('0x2'))(_0xfc2f('0x3'));var _=require(_0xfc2f('0x4'));var faxAccount=require(_0xfc2f('0x5'));function loggerCatch(_0x22b049){return function(_0x761e){logger[_0xfc2f('0x6')](_0x22b049,util[_0xfc2f('0x7')](_0x761e,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0xc10c74,_0x495e84){return BPromise[_0xfc2f('0x8')]()[_0xfc2f('0x9')](faxAccount[_0xfc2f('0xa')](_0xc10c74,_0x495e84))[_0xfc2f('0xb')](loggerCatch(_0xfc2f('0xc')));};