Built motion from commit (unavailable).|2.5.11
[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 _0x492e=['type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','content','Variable','key','keyType','variableName','Fields','idField','nameField','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','username','password','remoteUri'];(function(_0x363870,_0x2aeeb6){var _0xcd7d56=function(_0x11de92){while(--_0x11de92){_0x363870['push'](_0x363870['shift']());}};_0xcd7d56(++_0x2aeeb6);}(_0x492e,0x9f));var _0xe492=function(_0x2e9a28,_0x3b82ab){_0x2e9a28=_0x2e9a28-0x0;var _0x54cca5=_0x492e[_0x2e9a28];return _0x54cca5;};'use strict';var client=require(_0xe492('0x0'));exports[_0xe492('0x1')]=function(){return function(_0x135adc){return client[_0xe492('0x2')](_0xe492('0x3'),{'options':{'raw':![],'attributes':['id',_0xe492('0x4'),_0xe492('0x5'),_0xe492('0x6'),_0xe492('0x7'),_0xe492('0x8'),'authType',_0xe492('0x9'),_0xe492('0xa')],'include':[{'model':_0xe492('0xb'),'as':_0xe492('0xc'),'attributes':['id',_0xe492('0x4')],'include':[{'model':_0xe492('0xd'),'as':_0xe492('0xe'),'attributes':['id',_0xe492('0x9'),_0xe492('0xf'),'variableName'],'include':[{'model':_0xe492('0x10'),'as':_0xe492('0x10'),'attributes':['id','name']}]},{'model':_0xe492('0xd'),'as':'Descriptions','attributes':['id',_0xe492('0x9'),'content',_0xe492('0x11'),_0xe492('0x12'),'keyContent',_0xe492('0x13')],'include':[{'model':_0xe492('0x10'),'as':_0xe492('0x10'),'attributes':['id',_0xe492('0x4')]}]},{'model':'DeskField','as':_0xe492('0x14'),'attributes':['id',_0xe492('0x9'),_0xe492('0xf'),_0xe492('0x15'),_0xe492('0x16'),'customField',_0xe492('0x13')],'include':[{'model':_0xe492('0x10'),'as':'Variable','attributes':['id','name']}]},{'model':'Tag','as':_0xe492('0x17'),'attributes':['id','name']}]}]},'log':'GetDeskAccount'});};};