b043fd290c0d22144ee7b87ccc4c40a1aaf9eaa8
[motion2.git] / server / api / contactItemType / 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 _0x83f2=['put','update','delete','destroy','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./contactItemType.controller','/:id','isAuthenticated','show','post','create'];(function(_0x2bc3f4,_0x470b26){var _0x14ac53=function(_0x5121bd){while(--_0x5121bd){_0x2bc3f4['push'](_0x2bc3f4['shift']());}};_0x14ac53(++_0x470b26);}(_0x83f2,0x70));var _0x283f=function(_0x41a221,_0x4ccaa4){_0x41a221=_0x41a221-0x0;var _0x2a7933=_0x83f2[_0x41a221];return _0x2a7933;};'use strict';var multer=require(_0x283f('0x0'));var util=require('util');var path=require(_0x283f('0x1'));var timeout=require(_0x283f('0x2'));var express=require(_0x283f('0x3'));var router=express[_0x283f('0x4')]();var fs_extra=require(_0x283f('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x283f('0x6'));var config=require(_0x283f('0x7'));var controller=require(_0x283f('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x283f('0x9'),auth[_0x283f('0xa')](),controller[_0x283f('0xb')]);router[_0x283f('0xc')]('/',auth[_0x283f('0xa')](),controller[_0x283f('0xd')]);router[_0x283f('0xe')](_0x283f('0x9'),auth[_0x283f('0xa')](),controller[_0x283f('0xf')]);router[_0x283f('0x10')](_0x283f('0x9'),auth['isAuthenticated'](),controller[_0x283f('0x11')]);module['exports']=router;