Built motion from commit 20b39a97.|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 _0xb377=['index','/:id','show','post','create','put','delete','destroy','exports','util','connect-timeout','Router','fs-extra','../../components/interaction/service','./cmContactHasItem.controller','get','isAuthenticated'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xb377,0xf7));var _0x7b37=function(_0x24f5fb,_0x284b43){_0x24f5fb=_0x24f5fb-0x0;var _0x208c03=_0xb377[_0x24f5fb];return _0x208c03;};'use strict';var multer=require('multer');var util=require(_0x7b37('0x0'));var path=require('path');var timeout=require(_0x7b37('0x1'));var express=require('express');var router=express[_0x7b37('0x2')]();var fs_extra=require(_0x7b37('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x7b37('0x4'));var config=require('../../config/environment');var controller=require(_0x7b37('0x5'));router[_0x7b37('0x6')]('/',auth[_0x7b37('0x7')](),controller[_0x7b37('0x8')]);router['get'](_0x7b37('0x9'),auth[_0x7b37('0x7')](),controller[_0x7b37('0xa')]);router[_0x7b37('0xb')]('/',auth['isAuthenticated'](),controller[_0x7b37('0xc')]);router[_0x7b37('0xd')](_0x7b37('0x9'),auth['isAuthenticated'](),controller['update']);router[_0x7b37('0xe')](_0x7b37('0x9'),auth[_0x7b37('0x7')](),controller[_0x7b37('0xf')]);module[_0x7b37('0x10')]=router;