Built motion from commit (unavailable).|2.4.17
[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 _0x6343=['path','connect-timeout','../../config/environment','./cmCompany.controller','isAuthenticated','index','/describe','/:id','show','get','/:id/contacts','create','addContacts','put','update','delete','destroy','exports'];(function(_0x37d73a,_0x1f2af1){var _0x3f4139=function(_0x22419d){while(--_0x22419d){_0x37d73a['push'](_0x37d73a['shift']());}};_0x3f4139(++_0x1f2af1);}(_0x6343,0x168));var _0x3634=function(_0x2c3406,_0x559f22){_0x2c3406=_0x2c3406-0x0;var _0x1772cb=_0x6343[_0x2c3406];return _0x1772cb;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x3634('0x0'));var timeout=require(_0x3634('0x1'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3634('0x2'));var controller=require(_0x3634('0x3'));router['get']('/',auth[_0x3634('0x4')](),controller[_0x3634('0x5')]);router['get'](_0x3634('0x6'),auth[_0x3634('0x4')](),controller['describe']);router['get'](_0x3634('0x7'),auth[_0x3634('0x4')](),controller[_0x3634('0x8')]);router[_0x3634('0x9')](_0x3634('0xa'),auth[_0x3634('0x4')](),controller['getContacts']);router['post']('/',auth[_0x3634('0x4')](),controller[_0x3634('0xb')]);router['post'](_0x3634('0xa'),auth[_0x3634('0x4')](),controller[_0x3634('0xc')]);router[_0x3634('0xd')](_0x3634('0x7'),auth[_0x3634('0x4')](),controller[_0x3634('0xe')]);router[_0x3634('0xf')](_0x3634('0x7'),auth[_0x3634('0x4')](),controller[_0x3634('0x10')]);module[_0x3634('0x11')]=router;