Built motion from commit 44b1f254.|2.6.26
[motion2.git] / server / services / ami / rpc / integrations / zoho.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 _0x1895=['refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','../../client','getZohoAccounts','Request','GetZohoAccount','name','host','zone','clientId','clientSecret','serverUrl'];(function(_0x3f7fdb,_0x28da7e){var _0x5f2b57=function(_0x5a0326){while(--_0x5a0326){_0x3f7fdb['push'](_0x3f7fdb['shift']());}};_0x5f2b57(++_0x28da7e);}(_0x1895,0x82));var _0x5189=function(_0x6494c,_0x3b8425){_0x6494c=_0x6494c-0x0;var _0x5ecdd0=_0x1895[_0x6494c];return _0x5ecdd0;};'use strict';var client=require(_0x5189('0x0'));exports[_0x5189('0x1')]=function(){return function(_0x7e8b89){return client[_0x5189('0x2')](_0x5189('0x3'),{'options':{'raw':![],'attributes':['id',_0x5189('0x4'),'description',_0x5189('0x5'),_0x5189('0x6'),_0x5189('0x7'),_0x5189('0x8'),_0x5189('0x9'),'code',_0x5189('0xa')],'include':[{'model':_0x5189('0xb'),'as':_0x5189('0xc'),'attributes':['id','name',_0x5189('0xd'),_0x5189('0xe'),'description'],'include':[{'model':_0x5189('0xf'),'as':_0x5189('0x10'),'attributes':['id',_0x5189('0x11'),_0x5189('0x12'),_0x5189('0x13')],'include':[{'model':_0x5189('0x14'),'as':'Variable','attributes':['id','name']}]},{'model':_0x5189('0xf'),'as':_0x5189('0x15'),'attributes':['id',_0x5189('0x11'),'content',_0x5189('0x16'),_0x5189('0x17'),_0x5189('0x18'),_0x5189('0x13')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x5189('0x4')]}]},{'model':'ZohoField','as':_0x5189('0x19'),'attributes':['id','type',_0x5189('0x12'),_0x5189('0x1a'),_0x5189('0x1b'),'customField','variableName'],'include':[{'model':_0x5189('0x14'),'as':_0x5189('0x14'),'attributes':['id',_0x5189('0x4')]}]}]}]},'log':_0x5189('0x3')});};};