44e39603eff8a7a2b18443e85c39c5b7654615df
[motion2.git] / server / services / ami / rpc / integrations / freshdesk.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 _0xa701=['Fields','type','idField','customField','Request','GetFreshdeskAccount','name','username','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','content','Variable','Descriptions','keyContent','variableName'];(function(_0x58a4fe,_0x11d439){var _0x697de2=function(_0xe38c14){while(--_0xe38c14){_0x58a4fe['push'](_0x58a4fe['shift']());}};_0x697de2(++_0x11d439);}(_0xa701,0x190));var _0x1a70=function(_0x5a9734,_0x546079){_0x5a9734=_0x5a9734-0x0;var _0x46465b=_0xa701[_0x5a9734];return _0x46465b;};'use strict';var client=require('../../client');exports['getFreshdeskAccounts']=function(){return function(_0xd213bb){return client[_0x1a70('0x0')](_0x1a70('0x1'),{'options':{'raw':![],'attributes':['id',_0x1a70('0x2'),_0x1a70('0x3'),'apiKey','remoteUri',_0x1a70('0x4')],'include':[{'model':_0x1a70('0x5'),'as':_0x1a70('0x6'),'attributes':['id','name'],'include':[{'model':_0x1a70('0x7'),'attributes':['id',_0x1a70('0x2')]},{'model':_0x1a70('0x8'),'as':'Subjects','attributes':['id','type',_0x1a70('0x9'),'variableName'],'include':[{'model':_0x1a70('0xa'),'as':_0x1a70('0xa'),'attributes':['id',_0x1a70('0x2')]}]},{'model':_0x1a70('0x8'),'as':_0x1a70('0xb'),'attributes':['id','type',_0x1a70('0x9'),'key','keyType',_0x1a70('0xc'),_0x1a70('0xd')],'include':[{'model':_0x1a70('0xa'),'as':_0x1a70('0xa'),'attributes':['id',_0x1a70('0x2')]}]},{'model':_0x1a70('0x8'),'as':_0x1a70('0xe'),'attributes':['id',_0x1a70('0xf'),'content',_0x1a70('0x10'),'nameField',_0x1a70('0x11'),'variableName'],'include':[{'model':_0x1a70('0xa'),'as':_0x1a70('0xa'),'attributes':['id',_0x1a70('0x2')]}]}]}]},'log':_0x1a70('0x1')});};};