Built motion from commit (unavailable).|2.5.22
[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 _0xc55b=['then','catch','bluebird','../../../config/logger','preview','inspect','notify'];(function(_0x36da00,_0x5b533b){var _0x4b72c5=function(_0x46e26b){while(--_0x46e26b){_0x36da00['push'](_0x36da00['shift']());}};_0x4b72c5(++_0x5b533b);}(_0xc55b,0xf7));var _0xbc55=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0xc55b[_0x3947c9];return _0x2e7871;};'use strict';var util=require('util');var BPromise=require(_0xbc55('0x0'));var logger=require(_0xbc55('0x1'))(_0xbc55('0x2'));var _=require('lodash');var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x4baa21){return function(_0x4c40d9){logger['error'](_0x4baa21,util[_0xbc55('0x3')](_0x4c40d9,{'showHidden':![],'depth':null}));};}exports[_0xbc55('0x4')]=function(_0xea595a,_0x2cb571){return BPromise['resolve']()[_0xbc55('0x5')](faxAccount['notify'](_0xea595a,_0x2cb571))[_0xbc55('0x6')](loggerCatch('[Notify]\x20'));};