Built motion from commit 9d7072cc.|2.5.39
[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 _0xb050=['preview','../rpc/faxAccount','error','notify','resolve','then','catch','util','bluebird','../../../config/logger'];(function(_0x3bce29,_0x5568c7){var _0x45a6b9=function(_0x91f8ac){while(--_0x91f8ac){_0x3bce29['push'](_0x3bce29['shift']());}};_0x45a6b9(++_0x5568c7);}(_0xb050,0x75));var _0x0b05=function(_0xea6e9c,_0x228a01){_0xea6e9c=_0xea6e9c-0x0;var _0x4e4e32=_0xb050[_0xea6e9c];return _0x4e4e32;};'use strict';var util=require(_0x0b05('0x0'));var BPromise=require(_0x0b05('0x1'));var logger=require(_0x0b05('0x2'))(_0x0b05('0x3'));var _=require('lodash');var faxAccount=require(_0x0b05('0x4'));function loggerCatch(_0x5d164a){return function(_0x155725){logger[_0x0b05('0x5')](_0x5d164a,util['inspect'](_0x155725,{'showHidden':![],'depth':null}));};}exports[_0x0b05('0x6')]=function(_0x387de7,_0x3bd517){return BPromise[_0x0b05('0x7')]()[_0x0b05('0x8')](faxAccount[_0x0b05('0x6')](_0x387de7,_0x3bd517))[_0x0b05('0x9')](loggerCatch('[Notify]\x20'));};