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 _0x9f38=['lodash','../rpc/faxAccount','error','inspect','notify','resolve','then','catch','[Notify]\x20','bluebird','../../../config/logger'];(function(_0x3786bd,_0x2bb68b){var _0x2a43c5=function(_0x1218b5){while(--_0x1218b5){_0x3786bd['push'](_0x3786bd['shift']());}};_0x2a43c5(++_0x2bb68b);}(_0x9f38,0x169));var _0x89f3=function(_0x4db2ee,_0x249f7f){_0x4db2ee=_0x4db2ee-0x0;var _0x1ceb42=_0x9f38[_0x4db2ee];return _0x1ceb42;};'use strict';var util=require('util');var BPromise=require(_0x89f3('0x0'));var logger=require(_0x89f3('0x1'))('preview');var _=require(_0x89f3('0x2'));var faxAccount=require(_0x89f3('0x3'));function loggerCatch(_0x1b549a){return function(_0x102648){logger[_0x89f3('0x4')](_0x1b549a,util[_0x89f3('0x5')](_0x102648,{'showHidden':![],'depth':null}));};}exports[_0x89f3('0x6')]=function(_0x2ad375,_0xeb5668){return BPromise[_0x89f3('0x7')]()[_0x89f3('0x8')](faxAccount['notify'](_0x2ad375,_0xeb5668))[_0x89f3('0x9')](loggerCatch(_0x89f3('0xa')));};