Built motion from commit f7863d46.|2.5.41
[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 _0x312f=['GetDeskAccount','name','description','username','password','remoteUri','authType','type','serverUrl','Configurations','DeskField','Subjects','content','variableName','Variable','key','keyType','keyContent','Fields','idField','nameField','customField','Tag','Tags','../../client','getDeskAccounts','Request'];(function(_0x4a7e20,_0x2dada2){var _0x4338e7=function(_0x236196){while(--_0x236196){_0x4a7e20['push'](_0x4a7e20['shift']());}};_0x4338e7(++_0x2dada2);}(_0x312f,0x9f));var _0xf312=function(_0x42042f,_0x394086){_0x42042f=_0x42042f-0x0;var _0x47a595=_0x312f[_0x42042f];return _0x47a595;};'use strict';var client=require(_0xf312('0x0'));exports[_0xf312('0x1')]=function(){return function(_0x13db40){return client[_0xf312('0x2')](_0xf312('0x3'),{'options':{'raw':![],'attributes':['id',_0xf312('0x4'),_0xf312('0x5'),_0xf312('0x6'),_0xf312('0x7'),_0xf312('0x8'),_0xf312('0x9'),_0xf312('0xa'),_0xf312('0xb')],'include':[{'model':'DeskConfiguration','as':_0xf312('0xc'),'attributes':['id',_0xf312('0x4')],'include':[{'model':_0xf312('0xd'),'as':_0xf312('0xe'),'attributes':['id',_0xf312('0xa'),_0xf312('0xf'),_0xf312('0x10')],'include':[{'model':_0xf312('0x11'),'as':_0xf312('0x11'),'attributes':['id','name']}]},{'model':'DeskField','as':'Descriptions','attributes':['id',_0xf312('0xa'),'content',_0xf312('0x12'),_0xf312('0x13'),_0xf312('0x14'),'variableName'],'include':[{'model':_0xf312('0x11'),'as':_0xf312('0x11'),'attributes':['id',_0xf312('0x4')]}]},{'model':_0xf312('0xd'),'as':_0xf312('0x15'),'attributes':['id',_0xf312('0xa'),_0xf312('0xf'),_0xf312('0x16'),_0xf312('0x17'),_0xf312('0x18'),'variableName'],'include':[{'model':_0xf312('0x11'),'as':_0xf312('0x11'),'attributes':['id','name']}]},{'model':_0xf312('0x19'),'as':_0xf312('0x1a'),'attributes':['id',_0xf312('0x4')]}]}]},'log':'GetDeskAccount'});};};