e3e772530d2d37f91c0947ba61c473562903c6f3
[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 _0x23f2=['delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./disposition.controller','get','isAuthenticated','/:id','show','post','put','update'];(function(_0x4bf44f,_0x5ee38b){var _0x74b438=function(_0xcf7015){while(--_0xcf7015){_0x4bf44f['push'](_0x4bf44f['shift']());}};_0x74b438(++_0x5ee38b);}(_0x23f2,0x193));var _0x223f=function(_0x59362d,_0x390803){_0x59362d=_0x59362d-0x0;var _0xbb1f70=_0x23f2[_0x59362d];return _0xbb1f70;};'use strict';var multer=require(_0x223f('0x0'));var util=require('util');var path=require(_0x223f('0x1'));var timeout=require(_0x223f('0x2'));var express=require(_0x223f('0x3'));var router=express[_0x223f('0x4')]();var fs_extra=require(_0x223f('0x5'));var auth=require(_0x223f('0x6'));var interaction=require(_0x223f('0x7'));var config=require(_0x223f('0x8'));var controller=require(_0x223f('0x9'));router[_0x223f('0xa')]('/',auth[_0x223f('0xb')](),controller['index']);router[_0x223f('0xa')](_0x223f('0xc'),auth['isAuthenticated'](),controller[_0x223f('0xd')]);router[_0x223f('0xe')]('/',auth[_0x223f('0xb')](),controller['create']);router[_0x223f('0xf')](_0x223f('0xc'),auth[_0x223f('0xb')](),controller[_0x223f('0x10')]);router[_0x223f('0x11')](_0x223f('0xc'),auth[_0x223f('0xb')](),controller[_0x223f('0x12')]);module[_0x223f('0x13')]=router;