Built motion from commit (unavailable).|2.5.15
[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 _0x6f8e=['[Notify]\x20','../../../config/logger','preview','lodash','error','inspect','notify','resolve','catch'];(function(_0x299831,_0x4c3d6d){var _0x2ea935=function(_0x25ff29){while(--_0x25ff29){_0x299831['push'](_0x299831['shift']());}};_0x2ea935(++_0x4c3d6d);}(_0x6f8e,0x1e7));var _0xe6f8=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x6f8e[_0x501510];return _0x1e6ee5;};'use strict';var util=require('util');var BPromise=require('bluebird');var logger=require(_0xe6f8('0x0'))(_0xe6f8('0x1'));var _=require(_0xe6f8('0x2'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0xea32cd){return function(_0x260279){logger[_0xe6f8('0x3')](_0xea32cd,util[_0xe6f8('0x4')](_0x260279,{'showHidden':![],'depth':null}));};}exports[_0xe6f8('0x5')]=function(_0xaa0354,_0x433cae){return BPromise[_0xe6f8('0x6')]()['then'](faxAccount['notify'](_0xaa0354,_0x433cae))[_0xe6f8('0x7')](loggerCatch(_0xe6f8('0x8')));};