Built motion from commit (unavailable).|2.4.18
[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 _0xde40=['../../../config/logger','lodash','../rpc/faxAccount','error','inspect','resolve','then','bluebird'];(function(_0x4a1d44,_0x1017ea){var _0x25bca4=function(_0x4b74fc){while(--_0x4b74fc){_0x4a1d44['push'](_0x4a1d44['shift']());}};_0x25bca4(++_0x1017ea);}(_0xde40,0x12f));var _0x0de4=function(_0x47a034,_0x41dba6){_0x47a034=_0x47a034-0x0;var _0xd9ff7d=_0xde40[_0x47a034];return _0xd9ff7d;};'use strict';var util=require('util');var BPromise=require(_0x0de4('0x0'));var logger=require(_0x0de4('0x1'))('preview');var _=require(_0x0de4('0x2'));var faxAccount=require(_0x0de4('0x3'));function loggerCatch(_0x3d6477){return function(_0x107a0e){logger[_0x0de4('0x4')](_0x3d6477,util[_0x0de4('0x5')](_0x107a0e,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x5323c2,_0x229fc6){return BPromise[_0x0de4('0x6')]()[_0x0de4('0x7')](faxAccount['notify'](_0x5323c2,_0x229fc6))['catch'](loggerCatch('[Notify]\x20'));};