16c8ddd373fe3dba7056dae8938963c996c8cfa5
[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 _0xa3fd=['../../components/interaction/service','../../config/environment','./disposition.controller','get','isAuthenticated','index','/:id','post','create','update','delete','destroy','exports','util','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x1ed034,_0x5d495d){var _0x4a82b7=function(_0x348231){while(--_0x348231){_0x1ed034['push'](_0x1ed034['shift']());}};_0x4a82b7(++_0x5d495d);}(_0xa3fd,0x1c2));var _0xda3f=function(_0x276468,_0x29685a){_0x276468=_0x276468-0x0;var _0x36dc3a=_0xa3fd[_0x276468];return _0x36dc3a;};'use strict';var multer=require('multer');var util=require(_0xda3f('0x0'));var path=require('path');var timeout=require(_0xda3f('0x1'));var express=require(_0xda3f('0x2'));var router=express[_0xda3f('0x3')]();var fs_extra=require(_0xda3f('0x4'));var auth=require(_0xda3f('0x5'));var interaction=require(_0xda3f('0x6'));var config=require(_0xda3f('0x7'));var controller=require(_0xda3f('0x8'));router[_0xda3f('0x9')]('/',auth[_0xda3f('0xa')](),controller[_0xda3f('0xb')]);router['get'](_0xda3f('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xda3f('0xd')]('/',auth[_0xda3f('0xa')](),controller[_0xda3f('0xe')]);router['put'](_0xda3f('0xc'),auth[_0xda3f('0xa')](),controller[_0xda3f('0xf')]);router[_0xda3f('0x10')]('/:id',auth[_0xda3f('0xa')](),controller[_0xda3f('0x11')]);module[_0xda3f('0x12')]=router;