74a460bdaf7dbec55d2bd5f4ec87a1b5507a10af
[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 _0x5df0=['post','create','addContacts','put','/:id','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','get','/describe','describe','show','/:id/contacts'];(function(_0x547add,_0x387042){var _0x2ed1f3=function(_0x3bbb4d){while(--_0x3bbb4d){_0x547add['push'](_0x547add['shift']());}};_0x2ed1f3(++_0x387042);}(_0x5df0,0x118));var _0x05df=function(_0x33ba83,_0x1990e0){_0x33ba83=_0x33ba83-0x0;var _0xb50b4c=_0x5df0[_0x33ba83];return _0xb50b4c;};'use strict';var multer=require(_0x05df('0x0'));var util=require(_0x05df('0x1'));var path=require(_0x05df('0x2'));var timeout=require('connect-timeout');var express=require(_0x05df('0x3'));var router=express[_0x05df('0x4')]();var fs_extra=require(_0x05df('0x5'));var auth=require(_0x05df('0x6'));var interaction=require(_0x05df('0x7'));var config=require('../../config/environment');var controller=require('./cmCompany.controller');router['get']('/',auth[_0x05df('0x8')](),controller['index']);router[_0x05df('0x9')](_0x05df('0xa'),auth[_0x05df('0x8')](),controller[_0x05df('0xb')]);router[_0x05df('0x9')]('/:id',auth[_0x05df('0x8')](),controller[_0x05df('0xc')]);router[_0x05df('0x9')](_0x05df('0xd'),auth['isAuthenticated'](),controller['getContacts']);router[_0x05df('0xe')]('/',auth[_0x05df('0x8')](),controller[_0x05df('0xf')]);router[_0x05df('0xe')](_0x05df('0xd'),auth[_0x05df('0x8')](),controller[_0x05df('0x10')]);router[_0x05df('0x11')](_0x05df('0x12'),auth[_0x05df('0x8')](),controller['update']);router['delete'](_0x05df('0x12'),auth[_0x05df('0x8')](),controller[_0x05df('0x13')]);module[_0x05df('0x14')]=router;