Built motion from commit d1eab355.|2.6.28
[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 _0xdf7a=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmContactHasItem.controller','get','isAuthenticated','index','show','post','create','/:id','update','delete','multer','util','path'];(function(_0x459140,_0x5c4352){var _0x252373=function(_0xd80a66){while(--_0xd80a66){_0x459140['push'](_0x459140['shift']());}};_0x252373(++_0x5c4352);}(_0xdf7a,0x9d));var _0xadf7=function(_0xd2dfeb,_0x51aa27){_0xd2dfeb=_0xd2dfeb-0x0;var _0x313172=_0xdf7a[_0xd2dfeb];return _0x313172;};'use strict';var multer=require(_0xadf7('0x0'));var util=require(_0xadf7('0x1'));var path=require(_0xadf7('0x2'));var timeout=require(_0xadf7('0x3'));var express=require(_0xadf7('0x4'));var router=express[_0xadf7('0x5')]();var fs_extra=require(_0xadf7('0x6'));var auth=require(_0xadf7('0x7'));var interaction=require(_0xadf7('0x8'));var config=require(_0xadf7('0x9'));var controller=require(_0xadf7('0xa'));router[_0xadf7('0xb')]('/',auth[_0xadf7('0xc')](),controller[_0xadf7('0xd')]);router[_0xadf7('0xb')]('/:id',auth[_0xadf7('0xc')](),controller[_0xadf7('0xe')]);router[_0xadf7('0xf')]('/',auth[_0xadf7('0xc')](),controller[_0xadf7('0x10')]);router['put'](_0xadf7('0x11'),auth[_0xadf7('0xc')](),controller[_0xadf7('0x12')]);router[_0xadf7('0x13')]('/:id',auth[_0xadf7('0xc')](),controller['destroy']);module['exports']=router;