Built motion from commit (unavailable).|2.5.22
[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 _0xd890=['../../../config/logger','preview','lodash','error','notify','[Notify]\x20','bluebird'];(function(_0x241ea5,_0x330464){var _0x5cf0de=function(_0x1ca672){while(--_0x1ca672){_0x241ea5['push'](_0x241ea5['shift']());}};_0x5cf0de(++_0x330464);}(_0xd890,0x7d));var _0x0d89=function(_0x3f0b30,_0x159bc8){_0x3f0b30=_0x3f0b30-0x0;var _0x2748a5=_0xd890[_0x3f0b30];return _0x2748a5;};'use strict';var util=require('util');var BPromise=require(_0x0d89('0x0'));var logger=require(_0x0d89('0x1'))(_0x0d89('0x2'));var _=require(_0x0d89('0x3'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x554109){return function(_0x54f485){logger[_0x0d89('0x4')](_0x554109,util['inspect'](_0x54f485,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x9bdae4,_0x4f60a8){return BPromise['resolve']()['then'](faxAccount[_0x0d89('0x5')](_0x9bdae4,_0x4f60a8))['catch'](loggerCatch(_0x0d89('0x6')));};