Built motion from commit 52c8a02d.|2.6.29
[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 _0x20a1=['/:id','update','delete','destroy','exports','multer','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./cmContactHasItem.controller','get','isAuthenticated','index','show','post','create','put'];(function(_0x2a98e3,_0x488997){var _0x370a71=function(_0x3b71cb){while(--_0x3b71cb){_0x2a98e3['push'](_0x2a98e3['shift']());}};_0x370a71(++_0x488997);}(_0x20a1,0x101));var _0x120a=function(_0x657866,_0x53991c){_0x657866=_0x657866-0x0;var _0x17ad03=_0x20a1[_0x657866];return _0x17ad03;};'use strict';var multer=require(_0x120a('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x120a('0x1')]();var fs_extra=require(_0x120a('0x2'));var auth=require(_0x120a('0x3'));var interaction=require(_0x120a('0x4'));var config=require('../../config/environment');var controller=require(_0x120a('0x5'));router[_0x120a('0x6')]('/',auth[_0x120a('0x7')](),controller[_0x120a('0x8')]);router[_0x120a('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x120a('0x9')]);router[_0x120a('0xa')]('/',auth[_0x120a('0x7')](),controller[_0x120a('0xb')]);router[_0x120a('0xc')](_0x120a('0xd'),auth['isAuthenticated'](),controller[_0x120a('0xe')]);router[_0x120a('0xf')](_0x120a('0xd'),auth[_0x120a('0x7')](),controller[_0x120a('0x10')]);module[_0x120a('0x11')]=router;