Built motion from commit (unavailable).|2.5.4
[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 _0x9b13=['exports','multer','util','connect-timeout','express','Router','./chatApplication.controller','get','/:id','isAuthenticated','update','delete','destroy'];(function(_0x25da2d,_0x24d542){var _0x2ca8cc=function(_0x2839b0){while(--_0x2839b0){_0x25da2d['push'](_0x25da2d['shift']());}};_0x2ca8cc(++_0x24d542);}(_0x9b13,0x187));var _0x39b1=function(_0x53c982,_0x22655d){_0x53c982=_0x53c982-0x0;var _0x1cb3c0=_0x9b13[_0x53c982];return _0x1cb3c0;};'use strict';var multer=require(_0x39b1('0x0'));var util=require(_0x39b1('0x1'));var path=require('path');var timeout=require(_0x39b1('0x2'));var express=require(_0x39b1('0x3'));var router=express[_0x39b1('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x39b1('0x5'));router[_0x39b1('0x6')](_0x39b1('0x7'),auth[_0x39b1('0x8')](),controller['show']);router['put'](_0x39b1('0x7'),auth[_0x39b1('0x8')](),controller[_0x39b1('0x9')]);router[_0x39b1('0xa')](_0x39b1('0x7'),auth[_0x39b1('0x8')](),controller[_0x39b1('0xb')]);module[_0x39b1('0xc')]=router;