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 _0x399f=['then','catch','[Notify]\x20','../../../config/logger','lodash','error','notify'];(function(_0x439410,_0x425a4f){var _0x21003d=function(_0x1927c8){while(--_0x1927c8){_0x439410['push'](_0x439410['shift']());}};_0x21003d(++_0x425a4f);}(_0x399f,0x1ae));var _0xf399=function(_0x5cd65a,_0x3f299c){_0x5cd65a=_0x5cd65a-0x0;var _0x3acd3e=_0x399f[_0x5cd65a];return _0x3acd3e;};'use strict';var util=require('util');var BPromise=require('bluebird');var logger=require(_0xf399('0x0'))('preview');var _=require(_0xf399('0x1'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x2576a6){return function(_0x5bd8b3){logger[_0xf399('0x2')](_0x2576a6,util['inspect'](_0x5bd8b3,{'showHidden':![],'depth':null}));};}exports[_0xf399('0x3')]=function(_0x2dd53a,_0x39d20a){return BPromise['resolve']()[_0xf399('0x4')](faxAccount[_0xf399('0x3')](_0x2dd53a,_0x39d20a))[_0xf399('0x5')](loggerCatch(_0xf399('0x6')));};