Built motion from commit (unavailable).|2.5.7
[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 _0x6043=['resolve','then','notify','[Notify]\x20','util','bluebird','../../../config/logger','lodash'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x6043,0x16c));var _0x3604=function(_0x59d12e,_0x1128ff){_0x59d12e=_0x59d12e-0x0;var _0x2f5ee4=_0x6043[_0x59d12e];return _0x2f5ee4;};'use strict';var util=require(_0x3604('0x0'));var BPromise=require(_0x3604('0x1'));var logger=require(_0x3604('0x2'))('preview');var _=require(_0x3604('0x3'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x50cbf5){return function(_0x5d385f){logger['error'](_0x50cbf5,util['inspect'](_0x5d385f,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x4960d1,_0x48afad){return BPromise[_0x3604('0x4')]()[_0x3604('0x5')](faxAccount[_0x3604('0x6')](_0x4960d1,_0x48afad))['catch'](loggerCatch(_0x3604('0x7')));};