Built motion from commit 9d7072cc.|2.5.39
[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 _0xbd35=['delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller','get','show','put','/:id','isAuthenticated'];(function(_0x68c979,_0x431cff){var _0x4f0001=function(_0xa7595d){while(--_0xa7595d){_0x68c979['push'](_0x68c979['shift']());}};_0x4f0001(++_0x431cff);}(_0xbd35,0xd4));var _0x5bd3=function(_0x52692c,_0x4fab07){_0x52692c=_0x52692c-0x0;var _0x11f282=_0xbd35[_0x52692c];return _0x11f282;};'use strict';var multer=require(_0x5bd3('0x0'));var util=require(_0x5bd3('0x1'));var path=require(_0x5bd3('0x2'));var timeout=require(_0x5bd3('0x3'));var express=require(_0x5bd3('0x4'));var router=express[_0x5bd3('0x5')]();var fs_extra=require(_0x5bd3('0x6'));var auth=require(_0x5bd3('0x7'));var interaction=require(_0x5bd3('0x8'));var config=require(_0x5bd3('0x9'));var controller=require(_0x5bd3('0xa'));router[_0x5bd3('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x5bd3('0xc')]);router[_0x5bd3('0xd')](_0x5bd3('0xe'),auth[_0x5bd3('0xf')](),controller['update']);router[_0x5bd3('0x10')]('/:id',auth[_0x5bd3('0xf')](),controller[_0x5bd3('0x11')]);module[_0x5bd3('0x12')]=router;