Built motion from commit f623a78c.|2.6.31
[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 _0x296f=['connect-timeout','Router','fs-extra','../../components/interaction/service','./chatApplication.controller','get','isAuthenticated','show','put','/:id','update','delete','destroy','exports','multer','util','path'];(function(_0x9dfc10,_0x19c2d5){var _0x4f938a=function(_0x12b1e5){while(--_0x12b1e5){_0x9dfc10['push'](_0x9dfc10['shift']());}};_0x4f938a(++_0x19c2d5);}(_0x296f,0x140));var _0xf296=function(_0x305b20,_0x5e57e9){_0x305b20=_0x305b20-0x0;var _0x26d64a=_0x296f[_0x305b20];return _0x26d64a;};'use strict';var multer=require(_0xf296('0x0'));var util=require(_0xf296('0x1'));var path=require(_0xf296('0x2'));var timeout=require(_0xf296('0x3'));var express=require('express');var router=express[_0xf296('0x4')]();var fs_extra=require(_0xf296('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf296('0x6'));var config=require('../../config/environment');var controller=require(_0xf296('0x7'));router[_0xf296('0x8')]('/:id',auth[_0xf296('0x9')](),controller[_0xf296('0xa')]);router[_0xf296('0xb')](_0xf296('0xc'),auth[_0xf296('0x9')](),controller[_0xf296('0xd')]);router[_0xf296('0xe')](_0xf296('0xc'),auth[_0xf296('0x9')](),controller[_0xf296('0xf')]);module[_0xf296('0x10')]=router;