Built motion from commit (unavailable).|2.5.14
[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 _0x7214=['serverUrl','Configurations','DeskField','variableName','Variable','name','key','keyType','Fields','idField','nameField','customField','Tag','../../client','getDeskAccounts','Request','description','username','password','remoteUri','authType','type'];(function(_0x3d3c9d,_0x175dde){var _0x174724=function(_0x107948){while(--_0x107948){_0x3d3c9d['push'](_0x3d3c9d['shift']());}};_0x174724(++_0x175dde);}(_0x7214,0x199));var _0x4721=function(_0x1a243c,_0x455768){_0x1a243c=_0x1a243c-0x0;var _0x147800=_0x7214[_0x1a243c];return _0x147800;};'use strict';var client=require(_0x4721('0x0'));exports[_0x4721('0x1')]=function(){return function(_0x336747){return client[_0x4721('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id','name',_0x4721('0x3'),_0x4721('0x4'),_0x4721('0x5'),_0x4721('0x6'),_0x4721('0x7'),_0x4721('0x8'),_0x4721('0x9')],'include':[{'model':'DeskConfiguration','as':_0x4721('0xa'),'attributes':['id','name'],'include':[{'model':_0x4721('0xb'),'as':'Subjects','attributes':['id',_0x4721('0x8'),'content',_0x4721('0xc')],'include':[{'model':_0x4721('0xd'),'as':_0x4721('0xd'),'attributes':['id',_0x4721('0xe')]}]},{'model':_0x4721('0xb'),'as':'Descriptions','attributes':['id',_0x4721('0x8'),'content',_0x4721('0xf'),_0x4721('0x10'),'keyContent',_0x4721('0xc')],'include':[{'model':_0x4721('0xd'),'as':_0x4721('0xd'),'attributes':['id',_0x4721('0xe')]}]},{'model':_0x4721('0xb'),'as':_0x4721('0x11'),'attributes':['id','type','content',_0x4721('0x12'),_0x4721('0x13'),_0x4721('0x14'),_0x4721('0xc')],'include':[{'model':_0x4721('0xd'),'as':_0x4721('0xd'),'attributes':['id',_0x4721('0xe')]}]},{'model':_0x4721('0x15'),'as':'Tags','attributes':['id','name']}]}]},'log':'GetDeskAccount'});};};