Built motion from commit (unavailable).|2.5.4
[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 _0x668c=['error','notify','util','bluebird','../../../config/logger','preview','../rpc/faxAccount'];(function(_0x11b710,_0x3805eb){var _0x565030=function(_0x5788de){while(--_0x5788de){_0x11b710['push'](_0x11b710['shift']());}};_0x565030(++_0x3805eb);}(_0x668c,0x1bb));var _0xc668=function(_0x1f3c56,_0x598757){_0x1f3c56=_0x1f3c56-0x0;var _0x569524=_0x668c[_0x1f3c56];return _0x569524;};'use strict';var util=require(_0xc668('0x0'));var BPromise=require(_0xc668('0x1'));var logger=require(_0xc668('0x2'))(_0xc668('0x3'));var _=require('lodash');var faxAccount=require(_0xc668('0x4'));function loggerCatch(_0x248445){return function(_0x1e39b3){logger[_0xc668('0x5')](_0x248445,util['inspect'](_0x1e39b3,{'showHidden':![],'depth':null}));};}exports[_0xc668('0x6')]=function(_0x207247,_0x17d143){return BPromise['resolve']()['then'](faxAccount[_0xc668('0x6')](_0x207247,_0x17d143))['catch'](loggerCatch('[Notify]\x20'));};