8e811cfb3774f9dcaf266d897156ca1063b731bd
[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 _0x5c02=['../../components/auth/service','../../config/environment','./disposition.controller','isAuthenticated','index','/:id','create','delete','destroy','multer','path','express','Router','fs-extra'];(function(_0x5ed54b,_0x3a2827){var _0x4b58c7=function(_0x19d3b6){while(--_0x19d3b6){_0x5ed54b['push'](_0x5ed54b['shift']());}};_0x4b58c7(++_0x3a2827);}(_0x5c02,0xcd));var _0x25c0=function(_0x5d52ff,_0x5438a1){_0x5d52ff=_0x5d52ff-0x0;var _0x39e8c2=_0x5c02[_0x5d52ff];return _0x39e8c2;};'use strict';var multer=require(_0x25c0('0x0'));var util=require('util');var path=require(_0x25c0('0x1'));var timeout=require('connect-timeout');var express=require(_0x25c0('0x2'));var router=express[_0x25c0('0x3')]();var fs_extra=require(_0x25c0('0x4'));var auth=require(_0x25c0('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x25c0('0x6'));var controller=require(_0x25c0('0x7'));router['get']('/',auth[_0x25c0('0x8')](),controller[_0x25c0('0x9')]);router['get'](_0x25c0('0xa'),auth[_0x25c0('0x8')](),controller['show']);router['post']('/',auth[_0x25c0('0x8')](),controller[_0x25c0('0xb')]);router['put'](_0x25c0('0xa'),auth[_0x25c0('0x8')](),controller['update']);router[_0x25c0('0xc')](_0x25c0('0xa'),auth[_0x25c0('0x8')](),controller[_0x25c0('0xd')]);module['exports']=router;