7d9c794c268e121466e65c000295bcabf4fd67db
[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 _0x481a=['post','create','addDisposition','addContacts','/:id/users','addAgents','put','update','delete','destroy','removeAgents','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmList.controller','get','index','/describe','isAuthenticated','describe','/global_fields','/:id','/:id/dispositions','getDispositions','/:id/contacts','getContacts','/:id/fields','getCustomFields'];(function(_0x5486cf,_0x5ee3c1){var _0x39b80f=function(_0x33e621){while(--_0x33e621){_0x5486cf['push'](_0x5486cf['shift']());}};_0x39b80f(++_0x5ee3c1);}(_0x481a,0xbb));var _0xa481=function(_0xaf2c94,_0x142960){_0xaf2c94=_0xaf2c94-0x0;var _0x3b086d=_0x481a[_0xaf2c94];return _0x3b086d;};'use strict';var multer=require(_0xa481('0x0'));var util=require(_0xa481('0x1'));var path=require(_0xa481('0x2'));var timeout=require(_0xa481('0x3'));var express=require(_0xa481('0x4'));var router=express['Router']();var fs_extra=require(_0xa481('0x5'));var auth=require(_0xa481('0x6'));var interaction=require(_0xa481('0x7'));var config=require(_0xa481('0x8'));var controller=require(_0xa481('0x9'));router[_0xa481('0xa')]('/',auth['isAuthenticated'](),controller[_0xa481('0xb')]);router[_0xa481('0xa')](_0xa481('0xc'),auth[_0xa481('0xd')](),controller[_0xa481('0xe')]);router[_0xa481('0xa')](_0xa481('0xf'),auth[_0xa481('0xd')](),controller['getGlobalCustomFields']);router[_0xa481('0xa')](_0xa481('0x10'),auth[_0xa481('0xd')](),controller['show']);router[_0xa481('0xa')](_0xa481('0x11'),auth[_0xa481('0xd')](),controller[_0xa481('0x12')]);router[_0xa481('0xa')](_0xa481('0x13'),auth[_0xa481('0xd')](),controller[_0xa481('0x14')]);router[_0xa481('0xa')]('/:id/contacts/csv',auth[_0xa481('0xd')](),controller['getContactsCsv']);router[_0xa481('0xa')](_0xa481('0x15'),auth[_0xa481('0xd')](),controller[_0xa481('0x16')]);router[_0xa481('0xa')]('/:id/users',auth['isAuthenticated'](),controller['getAgents']);router[_0xa481('0x17')]('/',auth[_0xa481('0xd')](),controller[_0xa481('0x18')]);router['post'](_0xa481('0x11'),auth['isAuthenticated'](),controller[_0xa481('0x19')]);router[_0xa481('0x17')](_0xa481('0x13'),auth['isAuthenticated'](),controller[_0xa481('0x1a')]);router[_0xa481('0x17')](_0xa481('0x15'),auth[_0xa481('0xd')](),controller['addCustomField']);router[_0xa481('0x17')](_0xa481('0x1b'),auth[_0xa481('0xd')](),controller[_0xa481('0x1c')]);router[_0xa481('0x1d')](_0xa481('0x10'),auth['isAuthenticated'](),controller[_0xa481('0x1e')]);router[_0xa481('0x1f')](_0xa481('0x10'),auth[_0xa481('0xd')](),controller[_0xa481('0x20')]);router['delete'](_0xa481('0x11'),auth[_0xa481('0xd')](),controller['removeDispositions']);router[_0xa481('0x1f')](_0xa481('0x1b'),auth['isAuthenticated'](),controller[_0xa481('0x21')]);module[_0xa481('0x22')]=router;