Built motion from commit 43538d75.|2.5.35
[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 _0xfbd9=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller','/:id','isAuthenticated','show','put','delete','exports','multer'];(function(_0x54974c,_0x4cf913){var _0x218cf4=function(_0x405637){while(--_0x405637){_0x54974c['push'](_0x54974c['shift']());}};_0x218cf4(++_0x4cf913);}(_0xfbd9,0xdf));var _0x9fbd=function(_0x2a3802,_0x4a8109){_0x2a3802=_0x2a3802-0x0;var _0x54f6c2=_0xfbd9[_0x2a3802];return _0x54f6c2;};'use strict';var multer=require(_0x9fbd('0x0'));var util=require(_0x9fbd('0x1'));var path=require('path');var timeout=require(_0x9fbd('0x2'));var express=require(_0x9fbd('0x3'));var router=express[_0x9fbd('0x4')]();var fs_extra=require(_0x9fbd('0x5'));var auth=require(_0x9fbd('0x6'));var interaction=require(_0x9fbd('0x7'));var config=require(_0x9fbd('0x8'));var controller=require(_0x9fbd('0x9'));router['get'](_0x9fbd('0xa'),auth[_0x9fbd('0xb')](),controller[_0x9fbd('0xc')]);router[_0x9fbd('0xd')](_0x9fbd('0xa'),auth[_0x9fbd('0xb')](),controller['update']);router[_0x9fbd('0xe')](_0x9fbd('0xa'),auth[_0x9fbd('0xb')](),controller['destroy']);module[_0x9fbd('0xf')]=router;