Built motion from commit 9e1399f3.|2.5.37
[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 _0x5e70=['lodash','error','resolve','notify','catch','[Notify]\x20','util','bluebird','preview'];(function(_0x350182,_0x2a9feb){var _0x4a0892=function(_0x2c994d){while(--_0x2c994d){_0x350182['push'](_0x350182['shift']());}};_0x4a0892(++_0x2a9feb);}(_0x5e70,0x114));var _0x05e7=function(_0xb8f08e,_0x3542cb){_0xb8f08e=_0xb8f08e-0x0;var _0x397344=_0x5e70[_0xb8f08e];return _0x397344;};'use strict';var util=require(_0x05e7('0x0'));var BPromise=require(_0x05e7('0x1'));var logger=require('../../../config/logger')(_0x05e7('0x2'));var _=require(_0x05e7('0x3'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0xf177d8){return function(_0x4699a5){logger[_0x05e7('0x4')](_0xf177d8,util['inspect'](_0x4699a5,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x10885b,_0x5bae12){return BPromise[_0x05e7('0x5')]()['then'](faxAccount[_0x05e7('0x6')](_0x10885b,_0x5bae12))[_0x05e7('0x7')](loggerCatch(_0x05e7('0x8')));};