Built motion from commit 0900f080.|2.5.45
[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 _0x115a=['customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','username','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','name','Tag','FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField'];(function(_0x5f3f88,_0x562baf){var _0xd08119=function(_0x42dbf7){while(--_0x42dbf7){_0x5f3f88['push'](_0x5f3f88['shift']());}};_0xd08119(++_0x562baf);}(_0x115a,0x91));var _0xa115=function(_0x145bee,_0x57a0b7){_0x145bee=_0x145bee-0x0;var _0x4f0d64=_0x115a[_0x145bee];return _0x4f0d64;};'use strict';var client=require(_0xa115('0x0'));exports[_0xa115('0x1')]=function(){return function(_0x1c71fb){return client[_0xa115('0x2')](_0xa115('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xa115('0x4'),'apiKey',_0xa115('0x5'),_0xa115('0x6')],'include':[{'model':_0xa115('0x7'),'as':_0xa115('0x8'),'attributes':['id',_0xa115('0x9')],'include':[{'model':_0xa115('0xa'),'attributes':['id','name']},{'model':_0xa115('0xb'),'as':_0xa115('0xc'),'attributes':['id',_0xa115('0xd'),_0xa115('0xe'),_0xa115('0xf')],'include':[{'model':_0xa115('0x10'),'as':_0xa115('0x10'),'attributes':['id',_0xa115('0x9')]}]},{'model':_0xa115('0xb'),'as':_0xa115('0x11'),'attributes':['id',_0xa115('0xd'),'content',_0xa115('0x12'),_0xa115('0x13'),_0xa115('0x14'),_0xa115('0xf')],'include':[{'model':'Variable','as':_0xa115('0x10'),'attributes':['id',_0xa115('0x9')]}]},{'model':_0xa115('0xb'),'as':_0xa115('0x15'),'attributes':['id',_0xa115('0xd'),_0xa115('0xe'),_0xa115('0x16'),'nameField',_0xa115('0x17'),_0xa115('0xf')],'include':[{'model':_0xa115('0x10'),'as':_0xa115('0x10'),'attributes':['id',_0xa115('0x9')]}]}]}]},'log':_0xa115('0x3')});};};