3a1100e461cce18b4548ad9a98b6546a9242f255
[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 _0x1752=['name','username','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','type','variableName','Variable','key','Fields','content','idField','nameField','customField','getFreshdeskAccounts','Request','GetFreshdeskAccount'];(function(_0x674df0,_0x107d38){var _0x208fb4=function(_0x3d7d6b){while(--_0x3d7d6b){_0x674df0['push'](_0x674df0['shift']());}};_0x208fb4(++_0x107d38);}(_0x1752,0xa5));var _0x2175=function(_0x54b390,_0x5726c0){_0x54b390=_0x54b390-0x0;var _0x59b90d=_0x1752[_0x54b390];return _0x59b90d;};'use strict';var client=require('../../client');exports[_0x2175('0x0')]=function(){return function(_0x1fc292){return client[_0x2175('0x1')](_0x2175('0x2'),{'options':{'raw':![],'attributes':['id',_0x2175('0x3'),_0x2175('0x4'),'apiKey',_0x2175('0x5'),_0x2175('0x6')],'include':[{'model':_0x2175('0x7'),'as':_0x2175('0x8'),'attributes':['id',_0x2175('0x3')],'include':[{'model':_0x2175('0x9'),'attributes':['id',_0x2175('0x3')]},{'model':_0x2175('0xa'),'as':_0x2175('0xb'),'attributes':['id',_0x2175('0xc'),'content',_0x2175('0xd')],'include':[{'model':_0x2175('0xe'),'as':_0x2175('0xe'),'attributes':['id',_0x2175('0x3')]}]},{'model':_0x2175('0xa'),'as':'Descriptions','attributes':['id','type','content',_0x2175('0xf'),'keyType','keyContent','variableName'],'include':[{'model':'Variable','as':_0x2175('0xe'),'attributes':['id','name']}]},{'model':_0x2175('0xa'),'as':_0x2175('0x10'),'attributes':['id','type',_0x2175('0x11'),_0x2175('0x12'),_0x2175('0x13'),_0x2175('0x14'),_0x2175('0xd')],'include':[{'model':_0x2175('0xe'),'as':_0x2175('0xe'),'attributes':['id',_0x2175('0x3')]}]}]}]},'log':'GetFreshdeskAccount'});};};