Built motion from commit 9d1906d1.|2.5.40
[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 _0x6f60=['delete','exports','multer','connect-timeout','express','Router','../../components/interaction/service','get','/:id','isAuthenticated','show','put','update'];(function(_0x63ad22,_0x45b603){var _0x149611=function(_0x1b8799){while(--_0x1b8799){_0x63ad22['push'](_0x63ad22['shift']());}};_0x149611(++_0x45b603);}(_0x6f60,0x1bc));var _0x06f6=function(_0x1604cf,_0x506442){_0x1604cf=_0x1604cf-0x0;var _0x1c1105=_0x6f60[_0x1604cf];return _0x1c1105;};'use strict';var multer=require(_0x06f6('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x06f6('0x1'));var express=require(_0x06f6('0x2'));var router=express[_0x06f6('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x06f6('0x4'));var config=require('../../config/environment');var controller=require('./chatApplication.controller');router[_0x06f6('0x5')](_0x06f6('0x6'),auth[_0x06f6('0x7')](),controller[_0x06f6('0x8')]);router[_0x06f6('0x9')]('/:id',auth[_0x06f6('0x7')](),controller[_0x06f6('0xa')]);router[_0x06f6('0xb')](_0x06f6('0x6'),auth[_0x06f6('0x7')](),controller['destroy']);module[_0x06f6('0xc')]=router;