Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x2c62=['Subjects','type','variableName','Variable','Descriptions','content','keyType','keyContent','Fields','customField','../../client','getVtigerAccounts','Request','GetVtigerAccount','name','description','username','remoteUri','serverUrl','VtigerConfiguration','Configurations','VtigerField'];(function(_0xefd519,_0xc62635){var _0x4bb882=function(_0x37e0a1){while(--_0x37e0a1){_0xefd519['push'](_0xefd519['shift']());}};_0x4bb882(++_0xc62635);}(_0x2c62,0x196));var _0x22c6=function(_0x125414,_0x440af9){_0x125414=_0x125414-0x0;var _0x2dfd84=_0x2c62[_0x125414];return _0x2dfd84;};'use strict';var client=require(_0x22c6('0x0'));exports[_0x22c6('0x1')]=function(){return function(_0x30288a){return client[_0x22c6('0x2')](_0x22c6('0x3'),{'options':{'raw':![],'attributes':['id',_0x22c6('0x4'),_0x22c6('0x5'),_0x22c6('0x6'),'accessKey',_0x22c6('0x7'),_0x22c6('0x8')],'include':[{'model':_0x22c6('0x9'),'as':_0x22c6('0xa'),'attributes':['id','name'],'include':[{'model':_0x22c6('0xb'),'as':_0x22c6('0xc'),'attributes':['id',_0x22c6('0xd'),'content',_0x22c6('0xe')],'include':[{'model':_0x22c6('0xf'),'as':_0x22c6('0xf'),'attributes':['id',_0x22c6('0x4')]}]},{'model':_0x22c6('0xb'),'as':_0x22c6('0x10'),'attributes':['id',_0x22c6('0xd'),_0x22c6('0x11'),'key',_0x22c6('0x12'),_0x22c6('0x13'),_0x22c6('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0x22c6('0xb'),'as':_0x22c6('0x14'),'attributes':['id','type',_0x22c6('0x11'),'idField','nameField',_0x22c6('0x15'),_0x22c6('0xe')],'include':[{'model':_0x22c6('0xf'),'as':_0x22c6('0xf'),'attributes':['id',_0x22c6('0x4')]}]}]}]},'log':_0x22c6('0x3')});};};