ecb1af512a8db167840d14298acf26e7ca35f0e6
[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 _0xe72f=['create','put','update','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','post'];(function(_0x322acf,_0x4203cf){var _0x4b2c50=function(_0xf8eb96){while(--_0xf8eb96){_0x322acf['push'](_0x322acf['shift']());}};_0x4b2c50(++_0x4203cf);}(_0xe72f,0x73));var _0xfe72=function(_0x4c8498,_0xe01693){_0x4c8498=_0x4c8498-0x0;var _0x58e888=_0xe72f[_0x4c8498];return _0x58e888;};'use strict';var multer=require('multer');var util=require(_0xfe72('0x0'));var path=require('path');var timeout=require(_0xfe72('0x1'));var express=require(_0xfe72('0x2'));var router=express[_0xfe72('0x3')]();var fs_extra=require(_0xfe72('0x4'));var auth=require(_0xfe72('0x5'));var interaction=require(_0xfe72('0x6'));var config=require(_0xfe72('0x7'));var controller=require('./disposition.controller');router[_0xfe72('0x8')]('/',auth['isAuthenticated'](),controller[_0xfe72('0x9')]);router['get'](_0xfe72('0xa'),auth[_0xfe72('0xb')](),controller['show']);router[_0xfe72('0xc')]('/',auth[_0xfe72('0xb')](),controller[_0xfe72('0xd')]);router[_0xfe72('0xe')](_0xfe72('0xa'),auth['isAuthenticated'](),controller[_0xfe72('0xf')]);router['delete']('/:id',auth[_0xfe72('0xb')](),controller['destroy']);module['exports']=router;