51f8f1c1270af8c2022c9fb71b665ae54b63cb6f
[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 _0x09cb=['post','put','/:id','update','destroy','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','get','index','describe','isAuthenticated','show','/:id/contacts','getContacts'];(function(_0x1d635a,_0x2159ea){var _0x1cf8cf=function(_0x4d49da){while(--_0x4d49da){_0x1d635a['push'](_0x1d635a['shift']());}};_0x1cf8cf(++_0x2159ea);}(_0x09cb,0xdd));var _0xb09c=function(_0x437fc5,_0x40675e){_0x437fc5=_0x437fc5-0x0;var _0xbb15dd=_0x09cb[_0x437fc5];return _0xbb15dd;};'use strict';var multer=require(_0xb09c('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xb09c('0x1'));var express=require(_0xb09c('0x2'));var router=express[_0xb09c('0x3')]();var fs_extra=require(_0xb09c('0x4'));var auth=require(_0xb09c('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./cmCompany.controller');router[_0xb09c('0x6')]('/',auth['isAuthenticated'](),controller[_0xb09c('0x7')]);router[_0xb09c('0x6')]('/describe',auth['isAuthenticated'](),controller[_0xb09c('0x8')]);router['get']('/:id',auth[_0xb09c('0x9')](),controller[_0xb09c('0xa')]);router[_0xb09c('0x6')](_0xb09c('0xb'),auth[_0xb09c('0x9')](),controller[_0xb09c('0xc')]);router[_0xb09c('0xd')]('/',auth[_0xb09c('0x9')](),controller['create']);router[_0xb09c('0xd')](_0xb09c('0xb'),auth['isAuthenticated'](),controller['addContacts']);router[_0xb09c('0xe')](_0xb09c('0xf'),auth[_0xb09c('0x9')](),controller[_0xb09c('0x10')]);router['delete'](_0xb09c('0xf'),auth[_0xb09c('0x9')](),controller[_0xb09c('0x11')]);module['exports']=router;