Built motion from commit (unavailable).|2.5.21
[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 _0xe85c=['addAnswer','/:id/notify','notify','addApplications','addAgents','/:id/send','send','put','update','destroy','delete','/:id/dispositions','removeAnswers','removeAgents','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','/:id','getDispositions','/:id/canned_answers','getAnswers','/:id/applications','getApplications','/:id/interactions','getInteractions','/:id/users','getAgents','post','create','addDisposition'];(function(_0x5edb84,_0x16f1b2){var _0xdfdd23=function(_0x489967){while(--_0x489967){_0x5edb84['push'](_0x5edb84['shift']());}};_0xdfdd23(++_0x16f1b2);}(_0xe85c,0xcd));var _0xce85=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe85c[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xce85('0x0'));var util=require('util');var path=require(_0xce85('0x1'));var timeout=require(_0xce85('0x2'));var express=require('express');var router=express[_0xce85('0x3')]();var auth=require(_0xce85('0x4'));var interaction=require(_0xce85('0x5'));var config=require(_0xce85('0x6'));var controller=require('./openchannelAccount.controller');router[_0xce85('0x7')]('/',auth[_0xce85('0x8')](),controller['index']);router[_0xce85('0x7')](_0xce85('0x9'),auth[_0xce85('0x8')](),controller['describe']);router['get'](_0xce85('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xce85('0x7')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0xce85('0xb')]);router['get'](_0xce85('0xc'),auth[_0xce85('0x8')](),controller[_0xce85('0xd')]);router[_0xce85('0x7')](_0xce85('0xe'),auth[_0xce85('0x8')](),controller[_0xce85('0xf')]);router[_0xce85('0x7')](_0xce85('0x10'),auth[_0xce85('0x8')](),controller[_0xce85('0x11')]);router[_0xce85('0x7')](_0xce85('0x12'),auth['isAuthenticated'](),controller[_0xce85('0x13')]);router[_0xce85('0x14')]('/',auth[_0xce85('0x8')](),controller[_0xce85('0x15')]);router['post']('/:id/dispositions',auth[_0xce85('0x8')](),controller[_0xce85('0x16')]);router[_0xce85('0x14')](_0xce85('0xc'),auth[_0xce85('0x8')](),controller[_0xce85('0x17')]);router[_0xce85('0x14')](_0xce85('0x18'),controller[_0xce85('0x19')]);router[_0xce85('0x14')](_0xce85('0xe'),auth['isAuthenticated'](),controller[_0xce85('0x1a')]);router[_0xce85('0x14')]('/:id/users',auth[_0xce85('0x8')](),controller[_0xce85('0x1b')]);router[_0xce85('0x14')](_0xce85('0x1c'),auth[_0xce85('0x8')](),controller[_0xce85('0x1d')]);router[_0xce85('0x1e')]('/:id',auth[_0xce85('0x8')](),controller[_0xce85('0x1f')]);router['delete']('/:id',auth[_0xce85('0x8')](),controller[_0xce85('0x20')]);router[_0xce85('0x21')](_0xce85('0x22'),auth[_0xce85('0x8')](),controller['removeDispositions']);router['delete']('/:id/canned_answers',auth['isAuthenticated'](),controller[_0xce85('0x23')]);router[_0xce85('0x21')](_0xce85('0x12'),auth[_0xce85('0x8')](),controller[_0xce85('0x24')]);module[_0xce85('0x25')]=router;