825dbe52b80f08580253525756f7625b93cc4884
[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 _0xc032=['get','isAuthenticated','/:id','show','post','create','put','update','delete','exports','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0xc032,0x1b3));var _0x2c03=function(_0x306cbd,_0x3655b8){_0x306cbd=_0x306cbd-0x0;var _0x1eaec0=_0xc032[_0x306cbd];return _0x1eaec0;};'use strict';var multer=require('multer');var util=require(_0x2c03('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x2c03('0x1'));var router=express[_0x2c03('0x2')]();var fs_extra=require(_0x2c03('0x3'));var auth=require(_0x2c03('0x4'));var interaction=require(_0x2c03('0x5'));var config=require(_0x2c03('0x6'));var controller=require('./disposition.controller');router[_0x2c03('0x7')]('/',auth[_0x2c03('0x8')](),controller['index']);router[_0x2c03('0x7')](_0x2c03('0x9'),auth[_0x2c03('0x8')](),controller[_0x2c03('0xa')]);router[_0x2c03('0xb')]('/',auth[_0x2c03('0x8')](),controller[_0x2c03('0xc')]);router[_0x2c03('0xd')](_0x2c03('0x9'),auth['isAuthenticated'](),controller[_0x2c03('0xe')]);router[_0x2c03('0xf')]('/:id',auth[_0x2c03('0x8')](),controller['destroy']);module[_0x2c03('0x10')]=router;