Built motion from commit ffdca78c.|2.6.24
[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 _0x6057=['../rpc/faxAccount','error','then','catch','util','bluebird','../../../config/logger','preview','lodash'];(function(_0x1820e1,_0xaf853f){var _0x272225=function(_0x479b0b){while(--_0x479b0b){_0x1820e1['push'](_0x1820e1['shift']());}};_0x272225(++_0xaf853f);}(_0x6057,0x1d8));var _0x7605=function(_0x22b39b,_0x2b7d63){_0x22b39b=_0x22b39b-0x0;var _0x280e1d=_0x6057[_0x22b39b];return _0x280e1d;};'use strict';var util=require(_0x7605('0x0'));var BPromise=require(_0x7605('0x1'));var logger=require(_0x7605('0x2'))(_0x7605('0x3'));var _=require(_0x7605('0x4'));var faxAccount=require(_0x7605('0x5'));function loggerCatch(_0x3e4a43){return function(_0x5e6895){logger[_0x7605('0x6')](_0x3e4a43,util['inspect'](_0x5e6895,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x5db6c0,_0x52f57e){return BPromise['resolve']()[_0x7605('0x7')](faxAccount['notify'](_0x5db6c0,_0x52f57e))[_0x7605('0x8')](loggerCatch('[Notify]\x20'));};