a200dcf98d0337719efc75bee81d5ecb1a81dc4a
[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 _0x8074=['./cmCompany.controller','get','isAuthenticated','/describe','describe','/:id','/:id/contacts','getContacts','post','put','update','delete','destroy','multer','util','path','express','Router','fs-extra','../../config/environment'];(function(_0x3cb047,_0x4777e4){var _0x24629f=function(_0x3cc3d3){while(--_0x3cc3d3){_0x3cb047['push'](_0x3cb047['shift']());}};_0x24629f(++_0x4777e4);}(_0x8074,0x175));var _0x4807=function(_0x25c0de,_0x5d9afd){_0x25c0de=_0x25c0de-0x0;var _0x3680e7=_0x8074[_0x25c0de];return _0x3680e7;};'use strict';var multer=require(_0x4807('0x0'));var util=require(_0x4807('0x1'));var path=require(_0x4807('0x2'));var timeout=require('connect-timeout');var express=require(_0x4807('0x3'));var router=express[_0x4807('0x4')]();var fs_extra=require(_0x4807('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x4807('0x6'));var controller=require(_0x4807('0x7'));router[_0x4807('0x8')]('/',auth[_0x4807('0x9')](),controller['index']);router['get'](_0x4807('0xa'),auth[_0x4807('0x9')](),controller[_0x4807('0xb')]);router[_0x4807('0x8')](_0x4807('0xc'),auth[_0x4807('0x9')](),controller['show']);router['get'](_0x4807('0xd'),auth[_0x4807('0x9')](),controller[_0x4807('0xe')]);router[_0x4807('0xf')]('/',auth['isAuthenticated'](),controller['create']);router[_0x4807('0xf')](_0x4807('0xd'),auth['isAuthenticated'](),controller['addContacts']);router[_0x4807('0x10')](_0x4807('0xc'),auth[_0x4807('0x9')](),controller[_0x4807('0x11')]);router[_0x4807('0x12')]('/:id',auth[_0x4807('0x9')](),controller[_0x4807('0x13')]);module['exports']=router;