Built motion from commit 994c64e1.|2.6.1
[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 _0x9d0b=['then','catch','util','../../../config/logger','lodash','error','notify','resolve'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x9d0b,0x19a));var _0xb9d0=function(_0x5ba542,_0x1d50a2){_0x5ba542=_0x5ba542-0x0;var _0x53713f=_0x9d0b[_0x5ba542];return _0x53713f;};'use strict';var util=require(_0xb9d0('0x0'));var BPromise=require('bluebird');var logger=require(_0xb9d0('0x1'))('preview');var _=require(_0xb9d0('0x2'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x496c6f){return function(_0x3e34eb){logger[_0xb9d0('0x3')](_0x496c6f,util['inspect'](_0x3e34eb,{'showHidden':![],'depth':null}));};}exports[_0xb9d0('0x4')]=function(_0xdef2ff,_0x151579){return BPromise[_0xb9d0('0x5')]()[_0xb9d0('0x6')](faxAccount[_0xb9d0('0x4')](_0xdef2ff,_0x151579))[_0xb9d0('0x7')](loggerCatch('[Notify]\x20'));};