4401b9da66f9e2cdb970e45b36c5c08236c0b01d
[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 _0xd8af=['../../components/interaction/service','./cmContactHasItem.controller','get','index','/:id','isAuthenticated','show','post','update','delete','util','path','connect-timeout','express','fs-extra'];(function(_0x5b5795,_0x548eb6){var _0x29c7cf=function(_0x43d2c8){while(--_0x43d2c8){_0x5b5795['push'](_0x5b5795['shift']());}};_0x29c7cf(++_0x548eb6);}(_0xd8af,0x145));var _0xfd8a=function(_0x155789,_0x337e47){_0x155789=_0x155789-0x0;var _0x1fc9b4=_0xd8af[_0x155789];return _0x1fc9b4;};'use strict';var multer=require('multer');var util=require(_0xfd8a('0x0'));var path=require(_0xfd8a('0x1'));var timeout=require(_0xfd8a('0x2'));var express=require(_0xfd8a('0x3'));var router=express['Router']();var fs_extra=require(_0xfd8a('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xfd8a('0x5'));var config=require('../../config/environment');var controller=require(_0xfd8a('0x6'));router[_0xfd8a('0x7')]('/',auth['isAuthenticated'](),controller[_0xfd8a('0x8')]);router[_0xfd8a('0x7')](_0xfd8a('0x9'),auth[_0xfd8a('0xa')](),controller[_0xfd8a('0xb')]);router[_0xfd8a('0xc')]('/',auth[_0xfd8a('0xa')](),controller['create']);router['put']('/:id',auth['isAuthenticated'](),controller[_0xfd8a('0xd')]);router[_0xfd8a('0xe')](_0xfd8a('0x9'),auth[_0xfd8a('0xa')](),controller['destroy']);module['exports']=router;