Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / disposition / 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 _0xb7ae=['util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','show','post','create','put','/:id','update','delete','multer'];(function(_0x18fb16,_0x45edbc){var _0x147b0d=function(_0x5b1b00){while(--_0x5b1b00){_0x18fb16['push'](_0x18fb16['shift']());}};_0x147b0d(++_0x45edbc);}(_0xb7ae,0x131));var _0xeb7a=function(_0xcd8b0f,_0x4ae8fc){_0xcd8b0f=_0xcd8b0f-0x0;var _0x4fbc8d=_0xb7ae[_0xcd8b0f];return _0x4fbc8d;};'use strict';var multer=require(_0xeb7a('0x0'));var util=require(_0xeb7a('0x1'));var path=require(_0xeb7a('0x2'));var timeout=require(_0xeb7a('0x3'));var express=require('express');var router=express[_0xeb7a('0x4')]();var fs_extra=require(_0xeb7a('0x5'));var auth=require(_0xeb7a('0x6'));var interaction=require(_0xeb7a('0x7'));var config=require('../../config/environment');var controller=require('./disposition.controller');router[_0xeb7a('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xeb7a('0x8')]('/:id',auth[_0xeb7a('0x9')](),controller[_0xeb7a('0xa')]);router[_0xeb7a('0xb')]('/',auth[_0xeb7a('0x9')](),controller[_0xeb7a('0xc')]);router[_0xeb7a('0xd')](_0xeb7a('0xe'),auth[_0xeb7a('0x9')](),controller[_0xeb7a('0xf')]);router[_0xeb7a('0x10')](_0xeb7a('0xe'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;