Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0xfbd6=['variableName','Fields','idField','nameField','customField','Tag','Tags','../../client','getDeskAccounts','GetDeskAccount','name','description','username','password','authType','serverUrl','DeskConfiguration','Configurations','DeskField','type','content','Variable','Descriptions','key'];(function(_0x14a0c8,_0x23c2bc){var _0x27adec=function(_0x3c2bdc){while(--_0x3c2bdc){_0x14a0c8['push'](_0x14a0c8['shift']());}};_0x27adec(++_0x23c2bc);}(_0xfbd6,0xf7));var _0x6fbd=function(_0x64ac19,_0x2398c8){_0x64ac19=_0x64ac19-0x0;var _0xf83c91=_0xfbd6[_0x64ac19];return _0xf83c91;};'use strict';var client=require(_0x6fbd('0x0'));exports[_0x6fbd('0x1')]=function(){return function(_0x9e23fc){return client['Request'](_0x6fbd('0x2'),{'options':{'raw':![],'attributes':['id',_0x6fbd('0x3'),_0x6fbd('0x4'),_0x6fbd('0x5'),_0x6fbd('0x6'),'remoteUri',_0x6fbd('0x7'),'type',_0x6fbd('0x8')],'include':[{'model':_0x6fbd('0x9'),'as':_0x6fbd('0xa'),'attributes':['id','name'],'include':[{'model':_0x6fbd('0xb'),'as':'Subjects','attributes':['id',_0x6fbd('0xc'),_0x6fbd('0xd'),'variableName'],'include':[{'model':_0x6fbd('0xe'),'as':_0x6fbd('0xe'),'attributes':['id',_0x6fbd('0x3')]}]},{'model':'DeskField','as':_0x6fbd('0xf'),'attributes':['id',_0x6fbd('0xc'),_0x6fbd('0xd'),_0x6fbd('0x10'),'keyType','keyContent',_0x6fbd('0x11')],'include':[{'model':_0x6fbd('0xe'),'as':'Variable','attributes':['id',_0x6fbd('0x3')]}]},{'model':_0x6fbd('0xb'),'as':_0x6fbd('0x12'),'attributes':['id',_0x6fbd('0xc'),_0x6fbd('0xd'),_0x6fbd('0x13'),_0x6fbd('0x14'),_0x6fbd('0x15'),'variableName'],'include':[{'model':_0x6fbd('0xe'),'as':_0x6fbd('0xe'),'attributes':['id',_0x6fbd('0x3')]}]},{'model':_0x6fbd('0x16'),'as':_0x6fbd('0x17'),'attributes':['id',_0x6fbd('0x3')]}]}]},'log':_0x6fbd('0x2')});};};