Built motion from commit (unavailable).|2.5.12
[motion2.git] / server / services / ami / fax / rpcDb.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xb4c4=['resolve','then','[Notify]\x20','util','bluebird','../../../config/logger','../rpc/faxAccount','inspect','notify'];(function(_0x3255ef,_0xc8f607){var _0x4dfd34=function(_0x4f1077){while(--_0x4f1077){_0x3255ef['push'](_0x3255ef['shift']());}};_0x4dfd34(++_0xc8f607);}(_0xb4c4,0x1ce));var _0x4b4c=function(_0x3fe393,_0x234a3a){_0x3fe393=_0x3fe393-0x0;var _0x534d14=_0xb4c4[_0x3fe393];return _0x534d14;};'use strict';var util=require(_0x4b4c('0x0'));var BPromise=require(_0x4b4c('0x1'));var logger=require(_0x4b4c('0x2'))('preview');var _=require('lodash');var faxAccount=require(_0x4b4c('0x3'));function loggerCatch(_0x452ed8){return function(_0x4fc4c8){logger['error'](_0x452ed8,util[_0x4b4c('0x4')](_0x4fc4c8,{'showHidden':![],'depth':null}));};}exports[_0x4b4c('0x5')]=function(_0x1c6087,_0x20047a){return BPromise[_0x4b4c('0x6')]()[_0x4b4c('0x7')](faxAccount['notify'](_0x1c6087,_0x20047a))['catch'](loggerCatch(_0x4b4c('0x8')));};