706e3040b69eacbb9a32077a3faa74ec2de6f3ff
[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 _0x9af2=['fs-extra','../../components/auth/service','../../components/interaction/service','./disposition.controller','get','isAuthenticated','index','show','create','put','/:id','delete','destroy','multer','util','express','Router'];(function(_0xb0f7c3,_0x4eae95){var _0x28ea68=function(_0x4395a7){while(--_0x4395a7){_0xb0f7c3['push'](_0xb0f7c3['shift']());}};_0x28ea68(++_0x4eae95);}(_0x9af2,0x84));var _0x29af=function(_0x63b204,_0x1da65d){_0x63b204=_0x63b204-0x0;var _0x2e5601=_0x9af2[_0x63b204];return _0x2e5601;};'use strict';var multer=require(_0x29af('0x0'));var util=require(_0x29af('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x29af('0x2'));var router=express[_0x29af('0x3')]();var fs_extra=require(_0x29af('0x4'));var auth=require(_0x29af('0x5'));var interaction=require(_0x29af('0x6'));var config=require('../../config/environment');var controller=require(_0x29af('0x7'));router[_0x29af('0x8')]('/',auth[_0x29af('0x9')](),controller[_0x29af('0xa')]);router[_0x29af('0x8')]('/:id',auth[_0x29af('0x9')](),controller[_0x29af('0xb')]);router['post']('/',auth[_0x29af('0x9')](),controller[_0x29af('0xc')]);router[_0x29af('0xd')](_0x29af('0xe'),auth[_0x29af('0x9')](),controller['update']);router[_0x29af('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x29af('0x10')]);module['exports']=router;