Built motion from commit (unavailable).|2.5.21
[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 _0x3964=['../rpc/faxAccount','error','inspect','catch','bluebird','../../../config/logger','preview','lodash'];(function(_0x7b7b9d,_0x2bda49){var _0x523496=function(_0x562a70){while(--_0x562a70){_0x7b7b9d['push'](_0x7b7b9d['shift']());}};_0x523496(++_0x2bda49);}(_0x3964,0x84));var _0x4396=function(_0x3ae48b,_0x37d982){_0x3ae48b=_0x3ae48b-0x0;var _0x4c7724=_0x3964[_0x3ae48b];return _0x4c7724;};'use strict';var util=require('util');var BPromise=require(_0x4396('0x0'));var logger=require(_0x4396('0x1'))(_0x4396('0x2'));var _=require(_0x4396('0x3'));var faxAccount=require(_0x4396('0x4'));function loggerCatch(_0x513473){return function(_0x3db5ff){logger[_0x4396('0x5')](_0x513473,util[_0x4396('0x6')](_0x3db5ff,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0xd14143,_0x2d8be9){return BPromise['resolve']()['then'](faxAccount['notify'](_0xd14143,_0x2d8be9))[_0x4396('0x7')](loggerCatch('[Notify]\x20'));};