Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / api / cmList / 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 _0xf46d=['/:id/contacts','/:id/contacts/csv','getContactsCsv','/:id/fields','getCustomFields','/:id/users','post','create','addDisposition','addContacts','addAgents','put','update','delete','destroy','removeDispositions','removeAgents','exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','/:id','show','/:id/dispositions'];(function(_0x896a11,_0x2cf3c7){var _0x2766d4=function(_0x12d9f5){while(--_0x12d9f5){_0x896a11['push'](_0x896a11['shift']());}};_0x2766d4(++_0x2cf3c7);}(_0xf46d,0x192));var _0xdf46=function(_0x273dc5,_0x268a81){_0x273dc5=_0x273dc5-0x0;var _0x46dae7=_0xf46d[_0x273dc5];return _0x46dae7;};'use strict';var multer=require('multer');var util=require(_0xdf46('0x0'));var path=require(_0xdf46('0x1'));var timeout=require('connect-timeout');var express=require(_0xdf46('0x2'));var router=express[_0xdf46('0x3')]();var auth=require(_0xdf46('0x4'));var interaction=require(_0xdf46('0x5'));var config=require(_0xdf46('0x6'));var controller=require('./cmList.controller');router[_0xdf46('0x7')]('/',auth[_0xdf46('0x8')](),controller['index']);router[_0xdf46('0x7')](_0xdf46('0x9'),auth[_0xdf46('0x8')](),controller[_0xdf46('0xa')]);router[_0xdf46('0x7')](_0xdf46('0xb'),auth['isAuthenticated'](),controller[_0xdf46('0xc')]);router[_0xdf46('0x7')](_0xdf46('0xd'),auth[_0xdf46('0x8')](),controller['getDispositions']);router['get'](_0xdf46('0xe'),auth[_0xdf46('0x8')](),controller['getContacts']);router[_0xdf46('0x7')](_0xdf46('0xf'),auth[_0xdf46('0x8')](),controller[_0xdf46('0x10')]);router[_0xdf46('0x7')](_0xdf46('0x11'),auth[_0xdf46('0x8')](),controller[_0xdf46('0x12')]);router['get'](_0xdf46('0x13'),auth[_0xdf46('0x8')](),controller['getAgents']);router[_0xdf46('0x14')]('/',auth['isAuthenticated'](),controller[_0xdf46('0x15')]);router[_0xdf46('0x14')](_0xdf46('0xd'),auth['isAuthenticated'](),controller[_0xdf46('0x16')]);router[_0xdf46('0x14')](_0xdf46('0xe'),auth[_0xdf46('0x8')](),controller[_0xdf46('0x17')]);router[_0xdf46('0x14')]('/:id/fields',auth[_0xdf46('0x8')](),controller['addCustomField']);router['post'](_0xdf46('0x13'),auth[_0xdf46('0x8')](),controller[_0xdf46('0x18')]);router[_0xdf46('0x19')]('/:id',auth[_0xdf46('0x8')](),controller[_0xdf46('0x1a')]);router[_0xdf46('0x1b')](_0xdf46('0xb'),auth[_0xdf46('0x8')](),controller[_0xdf46('0x1c')]);router['delete'](_0xdf46('0xd'),auth[_0xdf46('0x8')](),controller[_0xdf46('0x1d')]);router[_0xdf46('0x1b')](_0xdf46('0x13'),auth[_0xdf46('0x8')](),controller[_0xdf46('0x1e')]);module[_0xdf46('0x1f')]=router;