Built motion from commit (unavailable).|2.5.1
[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 _0xb855=['then','notify','catch','util','bluebird','../../../config/logger','../rpc/faxAccount','error','inspect'];(function(_0x20902a,_0x835e0f){var _0xda80d9=function(_0xfdc301){while(--_0xfdc301){_0x20902a['push'](_0x20902a['shift']());}};_0xda80d9(++_0x835e0f);}(_0xb855,0x147));var _0x5b85=function(_0x5712f8,_0x17156b){_0x5712f8=_0x5712f8-0x0;var _0x14a364=_0xb855[_0x5712f8];return _0x14a364;};'use strict';var util=require(_0x5b85('0x0'));var BPromise=require(_0x5b85('0x1'));var logger=require(_0x5b85('0x2'))('preview');var _=require('lodash');var faxAccount=require(_0x5b85('0x3'));function loggerCatch(_0x1980f9){return function(_0x3231ea){logger[_0x5b85('0x4')](_0x1980f9,util[_0x5b85('0x5')](_0x3231ea,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x18396f,_0x21ffab){return BPromise['resolve']()[_0x5b85('0x6')](faxAccount[_0x5b85('0x7')](_0x18396f,_0x21ffab))[_0x5b85('0x8')](loggerCatch('[Notify]\x20'));};