Built motion from commit (unavailable).|2.4.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 _0x17bf=['./chatApplication.controller','/:id','isAuthenticated','show','update','delete','exports','util','connect-timeout','express','Router','../../config/environment'];(function(_0x1ec8f9,_0x22f5e7){var _0x17cd3d=function(_0x156ad2){while(--_0x156ad2){_0x1ec8f9['push'](_0x1ec8f9['shift']());}};_0x17cd3d(++_0x22f5e7);}(_0x17bf,0x16f));var _0xf17b=function(_0x94d4a0,_0x597c19){_0x94d4a0=_0x94d4a0-0x0;var _0x5f01f5=_0x17bf[_0x94d4a0];return _0x5f01f5;};'use strict';var multer=require('multer');var util=require(_0xf17b('0x0'));var path=require('path');var timeout=require(_0xf17b('0x1'));var express=require(_0xf17b('0x2'));var router=express[_0xf17b('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xf17b('0x4'));var controller=require(_0xf17b('0x5'));router['get'](_0xf17b('0x6'),auth[_0xf17b('0x7')](),controller[_0xf17b('0x8')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xf17b('0x9')]);router[_0xf17b('0xa')]('/:id',auth[_0xf17b('0x7')](),controller['destroy']);module[_0xf17b('0xb')]=router;