fbc6a2d2abd1a4966bf78746e24d2205af521e52
[motion2.git] / server / api / cmCompany / 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 _0x160f=['describe','show','/:id/contacts','isAuthenticated','create','post','addContacts','put','/:id','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','get','index'];(function(_0x1f8f05,_0x516757){var _0x21179f=function(_0x1b0c7a){while(--_0x1b0c7a){_0x1f8f05['push'](_0x1f8f05['shift']());}};_0x21179f(++_0x516757);}(_0x160f,0x1ef));var _0xf160=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x160f[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xf160('0x0'));var util=require(_0xf160('0x1'));var path=require(_0xf160('0x2'));var timeout=require(_0xf160('0x3'));var express=require('express');var router=express[_0xf160('0x4')]();var auth=require(_0xf160('0x5'));var interaction=require(_0xf160('0x6'));var config=require(_0xf160('0x7'));var controller=require(_0xf160('0x8'));router[_0xf160('0x9')]('/',auth['isAuthenticated'](),controller[_0xf160('0xa')]);router[_0xf160('0x9')]('/describe',auth['isAuthenticated'](),controller[_0xf160('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xf160('0xc')]);router[_0xf160('0x9')](_0xf160('0xd'),auth[_0xf160('0xe')](),controller['getContacts']);router['post']('/',auth[_0xf160('0xe')](),controller[_0xf160('0xf')]);router[_0xf160('0x10')]('/:id/contacts',auth[_0xf160('0xe')](),controller[_0xf160('0x11')]);router[_0xf160('0x12')](_0xf160('0x13'),auth[_0xf160('0xe')](),controller['update']);router[_0xf160('0x14')]('/:id',auth[_0xf160('0xe')](),controller[_0xf160('0x15')]);module[_0xf160('0x16')]=router;