cfb43107ef153a550f33fdbb34aee39e0fcc031c
[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 _0x2185=['Router','fs-extra','../../config/environment','./disposition.controller','get','isAuthenticated','/:id','show','post','put','update','destroy','util','path','connect-timeout','express'];(function(_0x5cf3a3,_0x29327c){var _0x349b78=function(_0x465240){while(--_0x465240){_0x5cf3a3['push'](_0x5cf3a3['shift']());}};_0x349b78(++_0x29327c);}(_0x2185,0x10c));var _0x5218=function(_0x25acbd,_0x41f2c0){_0x25acbd=_0x25acbd-0x0;var _0x15b431=_0x2185[_0x25acbd];return _0x15b431;};'use strict';var multer=require('multer');var util=require(_0x5218('0x0'));var path=require(_0x5218('0x1'));var timeout=require(_0x5218('0x2'));var express=require(_0x5218('0x3'));var router=express[_0x5218('0x4')]();var fs_extra=require(_0x5218('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x5218('0x6'));var controller=require(_0x5218('0x7'));router[_0x5218('0x8')]('/',auth[_0x5218('0x9')](),controller['index']);router['get'](_0x5218('0xa'),auth[_0x5218('0x9')](),controller[_0x5218('0xb')]);router[_0x5218('0xc')]('/',auth[_0x5218('0x9')](),controller['create']);router[_0x5218('0xd')](_0x5218('0xa'),auth[_0x5218('0x9')](),controller[_0x5218('0xe')]);router['delete'](_0x5218('0xa'),auth[_0x5218('0x9')](),controller[_0x5218('0xf')]);module['exports']=router;