dc85807c3a67489df4e8b88b46dca1cfda66d7e2
[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 _0x51ab=['put','update','delete','exports','path','Router','fs-extra','./cmContactHasItem.controller','get','index','/:id','isAuthenticated','show','post','create'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x51ab,0x103));var _0xb51a=function(_0x4bb17e,_0x1be1a6){_0x4bb17e=_0x4bb17e-0x0;var _0x1f0355=_0x51ab[_0x4bb17e];return _0x1f0355;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb51a('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb51a('0x1')]();var fs_extra=require(_0xb51a('0x2'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb51a('0x3'));router[_0xb51a('0x4')]('/',auth['isAuthenticated'](),controller[_0xb51a('0x5')]);router[_0xb51a('0x4')](_0xb51a('0x6'),auth[_0xb51a('0x7')](),controller[_0xb51a('0x8')]);router[_0xb51a('0x9')]('/',auth['isAuthenticated'](),controller[_0xb51a('0xa')]);router[_0xb51a('0xb')]('/:id',auth[_0xb51a('0x7')](),controller[_0xb51a('0xc')]);router[_0xb51a('0xd')](_0xb51a('0x6'),auth[_0xb51a('0x7')](),controller['destroy']);module[_0xb51a('0xe')]=router;