Built motion from commit 639a1a7f.|2.6.19
[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 _0x9ebf=['./cmContactHasItem.controller','get','index','/:id','isAuthenticated','show','create','put','update','destroy','exports','multer','util','connect-timeout','fs-extra','../../components/auth/service'];(function(_0x1629c3,_0x534c78){var _0xbfa251=function(_0x1d209d){while(--_0x1d209d){_0x1629c3['push'](_0x1629c3['shift']());}};_0xbfa251(++_0x534c78);}(_0x9ebf,0x9b));var _0xf9eb=function(_0x199572,_0x33e667){_0x199572=_0x199572-0x0;var _0x13cfa3=_0x9ebf[_0x199572];return _0x13cfa3;};'use strict';var multer=require(_0xf9eb('0x0'));var util=require(_0xf9eb('0x1'));var path=require('path');var timeout=require(_0xf9eb('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xf9eb('0x3'));var auth=require(_0xf9eb('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xf9eb('0x5'));router[_0xf9eb('0x6')]('/',auth['isAuthenticated'](),controller[_0xf9eb('0x7')]);router[_0xf9eb('0x6')](_0xf9eb('0x8'),auth[_0xf9eb('0x9')](),controller[_0xf9eb('0xa')]);router['post']('/',auth[_0xf9eb('0x9')](),controller[_0xf9eb('0xb')]);router[_0xf9eb('0xc')](_0xf9eb('0x8'),auth[_0xf9eb('0x9')](),controller[_0xf9eb('0xd')]);router['delete'](_0xf9eb('0x8'),auth[_0xf9eb('0x9')](),controller[_0xf9eb('0xe')]);module[_0xf9eb('0xf')]=router;