50f31e531bcf6929703fe913769c6d646169fcab
[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 _0xbecf=['../../components/interaction/service','../../config/environment','./disposition.controller','get','isAuthenticated','/:id','show','post','create','put','destroy','exports','path','connect-timeout','express','Router'];(function(_0x3e305c,_0x2370d8){var _0x48f98a=function(_0x4bf08d){while(--_0x4bf08d){_0x3e305c['push'](_0x3e305c['shift']());}};_0x48f98a(++_0x2370d8);}(_0xbecf,0x15c));var _0xfbec=function(_0x1b8dd8,_0x6eb59f){_0x1b8dd8=_0x1b8dd8-0x0;var _0x43ed5c=_0xbecf[_0x1b8dd8];return _0x43ed5c;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xfbec('0x0'));var timeout=require(_0xfbec('0x1'));var express=require(_0xfbec('0x2'));var router=express[_0xfbec('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xfbec('0x4'));var config=require(_0xfbec('0x5'));var controller=require(_0xfbec('0x6'));router[_0xfbec('0x7')]('/',auth[_0xfbec('0x8')](),controller['index']);router[_0xfbec('0x7')](_0xfbec('0x9'),auth[_0xfbec('0x8')](),controller[_0xfbec('0xa')]);router[_0xfbec('0xb')]('/',auth[_0xfbec('0x8')](),controller[_0xfbec('0xc')]);router[_0xfbec('0xd')](_0xfbec('0x9'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xfbec('0x9'),auth[_0xfbec('0x8')](),controller[_0xfbec('0xe')]);module[_0xfbec('0xf')]=router;