173b85e8d3fbfcd30f7f60f94a657ba216ea0c2f
[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 _0x17d2=['../../components/auth/service','../../components/interaction/service','./chatApplication.controller','get','/:id','isAuthenticated','show','put','exports','multer','path','connect-timeout','express','Router'];(function(_0xd58a17,_0x3d09ef){var _0x48d36b=function(_0x169aa8){while(--_0x169aa8){_0xd58a17['push'](_0xd58a17['shift']());}};_0x48d36b(++_0x3d09ef);}(_0x17d2,0x79));var _0x217d=function(_0x14a277,_0x1e70b2){_0x14a277=_0x14a277-0x0;var _0x4f6cbd=_0x17d2[_0x14a277];return _0x4f6cbd;};'use strict';var multer=require(_0x217d('0x0'));var util=require('util');var path=require(_0x217d('0x1'));var timeout=require(_0x217d('0x2'));var express=require(_0x217d('0x3'));var router=express[_0x217d('0x4')]();var auth=require(_0x217d('0x5'));var interaction=require(_0x217d('0x6'));var config=require('../../config/environment');var controller=require(_0x217d('0x7'));router[_0x217d('0x8')](_0x217d('0x9'),auth[_0x217d('0xa')](),controller[_0x217d('0xb')]);router[_0x217d('0xc')](_0x217d('0x9'),auth[_0x217d('0xa')](),controller['update']);router['delete'](_0x217d('0x9'),auth['isAuthenticated'](),controller['destroy']);module[_0x217d('0xd')]=router;