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