Built motion from commit (unavailable).|2.5.24
[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 _0xdd80=['util','bluebird','../../../config/logger','preview','lodash','../rpc/faxAccount','error','then','[Notify]\x20'];(function(_0x14f9ea,_0x263ab3){var _0x2a5d2a=function(_0x1bc793){while(--_0x1bc793){_0x14f9ea['push'](_0x14f9ea['shift']());}};_0x2a5d2a(++_0x263ab3);}(_0xdd80,0x1b0));var _0x0dd8=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0xdd80[_0x6c993a];return _0x27f547;};'use strict';var util=require(_0x0dd8('0x0'));var BPromise=require(_0x0dd8('0x1'));var logger=require(_0x0dd8('0x2'))(_0x0dd8('0x3'));var _=require(_0x0dd8('0x4'));var faxAccount=require(_0x0dd8('0x5'));function loggerCatch(_0x5b2b5a){return function(_0x4fae07){logger[_0x0dd8('0x6')](_0x5b2b5a,util['inspect'](_0x4fae07,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x3521e4,_0x43010f){return BPromise['resolve']()[_0x0dd8('0x7')](faxAccount['notify'](_0x3521e4,_0x43010f))['catch'](loggerCatch(_0x0dd8('0x8')));};