Built motion from commit 753c950e.|2.5.42
[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 _0x0043=['bluebird','lodash','../rpc/faxAccount','error','inspect','resolve','catch','[Notify]\x20','util'];(function(_0x3e5086,_0x48f4a2){var _0xfeb102=function(_0x5a945f){while(--_0x5a945f){_0x3e5086['push'](_0x3e5086['shift']());}};_0xfeb102(++_0x48f4a2);}(_0x0043,0x14c));var _0x3004=function(_0x56ba92,_0xb3c986){_0x56ba92=_0x56ba92-0x0;var _0x8fe94d=_0x0043[_0x56ba92];return _0x8fe94d;};'use strict';var util=require(_0x3004('0x0'));var BPromise=require(_0x3004('0x1'));var logger=require('../../../config/logger')('preview');var _=require(_0x3004('0x2'));var faxAccount=require(_0x3004('0x3'));function loggerCatch(_0x3ae91b){return function(_0x3d6f9d){logger[_0x3004('0x4')](_0x3ae91b,util[_0x3004('0x5')](_0x3d6f9d,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x40a29d,_0x15882f){return BPromise[_0x3004('0x6')]()['then'](faxAccount['notify'](_0x40a29d,_0x15882f))[_0x3004('0x7')](loggerCatch(_0x3004('0x8')));};