Built motion from commit (unavailable).|2.5.5
[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 _0x7890=['type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','customField','../../client','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects'];(function(_0x339702,_0x465d98){var _0x55cc03=function(_0x570dad){while(--_0x570dad){_0x339702['push'](_0x339702['shift']());}};_0x55cc03(++_0x465d98);}(_0x7890,0x15b));var _0x0789=function(_0x6cf5bc,_0x460816){_0x6cf5bc=_0x6cf5bc-0x0;var _0x243036=_0x7890[_0x6cf5bc];return _0x243036;};'use strict';var client=require(_0x0789('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x44e406){return client[_0x0789('0x1')](_0x0789('0x2'),{'options':{'raw':![],'attributes':['id',_0x0789('0x3'),_0x0789('0x4'),_0x0789('0x5'),_0x0789('0x6'),_0x0789('0x7')],'include':[{'model':_0x0789('0x8'),'as':_0x0789('0x9'),'attributes':['id','name'],'include':[{'model':_0x0789('0xa'),'attributes':['id',_0x0789('0x3')]},{'model':_0x0789('0xb'),'as':_0x0789('0xc'),'attributes':['id',_0x0789('0xd'),_0x0789('0xe'),_0x0789('0xf')],'include':[{'model':_0x0789('0x10'),'as':_0x0789('0x10'),'attributes':['id',_0x0789('0x3')]}]},{'model':_0x0789('0xb'),'as':_0x0789('0x11'),'attributes':['id','type',_0x0789('0xe'),_0x0789('0x12'),_0x0789('0x13'),_0x0789('0x14'),'variableName'],'include':[{'model':'Variable','as':_0x0789('0x10'),'attributes':['id',_0x0789('0x3')]}]},{'model':_0x0789('0xb'),'as':_0x0789('0x15'),'attributes':['id',_0x0789('0xd'),_0x0789('0xe'),_0x0789('0x16'),'nameField',_0x0789('0x17'),_0x0789('0xf')],'include':[{'model':_0x0789('0x10'),'as':_0x0789('0x10'),'attributes':['id',_0x0789('0x3')]}]}]}]},'log':'GetFreshdeskAccount'});};};