Built motion from commit (unavailable).|2.5.22
[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 _0xd0be=['express','Router','../../components/auth/service','../../components/interaction/service','/:id','isAuthenticated','show','put','update','delete','exports','multer','util','path','connect-timeout'];(function(_0xc3fa48,_0x251d0e){var _0x556eb2=function(_0x3e1358){while(--_0x3e1358){_0xc3fa48['push'](_0xc3fa48['shift']());}};_0x556eb2(++_0x251d0e);}(_0xd0be,0x1a0));var _0xed0b=function(_0x188a1d,_0x2249fc){_0x188a1d=_0x188a1d-0x0;var _0x43d0db=_0xd0be[_0x188a1d];return _0x43d0db;};'use strict';var multer=require(_0xed0b('0x0'));var util=require(_0xed0b('0x1'));var path=require(_0xed0b('0x2'));var timeout=require(_0xed0b('0x3'));var express=require(_0xed0b('0x4'));var router=express[_0xed0b('0x5')]();var auth=require(_0xed0b('0x6'));var interaction=require(_0xed0b('0x7'));var config=require('../../config/environment');var controller=require('./chatApplication.controller');router['get'](_0xed0b('0x8'),auth[_0xed0b('0x9')](),controller[_0xed0b('0xa')]);router[_0xed0b('0xb')](_0xed0b('0x8'),auth[_0xed0b('0x9')](),controller[_0xed0b('0xc')]);router[_0xed0b('0xd')]('/:id',auth[_0xed0b('0x9')](),controller['destroy']);module[_0xed0b('0xe')]=router;