c9c034dd9a06e5ebf1840f8f39aed89cab7d4fd3
[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 _0x659e=['idField','customField','../../client','Request','GetZendeskAccount','username','password','token','remoteUri','authType','serverUrl','ZendeskConfiguration','Configurations','Tag','name','ZendeskField','Subjects','type','Variable','Descriptions','content','key','keyType','keyContent','variableName'];(function(_0x48c1de,_0x5a22c4){var _0x291715=function(_0xa671e){while(--_0xa671e){_0x48c1de['push'](_0x48c1de['shift']());}};_0x291715(++_0x5a22c4);}(_0x659e,0xb1));var _0xe659=function(_0x2e6916,_0x238bdd){_0x2e6916=_0x2e6916-0x0;var _0x186884=_0x659e[_0x2e6916];return _0x186884;};'use strict';var client=require(_0xe659('0x0'));exports['getZendeskAccounts']=function(){return function(_0x26116a){return client[_0xe659('0x1')](_0xe659('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xe659('0x3'),_0xe659('0x4'),_0xe659('0x5'),_0xe659('0x6'),_0xe659('0x7'),_0xe659('0x8'),'type'],'include':[{'model':_0xe659('0x9'),'as':_0xe659('0xa'),'attributes':['id','name'],'include':[{'model':_0xe659('0xb'),'attributes':['id',_0xe659('0xc')]},{'model':_0xe659('0xd'),'as':_0xe659('0xe'),'attributes':['id',_0xe659('0xf'),'content','variableName'],'include':[{'model':_0xe659('0x10'),'as':_0xe659('0x10'),'attributes':['id',_0xe659('0xc')]}]},{'model':'ZendeskField','as':_0xe659('0x11'),'attributes':['id',_0xe659('0xf'),_0xe659('0x12'),_0xe659('0x13'),_0xe659('0x14'),_0xe659('0x15'),_0xe659('0x16')],'include':[{'model':_0xe659('0x10'),'as':_0xe659('0x10'),'attributes':['id',_0xe659('0xc')]}]},{'model':'ZendeskField','as':'Fields','attributes':['id',_0xe659('0xf'),'content',_0xe659('0x17'),'nameField',_0xe659('0x18'),_0xe659('0x16')],'include':[{'model':_0xe659('0x10'),'as':'Variable','attributes':['id',_0xe659('0xc')]}]}]}]},'log':_0xe659('0x2')});};};