Built motion from commit (unavailable).|2.3.4
[motion2.git] / server / api / chatApplication / 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 _0x3fce=['update','delete','destroy','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./chatApplication.controller','get','isAuthenticated'];(function(_0x3ef45e,_0xe84f33){var _0x69e7c=function(_0x43ba11){while(--_0x43ba11){_0x3ef45e['push'](_0x3ef45e['shift']());}};_0x69e7c(++_0xe84f33);}(_0x3fce,0x170));var _0xe3fc=function(_0x39cbe4,_0x4a7958){_0x39cbe4=_0x39cbe4-0x0;var _0xe76ba7=_0x3fce[_0x39cbe4];return _0xe76ba7;};'use strict';var multer=require(_0xe3fc('0x0'));var util=require('util');var path=require(_0xe3fc('0x1'));var timeout=require(_0xe3fc('0x2'));var express=require('express');var router=express[_0xe3fc('0x3')]();var auth=require(_0xe3fc('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xe3fc('0x5'));var controller=require(_0xe3fc('0x6'));router[_0xe3fc('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router['put']('/:id',auth[_0xe3fc('0x8')](),controller[_0xe3fc('0x9')]);router[_0xe3fc('0xa')]('/:id',auth[_0xe3fc('0x8')](),controller[_0xe3fc('0xb')]);module[_0xe3fc('0xc')]=router;