5497b888dde3b173c82f5752bd355d87f653b485
[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 _0xa48e=['connect-timeout','../../components/auth/service','../../config/environment','./chatApplication.controller','get','show','put','/:id','isAuthenticated','update','delete','destroy','exports','multer','util','path'];(function(_0x196129,_0x3c8368){var _0x1a8a3e=function(_0x54cfa0){while(--_0x54cfa0){_0x196129['push'](_0x196129['shift']());}};_0x1a8a3e(++_0x3c8368);}(_0xa48e,0x1dd));var _0xea48=function(_0x50215,_0x26949a){_0x50215=_0x50215-0x0;var _0x4095a2=_0xa48e[_0x50215];return _0x4095a2;};'use strict';var multer=require(_0xea48('0x0'));var util=require(_0xea48('0x1'));var path=require(_0xea48('0x2'));var timeout=require(_0xea48('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xea48('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xea48('0x5'));var controller=require(_0xea48('0x6'));router[_0xea48('0x7')]('/:id',auth['isAuthenticated'](),controller[_0xea48('0x8')]);router[_0xea48('0x9')](_0xea48('0xa'),auth[_0xea48('0xb')](),controller[_0xea48('0xc')]);router[_0xea48('0xd')](_0xea48('0xa'),auth[_0xea48('0xb')](),controller[_0xea48('0xe')]);module[_0xea48('0xf')]=router;