ef65661013340449a5995ef84ae35f413e2ba0b9
[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 _0x0439=['isAuthenticated','index','get','show','create','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./disposition.controller'];(function(_0x292541,_0x767479){var _0x37b9ad=function(_0x1523a0){while(--_0x1523a0){_0x292541['push'](_0x292541['shift']());}};_0x37b9ad(++_0x767479);}(_0x0439,0x198));var _0x9043=function(_0x137d2f,_0x3b714c){_0x137d2f=_0x137d2f-0x0;var _0x21664a=_0x0439[_0x137d2f];return _0x21664a;};'use strict';var multer=require(_0x9043('0x0'));var util=require(_0x9043('0x1'));var path=require(_0x9043('0x2'));var timeout=require(_0x9043('0x3'));var express=require(_0x9043('0x4'));var router=express[_0x9043('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x9043('0x6'));var interaction=require(_0x9043('0x7'));var config=require(_0x9043('0x8'));var controller=require(_0x9043('0x9'));router['get']('/',auth[_0x9043('0xa')](),controller[_0x9043('0xb')]);router[_0x9043('0xc')]('/:id',auth[_0x9043('0xa')](),controller[_0x9043('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0x9043('0xe')]);router[_0x9043('0xf')]('/:id',auth[_0x9043('0xa')](),controller[_0x9043('0x10')]);router[_0x9043('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x9043('0x12')]);module['exports']=router;