6bc1e971afb6a05ca537e1100c1a7fefbbb9dffd
[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 _0xbb8e=['post','update','delete','destroy','multer','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./cmContactHasItem.controller','isAuthenticated','get','/:id','show'];(function(_0x43444b,_0x8cf95b){var _0x392fe5=function(_0x7a1a82){while(--_0x7a1a82){_0x43444b['push'](_0x43444b['shift']());}};_0x392fe5(++_0x8cf95b);}(_0xbb8e,0x164));var _0xebb8=function(_0x242e38,_0x5433ca){_0x242e38=_0x242e38-0x0;var _0x58ce8d=_0xbb8e[_0x242e38];return _0x58ce8d;};'use strict';var multer=require(_0xebb8('0x0'));var util=require(_0xebb8('0x1'));var path=require(_0xebb8('0x2'));var timeout=require(_0xebb8('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xebb8('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xebb8('0x5'));var config=require(_0xebb8('0x6'));var controller=require(_0xebb8('0x7'));router['get']('/',auth[_0xebb8('0x8')](),controller['index']);router[_0xebb8('0x9')](_0xebb8('0xa'),auth[_0xebb8('0x8')](),controller[_0xebb8('0xb')]);router[_0xebb8('0xc')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xebb8('0xa'),auth[_0xebb8('0x8')](),controller[_0xebb8('0xd')]);router[_0xebb8('0xe')](_0xebb8('0xa'),auth[_0xebb8('0x8')](),controller[_0xebb8('0xf')]);module['exports']=router;