Built motion from commit (unavailable).|2.5.31
[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 _0x1a9f=['delete','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./cmContactHasItem.controller','get','isAuthenticated','index','show','post','create','put','/:id','update'];(function(_0x4e9628,_0x250573){var _0x27bc8c=function(_0xb3b7ae){while(--_0xb3b7ae){_0x4e9628['push'](_0x4e9628['shift']());}};_0x27bc8c(++_0x250573);}(_0x1a9f,0x11f));var _0xf1a9=function(_0x3495b7,_0x3054fd){_0x3495b7=_0x3495b7-0x0;var _0x55eff5=_0x1a9f[_0x3495b7];return _0x55eff5;};'use strict';var multer=require(_0xf1a9('0x0'));var util=require(_0xf1a9('0x1'));var path=require('path');var timeout=require(_0xf1a9('0x2'));var express=require(_0xf1a9('0x3'));var router=express[_0xf1a9('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xf1a9('0x5'));var interaction=require(_0xf1a9('0x6'));var config=require('../../config/environment');var controller=require(_0xf1a9('0x7'));router[_0xf1a9('0x8')]('/',auth[_0xf1a9('0x9')](),controller[_0xf1a9('0xa')]);router[_0xf1a9('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xf1a9('0xb')]);router[_0xf1a9('0xc')]('/',auth[_0xf1a9('0x9')](),controller[_0xf1a9('0xd')]);router[_0xf1a9('0xe')](_0xf1a9('0xf'),auth[_0xf1a9('0x9')](),controller[_0xf1a9('0x10')]);router[_0xf1a9('0x11')]('/:id',auth[_0xf1a9('0x9')](),controller[_0xf1a9('0x12')]);module['exports']=router;