9b4e6d60670b184268336e71f925fd7a3b3d907e
[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 _0x88a3=['delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','isAuthenticated','get','/:id','show','create','update'];(function(_0x376ca8,_0xdd626){var _0x254920=function(_0x2cee5c){while(--_0x2cee5c){_0x376ca8['push'](_0x376ca8['shift']());}};_0x254920(++_0xdd626);}(_0x88a3,0x1b3));var _0x388a=function(_0x3fd275,_0xf0cd7){_0x3fd275=_0x3fd275-0x0;var _0xe4f14f=_0x88a3[_0x3fd275];return _0xe4f14f;};'use strict';var multer=require(_0x388a('0x0'));var util=require(_0x388a('0x1'));var path=require(_0x388a('0x2'));var timeout=require('connect-timeout');var express=require(_0x388a('0x3'));var router=express[_0x388a('0x4')]();var fs_extra=require(_0x388a('0x5'));var auth=require(_0x388a('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./disposition.controller');router['get']('/',auth[_0x388a('0x7')](),controller['index']);router[_0x388a('0x8')](_0x388a('0x9'),auth['isAuthenticated'](),controller[_0x388a('0xa')]);router['post']('/',auth[_0x388a('0x7')](),controller[_0x388a('0xb')]);router['put'](_0x388a('0x9'),auth[_0x388a('0x7')](),controller[_0x388a('0xc')]);router[_0x388a('0xd')](_0x388a('0x9'),auth[_0x388a('0x7')](),controller[_0x388a('0xe')]);module[_0x388a('0xf')]=router;