9bfe9c08768f26b3b8967d7084336aa0a4914e79
[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 _0x030a=['destroy','exports','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','get','index','/describe','isAuthenticated','describe','show','getContacts','post','/:id/contacts','addContacts','put','/:id','update'];(function(_0x5caa8a,_0x5a4fda){var _0x314c4e=function(_0x235579){while(--_0x235579){_0x5caa8a['push'](_0x5caa8a['shift']());}};_0x314c4e(++_0x5a4fda);}(_0x030a,0xc2));var _0xa030=function(_0x487b09,_0x349b11){_0x487b09=_0x487b09-0x0;var _0x28830b=_0x030a[_0x487b09];return _0x28830b;};'use strict';var multer=require(_0xa030('0x0'));var util=require(_0xa030('0x1'));var path=require('path');var timeout=require(_0xa030('0x2'));var express=require('express');var router=express[_0xa030('0x3')]();var fs_extra=require(_0xa030('0x4'));var auth=require(_0xa030('0x5'));var interaction=require(_0xa030('0x6'));var config=require(_0xa030('0x7'));var controller=require(_0xa030('0x8'));router[_0xa030('0x9')]('/',auth['isAuthenticated'](),controller[_0xa030('0xa')]);router['get'](_0xa030('0xb'),auth[_0xa030('0xc')](),controller[_0xa030('0xd')]);router['get']('/:id',auth[_0xa030('0xc')](),controller[_0xa030('0xe')]);router[_0xa030('0x9')]('/:id/contacts',auth[_0xa030('0xc')](),controller[_0xa030('0xf')]);router[_0xa030('0x10')]('/',auth[_0xa030('0xc')](),controller['create']);router[_0xa030('0x10')](_0xa030('0x11'),auth[_0xa030('0xc')](),controller[_0xa030('0x12')]);router[_0xa030('0x13')](_0xa030('0x14'),auth['isAuthenticated'](),controller[_0xa030('0x15')]);router['delete'](_0xa030('0x14'),auth[_0xa030('0xc')](),controller[_0xa030('0x16')]);module[_0xa030('0x17')]=router;