a646db9d7d1b5bb3979fe0c5712023d4b39827f3
[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 _0x1ba2=['FreshdeskField','Subjects','content','Variable','Descriptions','type','key','keyType','keyContent','variableName','idField','nameField','../../client','GetFreshdeskAccount','name','username','apiKey','remoteUri','FreshdeskConfiguration','Configurations','Tag'];(function(_0x4514dd,_0x559175){var _0x4d87f1=function(_0x3f7fc7){while(--_0x3f7fc7){_0x4514dd['push'](_0x4514dd['shift']());}};_0x4d87f1(++_0x559175);}(_0x1ba2,0xb4));var _0x21ba=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x1ba2[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0x21ba('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x276d9e){return client['Request'](_0x21ba('0x1'),{'options':{'raw':![],'attributes':['id',_0x21ba('0x2'),_0x21ba('0x3'),_0x21ba('0x4'),_0x21ba('0x5'),'serverUrl'],'include':[{'model':_0x21ba('0x6'),'as':_0x21ba('0x7'),'attributes':['id','name'],'include':[{'model':_0x21ba('0x8'),'attributes':['id','name']},{'model':_0x21ba('0x9'),'as':_0x21ba('0xa'),'attributes':['id','type',_0x21ba('0xb'),'variableName'],'include':[{'model':_0x21ba('0xc'),'as':_0x21ba('0xc'),'attributes':['id','name']}]},{'model':_0x21ba('0x9'),'as':_0x21ba('0xd'),'attributes':['id',_0x21ba('0xe'),_0x21ba('0xb'),_0x21ba('0xf'),_0x21ba('0x10'),_0x21ba('0x11'),_0x21ba('0x12')],'include':[{'model':_0x21ba('0xc'),'as':_0x21ba('0xc'),'attributes':['id',_0x21ba('0x2')]}]},{'model':_0x21ba('0x9'),'as':'Fields','attributes':['id','type',_0x21ba('0xb'),_0x21ba('0x13'),_0x21ba('0x14'),'customField','variableName'],'include':[{'model':_0x21ba('0xc'),'as':'Variable','attributes':['id',_0x21ba('0x2')]}]}]}]},'log':'GetFreshdeskAccount'});};};