Built motion from commit ff78e754.|2.6.29
[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 _0xb3af=['isAuthenticated','index','/describe','describe','/:id','/:id/contacts','getContacts','post','create','addContacts','put','update','delete','destroy','exports','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./cmCompany.controller','get'];(function(_0x2e79ba,_0x584043){var _0x1f0617=function(_0x433bb0){while(--_0x433bb0){_0x2e79ba['push'](_0x2e79ba['shift']());}};_0x1f0617(++_0x584043);}(_0xb3af,0xc7));var _0xfb3a=function(_0x4b055c,_0x4b870b){_0x4b055c=_0x4b055c-0x0;var _0x4b62bb=_0xb3af[_0x4b055c];return _0x4b62bb;};'use strict';var multer=require('multer');var util=require(_0xfb3a('0x0'));var path=require(_0xfb3a('0x1'));var timeout=require(_0xfb3a('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xfb3a('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xfb3a('0x4'));var config=require(_0xfb3a('0x5'));var controller=require(_0xfb3a('0x6'));router[_0xfb3a('0x7')]('/',auth[_0xfb3a('0x8')](),controller[_0xfb3a('0x9')]);router[_0xfb3a('0x7')](_0xfb3a('0xa'),auth[_0xfb3a('0x8')](),controller[_0xfb3a('0xb')]);router['get'](_0xfb3a('0xc'),auth[_0xfb3a('0x8')](),controller['show']);router[_0xfb3a('0x7')](_0xfb3a('0xd'),auth[_0xfb3a('0x8')](),controller[_0xfb3a('0xe')]);router[_0xfb3a('0xf')]('/',auth[_0xfb3a('0x8')](),controller[_0xfb3a('0x10')]);router['post'](_0xfb3a('0xd'),auth['isAuthenticated'](),controller[_0xfb3a('0x11')]);router[_0xfb3a('0x12')](_0xfb3a('0xc'),auth[_0xfb3a('0x8')](),controller[_0xfb3a('0x13')]);router[_0xfb3a('0x14')]('/:id',auth[_0xfb3a('0x8')](),controller[_0xfb3a('0x15')]);module[_0xfb3a('0x16')]=router;