Built motion from commit (unavailable).|2.5.24
[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 _0xb501=['Router','../../components/auth/service','../../components/interaction/service','get','/:id','isAuthenticated','show','create','put','update','delete','exports','multer','path','connect-timeout'];(function(_0x31aed2,_0x5df37c){var _0x5a0e71=function(_0x1544c8){while(--_0x1544c8){_0x31aed2['push'](_0x31aed2['shift']());}};_0x5a0e71(++_0x5df37c);}(_0xb501,0x1ce));var _0x1b50=function(_0x3881d1,_0x20a153){_0x3881d1=_0x3881d1-0x0;var _0x1ae97d=_0xb501[_0x3881d1];return _0x1ae97d;};'use strict';var multer=require(_0x1b50('0x0'));var util=require('util');var path=require(_0x1b50('0x1'));var timeout=require(_0x1b50('0x2'));var express=require('express');var router=express[_0x1b50('0x3')]();var auth=require(_0x1b50('0x4'));var interaction=require(_0x1b50('0x5'));var config=require('../../config/environment');var controller=require('./chatProactiveAction.controller');router[_0x1b50('0x6')](_0x1b50('0x7'),auth[_0x1b50('0x8')](),controller[_0x1b50('0x9')]);router['post']('/',auth[_0x1b50('0x8')](),controller[_0x1b50('0xa')]);router[_0x1b50('0xb')]('/:id',auth[_0x1b50('0x8')](),controller[_0x1b50('0xc')]);router[_0x1b50('0xd')](_0x1b50('0x7'),auth[_0x1b50('0x8')](),controller['destroy']);module[_0x1b50('0xe')]=router;