Built motion from commit 85328c08.|2.5.50
[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 _0xc9c3=['express','Router','fs-extra','./disposition.controller','isAuthenticated','index','/:id','post','update','delete','destroy','exports','multer','util','path'];(function(_0x3a49fd,_0xe44f02){var _0x18527d=function(_0x112f5c){while(--_0x112f5c){_0x3a49fd['push'](_0x3a49fd['shift']());}};_0x18527d(++_0xe44f02);}(_0xc9c3,0x147));var _0x3c9c=function(_0x40a30b,_0x117bda){_0x40a30b=_0x40a30b-0x0;var _0x5e6353=_0xc9c3[_0x40a30b];return _0x5e6353;};'use strict';var multer=require(_0x3c9c('0x0'));var util=require(_0x3c9c('0x1'));var path=require(_0x3c9c('0x2'));var timeout=require('connect-timeout');var express=require(_0x3c9c('0x3'));var router=express[_0x3c9c('0x4')]();var fs_extra=require(_0x3c9c('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x3c9c('0x6'));router['get']('/',auth[_0x3c9c('0x7')](),controller[_0x3c9c('0x8')]);router['get'](_0x3c9c('0x9'),auth[_0x3c9c('0x7')](),controller['show']);router[_0x3c9c('0xa')]('/',auth[_0x3c9c('0x7')](),controller['create']);router['put'](_0x3c9c('0x9'),auth[_0x3c9c('0x7')](),controller[_0x3c9c('0xb')]);router[_0x3c9c('0xc')](_0x3c9c('0x9'),auth[_0x3c9c('0x7')](),controller[_0x3c9c('0xd')]);module[_0x3c9c('0xe')]=router;