1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x6df9=['freshsales_unique_index','idField','lodash','util','api','request-promise','rimraf','./intFreshsalesField.attributes','FreshsalesField','int_freshsales_fields'];(function(_0x5a4b16,_0x294bb1){var _0x5236dc=function(_0x33e049){while(--_0x33e049){_0x5a4b16['push'](_0x5a4b16['shift']());}};_0x5236dc(++_0x294bb1);}(_0x6df9,0x84));var _0x96df=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0x6df9[_0xfae23b];return _0x200640;};'use strict';var _=require(_0x96df('0x0'));var util=require(_0x96df('0x1'));var logger=require('../../config/logger')(_0x96df('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x96df('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x96df('0x4'));var config=require('../../config/environment');var attributes=require(_0x96df('0x5'));module['exports']=function(_0x23e387,_0x3951b3){return _0x23e387['define'](_0x96df('0x6'),attributes,{'tableName':_0x96df('0x7'),'paranoid':![],'indexes':[{'name':_0x96df('0x8'),'fields':[_0x96df('0x9'),'FieldId'],'unique':!![]}],'timestamps':!![]});};