b56d4da2f86337738b177d390c215f5ee1e59999
[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 _0xdd4e=['/:id','show','put','isAuthenticated','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./chatApplication.controller','get'];(function(_0x310d56,_0x581328){var _0x8759c7=function(_0x2eafc5){while(--_0x2eafc5){_0x310d56['push'](_0x310d56['shift']());}};_0x8759c7(++_0x581328);}(_0xdd4e,0xd3));var _0xedd4=function(_0x412e27,_0x20a978){_0x412e27=_0x412e27-0x0;var _0x53da42=_0xdd4e[_0x412e27];return _0x53da42;};'use strict';var multer=require(_0xedd4('0x0'));var util=require(_0xedd4('0x1'));var path=require(_0xedd4('0x2'));var timeout=require(_0xedd4('0x3'));var express=require(_0xedd4('0x4'));var router=express[_0xedd4('0x5')]();var fs_extra=require(_0xedd4('0x6'));var auth=require(_0xedd4('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xedd4('0x8'));router[_0xedd4('0x9')](_0xedd4('0xa'),auth['isAuthenticated'](),controller[_0xedd4('0xb')]);router[_0xedd4('0xc')](_0xedd4('0xa'),auth[_0xedd4('0xd')](),controller[_0xedd4('0xe')]);router[_0xedd4('0xf')]('/:id',auth[_0xedd4('0xd')](),controller[_0xedd4('0x10')]);module['exports']=router;