1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x8fa2=['get','isAuthenticated','describe','/:id','show','/:id/dispositions','/:id/contacts','/:id/contacts/csv','/:id/fields','getCustomFields','/:id/users','getAgents','post','create','addDisposition','addContacts','addCustomField','update','destroy','delete','removeDispositions','removeAgents','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./cmList.controller','index'];(function(_0x4d0662,_0x145963){var _0x6eea6d=function(_0x2def06){while(--_0x2def06){_0x4d0662['push'](_0x4d0662['shift']());}};_0x6eea6d(++_0x145963);}(_0x8fa2,0x93));var _0x28fa=function(_0x5f152b,_0x1f9248){_0x5f152b=_0x5f152b-0x0;var _0x38440e=_0x8fa2[_0x5f152b];return _0x38440e;};'use strict';var multer=require(_0x28fa('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x28fa('0x1'));var express=require(_0x28fa('0x2'));var router=express[_0x28fa('0x3')]();var auth=require(_0x28fa('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x28fa('0x5'));var controller=require(_0x28fa('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x28fa('0x7')]);router[_0x28fa('0x8')]('/describe',auth[_0x28fa('0x9')](),controller[_0x28fa('0xa')]);router[_0x28fa('0x8')](_0x28fa('0xb'),auth[_0x28fa('0x9')](),controller[_0x28fa('0xc')]);router[_0x28fa('0x8')](_0x28fa('0xd'),auth[_0x28fa('0x9')](),controller['getDispositions']);router[_0x28fa('0x8')](_0x28fa('0xe'),auth['isAuthenticated'](),controller['getContacts']);router[_0x28fa('0x8')](_0x28fa('0xf'),auth['isAuthenticated'](),controller['getContactsCsv']);router[_0x28fa('0x8')](_0x28fa('0x10'),auth[_0x28fa('0x9')](),controller[_0x28fa('0x11')]);router[_0x28fa('0x8')](_0x28fa('0x12'),auth[_0x28fa('0x9')](),controller[_0x28fa('0x13')]);router[_0x28fa('0x14')]('/',auth[_0x28fa('0x9')](),controller[_0x28fa('0x15')]);router[_0x28fa('0x14')](_0x28fa('0xd'),auth[_0x28fa('0x9')](),controller[_0x28fa('0x16')]);router[_0x28fa('0x14')](_0x28fa('0xe'),auth[_0x28fa('0x9')](),controller[_0x28fa('0x17')]);router[_0x28fa('0x14')](_0x28fa('0x10'),auth[_0x28fa('0x9')](),controller[_0x28fa('0x18')]);router[_0x28fa('0x14')](_0x28fa('0x12'),auth[_0x28fa('0x9')](),controller['addAgents']);router['put'](_0x28fa('0xb'),auth[_0x28fa('0x9')](),controller[_0x28fa('0x19')]);router['delete'](_0x28fa('0xb'),auth[_0x28fa('0x9')](),controller[_0x28fa('0x1a')]);router[_0x28fa('0x1b')](_0x28fa('0xd'),auth['isAuthenticated'](),controller[_0x28fa('0x1c')]);router[_0x28fa('0x1b')](_0x28fa('0x12'),auth[_0x28fa('0x9')](),controller[_0x28fa('0x1d')]);module[_0x28fa('0x1e')]=router;