986732f29ae23cefd71015a6e99e5bf3f3c67fcc
[motion2.git] / server / api / intZohoField / intZohoField.model.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 _0xb9ed=['idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./intZohoField.attributes','exports','define','ZohoField','int_zoho_fields','zoho_unique_index'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0xb9ed,0xbd));var _0xdb9e=function(_0x2b8d5b,_0x62fcaa){_0x2b8d5b=_0x2b8d5b-0x0;var _0x261bbf=_0xb9ed[_0x2b8d5b];return _0x261bbf;};'use strict';var _=require(_0xdb9e('0x0'));var util=require(_0xdb9e('0x1'));var logger=require(_0xdb9e('0x2'))(_0xdb9e('0x3'));var moment=require(_0xdb9e('0x4'));var BPromise=require(_0xdb9e('0x5'));var rp=require(_0xdb9e('0x6'));var fs=require('fs');var path=require(_0xdb9e('0x7'));var rimraf=require('rimraf');var config=require(_0xdb9e('0x8'));var attributes=require(_0xdb9e('0x9'));module[_0xdb9e('0xa')]=function(_0x330659,_0x1d85a2){return _0x330659[_0xdb9e('0xb')](_0xdb9e('0xc'),attributes,{'tableName':_0xdb9e('0xd'),'paranoid':![],'indexes':[{'name':_0xdb9e('0xe'),'fields':[_0xdb9e('0xf'),_0xdb9e('0x10')],'unique':!![]}],'timestamps':!![]});};