7d0e643be6635aef8663eeea3568c44bca87d5bc
[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 _0x78ec=['post','put','update','delete','destroy','exports','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./disposition.controller','isAuthenticated','index','get','/:id','show'];(function(_0x2762df,_0xe18da){var _0x19e348=function(_0xa13065){while(--_0xa13065){_0x2762df['push'](_0x2762df['shift']());}};_0x19e348(++_0xe18da);}(_0x78ec,0x195));var _0xc78e=function(_0x3081c1,_0x1dad8b){_0x3081c1=_0x3081c1-0x0;var _0x5b31de=_0x78ec[_0x3081c1];return _0x5b31de;};'use strict';var multer=require('multer');var util=require(_0xc78e('0x0'));var path=require(_0xc78e('0x1'));var timeout=require(_0xc78e('0x2'));var express=require('express');var router=express[_0xc78e('0x3')]();var fs_extra=require(_0xc78e('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xc78e('0x5'));var config=require(_0xc78e('0x6'));var controller=require(_0xc78e('0x7'));router['get']('/',auth[_0xc78e('0x8')](),controller[_0xc78e('0x9')]);router[_0xc78e('0xa')](_0xc78e('0xb'),auth[_0xc78e('0x8')](),controller[_0xc78e('0xc')]);router[_0xc78e('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0xc78e('0xe')](_0xc78e('0xb'),auth['isAuthenticated'](),controller[_0xc78e('0xf')]);router[_0xc78e('0x10')](_0xc78e('0xb'),auth[_0xc78e('0x8')](),controller[_0xc78e('0x11')]);module[_0xc78e('0x12')]=router;