bc01a17415eb925197d9b19fb54db73cf2ee4ea1
[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 _0x60f3=['express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/:id','show','create','put','update','delete','destroy','exports','multer','util','path'];(function(_0x5f2a5a,_0x27a77f){var _0x5c60c2=function(_0x34cae3){while(--_0x34cae3){_0x5f2a5a['push'](_0x5f2a5a['shift']());}};_0x5c60c2(++_0x27a77f);}(_0x60f3,0x162));var _0x360f=function(_0x477491,_0x5ca700){_0x477491=_0x477491-0x0;var _0xac6aec=_0x60f3[_0x477491];return _0xac6aec;};'use strict';var multer=require(_0x360f('0x0'));var util=require(_0x360f('0x1'));var path=require(_0x360f('0x2'));var timeout=require('connect-timeout');var express=require(_0x360f('0x3'));var router=express[_0x360f('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x360f('0x5'));var interaction=require(_0x360f('0x6'));var config=require('../../config/environment');var controller=require('./disposition.controller');router[_0x360f('0x7')]('/',auth[_0x360f('0x8')](),controller['index']);router[_0x360f('0x7')](_0x360f('0x9'),auth['isAuthenticated'](),controller[_0x360f('0xa')]);router['post']('/',auth[_0x360f('0x8')](),controller[_0x360f('0xb')]);router[_0x360f('0xc')](_0x360f('0x9'),auth['isAuthenticated'](),controller[_0x360f('0xd')]);router[_0x360f('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x360f('0xf')]);module[_0x360f('0x10')]=router;