e68e53aecbd3b8b9e4ab0231d7d3fb8ff837dae3
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0xdcc6=['remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects','content','Variable','Descriptions','key','keyType','keyContent','Fields','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token'];(function(_0x2a1765,_0x49c081){var _0x54e5e6=function(_0x28a1b6){while(--_0x28a1b6){_0x2a1765['push'](_0x2a1765['shift']());}};_0x54e5e6(++_0x49c081);}(_0xdcc6,0x1e6));var _0x6dcc=function(_0x262a91,_0x4d3739){_0x262a91=_0x262a91-0x0;var _0x5dcb6b=_0xdcc6[_0x262a91];return _0x5dcb6b;};'use strict';var client=require(_0x6dcc('0x0'));exports[_0x6dcc('0x1')]=function(){return function(_0x3b3907){return client[_0x6dcc('0x2')](_0x6dcc('0x3'),{'options':{'raw':![],'attributes':['id',_0x6dcc('0x4'),_0x6dcc('0x5'),_0x6dcc('0x6'),_0x6dcc('0x7'),_0x6dcc('0x8'),_0x6dcc('0x9'),_0x6dcc('0xa'),_0x6dcc('0xb')],'include':[{'model':_0x6dcc('0xc'),'as':_0x6dcc('0xd'),'attributes':['id',_0x6dcc('0x4')],'include':[{'model':_0x6dcc('0xe'),'attributes':['id','name']},{'model':_0x6dcc('0xf'),'as':_0x6dcc('0x10'),'attributes':['id',_0x6dcc('0xb'),_0x6dcc('0x11'),'variableName'],'include':[{'model':'Variable','as':_0x6dcc('0x12'),'attributes':['id',_0x6dcc('0x4')]}]},{'model':'ZendeskField','as':_0x6dcc('0x13'),'attributes':['id',_0x6dcc('0xb'),_0x6dcc('0x11'),_0x6dcc('0x14'),_0x6dcc('0x15'),_0x6dcc('0x16'),'variableName'],'include':[{'model':_0x6dcc('0x12'),'as':'Variable','attributes':['id',_0x6dcc('0x4')]}]},{'model':'ZendeskField','as':_0x6dcc('0x17'),'attributes':['id',_0x6dcc('0xb'),'content','idField',_0x6dcc('0x18'),_0x6dcc('0x19'),'variableName'],'include':[{'model':_0x6dcc('0x12'),'as':_0x6dcc('0x12'),'attributes':['id',_0x6dcc('0x4')]}]}]}]},'log':_0x6dcc('0x3')});};};