Built motion from commit (unavailable).|2.5.26
[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 _0x4293=['../../components/auth/service','../../config/environment','./contactItemType.controller','isAuthenticated','get','/:id','show','post','create','put','update','destroy','exports','multer','util','connect-timeout','express'];(function(_0x30dd24,_0xc91462){var _0x5103b0=function(_0x1e2d3f){while(--_0x1e2d3f){_0x30dd24['push'](_0x30dd24['shift']());}};_0x5103b0(++_0xc91462);}(_0x4293,0x11d));var _0x3429=function(_0x4afb98,_0x1d0958){_0x4afb98=_0x4afb98-0x0;var _0x5bbfe3=_0x4293[_0x4afb98];return _0x5bbfe3;};'use strict';var multer=require(_0x3429('0x0'));var util=require(_0x3429('0x1'));var path=require('path');var timeout=require(_0x3429('0x2'));var express=require(_0x3429('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x3429('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x3429('0x5'));var controller=require(_0x3429('0x6'));router['get']('/',auth[_0x3429('0x7')](),controller['index']);router[_0x3429('0x8')](_0x3429('0x9'),auth[_0x3429('0x7')](),controller[_0x3429('0xa')]);router[_0x3429('0xb')]('/',auth[_0x3429('0x7')](),controller[_0x3429('0xc')]);router[_0x3429('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x3429('0xe')]);router['delete'](_0x3429('0x9'),auth[_0x3429('0x7')](),controller[_0x3429('0xf')]);module[_0x3429('0x10')]=router;