Built motion from commit 497d3d92.|2.5.43
[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 _0x30a9=['addContacts','put','update','delete','destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','describe','/:id','show','/:id/contacts','getContacts','post','create'];(function(_0x1dbb97,_0xc2e02f){var _0x57612f=function(_0x5e9ffc){while(--_0x5e9ffc){_0x1dbb97['push'](_0x1dbb97['shift']());}};_0x57612f(++_0xc2e02f);}(_0x30a9,0x18d));var _0x930a=function(_0x2e441a,_0x562bc8){_0x2e441a=_0x2e441a-0x0;var _0x3bd4c4=_0x30a9[_0x2e441a];return _0x3bd4c4;};'use strict';var multer=require(_0x930a('0x0'));var util=require(_0x930a('0x1'));var path=require(_0x930a('0x2'));var timeout=require('connect-timeout');var express=require(_0x930a('0x3'));var router=express['Router']();var fs_extra=require(_0x930a('0x4'));var auth=require(_0x930a('0x5'));var interaction=require(_0x930a('0x6'));var config=require(_0x930a('0x7'));var controller=require('./cmCompany.controller');router['get']('/',auth[_0x930a('0x8')](),controller['index']);router[_0x930a('0x9')]('/describe',auth['isAuthenticated'](),controller[_0x930a('0xa')]);router['get'](_0x930a('0xb'),auth[_0x930a('0x8')](),controller[_0x930a('0xc')]);router[_0x930a('0x9')](_0x930a('0xd'),auth['isAuthenticated'](),controller[_0x930a('0xe')]);router[_0x930a('0xf')]('/',auth[_0x930a('0x8')](),controller[_0x930a('0x10')]);router['post'](_0x930a('0xd'),auth[_0x930a('0x8')](),controller[_0x930a('0x11')]);router[_0x930a('0x12')](_0x930a('0xb'),auth[_0x930a('0x8')](),controller[_0x930a('0x13')]);router[_0x930a('0x14')](_0x930a('0xb'),auth['isAuthenticated'](),controller[_0x930a('0x15')]);module[_0x930a('0x16')]=router;