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 _0x400e=['[Notify]\x20','util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount','notify','resolve','catch'];(function(_0x2d9535,_0x4bc592){var _0xb4e710=function(_0x50b9a9){while(--_0x50b9a9){_0x2d9535['push'](_0x2d9535['shift']());}};_0xb4e710(++_0x4bc592);}(_0x400e,0xf1));var _0xe400=function(_0x209fcd,_0x1ecccc){_0x209fcd=_0x209fcd-0x0;var _0x501d5e=_0x400e[_0x209fcd];return _0x501d5e;};'use strict';var util=require(_0xe400('0x0'));var BPromise=require(_0xe400('0x1'));var logger=require(_0xe400('0x2'))(_0xe400('0x3'));var _=require(_0xe400('0x4'));var faxAccount=require(_0xe400('0x5'));function loggerCatch(_0x203cd4){return function(_0x434ec7){logger['error'](_0x203cd4,util['inspect'](_0x434ec7,{'showHidden':![],'depth':null}));};}exports[_0xe400('0x6')]=function(_0x529d94,_0x17fde4){return BPromise[_0xe400('0x7')]()['then'](faxAccount[_0xe400('0x6')](_0x529d94,_0x17fde4))[_0xe400('0x8')](loggerCatch(_0xe400('0x9')));};