41e744238f0b6e6743d39162b886197065432354
[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 _0x69fe=['error','inspect','resolve','then','notify','catch','[Notify]\x20','bluebird','../../../config/logger','lodash','../rpc/faxAccount'];(function(_0xfb1b76,_0x43ca5b){var _0x246c82=function(_0xa4058c){while(--_0xa4058c){_0xfb1b76['push'](_0xfb1b76['shift']());}};_0x246c82(++_0x43ca5b);}(_0x69fe,0x1e0));var _0xe69f=function(_0x11787e,_0x46178f){_0x11787e=_0x11787e-0x0;var _0x254845=_0x69fe[_0x11787e];return _0x254845;};'use strict';var util=require('util');var BPromise=require(_0xe69f('0x0'));var logger=require(_0xe69f('0x1'))('preview');var _=require(_0xe69f('0x2'));var faxAccount=require(_0xe69f('0x3'));function loggerCatch(_0x12ede4){return function(_0x454c90){logger[_0xe69f('0x4')](_0x12ede4,util[_0xe69f('0x5')](_0x454c90,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x1296dd,_0x4b3f63){return BPromise[_0xe69f('0x6')]()[_0xe69f('0x7')](faxAccount[_0xe69f('0x8')](_0x1296dd,_0x4b3f63))[_0xe69f('0x9')](loggerCatch(_0xe69f('0xa')));};