Built motion from commit 85328c08.|2.5.50
[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 _0x248f=['lodash','../rpc/faxAccount','error','inspect','notify','catch','util','bluebird','../../../config/logger','preview'];(function(_0x20b04c,_0xd79139){var _0x5b4236=function(_0x5c4f9e){while(--_0x5c4f9e){_0x20b04c['push'](_0x20b04c['shift']());}};_0x5b4236(++_0xd79139);}(_0x248f,0x88));var _0xf248=function(_0x1331b2,_0x3df22b){_0x1331b2=_0x1331b2-0x0;var _0x10f741=_0x248f[_0x1331b2];return _0x10f741;};'use strict';var util=require(_0xf248('0x0'));var BPromise=require(_0xf248('0x1'));var logger=require(_0xf248('0x2'))(_0xf248('0x3'));var _=require(_0xf248('0x4'));var faxAccount=require(_0xf248('0x5'));function loggerCatch(_0xe1f684){return function(_0x50e4a5){logger[_0xf248('0x6')](_0xe1f684,util[_0xf248('0x7')](_0x50e4a5,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x279dd4,_0x1e69d7){return BPromise['resolve']()['then'](faxAccount[_0xf248('0x8')](_0x279dd4,_0x1e69d7))[_0xf248('0x9')](loggerCatch('[Notify]\x20'));};