5e45aa6af7fcd284c97d0c53f5050a9fb052a8e2
[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 _0xc4a9=['lodash','error','resolve','then','catch','util','bluebird','../../../config/logger','preview'];(function(_0x330260,_0x36f9a7){var _0x1a9a72=function(_0x5db072){while(--_0x5db072){_0x330260['push'](_0x330260['shift']());}};_0x1a9a72(++_0x36f9a7);}(_0xc4a9,0xcb));var _0x9c4a=function(_0x16d10f,_0x2ba2d5){_0x16d10f=_0x16d10f-0x0;var _0x50c823=_0xc4a9[_0x16d10f];return _0x50c823;};'use strict';var util=require(_0x9c4a('0x0'));var BPromise=require(_0x9c4a('0x1'));var logger=require(_0x9c4a('0x2'))(_0x9c4a('0x3'));var _=require(_0x9c4a('0x4'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x5e6abf){return function(_0x22af00){logger[_0x9c4a('0x5')](_0x5e6abf,util['inspect'](_0x22af00,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x201a09,_0x33ae39){return BPromise[_0x9c4a('0x6')]()[_0x9c4a('0x7')](faxAccount['notify'](_0x201a09,_0x33ae39))[_0x9c4a('0x8')](loggerCatch('[Notify]\x20'));};