c2fc4186648c1f972bef5318671dd6021d923608
[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 _0xed1c=['../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','/:id','show','/:id/contacts','getContacts','create','post','addContacts','put','update','delete','destroy','exports','multer','util','../../components/auth/service'];(function(_0x382ec7,_0x2718b4){var _0x33ba31=function(_0x1a723c){while(--_0x1a723c){_0x382ec7['push'](_0x382ec7['shift']());}};_0x33ba31(++_0x2718b4);}(_0xed1c,0xe4));var _0xced1=function(_0xc7a1d9,_0x55345a){_0xc7a1d9=_0xc7a1d9-0x0;var _0x3d4ad6=_0xed1c[_0xc7a1d9];return _0x3d4ad6;};'use strict';var multer=require(_0xced1('0x0'));var util=require(_0xced1('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0xced1('0x2'));var interaction=require(_0xced1('0x3'));var config=require(_0xced1('0x4'));var controller=require('./cmCompany.controller');router[_0xced1('0x5')]('/',auth[_0xced1('0x6')](),controller[_0xced1('0x7')]);router[_0xced1('0x5')]('/describe',auth[_0xced1('0x6')](),controller[_0xced1('0x8')]);router[_0xced1('0x5')](_0xced1('0x9'),auth[_0xced1('0x6')](),controller[_0xced1('0xa')]);router[_0xced1('0x5')](_0xced1('0xb'),auth['isAuthenticated'](),controller[_0xced1('0xc')]);router['post']('/',auth[_0xced1('0x6')](),controller[_0xced1('0xd')]);router[_0xced1('0xe')](_0xced1('0xb'),auth[_0xced1('0x6')](),controller[_0xced1('0xf')]);router[_0xced1('0x10')]('/:id',auth[_0xced1('0x6')](),controller[_0xced1('0x11')]);router[_0xced1('0x12')](_0xced1('0x9'),auth['isAuthenticated'](),controller[_0xced1('0x13')]);module[_0xced1('0x14')]=router;