Built motion from commit ce03bc3d.|2.5.39
[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 _0xc444=['express','fs-extra','../../components/interaction/service','../../config/environment','./cmList.controller','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/dispositions','/:id/contacts','getContacts','/:id/contacts/csv','getContactsCsv','/:id/fields','getAgents','post','addDisposition','addContacts','addCustomField','/:id/users','addAgents','put','update','delete','destroy','removeDispositions','removeAgents','multer'];(function(_0x2bb67c,_0x1fa682){var _0x45bafb=function(_0x45844c){while(--_0x45844c){_0x2bb67c['push'](_0x2bb67c['shift']());}};_0x45bafb(++_0x1fa682);}(_0xc444,0xbf));var _0x4c44=function(_0x57dae4,_0x1fdc74){_0x57dae4=_0x57dae4-0x0;var _0x4a30fe=_0xc444[_0x57dae4];return _0x4a30fe;};'use strict';var multer=require(_0x4c44('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x4c44('0x1'));var router=express['Router']();var fs_extra=require(_0x4c44('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0x4c44('0x3'));var config=require(_0x4c44('0x4'));var controller=require(_0x4c44('0x5'));router['get']('/',auth[_0x4c44('0x6')](),controller[_0x4c44('0x7')]);router[_0x4c44('0x8')](_0x4c44('0x9'),auth['isAuthenticated'](),controller[_0x4c44('0xa')]);router['get'](_0x4c44('0xb'),auth[_0x4c44('0x6')](),controller[_0x4c44('0xc')]);router[_0x4c44('0x8')](_0x4c44('0xd'),auth['isAuthenticated'](),controller['getDispositions']);router[_0x4c44('0x8')](_0x4c44('0xe'),auth[_0x4c44('0x6')](),controller[_0x4c44('0xf')]);router[_0x4c44('0x8')](_0x4c44('0x10'),auth[_0x4c44('0x6')](),controller[_0x4c44('0x11')]);router['get'](_0x4c44('0x12'),auth['isAuthenticated'](),controller['getCustomFields']);router[_0x4c44('0x8')]('/:id/users',auth['isAuthenticated'](),controller[_0x4c44('0x13')]);router[_0x4c44('0x14')]('/',auth[_0x4c44('0x6')](),controller['create']);router[_0x4c44('0x14')]('/:id/dispositions',auth[_0x4c44('0x6')](),controller[_0x4c44('0x15')]);router[_0x4c44('0x14')](_0x4c44('0xe'),auth[_0x4c44('0x6')](),controller[_0x4c44('0x16')]);router['post'](_0x4c44('0x12'),auth[_0x4c44('0x6')](),controller[_0x4c44('0x17')]);router[_0x4c44('0x14')](_0x4c44('0x18'),auth[_0x4c44('0x6')](),controller[_0x4c44('0x19')]);router[_0x4c44('0x1a')]('/:id',auth[_0x4c44('0x6')](),controller[_0x4c44('0x1b')]);router[_0x4c44('0x1c')](_0x4c44('0xb'),auth[_0x4c44('0x6')](),controller[_0x4c44('0x1d')]);router['delete'](_0x4c44('0xd'),auth[_0x4c44('0x6')](),controller[_0x4c44('0x1e')]);router[_0x4c44('0x1c')](_0x4c44('0x18'),auth[_0x4c44('0x6')](),controller[_0x4c44('0x1f')]);module['exports']=router;