Built motion from commit 3c2ce842.|2.6.31
[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 _0x946d=['lodash','../rpc/faxAccount','error','notify','resolve','then','catch','util','../../../config/logger'];(function(_0x1fdb63,_0x38efab){var _0xd842c9=function(_0x5be500){while(--_0x5be500){_0x1fdb63['push'](_0x1fdb63['shift']());}};_0xd842c9(++_0x38efab);}(_0x946d,0x166));var _0xd946=function(_0x43ec1c,_0x8c42ba){_0x43ec1c=_0x43ec1c-0x0;var _0xcb0afb=_0x946d[_0x43ec1c];return _0xcb0afb;};'use strict';var util=require(_0xd946('0x0'));var BPromise=require('bluebird');var logger=require(_0xd946('0x1'))('preview');var _=require(_0xd946('0x2'));var faxAccount=require(_0xd946('0x3'));function loggerCatch(_0x15da48){return function(_0x30eef7){logger[_0xd946('0x4')](_0x15da48,util['inspect'](_0x30eef7,{'showHidden':![],'depth':null}));};}exports[_0xd946('0x5')]=function(_0x112038,_0x415fd0){return BPromise[_0xd946('0x6')]()[_0xd946('0x7')](faxAccount[_0xd946('0x5')](_0x112038,_0x415fd0))[_0xd946('0x8')](loggerCatch('[Notify]\x20'));};