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