Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / api / UserChatInteraction / 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 _0xbc06=['get','isAuthenticated','/:id','show','post','create','update','delete','destroy','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment'];(function(_0x41bc4f,_0x2bf526){var _0x5d9016=function(_0x5bc8dc){while(--_0x5bc8dc){_0x41bc4f['push'](_0x41bc4f['shift']());}};_0x5d9016(++_0x2bf526);}(_0xbc06,0xae));var _0x6bc0=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xbc06[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x6bc0('0x0'));var timeout=require(_0x6bc0('0x1'));var express=require(_0x6bc0('0x2'));var router=express[_0x6bc0('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x6bc0('0x4'));var config=require(_0x6bc0('0x5'));var controller=require('./UserChatInteraction.controller');router[_0x6bc0('0x6')]('/',auth[_0x6bc0('0x7')](),controller['index']);router[_0x6bc0('0x6')](_0x6bc0('0x8'),auth[_0x6bc0('0x7')](),controller[_0x6bc0('0x9')]);router[_0x6bc0('0xa')]('/',auth[_0x6bc0('0x7')](),controller[_0x6bc0('0xb')]);router['put'](_0x6bc0('0x8'),auth[_0x6bc0('0x7')](),controller[_0x6bc0('0xc')]);router[_0x6bc0('0xd')](_0x6bc0('0x8'),auth['isAuthenticated'](),controller[_0x6bc0('0xe')]);module['exports']=router;