Built motion from commit 5b761a7b.|2.5.36
[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 _0xc976=['connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','post','addContacts','put','delete','destroy','exports','path'];(function(_0x185474,_0x375d14){var _0x5656f0=function(_0x3f14fd){while(--_0x3f14fd){_0x185474['push'](_0x185474['shift']());}};_0x5656f0(++_0x375d14);}(_0xc976,0x1b9));var _0x6c97=function(_0x125c7d,_0x432488){_0x125c7d=_0x125c7d-0x0;var _0x1646c6=_0xc976[_0x125c7d];return _0x1646c6;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x6c97('0x0'));var timeout=require(_0x6c97('0x1'));var express=require(_0x6c97('0x2'));var router=express['Router']();var fs_extra=require(_0x6c97('0x3'));var auth=require(_0x6c97('0x4'));var interaction=require(_0x6c97('0x5'));var config=require(_0x6c97('0x6'));var controller=require('./cmCompany.controller');router[_0x6c97('0x7')]('/',auth['isAuthenticated'](),controller[_0x6c97('0x8')]);router[_0x6c97('0x7')]('/describe',auth['isAuthenticated'](),controller['describe']);router['get'](_0x6c97('0x9'),auth[_0x6c97('0xa')](),controller['show']);router['get']('/:id/contacts',auth['isAuthenticated'](),controller['getContacts']);router[_0x6c97('0xb')]('/',auth[_0x6c97('0xa')](),controller['create']);router[_0x6c97('0xb')]('/:id/contacts',auth[_0x6c97('0xa')](),controller[_0x6c97('0xc')]);router[_0x6c97('0xd')]('/:id',auth[_0x6c97('0xa')](),controller['update']);router[_0x6c97('0xe')](_0x6c97('0x9'),auth[_0x6c97('0xa')](),controller[_0x6c97('0xf')]);module[_0x6c97('0x10')]=router;