Built motion from commit (unavailable).|2.5.14
[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 _0xf5ab=['preview','lodash','error','inspect','resolve','then','notify','catch','util','../../../config/logger'];(function(_0x320d4a,_0x123103){var _0x37c05a=function(_0x4b6a47){while(--_0x4b6a47){_0x320d4a['push'](_0x320d4a['shift']());}};_0x37c05a(++_0x123103);}(_0xf5ab,0xa8));var _0xbf5a=function(_0x18a016,_0x9be28b){_0x18a016=_0x18a016-0x0;var _0x19f6c5=_0xf5ab[_0x18a016];return _0x19f6c5;};'use strict';var util=require(_0xbf5a('0x0'));var BPromise=require('bluebird');var logger=require(_0xbf5a('0x1'))(_0xbf5a('0x2'));var _=require(_0xbf5a('0x3'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x184720){return function(_0x4aaa41){logger[_0xbf5a('0x4')](_0x184720,util[_0xbf5a('0x5')](_0x4aaa41,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x4632f3,_0x3f2339){return BPromise[_0xbf5a('0x6')]()[_0xbf5a('0x7')](faxAccount[_0xbf5a('0x8')](_0x4632f3,_0x3f2339))[_0xbf5a('0x9')](loggerCatch('[Notify]\x20'));};