Built motion from commit (unavailable).|2.5.4
[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 _0xba37=['../../config/environment','./disposition.controller','get','index','isAuthenticated','show','create','put','/:id','update','delete','exports','multer','path','express','../../components/auth/service','../../components/interaction/service'];(function(_0x466f51,_0x1393ed){var _0x2db305=function(_0x126ae3){while(--_0x126ae3){_0x466f51['push'](_0x466f51['shift']());}};_0x2db305(++_0x1393ed);}(_0xba37,0xb6));var _0x7ba3=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0xba37[_0x57b54c];return _0x59cc19;};'use strict';var multer=require(_0x7ba3('0x0'));var util=require('util');var path=require(_0x7ba3('0x1'));var timeout=require('connect-timeout');var express=require(_0x7ba3('0x2'));var router=express['Router']();var auth=require(_0x7ba3('0x3'));var interaction=require(_0x7ba3('0x4'));var config=require(_0x7ba3('0x5'));var controller=require(_0x7ba3('0x6'));router[_0x7ba3('0x7')]('/',auth['isAuthenticated'](),controller[_0x7ba3('0x8')]);router['get']('/:id',auth[_0x7ba3('0x9')](),controller[_0x7ba3('0xa')]);router['post']('/',auth[_0x7ba3('0x9')](),controller[_0x7ba3('0xb')]);router[_0x7ba3('0xc')](_0x7ba3('0xd'),auth[_0x7ba3('0x9')](),controller[_0x7ba3('0xe')]);router[_0x7ba3('0xf')](_0x7ba3('0xd'),auth[_0x7ba3('0x9')](),controller['destroy']);module[_0x7ba3('0x10')]=router;