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 _0xd135=['error','inspect','notify','resolve','then','catch','[Notify]\x20','../../../config/logger','preview','../rpc/faxAccount'];(function(_0x1cbf7c,_0x2bdfd2){var _0x1fc89c=function(_0x3096db){while(--_0x3096db){_0x1cbf7c['push'](_0x1cbf7c['shift']());}};_0x1fc89c(++_0x2bdfd2);}(_0xd135,0xd9));var _0x5d13=function(_0x5b6ac9,_0x493376){_0x5b6ac9=_0x5b6ac9-0x0;var _0x4ca8a7=_0xd135[_0x5b6ac9];return _0x4ca8a7;};'use strict';var util=require('util');var BPromise=require('bluebird');var logger=require(_0x5d13('0x0'))(_0x5d13('0x1'));var _=require('lodash');var faxAccount=require(_0x5d13('0x2'));function loggerCatch(_0x4439e7){return function(_0x33f5fe){logger[_0x5d13('0x3')](_0x4439e7,util[_0x5d13('0x4')](_0x33f5fe,{'showHidden':![],'depth':null}));};}exports[_0x5d13('0x5')]=function(_0x4b1dc2,_0x59da32){return BPromise[_0x5d13('0x6')]()[_0x5d13('0x7')](faxAccount[_0x5d13('0x5')](_0x4b1dc2,_0x59da32))[_0x5d13('0x8')](loggerCatch(_0x5d13('0x9')));};