Built motion from commit (unavailable).|2.5.5
[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 _0x4de1=['notify','catch','util','bluebird','preview','lodash','../rpc/faxAccount','inspect','resolve','then'];(function(_0x334841,_0x2bbc4c){var _0x5beb4b=function(_0x4bea72){while(--_0x4bea72){_0x334841['push'](_0x334841['shift']());}};_0x5beb4b(++_0x2bbc4c);}(_0x4de1,0x188));var _0x14de=function(_0x1d558c,_0x1e497c){_0x1d558c=_0x1d558c-0x0;var _0x15767d=_0x4de1[_0x1d558c];return _0x15767d;};'use strict';var util=require(_0x14de('0x0'));var BPromise=require(_0x14de('0x1'));var logger=require('../../../config/logger')(_0x14de('0x2'));var _=require(_0x14de('0x3'));var faxAccount=require(_0x14de('0x4'));function loggerCatch(_0x42de32){return function(_0x2ec6f2){logger['error'](_0x42de32,util[_0x14de('0x5')](_0x2ec6f2,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x90e889,_0x5a3dbf){return BPromise[_0x14de('0x6')]()[_0x14de('0x7')](faxAccount[_0x14de('0x8')](_0x90e889,_0x5a3dbf))[_0x14de('0x9')](loggerCatch('[Notify]\x20'));};