c184345eb98dc08363fd30e13207ac5ed145926e
[motion2.git] / server / api / openchannelAccount / 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 _0xc2b5=['getAnswers','/:id/applications','getApplications','/:id/interactions','getInteractions','getAgents','post','addDisposition','addAnswer','/:id/notify','notify','addAgents','/:id/send','send','/:id','update','destroy','removeDispositions','delete','removeAnswers','/:id/users','removeAgents','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./openchannelAccount.controller','get','index','/describe','isAuthenticated','describe','show','/:id/dispositions','getDispositions','/:id/canned_answers'];(function(_0x75a103,_0x406e69){var _0x10ec8a=function(_0x3c17fc){while(--_0x3c17fc){_0x75a103['push'](_0x75a103['shift']());}};_0x10ec8a(++_0x406e69);}(_0xc2b5,0x19c));var _0x5c2b=function(_0xe7082a,_0xd0d68f){_0xe7082a=_0xe7082a-0x0;var _0x92f6a8=_0xc2b5[_0xe7082a];return _0x92f6a8;};'use strict';var multer=require(_0x5c2b('0x0'));var util=require(_0x5c2b('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x5c2b('0x2'));var router=express[_0x5c2b('0x3')]();var fs_extra=require(_0x5c2b('0x4'));var auth=require(_0x5c2b('0x5'));var interaction=require(_0x5c2b('0x6'));var config=require('../../config/environment');var controller=require(_0x5c2b('0x7'));router[_0x5c2b('0x8')]('/',auth['isAuthenticated'](),controller[_0x5c2b('0x9')]);router[_0x5c2b('0x8')](_0x5c2b('0xa'),auth[_0x5c2b('0xb')](),controller[_0x5c2b('0xc')]);router['get']('/:id',auth[_0x5c2b('0xb')](),controller[_0x5c2b('0xd')]);router[_0x5c2b('0x8')](_0x5c2b('0xe'),auth[_0x5c2b('0xb')](),controller[_0x5c2b('0xf')]);router[_0x5c2b('0x8')](_0x5c2b('0x10'),auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x11')]);router[_0x5c2b('0x8')](_0x5c2b('0x12'),auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x13')]);router[_0x5c2b('0x8')](_0x5c2b('0x14'),auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x15')]);router[_0x5c2b('0x8')]('/:id/users',auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x16')]);router[_0x5c2b('0x17')]('/',auth['isAuthenticated'](),controller['create']);router[_0x5c2b('0x17')](_0x5c2b('0xe'),auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x18')]);router['post']('/:id/canned_answers',auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x19')]);router[_0x5c2b('0x17')](_0x5c2b('0x1a'),controller[_0x5c2b('0x1b')]);router[_0x5c2b('0x17')](_0x5c2b('0x12'),auth[_0x5c2b('0xb')](),controller['addApplications']);router['post']('/:id/users',auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x1c')]);router[_0x5c2b('0x17')](_0x5c2b('0x1d'),auth['isAuthenticated'](),controller[_0x5c2b('0x1e')]);router['put'](_0x5c2b('0x1f'),auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x20')]);router['delete']('/:id',auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x21')]);router['delete'](_0x5c2b('0xe'),auth['isAuthenticated'](),controller[_0x5c2b('0x22')]);router[_0x5c2b('0x23')](_0x5c2b('0x10'),auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x24')]);router[_0x5c2b('0x23')](_0x5c2b('0x25'),auth[_0x5c2b('0xb')](),controller[_0x5c2b('0x26')]);module['exports']=router;