Built motion from commit e0fa946e.|2.6.5
[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 _0x0ee3=['DeskField','Variable','name','Descriptions','content','keyType','variableName','nameField','customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','description','username','password','remoteUri','authType','type','DeskConfiguration'];(function(_0x46b8aa,_0x246d21){var _0x5a3d61=function(_0x5c748d){while(--_0x5c748d){_0x46b8aa['push'](_0x46b8aa['shift']());}};_0x5a3d61(++_0x246d21);}(_0x0ee3,0x1ad));var _0x30ee=function(_0x327673,_0x15f79c){_0x327673=_0x327673-0x0;var _0x2c949c=_0x0ee3[_0x327673];return _0x2c949c;};'use strict';var client=require(_0x30ee('0x0'));exports[_0x30ee('0x1')]=function(){return function(_0x5a2ae5){return client[_0x30ee('0x2')](_0x30ee('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x30ee('0x4'),_0x30ee('0x5'),_0x30ee('0x6'),_0x30ee('0x7'),_0x30ee('0x8'),_0x30ee('0x9'),'serverUrl'],'include':[{'model':_0x30ee('0xa'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x30ee('0xb'),'as':'Subjects','attributes':['id',_0x30ee('0x9'),'content','variableName'],'include':[{'model':_0x30ee('0xc'),'as':_0x30ee('0xc'),'attributes':['id',_0x30ee('0xd')]}]},{'model':_0x30ee('0xb'),'as':_0x30ee('0xe'),'attributes':['id',_0x30ee('0x9'),_0x30ee('0xf'),'key',_0x30ee('0x10'),'keyContent',_0x30ee('0x11')],'include':[{'model':'Variable','as':_0x30ee('0xc'),'attributes':['id','name']}]},{'model':'DeskField','as':'Fields','attributes':['id',_0x30ee('0x9'),_0x30ee('0xf'),'idField',_0x30ee('0x12'),_0x30ee('0x13'),'variableName'],'include':[{'model':_0x30ee('0xc'),'as':_0x30ee('0xc'),'attributes':['id',_0x30ee('0xd')]}]},{'model':_0x30ee('0x14'),'as':_0x30ee('0x15'),'attributes':['id',_0x30ee('0xd')]}]}]},'log':'GetDeskAccount'});};};