Built motion from commit ecb45b58.|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 _0x4b59=['type','variableName','Variable','content','key','keyType','keyContent','../../client','getVtigerAccounts','Request','GetVtigerAccount','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','name','VtigerField','Subjects'];(function(_0x5c6df8,_0x56afef){var _0x497b9e=function(_0x909aac){while(--_0x909aac){_0x5c6df8['push'](_0x5c6df8['shift']());}};_0x497b9e(++_0x56afef);}(_0x4b59,0x1ea));var _0x94b5=function(_0x24c405,_0x56d6fb){_0x24c405=_0x24c405-0x0;var _0x383aef=_0x4b59[_0x24c405];return _0x383aef;};'use strict';var client=require(_0x94b5('0x0'));exports[_0x94b5('0x1')]=function(){return function(_0x45d9fd){return client[_0x94b5('0x2')](_0x94b5('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x94b5('0x4'),_0x94b5('0x5'),_0x94b5('0x6'),_0x94b5('0x7'),_0x94b5('0x8')],'include':[{'model':_0x94b5('0x9'),'as':_0x94b5('0xa'),'attributes':['id',_0x94b5('0xb')],'include':[{'model':_0x94b5('0xc'),'as':_0x94b5('0xd'),'attributes':['id',_0x94b5('0xe'),'content',_0x94b5('0xf')],'include':[{'model':'Variable','as':_0x94b5('0x10'),'attributes':['id',_0x94b5('0xb')]}]},{'model':_0x94b5('0xc'),'as':'Descriptions','attributes':['id',_0x94b5('0xe'),_0x94b5('0x11'),_0x94b5('0x12'),_0x94b5('0x13'),_0x94b5('0x14'),_0x94b5('0xf')],'include':[{'model':_0x94b5('0x10'),'as':_0x94b5('0x10'),'attributes':['id',_0x94b5('0xb')]}]},{'model':_0x94b5('0xc'),'as':'Fields','attributes':['id',_0x94b5('0xe'),_0x94b5('0x11'),'idField','nameField','customField',_0x94b5('0xf')],'include':[{'model':_0x94b5('0x10'),'as':_0x94b5('0x10'),'attributes':['id',_0x94b5('0xb')]}]}]}]},'log':_0x94b5('0x3')});};};