Built motion from commit b5413ace.|2.6.9
[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 _0x38dc=['Request','description','username','password','remoteUri','type','serverUrl','DeskConfiguration','Configurations','name','DeskField','variableName','Variable','Descriptions','content','keyType','keyContent','idField','nameField','customField','Tag','Tags','GetDeskAccount','../../client','getDeskAccounts'];(function(_0x3b7a0c,_0xf1a4c2){var _0x3bb70f=function(_0x248b52){while(--_0x248b52){_0x3b7a0c['push'](_0x3b7a0c['shift']());}};_0x3bb70f(++_0xf1a4c2);}(_0x38dc,0x1c0));var _0xc38d=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x38dc[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0xc38d('0x0'));exports[_0xc38d('0x1')]=function(){return function(_0x16cdce){return client[_0xc38d('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id','name',_0xc38d('0x3'),_0xc38d('0x4'),_0xc38d('0x5'),_0xc38d('0x6'),'authType',_0xc38d('0x7'),_0xc38d('0x8')],'include':[{'model':_0xc38d('0x9'),'as':_0xc38d('0xa'),'attributes':['id',_0xc38d('0xb')],'include':[{'model':_0xc38d('0xc'),'as':'Subjects','attributes':['id',_0xc38d('0x7'),'content',_0xc38d('0xd')],'include':[{'model':'Variable','as':_0xc38d('0xe'),'attributes':['id',_0xc38d('0xb')]}]},{'model':_0xc38d('0xc'),'as':_0xc38d('0xf'),'attributes':['id',_0xc38d('0x7'),_0xc38d('0x10'),'key',_0xc38d('0x11'),_0xc38d('0x12'),_0xc38d('0xd')],'include':[{'model':_0xc38d('0xe'),'as':'Variable','attributes':['id',_0xc38d('0xb')]}]},{'model':_0xc38d('0xc'),'as':'Fields','attributes':['id',_0xc38d('0x7'),_0xc38d('0x10'),_0xc38d('0x13'),_0xc38d('0x14'),_0xc38d('0x15'),_0xc38d('0xd')],'include':[{'model':_0xc38d('0xe'),'as':_0xc38d('0xe'),'attributes':['id',_0xc38d('0xb')]}]},{'model':_0xc38d('0x16'),'as':_0xc38d('0x17'),'attributes':['id','name']}]}]},'log':_0xc38d('0x18')});};};