Built motion from commit f0a64034.|2.6.11
[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 _0x3f74=['../rpc/faxAccount','error','resolve','notify','catch','[Notify]\x20','util','../../../config/logger','preview','lodash'];(function(_0x4f4c2a,_0x5f5a28){var _0xd15be6=function(_0x1bc725){while(--_0x1bc725){_0x4f4c2a['push'](_0x4f4c2a['shift']());}};_0xd15be6(++_0x5f5a28);}(_0x3f74,0x7e));var _0x43f7=function(_0x2b37e5,_0x37f7a5){_0x2b37e5=_0x2b37e5-0x0;var _0xa93d58=_0x3f74[_0x2b37e5];return _0xa93d58;};'use strict';var util=require(_0x43f7('0x0'));var BPromise=require('bluebird');var logger=require(_0x43f7('0x1'))(_0x43f7('0x2'));var _=require(_0x43f7('0x3'));var faxAccount=require(_0x43f7('0x4'));function loggerCatch(_0x502b24){return function(_0x24545e){logger[_0x43f7('0x5')](_0x502b24,util['inspect'](_0x24545e,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x1b9fe9,_0x248f58){return BPromise[_0x43f7('0x6')]()['then'](faxAccount[_0x43f7('0x7')](_0x1b9fe9,_0x248f58))[_0x43f7('0x8')](loggerCatch(_0x43f7('0x9')));};