b88e61cffca506c67ea3db3c3053fe402c1e01c1
[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 _0x970e=['delete','destroy','multer','express','Router','../../components/auth/service','../../components/interaction/service','./contactItemType.controller','get','isAuthenticated','index','show','post','create','put','/:id','update'];(function(_0x1ca993,_0x243c1e){var _0x150e5e=function(_0xaf1a3e){while(--_0xaf1a3e){_0x1ca993['push'](_0x1ca993['shift']());}};_0x150e5e(++_0x243c1e);}(_0x970e,0x1ab));var _0xe970=function(_0x2767dd,_0x3eebe8){_0x2767dd=_0x2767dd-0x0;var _0x57b867=_0x970e[_0x2767dd];return _0x57b867;};'use strict';var multer=require(_0xe970('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xe970('0x1'));var router=express[_0xe970('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xe970('0x3'));var interaction=require(_0xe970('0x4'));var config=require('../../config/environment');var controller=require(_0xe970('0x5'));router[_0xe970('0x6')]('/',auth[_0xe970('0x7')](),controller[_0xe970('0x8')]);router[_0xe970('0x6')]('/:id',auth[_0xe970('0x7')](),controller[_0xe970('0x9')]);router[_0xe970('0xa')]('/',auth['isAuthenticated'](),controller[_0xe970('0xb')]);router[_0xe970('0xc')](_0xe970('0xd'),auth[_0xe970('0x7')](),controller[_0xe970('0xe')]);router[_0xe970('0xf')](_0xe970('0xd'),auth[_0xe970('0x7')](),controller[_0xe970('0x10')]);module['exports']=router;