Built motion from commit 377f727e.|2.6.28
[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 _0xcc80=['name','description','username','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','Subjects','content','variableName','Variable','DeskField','Descriptions','key','keyType','keyContent','Fields','idField','customField','Tags','../../client','getDeskAccounts','Request','GetDeskAccount'];(function(_0x2b14e7,_0x35633f){var _0x4ae64b=function(_0x542d29){while(--_0x542d29){_0x2b14e7['push'](_0x2b14e7['shift']());}};_0x4ae64b(++_0x35633f);}(_0xcc80,0x1d0));var _0x0cc8=function(_0x876b1a,_0xe0ab00){_0x876b1a=_0x876b1a-0x0;var _0x50fd7b=_0xcc80[_0x876b1a];return _0x50fd7b;};'use strict';var client=require(_0x0cc8('0x0'));exports[_0x0cc8('0x1')]=function(){return function(_0x29b17a){return client[_0x0cc8('0x2')](_0x0cc8('0x3'),{'options':{'raw':![],'attributes':['id',_0x0cc8('0x4'),_0x0cc8('0x5'),_0x0cc8('0x6'),'password',_0x0cc8('0x7'),_0x0cc8('0x8'),_0x0cc8('0x9'),_0x0cc8('0xa')],'include':[{'model':_0x0cc8('0xb'),'as':_0x0cc8('0xc'),'attributes':['id',_0x0cc8('0x4')],'include':[{'model':'DeskField','as':_0x0cc8('0xd'),'attributes':['id',_0x0cc8('0x9'),_0x0cc8('0xe'),_0x0cc8('0xf')],'include':[{'model':_0x0cc8('0x10'),'as':_0x0cc8('0x10'),'attributes':['id','name']}]},{'model':_0x0cc8('0x11'),'as':_0x0cc8('0x12'),'attributes':['id',_0x0cc8('0x9'),_0x0cc8('0xe'),_0x0cc8('0x13'),_0x0cc8('0x14'),_0x0cc8('0x15'),_0x0cc8('0xf')],'include':[{'model':_0x0cc8('0x10'),'as':_0x0cc8('0x10'),'attributes':['id',_0x0cc8('0x4')]}]},{'model':_0x0cc8('0x11'),'as':_0x0cc8('0x16'),'attributes':['id',_0x0cc8('0x9'),_0x0cc8('0xe'),_0x0cc8('0x17'),'nameField',_0x0cc8('0x18'),_0x0cc8('0xf')],'include':[{'model':_0x0cc8('0x10'),'as':'Variable','attributes':['id','name']}]},{'model':'Tag','as':_0x0cc8('0x19'),'attributes':['id',_0x0cc8('0x4')]}]}]},'log':'GetDeskAccount'});};};