71e1a75dfa5f7f8b7a25c7809ae5d16b840f53c9
[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 _0xd946=['util','express','Router','fs-extra','../../components/auth/service','./disposition.controller','get','isAuthenticated','/:id','create','put','update','destroy'];(function(_0x470302,_0x54d2fd){var _0x42164f=function(_0x15db54){while(--_0x15db54){_0x470302['push'](_0x470302['shift']());}};_0x42164f(++_0x54d2fd);}(_0xd946,0x16c));var _0x6d94=function(_0x4efedd,_0x4b2260){_0x4efedd=_0x4efedd-0x0;var _0x31062c=_0xd946[_0x4efedd];return _0x31062c;};'use strict';var multer=require('multer');var util=require(_0x6d94('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x6d94('0x1'));var router=express[_0x6d94('0x2')]();var fs_extra=require(_0x6d94('0x3'));var auth=require(_0x6d94('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x6d94('0x5'));router[_0x6d94('0x6')]('/',auth[_0x6d94('0x7')](),controller['index']);router['get'](_0x6d94('0x8'),auth[_0x6d94('0x7')](),controller['show']);router['post']('/',auth[_0x6d94('0x7')](),controller[_0x6d94('0x9')]);router[_0x6d94('0xa')](_0x6d94('0x8'),auth['isAuthenticated'](),controller[_0x6d94('0xb')]);router['delete'](_0x6d94('0x8'),auth[_0x6d94('0x7')](),controller[_0x6d94('0xc')]);module['exports']=router;