Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / api / cmContactHasItem / 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 _0x13e6=['../../config/environment','get','isAuthenticated','/:id','show','create','put','update','delete','destroy','exports','multer','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x4f4b35,_0x1b5421){var _0x54d2b8=function(_0x3a8a03){while(--_0x3a8a03){_0x4f4b35['push'](_0x4f4b35['shift']());}};_0x54d2b8(++_0x1b5421);}(_0x13e6,0x1a3));var _0x613e=function(_0x12eb1c,_0x58b94b){_0x12eb1c=_0x12eb1c-0x0;var _0x4a1f9e=_0x13e6[_0x12eb1c];return _0x4a1f9e;};'use strict';var multer=require(_0x613e('0x0'));var util=require('util');var path=require(_0x613e('0x1'));var timeout=require(_0x613e('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x613e('0x3'));var auth=require(_0x613e('0x4'));var interaction=require(_0x613e('0x5'));var config=require(_0x613e('0x6'));var controller=require('./cmContactHasItem.controller');router[_0x613e('0x7')]('/',auth[_0x613e('0x8')](),controller['index']);router['get'](_0x613e('0x9'),auth['isAuthenticated'](),controller[_0x613e('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0x613e('0xb')]);router[_0x613e('0xc')]('/:id',auth[_0x613e('0x8')](),controller[_0x613e('0xd')]);router[_0x613e('0xe')](_0x613e('0x9'),auth[_0x613e('0x8')](),controller[_0x613e('0xf')]);module[_0x613e('0x10')]=router;