Built motion from commit (unavailable).|2.6.0
[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 _0x0b61=['remoteUri','authType','serverUrl','ZendeskConfiguration','Configurations','ZendeskField','content','Descriptions','type','key','keyType','keyContent','variableName','Variable','Fields','idField','nameField','customField','../../client','Request','GetZendeskAccount','name','username','password','token'];(function(_0x12ecf6,_0x492ef9){var _0x6f7800=function(_0x152d17){while(--_0x152d17){_0x12ecf6['push'](_0x12ecf6['shift']());}};_0x6f7800(++_0x492ef9);}(_0x0b61,0x157));var _0x10b6=function(_0x1b6473,_0x389d6b){_0x1b6473=_0x1b6473-0x0;var _0x56e879=_0x0b61[_0x1b6473];return _0x56e879;};'use strict';var client=require(_0x10b6('0x0'));exports['getZendeskAccounts']=function(){return function(_0x3478d3){return client[_0x10b6('0x1')](_0x10b6('0x2'),{'options':{'raw':![],'attributes':['id',_0x10b6('0x3'),_0x10b6('0x4'),_0x10b6('0x5'),_0x10b6('0x6'),_0x10b6('0x7'),_0x10b6('0x8'),_0x10b6('0x9'),'type'],'include':[{'model':_0x10b6('0xa'),'as':_0x10b6('0xb'),'attributes':['id',_0x10b6('0x3')],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0x10b6('0xc'),'as':'Subjects','attributes':['id','type',_0x10b6('0xd'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x10b6('0x3')]}]},{'model':'ZendeskField','as':_0x10b6('0xe'),'attributes':['id',_0x10b6('0xf'),_0x10b6('0xd'),_0x10b6('0x10'),_0x10b6('0x11'),_0x10b6('0x12'),_0x10b6('0x13')],'include':[{'model':_0x10b6('0x14'),'as':'Variable','attributes':['id','name']}]},{'model':_0x10b6('0xc'),'as':_0x10b6('0x15'),'attributes':['id',_0x10b6('0xf'),'content',_0x10b6('0x16'),_0x10b6('0x17'),_0x10b6('0x18'),_0x10b6('0x13')],'include':[{'model':'Variable','as':_0x10b6('0x14'),'attributes':['id','name']}]}]}]},'log':_0x10b6('0x2')});};};