Built motion from commit (unavailable).|2.5.23
[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 _0xbc22=['resolve','then','notify','catch','[Notify]\x20','../../../config/logger','preview','../rpc/faxAccount','error'];(function(_0x33154d,_0x854047){var _0x3b2f03=function(_0x35f7a6){while(--_0x35f7a6){_0x33154d['push'](_0x33154d['shift']());}};_0x3b2f03(++_0x854047);}(_0xbc22,0xb9));var _0x2bc2=function(_0x4fa291,_0x56e289){_0x4fa291=_0x4fa291-0x0;var _0x506d9b=_0xbc22[_0x4fa291];return _0x506d9b;};'use strict';var util=require('util');var BPromise=require('bluebird');var logger=require(_0x2bc2('0x0'))(_0x2bc2('0x1'));var _=require('lodash');var faxAccount=require(_0x2bc2('0x2'));function loggerCatch(_0x3d3516){return function(_0xfd4cc6){logger[_0x2bc2('0x3')](_0x3d3516,util['inspect'](_0xfd4cc6,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x2e9248,_0x5234aa){return BPromise[_0x2bc2('0x4')]()[_0x2bc2('0x5')](faxAccount[_0x2bc2('0x6')](_0x2e9248,_0x5234aa))[_0x2bc2('0x7')](loggerCatch(_0x2bc2('0x8')));};