22e603e461c25648c0dbe4a74d299e9cab6bbca1
[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 _0x94a0=['connect-timeout','Router','../../components/interaction/service','../../config/environment','./disposition.controller','get','isAuthenticated','index','/:id','post','delete','destroy','exports','multer','path'];(function(_0x40a792,_0x146830){var _0x5e53d4=function(_0x17ddb7){while(--_0x17ddb7){_0x40a792['push'](_0x40a792['shift']());}};_0x5e53d4(++_0x146830);}(_0x94a0,0x85));var _0x094a=function(_0x3bbc10,_0x57c99a){_0x3bbc10=_0x3bbc10-0x0;var _0x2a0139=_0x94a0[_0x3bbc10];return _0x2a0139;};'use strict';var multer=require(_0x094a('0x0'));var util=require('util');var path=require(_0x094a('0x1'));var timeout=require(_0x094a('0x2'));var express=require('express');var router=express[_0x094a('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x094a('0x4'));var config=require(_0x094a('0x5'));var controller=require(_0x094a('0x6'));router[_0x094a('0x7')]('/',auth[_0x094a('0x8')](),controller[_0x094a('0x9')]);router[_0x094a('0x7')](_0x094a('0xa'),auth[_0x094a('0x8')](),controller['show']);router[_0x094a('0xb')]('/',auth[_0x094a('0x8')](),controller['create']);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0x094a('0xc')](_0x094a('0xa'),auth['isAuthenticated'](),controller[_0x094a('0xd')]);module[_0x094a('0xe')]=router;