Built motion from commit 092f8824.|2.5.49
[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 _0x7db2=['inspect','notify','then','catch','[Notify]\x20','util','bluebird','../../../config/logger','preview','error'];(function(_0x1fd675,_0x587658){var _0x521d1c=function(_0x2d16e0){while(--_0x2d16e0){_0x1fd675['push'](_0x1fd675['shift']());}};_0x521d1c(++_0x587658);}(_0x7db2,0x159));var _0x27db=function(_0x907a71,_0xa840f7){_0x907a71=_0x907a71-0x0;var _0x2ed761=_0x7db2[_0x907a71];return _0x2ed761;};'use strict';var util=require(_0x27db('0x0'));var BPromise=require(_0x27db('0x1'));var logger=require(_0x27db('0x2'))(_0x27db('0x3'));var _=require('lodash');var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x2e8e9e){return function(_0x52b7d1){logger[_0x27db('0x4')](_0x2e8e9e,util[_0x27db('0x5')](_0x52b7d1,{'showHidden':![],'depth':null}));};}exports[_0x27db('0x6')]=function(_0x3c746a,_0x4630e6){return BPromise['resolve']()[_0x27db('0x7')](faxAccount[_0x27db('0x6')](_0x3c746a,_0x4630e6))[_0x27db('0x8')](loggerCatch(_0x27db('0x9')));};