Built motion from commit (unavailable).|2.5.15
[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 _0xd652=['delete','destroy','exports','util','path','express','Router','../../components/auth/service','../../config/environment','./chatProactiveAction.controller','show','post','isAuthenticated','create','/:id','update'];(function(_0x28beb8,_0xbe2ec5){var _0x11ef87=function(_0x450e7f){while(--_0x450e7f){_0x28beb8['push'](_0x28beb8['shift']());}};_0x11ef87(++_0xbe2ec5);}(_0xd652,0xe3));var _0x2d65=function(_0x56fc59,_0x1d808a){_0x56fc59=_0x56fc59-0x0;var _0x426b31=_0xd652[_0x56fc59];return _0x426b31;};'use strict';var multer=require('multer');var util=require(_0x2d65('0x0'));var path=require(_0x2d65('0x1'));var timeout=require('connect-timeout');var express=require(_0x2d65('0x2'));var router=express[_0x2d65('0x3')]();var auth=require(_0x2d65('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x2d65('0x5'));var controller=require(_0x2d65('0x6'));router['get']('/:id',auth['isAuthenticated'](),controller[_0x2d65('0x7')]);router[_0x2d65('0x8')]('/',auth[_0x2d65('0x9')](),controller[_0x2d65('0xa')]);router['put'](_0x2d65('0xb'),auth['isAuthenticated'](),controller[_0x2d65('0xc')]);router[_0x2d65('0xd')](_0x2d65('0xb'),auth[_0x2d65('0x9')](),controller[_0x2d65('0xe')]);module[_0x2d65('0xf')]=router;