Built motion from commit d9028345.|2.5.43
[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 _0x7ad6=['/:id/users','post','create','/:id/dispositions','addDisposition','addAnswer','/:id/notify','notify','addApplications','/:id/send','send','put','update','destroy','removeDispositions','delete','removeAnswers','removeAgents','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/:id','show','/:id/canned_answers','getAnswers','/:id/interactions'];(function(_0x589f71,_0x212326){var _0x5763bd=function(_0x2cb8e1){while(--_0x2cb8e1){_0x589f71['push'](_0x589f71['shift']());}};_0x5763bd(++_0x212326);}(_0x7ad6,0x1ab));var _0x67ad=function(_0x56482c,_0x16118d){_0x56482c=_0x56482c-0x0;var _0x5aae7a=_0x7ad6[_0x56482c];return _0x5aae7a;};'use strict';var multer=require(_0x67ad('0x0'));var util=require(_0x67ad('0x1'));var path=require(_0x67ad('0x2'));var timeout=require(_0x67ad('0x3'));var express=require('express');var router=express[_0x67ad('0x4')]();var fs_extra=require(_0x67ad('0x5'));var auth=require(_0x67ad('0x6'));var interaction=require(_0x67ad('0x7'));var config=require('../../config/environment');var controller=require('./openchannelAccount.controller');router[_0x67ad('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x67ad('0x8')]('/describe',auth[_0x67ad('0x9')](),controller['describe']);router[_0x67ad('0x8')](_0x67ad('0xa'),auth['isAuthenticated'](),controller[_0x67ad('0xb')]);router[_0x67ad('0x8')]('/:id/dispositions',auth['isAuthenticated'](),controller['getDispositions']);router['get'](_0x67ad('0xc'),auth[_0x67ad('0x9')](),controller[_0x67ad('0xd')]);router['get']('/:id/applications',auth['isAuthenticated'](),controller['getApplications']);router['get'](_0x67ad('0xe'),auth[_0x67ad('0x9')](),controller['getInteractions']);router[_0x67ad('0x8')](_0x67ad('0xf'),auth[_0x67ad('0x9')](),controller['getAgents']);router[_0x67ad('0x10')]('/',auth[_0x67ad('0x9')](),controller[_0x67ad('0x11')]);router[_0x67ad('0x10')](_0x67ad('0x12'),auth['isAuthenticated'](),controller[_0x67ad('0x13')]);router[_0x67ad('0x10')](_0x67ad('0xc'),auth[_0x67ad('0x9')](),controller[_0x67ad('0x14')]);router['post'](_0x67ad('0x15'),controller[_0x67ad('0x16')]);router['post']('/:id/applications',auth[_0x67ad('0x9')](),controller[_0x67ad('0x17')]);router[_0x67ad('0x10')](_0x67ad('0xf'),auth[_0x67ad('0x9')](),controller['addAgents']);router[_0x67ad('0x10')](_0x67ad('0x18'),auth[_0x67ad('0x9')](),controller[_0x67ad('0x19')]);router[_0x67ad('0x1a')](_0x67ad('0xa'),auth[_0x67ad('0x9')](),controller[_0x67ad('0x1b')]);router['delete'](_0x67ad('0xa'),auth[_0x67ad('0x9')](),controller[_0x67ad('0x1c')]);router['delete'](_0x67ad('0x12'),auth[_0x67ad('0x9')](),controller[_0x67ad('0x1d')]);router[_0x67ad('0x1e')]('/:id/canned_answers',auth[_0x67ad('0x9')](),controller[_0x67ad('0x1f')]);router['delete'](_0x67ad('0xf'),auth[_0x67ad('0x9')](),controller[_0x67ad('0x20')]);module[_0x67ad('0x21')]=router;