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 _0x12e1=['inspect','resolve','then','notify','catch','bluebird','../../../config/logger','lodash','../rpc/faxAccount'];(function(_0x170997,_0x554998){var _0x29dd6d=function(_0x468475){while(--_0x468475){_0x170997['push'](_0x170997['shift']());}};_0x29dd6d(++_0x554998);}(_0x12e1,0xc2));var _0x112e=function(_0xc82c84,_0x221d8e){_0xc82c84=_0xc82c84-0x0;var _0x3e576c=_0x12e1[_0xc82c84];return _0x3e576c;};'use strict';var util=require('util');var BPromise=require(_0x112e('0x0'));var logger=require(_0x112e('0x1'))('preview');var _=require(_0x112e('0x2'));var faxAccount=require(_0x112e('0x3'));function loggerCatch(_0x75ad8){return function(_0x10634d){logger['error'](_0x75ad8,util[_0x112e('0x4')](_0x10634d,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x1b0dad,_0x3b9b35){return BPromise[_0x112e('0x5')]()[_0x112e('0x6')](faxAccount[_0x112e('0x7')](_0x1b0dad,_0x3b9b35))[_0x112e('0x8')](loggerCatch('[Notify]\x20'));};