8f99fe57669f6a8146585c76eded6482349998c5
[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 _0x6954=['util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/:id','show','post','destroy','multer'];(function(_0x4e1175,_0x43d491){var _0x5f19bf=function(_0x30d937){while(--_0x30d937){_0x4e1175['push'](_0x4e1175['shift']());}};_0x5f19bf(++_0x43d491);}(_0x6954,0x1e0));var _0x4695=function(_0x1f7018,_0x2e8cad){_0x1f7018=_0x1f7018-0x0;var _0x723d76=_0x6954[_0x1f7018];return _0x723d76;};'use strict';var multer=require(_0x4695('0x0'));var util=require(_0x4695('0x1'));var path=require('path');var timeout=require(_0x4695('0x2'));var express=require('express');var router=express[_0x4695('0x3')]();var fs_extra=require(_0x4695('0x4'));var auth=require(_0x4695('0x5'));var interaction=require(_0x4695('0x6'));var config=require('../../config/environment');var controller=require('./disposition.controller');router[_0x4695('0x7')]('/',auth[_0x4695('0x8')](),controller['index']);router[_0x4695('0x7')](_0x4695('0x9'),auth[_0x4695('0x8')](),controller[_0x4695('0xa')]);router[_0x4695('0xb')]('/',auth[_0x4695('0x8')](),controller['create']);router['put'](_0x4695('0x9'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0x4695('0x8')](),controller[_0x4695('0xc')]);module['exports']=router;