1648d9cf5510a0e330914bdf5d9d85810a989270
[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 _0x748a=['../../../config/logger','preview','resolve','then','notify','[Notify]\x20','util','bluebird'];(function(_0x5c85e5,_0x36fa12){var _0x517017=function(_0x6e11a5){while(--_0x6e11a5){_0x5c85e5['push'](_0x5c85e5['shift']());}};_0x517017(++_0x36fa12);}(_0x748a,0x1ee));var _0xa748=function(_0x4b369d,_0x265eb8){_0x4b369d=_0x4b369d-0x0;var _0x571a98=_0x748a[_0x4b369d];return _0x571a98;};'use strict';var util=require(_0xa748('0x0'));var BPromise=require(_0xa748('0x1'));var logger=require(_0xa748('0x2'))(_0xa748('0x3'));var _=require('lodash');var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x97f126){return function(_0x506fc1){logger['error'](_0x97f126,util['inspect'](_0x506fc1,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x3076db,_0x2ae87a){return BPromise[_0xa748('0x4')]()[_0xa748('0x5')](faxAccount[_0xa748('0x6')](_0x3076db,_0x2ae87a))['catch'](loggerCatch(_0xa748('0x7')));};