5c2e9cfffdbd2b82802e23b023f59c2053290cb1
[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 _0x4137=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','get','isAuthenticated','/describe','describe','/:id','/:id/contacts','getContacts','post','create','addContacts','update','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0xb61562,_0x1c8d99){var _0x4f73c0=function(_0x2445bd){while(--_0x2445bd){_0xb61562['push'](_0xb61562['shift']());}};_0x4f73c0(++_0x1c8d99);}(_0x4137,0xf8));var _0x7413=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x4137[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0x7413('0x0'));var util=require(_0x7413('0x1'));var path=require(_0x7413('0x2'));var timeout=require(_0x7413('0x3'));var express=require(_0x7413('0x4'));var router=express[_0x7413('0x5')]();var auth=require(_0x7413('0x6'));var interaction=require(_0x7413('0x7'));var config=require(_0x7413('0x8'));var controller=require(_0x7413('0x9'));router[_0x7413('0xa')]('/',auth[_0x7413('0xb')](),controller['index']);router[_0x7413('0xa')](_0x7413('0xc'),auth[_0x7413('0xb')](),controller[_0x7413('0xd')]);router['get'](_0x7413('0xe'),auth[_0x7413('0xb')](),controller['show']);router[_0x7413('0xa')](_0x7413('0xf'),auth['isAuthenticated'](),controller[_0x7413('0x10')]);router[_0x7413('0x11')]('/',auth[_0x7413('0xb')](),controller[_0x7413('0x12')]);router[_0x7413('0x11')]('/:id/contacts',auth[_0x7413('0xb')](),controller[_0x7413('0x13')]);router['put'](_0x7413('0xe'),auth[_0x7413('0xb')](),controller[_0x7413('0x14')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x7413('0x15')]);module[_0x7413('0x16')]=router;