Built motion from commit ff78e754.|2.6.29
[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 _0x3343=['inspect','notify','resolve','then','[Notify]\x20','util','bluebird','../../../config/logger','preview','lodash','error'];(function(_0x3caae2,_0x30fb21){var _0x2632ba=function(_0x2456aa){while(--_0x2456aa){_0x3caae2['push'](_0x3caae2['shift']());}};_0x2632ba(++_0x30fb21);}(_0x3343,0x14f));var _0x3334=function(_0x3e6729,_0x16d4af){_0x3e6729=_0x3e6729-0x0;var _0x535bcd=_0x3343[_0x3e6729];return _0x535bcd;};'use strict';var util=require(_0x3334('0x0'));var BPromise=require(_0x3334('0x1'));var logger=require(_0x3334('0x2'))(_0x3334('0x3'));var _=require(_0x3334('0x4'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0xda7349){return function(_0x1ca0ca){logger[_0x3334('0x5')](_0xda7349,util[_0x3334('0x6')](_0x1ca0ca,{'showHidden':![],'depth':null}));};}exports[_0x3334('0x7')]=function(_0x42ec86,_0x4fc5bf){return BPromise[_0x3334('0x8')]()[_0x3334('0x9')](faxAccount[_0x3334('0x7')](_0x42ec86,_0x4fc5bf))['catch'](loggerCatch(_0x3334('0xa')));};