Built motion from commit 3e059bc2.|2.5.32
[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 _0xd4f4=['username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name'];(function(_0x3b3210,_0x25e8ed){var _0x5b5484=function(_0x417858){while(--_0x417858){_0x3b3210['push'](_0x3b3210['shift']());}};_0x5b5484(++_0x25e8ed);}(_0xd4f4,0x8b));var _0x4d4f=function(_0x1a8fc8,_0x598c11){_0x1a8fc8=_0x1a8fc8-0x0;var _0x513ea1=_0xd4f4[_0x1a8fc8];return _0x513ea1;};'use strict';var client=require(_0x4d4f('0x0'));exports[_0x4d4f('0x1')]=function(){return function(_0x2cfc72){return client[_0x4d4f('0x2')](_0x4d4f('0x3'),{'options':{'raw':![],'attributes':['id',_0x4d4f('0x4'),_0x4d4f('0x5'),_0x4d4f('0x6'),_0x4d4f('0x7'),_0x4d4f('0x8')],'include':[{'model':_0x4d4f('0x9'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0x4d4f('0x4')]},{'model':_0x4d4f('0xa'),'as':_0x4d4f('0xb'),'attributes':['id',_0x4d4f('0xc'),_0x4d4f('0xd'),_0x4d4f('0xe')],'include':[{'model':_0x4d4f('0xf'),'as':_0x4d4f('0xf'),'attributes':['id',_0x4d4f('0x4')]}]},{'model':_0x4d4f('0xa'),'as':_0x4d4f('0x10'),'attributes':['id',_0x4d4f('0xc'),_0x4d4f('0xd'),_0x4d4f('0x11'),_0x4d4f('0x12'),_0x4d4f('0x13'),_0x4d4f('0xe')],'include':[{'model':_0x4d4f('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':'FreshdeskField','as':_0x4d4f('0x14'),'attributes':['id',_0x4d4f('0xc'),'content',_0x4d4f('0x15'),_0x4d4f('0x16'),_0x4d4f('0x17'),'variableName'],'include':[{'model':_0x4d4f('0xf'),'as':_0x4d4f('0xf'),'attributes':['id',_0x4d4f('0x4')]}]}]}]},'log':'GetFreshdeskAccount'});};};