Built motion from commit 980b26c3.|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 _0x07d2=['../../components/interaction/service','./cmContactHasItem.controller','isAuthenticated','index','get','show','post','create','put','/:id','update','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service'];(function(_0x3fccd9,_0x36d960){var _0x57343b=function(_0x31a7e0){while(--_0x31a7e0){_0x3fccd9['push'](_0x3fccd9['shift']());}};_0x57343b(++_0x36d960);}(_0x07d2,0x1ed));var _0x207d=function(_0x505f0f,_0x247dbe){_0x505f0f=_0x505f0f-0x0;var _0x57af=_0x07d2[_0x505f0f];return _0x57af;};'use strict';var multer=require(_0x207d('0x0'));var util=require(_0x207d('0x1'));var path=require(_0x207d('0x2'));var timeout=require('connect-timeout');var express=require(_0x207d('0x3'));var router=express[_0x207d('0x4')]();var fs_extra=require(_0x207d('0x5'));var auth=require(_0x207d('0x6'));var interaction=require(_0x207d('0x7'));var config=require('../../config/environment');var controller=require(_0x207d('0x8'));router['get']('/',auth[_0x207d('0x9')](),controller[_0x207d('0xa')]);router[_0x207d('0xb')]('/:id',auth[_0x207d('0x9')](),controller[_0x207d('0xc')]);router[_0x207d('0xd')]('/',auth[_0x207d('0x9')](),controller[_0x207d('0xe')]);router[_0x207d('0xf')](_0x207d('0x10'),auth['isAuthenticated'](),controller[_0x207d('0x11')]);router['delete']('/:id',auth[_0x207d('0x9')](),controller[_0x207d('0x12')]);module[_0x207d('0x13')]=router;