e0dcea1ac03da088dd1c41cb9d9c34540a280d9b
[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 _0x7a75=['Router','fs-extra','../../components/auth/service','../../config/environment','./contactItemType.controller','get','isAuthenticated','index','/:id','show','post','create','put','delete','exports','util','connect-timeout'];(function(_0x1992f1,_0x5c61f0){var _0x413dfe=function(_0x2136e5){while(--_0x2136e5){_0x1992f1['push'](_0x1992f1['shift']());}};_0x413dfe(++_0x5c61f0);}(_0x7a75,0xfd));var _0x57a7=function(_0x298374,_0x4d34c4){_0x298374=_0x298374-0x0;var _0x42ada1=_0x7a75[_0x298374];return _0x42ada1;};'use strict';var multer=require('multer');var util=require(_0x57a7('0x0'));var path=require('path');var timeout=require(_0x57a7('0x1'));var express=require('express');var router=express[_0x57a7('0x2')]();var fs_extra=require(_0x57a7('0x3'));var auth=require(_0x57a7('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x57a7('0x5'));var controller=require(_0x57a7('0x6'));router[_0x57a7('0x7')]('/',auth[_0x57a7('0x8')](),controller[_0x57a7('0x9')]);router[_0x57a7('0x7')](_0x57a7('0xa'),auth[_0x57a7('0x8')](),controller[_0x57a7('0xb')]);router[_0x57a7('0xc')]('/',auth[_0x57a7('0x8')](),controller[_0x57a7('0xd')]);router[_0x57a7('0xe')](_0x57a7('0xa'),auth[_0x57a7('0x8')](),controller['update']);router[_0x57a7('0xf')](_0x57a7('0xa'),auth[_0x57a7('0x8')](),controller['destroy']);module[_0x57a7('0x10')]=router;