cbe25f18252e8ff3d56474f66a5746f8fa020624
[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 _0x46f9=['isAuthenticated','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./chatApplication.controller','/:id','show','put'];(function(_0x411ac3,_0x533b20){var _0x106c94=function(_0x1cf0e4){while(--_0x1cf0e4){_0x411ac3['push'](_0x411ac3['shift']());}};_0x106c94(++_0x533b20);}(_0x46f9,0x84));var _0x946f=function(_0x870840,_0x5da3ce){_0x870840=_0x870840-0x0;var _0xa81d7d=_0x46f9[_0x870840];return _0xa81d7d;};'use strict';var multer=require(_0x946f('0x0'));var util=require(_0x946f('0x1'));var path=require(_0x946f('0x2'));var timeout=require(_0x946f('0x3'));var express=require(_0x946f('0x4'));var router=express[_0x946f('0x5')]();var auth=require(_0x946f('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x946f('0x7'));var controller=require(_0x946f('0x8'));router['get'](_0x946f('0x9'),auth['isAuthenticated'](),controller[_0x946f('0xa')]);router[_0x946f('0xb')](_0x946f('0x9'),auth[_0x946f('0xc')](),controller[_0x946f('0xd')]);router['delete'](_0x946f('0x9'),auth['isAuthenticated'](),controller[_0x946f('0xe')]);module[_0x946f('0xf')]=router;