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 _0xfee3=['bluebird','../../../config/logger','preview','notify','resolve','then','catch','[Notify]\x20','util'];(function(_0x5275fb,_0x44dc0e){var _0x5bbbcb=function(_0x4f234b){while(--_0x4f234b){_0x5275fb['push'](_0x5275fb['shift']());}};_0x5bbbcb(++_0x44dc0e);}(_0xfee3,0x170));var _0x3fee=function(_0x28947d,_0x4cc9c6){_0x28947d=_0x28947d-0x0;var _0x12d2ee=_0xfee3[_0x28947d];return _0x12d2ee;};'use strict';var util=require(_0x3fee('0x0'));var BPromise=require(_0x3fee('0x1'));var logger=require(_0x3fee('0x2'))(_0x3fee('0x3'));var _=require('lodash');var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x4c6ed9){return function(_0x6235a9){logger['error'](_0x4c6ed9,util['inspect'](_0x6235a9,{'showHidden':![],'depth':null}));};}exports[_0x3fee('0x4')]=function(_0x16078a,_0x11381f){return BPromise[_0x3fee('0x5')]()[_0x3fee('0x6')](faxAccount[_0x3fee('0x4')](_0x16078a,_0x11381f))[_0x3fee('0x7')](loggerCatch(_0x3fee('0x8')));};