853c029aa031005d355d4301e36a186c8ccad057
[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 _0x0c27=['error','inspect','notify','resolve','then','util','bluebird','../../../config/logger','preview','lodash'];(function(_0x491fd8,_0x3fd5fa){var _0x4e27d2=function(_0x2e438e){while(--_0x2e438e){_0x491fd8['push'](_0x491fd8['shift']());}};_0x4e27d2(++_0x3fd5fa);}(_0x0c27,0xe1));var _0x70c2=function(_0x372333,_0x4abfdb){_0x372333=_0x372333-0x0;var _0x3e64c2=_0x0c27[_0x372333];return _0x3e64c2;};'use strict';var util=require(_0x70c2('0x0'));var BPromise=require(_0x70c2('0x1'));var logger=require(_0x70c2('0x2'))(_0x70c2('0x3'));var _=require(_0x70c2('0x4'));var faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x393d66){return function(_0x4d8964){logger[_0x70c2('0x5')](_0x393d66,util[_0x70c2('0x6')](_0x4d8964,{'showHidden':![],'depth':null}));};}exports[_0x70c2('0x7')]=function(_0x254bad,_0xc23075){return BPromise[_0x70c2('0x8')]()[_0x70c2('0x9')](faxAccount['notify'](_0x254bad,_0xc23075))['catch'](loggerCatch('[Notify]\x20'));};