Built motion from commit 639a1a7f.|2.6.19
[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 _0x13f0=['describe','/:id','/:id/contacts','post','addContacts','put','update','delete','exports','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./cmCompany.controller','get','isAuthenticated','index','/describe'];(function(_0x54c9e2,_0x5ba1b8){var _0x5762a5=function(_0x4127e7){while(--_0x4127e7){_0x54c9e2['push'](_0x54c9e2['shift']());}};_0x5762a5(++_0x5ba1b8);}(_0x13f0,0x105));var _0x013f=function(_0xc563c0,_0x43cd8c){_0xc563c0=_0xc563c0-0x0;var _0x254edb=_0x13f0[_0xc563c0];return _0x254edb;};'use strict';var multer=require('multer');var util=require(_0x013f('0x0'));var path=require(_0x013f('0x1'));var timeout=require('connect-timeout');var express=require(_0x013f('0x2'));var router=express[_0x013f('0x3')]();var fs_extra=require(_0x013f('0x4'));var auth=require(_0x013f('0x5'));var interaction=require(_0x013f('0x6'));var config=require('../../config/environment');var controller=require(_0x013f('0x7'));router[_0x013f('0x8')]('/',auth[_0x013f('0x9')](),controller[_0x013f('0xa')]);router['get'](_0x013f('0xb'),auth[_0x013f('0x9')](),controller[_0x013f('0xc')]);router[_0x013f('0x8')](_0x013f('0xd'),auth['isAuthenticated'](),controller['show']);router[_0x013f('0x8')](_0x013f('0xe'),auth[_0x013f('0x9')](),controller['getContacts']);router['post']('/',auth[_0x013f('0x9')](),controller['create']);router[_0x013f('0xf')](_0x013f('0xe'),auth['isAuthenticated'](),controller[_0x013f('0x10')]);router[_0x013f('0x11')](_0x013f('0xd'),auth[_0x013f('0x9')](),controller[_0x013f('0x12')]);router[_0x013f('0x13')](_0x013f('0xd'),auth[_0x013f('0x9')](),controller['destroy']);module[_0x013f('0x14')]=router;