Built motion from commit (unavailable).|2.3.10
[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 _0xd38f=['inspect','resolve','then','catch','preview','lodash','../rpc/faxAccount','error'];(function(_0x50a8cd,_0x599dcc){var _0x1e0405=function(_0x2e1777){while(--_0x2e1777){_0x50a8cd['push'](_0x50a8cd['shift']());}};_0x1e0405(++_0x599dcc);}(_0xd38f,0x10c));var _0xfd38=function(_0xa0bf93,_0x23f45){_0xa0bf93=_0xa0bf93-0x0;var _0xd3c175=_0xd38f[_0xa0bf93];return _0xd3c175;};'use strict';var util=require('util');var BPromise=require('bluebird');var logger=require('../../../config/logger')(_0xfd38('0x0'));var _=require(_0xfd38('0x1'));var faxAccount=require(_0xfd38('0x2'));function loggerCatch(_0x2a86c2){return function(_0x827c25){logger[_0xfd38('0x3')](_0x2a86c2,util[_0xfd38('0x4')](_0x827c25,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x5a9d80,_0x3d1e10){return BPromise[_0xfd38('0x5')]()[_0xfd38('0x6')](faxAccount['notify'](_0x5a9d80,_0x3d1e10))[_0xfd38('0x7')](loggerCatch('[Notify]\x20'));};