e1cdd77bed9a189b29e918a86bbc9f92f7c8e876
[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 _0x2ccb=['./contactItemType.controller','get','isAuthenticated','index','/:id','show','post','update','delete','multer','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment'];(function(_0x1254a3,_0x56c144){var _0x20e628=function(_0x1bdaed){while(--_0x1bdaed){_0x1254a3['push'](_0x1254a3['shift']());}};_0x20e628(++_0x56c144);}(_0x2ccb,0x129));var _0xb2cc=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0x2ccb[_0x46698a];return _0x356db0;};'use strict';var multer=require(_0xb2cc('0x0'));var util=require('util');var path=require(_0xb2cc('0x1'));var timeout=require(_0xb2cc('0x2'));var express=require('express');var router=express[_0xb2cc('0x3')]();var fs_extra=require(_0xb2cc('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xb2cc('0x5'));var config=require(_0xb2cc('0x6'));var controller=require(_0xb2cc('0x7'));router[_0xb2cc('0x8')]('/',auth[_0xb2cc('0x9')](),controller[_0xb2cc('0xa')]);router[_0xb2cc('0x8')](_0xb2cc('0xb'),auth[_0xb2cc('0x9')](),controller[_0xb2cc('0xc')]);router[_0xb2cc('0xd')]('/',auth[_0xb2cc('0x9')](),controller['create']);router['put']('/:id',auth[_0xb2cc('0x9')](),controller[_0xb2cc('0xe')]);router[_0xb2cc('0xf')](_0xb2cc('0xb'),auth[_0xb2cc('0x9')](),controller['destroy']);module['exports']=router;