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