b646b0266379730ec8128fd23811c80a728ee9f3
[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 _0x910f=['post','create','addContacts','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','isAuthenticated','index','get','/describe','/:id','show','/:id/contacts','getContacts'];(function(_0x3ac2d9,_0x74b171){var _0x226f20=function(_0x508369){while(--_0x508369){_0x3ac2d9['push'](_0x3ac2d9['shift']());}};_0x226f20(++_0x74b171);}(_0x910f,0xb0));var _0xf910=function(_0x2850c0,_0x1363a7){_0x2850c0=_0x2850c0-0x0;var _0x21e830=_0x910f[_0x2850c0];return _0x21e830;};'use strict';var multer=require(_0xf910('0x0'));var util=require(_0xf910('0x1'));var path=require(_0xf910('0x2'));var timeout=require(_0xf910('0x3'));var express=require(_0xf910('0x4'));var router=express[_0xf910('0x5')]();var fs_extra=require(_0xf910('0x6'));var auth=require(_0xf910('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./cmCompany.controller');router['get']('/',auth[_0xf910('0x8')](),controller[_0xf910('0x9')]);router[_0xf910('0xa')](_0xf910('0xb'),auth[_0xf910('0x8')](),controller['describe']);router[_0xf910('0xa')](_0xf910('0xc'),auth[_0xf910('0x8')](),controller[_0xf910('0xd')]);router[_0xf910('0xa')](_0xf910('0xe'),auth['isAuthenticated'](),controller[_0xf910('0xf')]);router[_0xf910('0x10')]('/',auth[_0xf910('0x8')](),controller[_0xf910('0x11')]);router[_0xf910('0x10')]('/:id/contacts',auth[_0xf910('0x8')](),controller[_0xf910('0x12')]);router[_0xf910('0x13')](_0xf910('0xc'),auth['isAuthenticated'](),controller[_0xf910('0x14')]);router[_0xf910('0x15')]('/:id',auth['isAuthenticated'](),controller[_0xf910('0x16')]);module[_0xf910('0x17')]=router;