7113a71e744eb12d82ec8dd1ba204805d50d6901
[motion2.git] / server / api / chatProactiveAction / 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 _0x5292=['../../components/interaction/service','../../config/environment','get','post','isAuthenticated','/:id','delete','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service'];(function(_0x46fcbd,_0x447f3b){var _0x1a6d58=function(_0x35d5f7){while(--_0x35d5f7){_0x46fcbd['push'](_0x46fcbd['shift']());}};_0x1a6d58(++_0x447f3b);}(_0x5292,0xf7));var _0x2529=function(_0x58256e,_0x48f062){_0x58256e=_0x58256e-0x0;var _0xc9e57b=_0x5292[_0x58256e];return _0xc9e57b;};'use strict';var multer=require(_0x2529('0x0'));var util=require(_0x2529('0x1'));var path=require('path');var timeout=require(_0x2529('0x2'));var express=require('express');var router=express[_0x2529('0x3')]();var auth=require(_0x2529('0x4'));var interaction=require(_0x2529('0x5'));var config=require(_0x2529('0x6'));var controller=require('./chatProactiveAction.controller');router[_0x2529('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x2529('0x8')]('/',auth[_0x2529('0x9')](),controller['create']);router['put'](_0x2529('0xa'),auth[_0x2529('0x9')](),controller['update']);router[_0x2529('0xb')](_0x2529('0xa'),auth[_0x2529('0x9')](),controller[_0x2529('0xc')]);module[_0x2529('0xd')]=router;