b6c33f91a3f26449ce736b282a970e7c6a90dd2d
[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 _0xe11a=['resolve','catch','[Notify]\x20','util','bluebird','preview','lodash','error','notify'];(function(_0x30f08a,_0x192ad6){var _0xd4b02=function(_0x160d10){while(--_0x160d10){_0x30f08a['push'](_0x30f08a['shift']());}};_0xd4b02(++_0x192ad6);}(_0xe11a,0x1e0));var _0xae11=function(_0x31d73c,_0x36a18f){_0x31d73c=_0x31d73c-0x0;var _0x1fb0a0=_0xe11a[_0x31d73c];return _0x1fb0a0;};'use strict';var util=require(_0xae11('0x0'));var BPromise=require(_0xae11('0x1'));var logger=require('../../../config/logger')(_0xae11('0x2'));var _=require(_0xae11('0x3'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x2a409c){return function(_0x16dc22){logger[_0xae11('0x4')](_0x2a409c,util['inspect'](_0x16dc22,{'showHidden':![],'depth':null}));};}exports[_0xae11('0x5')]=function(_0xc5eb9,_0x3d94e7){return BPromise[_0xae11('0x6')]()['then'](faxAccount['notify'](_0xc5eb9,_0x3d94e7))[_0xae11('0x7')](loggerCatch(_0xae11('0x8')));};