Built motion from commit a679711e.|2.6.15
[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 _0x26cc=['Configurations','Subjects','content','variableName','Variable','name','DeskField','Descriptions','key','keyType','Fields','nameField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','description','username','password','remoteUri','authType','type','serverUrl','DeskConfiguration'];(function(_0x2560f6,_0x3ec8ed){var _0x136f55=function(_0x591a51){while(--_0x591a51){_0x2560f6['push'](_0x2560f6['shift']());}};_0x136f55(++_0x3ec8ed);}(_0x26cc,0x146));var _0xc26c=function(_0x5e4b85,_0x6cf965){_0x5e4b85=_0x5e4b85-0x0;var _0x5cd3cb=_0x26cc[_0x5e4b85];return _0x5cd3cb;};'use strict';var client=require(_0xc26c('0x0'));exports[_0xc26c('0x1')]=function(){return function(_0x5a4b1b){return client[_0xc26c('0x2')](_0xc26c('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xc26c('0x4'),_0xc26c('0x5'),_0xc26c('0x6'),_0xc26c('0x7'),_0xc26c('0x8'),_0xc26c('0x9'),_0xc26c('0xa')],'include':[{'model':_0xc26c('0xb'),'as':_0xc26c('0xc'),'attributes':['id','name'],'include':[{'model':'DeskField','as':_0xc26c('0xd'),'attributes':['id','type',_0xc26c('0xe'),_0xc26c('0xf')],'include':[{'model':_0xc26c('0x10'),'as':'Variable','attributes':['id',_0xc26c('0x11')]}]},{'model':_0xc26c('0x12'),'as':_0xc26c('0x13'),'attributes':['id',_0xc26c('0x9'),'content',_0xc26c('0x14'),_0xc26c('0x15'),'keyContent','variableName'],'include':[{'model':_0xc26c('0x10'),'as':_0xc26c('0x10'),'attributes':['id',_0xc26c('0x11')]}]},{'model':_0xc26c('0x12'),'as':_0xc26c('0x16'),'attributes':['id',_0xc26c('0x9'),_0xc26c('0xe'),'idField',_0xc26c('0x17'),'customField',_0xc26c('0xf')],'include':[{'model':'Variable','as':_0xc26c('0x10'),'attributes':['id',_0xc26c('0x11')]}]},{'model':_0xc26c('0x18'),'as':_0xc26c('0x19'),'attributes':['id',_0xc26c('0x11')]}]}]},'log':'GetDeskAccount'});};};