de6a1cfbd3034b1ea4325e26ef5f0dfc463bc916
[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 _0x9224=['../../../config/logger','preview','lodash','../rpc/faxAccount','error','inspect','notify','resolve','then','catch','[Notify]\x20'];(function(_0x469852,_0x532e8c){var _0xa844b9=function(_0x511046){while(--_0x511046){_0x469852['push'](_0x469852['shift']());}};_0xa844b9(++_0x532e8c);}(_0x9224,0x11e));var _0x4922=function(_0x295f92,_0x5e9fb2){_0x295f92=_0x295f92-0x0;var _0x38c56f=_0x9224[_0x295f92];return _0x38c56f;};'use strict';var util=require('util');var BPromise=require('bluebird');var logger=require(_0x4922('0x0'))(_0x4922('0x1'));var _=require(_0x4922('0x2'));var faxAccount=require(_0x4922('0x3'));function loggerCatch(_0x2d6602){return function(_0x4ebaf3){logger[_0x4922('0x4')](_0x2d6602,util[_0x4922('0x5')](_0x4ebaf3,{'showHidden':![],'depth':null}));};}exports[_0x4922('0x6')]=function(_0x25f8b6,_0x5de1e4){return BPromise[_0x4922('0x7')]()[_0x4922('0x8')](faxAccount['notify'](_0x25f8b6,_0x5de1e4))[_0x4922('0x9')](loggerCatch(_0x4922('0xa')));};