Built motion from commit 87cd5f02.|2.5.48
[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 _0x2cd9=['then','notify','catch','util','../../../config/logger','lodash','../rpc/faxAccount','inspect','resolve'];(function(_0x45dacb,_0x4b50b2){var _0x1b8c13=function(_0x27deb2){while(--_0x27deb2){_0x45dacb['push'](_0x45dacb['shift']());}};_0x1b8c13(++_0x4b50b2);}(_0x2cd9,0x18f));var _0x92cd=function(_0x1affd2,_0x291512){_0x1affd2=_0x1affd2-0x0;var _0x34996e=_0x2cd9[_0x1affd2];return _0x34996e;};'use strict';var util=require(_0x92cd('0x0'));var BPromise=require('bluebird');var logger=require(_0x92cd('0x1'))('preview');var _=require(_0x92cd('0x2'));var faxAccount=require(_0x92cd('0x3'));function loggerCatch(_0x30d756){return function(_0x3d82a9){logger['error'](_0x30d756,util[_0x92cd('0x4')](_0x3d82a9,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x22eed9,_0x1e8cca){return BPromise[_0x92cd('0x5')]()[_0x92cd('0x6')](faxAccount[_0x92cd('0x7')](_0x22eed9,_0x1e8cca))[_0x92cd('0x8')](loggerCatch('[Notify]\x20'));};