Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / userNotification / index.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 _0x080e=['sendUserNotification','exports','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment'];(function(_0x46bcbd,_0x2fd740){var _0x4cc94a=function(_0x22c825){while(--_0x22c825){_0x46bcbd['push'](_0x46bcbd['shift']());}};_0x4cc94a(++_0x2fd740);}(_0x080e,0xca));var _0xe080=function(_0x4a0fca,_0xba7712){_0x4a0fca=_0x4a0fca-0x0;var _0x332687=_0x080e[_0x4a0fca];return _0x332687;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xe080('0x0'));var timeout=require('connect-timeout');var express=require(_0xe080('0x1'));var router=express[_0xe080('0x2')]();var fs_extra=require(_0xe080('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xe080('0x4'));var config=require(_0xe080('0x5'));var controller=require('./userNotification.controller');router['post']('/',auth['isAuthenticated'](),controller[_0xe080('0x6')]);module[_0xe080('0x7')]=router;