Built motion from commit (unavailable).|2.4.18
[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 _0x005b=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller','get','put','/:id','update','delete','isAuthenticated','destroy','exports','util'];(function(_0x5466ab,_0x227b13){var _0x40751a=function(_0x477f9e){while(--_0x477f9e){_0x5466ab['push'](_0x5466ab['shift']());}};_0x40751a(++_0x227b13);}(_0x005b,0x1cf));var _0xb005=function(_0x2686a3,_0x229d7c){_0x2686a3=_0x2686a3-0x0;var _0xd0f890=_0x005b[_0x2686a3];return _0xd0f890;};'use strict';var multer=require('multer');var util=require(_0xb005('0x0'));var path=require('path');var timeout=require(_0xb005('0x1'));var express=require(_0xb005('0x2'));var router=express[_0xb005('0x3')]();var auth=require(_0xb005('0x4'));var interaction=require(_0xb005('0x5'));var config=require(_0xb005('0x6'));var controller=require(_0xb005('0x7'));router[_0xb005('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xb005('0x9')](_0xb005('0xa'),auth['isAuthenticated'](),controller[_0xb005('0xb')]);router[_0xb005('0xc')](_0xb005('0xa'),auth[_0xb005('0xd')](),controller[_0xb005('0xe')]);module[_0xb005('0xf')]=router;