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 _0xf0cc=['inspect','notify','resolve','then','catch','[Notify]\x20','util','bluebird','../../../config/logger','lodash','../rpc/faxAccount'];(function(_0x310430,_0x3c2124){var _0x44c00c=function(_0x3389ac){while(--_0x3389ac){_0x310430['push'](_0x310430['shift']());}};_0x44c00c(++_0x3c2124);}(_0xf0cc,0x17c));var _0xcf0c=function(_0x1d928e,_0x5e7dd7){_0x1d928e=_0x1d928e-0x0;var _0x485701=_0xf0cc[_0x1d928e];return _0x485701;};'use strict';var util=require(_0xcf0c('0x0'));var BPromise=require(_0xcf0c('0x1'));var logger=require(_0xcf0c('0x2'))('preview');var _=require(_0xcf0c('0x3'));var faxAccount=require(_0xcf0c('0x4'));function loggerCatch(_0x41355c){return function(_0x72dd8){logger['error'](_0x41355c,util[_0xcf0c('0x5')](_0x72dd8,{'showHidden':![],'depth':null}));};}exports[_0xcf0c('0x6')]=function(_0x73275f,_0x514962){return BPromise[_0xcf0c('0x7')]()[_0xcf0c('0x8')](faxAccount['notify'](_0x73275f,_0x514962))[_0xcf0c('0x9')](loggerCatch(_0xcf0c('0xa')));};