Built motion from commit 3c2ce842.|2.6.31
[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 _0xb8b3=['[Notify]\x20','bluebird','../../../config/logger','preview','error','notify','catch'];(function(_0x190aff,_0x2cb56c){var _0x3a934c=function(_0x4222cc){while(--_0x4222cc){_0x190aff['push'](_0x190aff['shift']());}};_0x3a934c(++_0x2cb56c);}(_0xb8b3,0x1ba));var _0x3b8b=function(_0xd22d95,_0xc59f8f){_0xd22d95=_0xd22d95-0x0;var _0x15d7a3=_0xb8b3[_0xd22d95];return _0x15d7a3;};'use strict';var util=require('util');var BPromise=require(_0x3b8b('0x0'));var logger=require(_0x3b8b('0x1'))(_0x3b8b('0x2'));var _=require('lodash');var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x571b80){return function(_0x334766){logger[_0x3b8b('0x3')](_0x571b80,util['inspect'](_0x334766,{'showHidden':![],'depth':null}));};}exports[_0x3b8b('0x4')]=function(_0xe5188e,_0x951ee1){return BPromise['resolve']()['then'](faxAccount[_0x3b8b('0x4')](_0xe5188e,_0x951ee1))[_0x3b8b('0x5')](loggerCatch(_0x3b8b('0x6')));};