aa08acc4121ea5425cf25286480c13d412efae60
[motion2.git] / server / api / notification / 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 _0x925a=['isAuthenticated','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./notification.controller'];(function(_0x4ea413,_0x51ff3a){var _0x51cf25=function(_0x3c6456){while(--_0x3c6456){_0x4ea413['push'](_0x4ea413['shift']());}};_0x51cf25(++_0x51ff3a);}(_0x925a,0x181));var _0xa925=function(_0x1fee8f,_0x4691fc){_0x1fee8f=_0x1fee8f-0x0;var _0x59787f=_0x925a[_0x1fee8f];return _0x59787f;};'use strict';var multer=require('multer');var util=require(_0xa925('0x0'));var path=require(_0xa925('0x1'));var timeout=require(_0xa925('0x2'));var express=require('express');var router=express[_0xa925('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xa925('0x4'));var config=require(_0xa925('0x5'));var controller=require(_0xa925('0x6'));router['post']('/',auth[_0xa925('0x7')](),controller['sendNotification']);module['exports']=router;