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 _0xe61a=['freshsales_unique_index','FieldId','lodash','util','api','bluebird','request-promise','path','../../config/environment','./intFreshsalesField.attributes','define','FreshsalesField','int_freshsales_fields'];(function(_0x3f99a8,_0x160bf7){var _0x25c907=function(_0x4f5dd0){while(--_0x4f5dd0){_0x3f99a8['push'](_0x3f99a8['shift']());}};_0x25c907(++_0x160bf7);}(_0xe61a,0x120));var _0xae61=function(_0x450dcd,_0x54236f){_0x450dcd=_0x450dcd-0x0;var _0x3d6cec=_0xe61a[_0x450dcd];return _0x3d6cec;};'use strict';var _=require(_0xae61('0x0'));var util=require(_0xae61('0x1'));var logger=require('../../config/logger')(_0xae61('0x2'));var moment=require('moment');var BPromise=require(_0xae61('0x3'));var rp=require(_0xae61('0x4'));var fs=require('fs');var path=require(_0xae61('0x5'));var rimraf=require('rimraf');var config=require(_0xae61('0x6'));var attributes=require(_0xae61('0x7'));module['exports']=function(_0x4e92f8,_0xb9dcc8){return _0x4e92f8[_0xae61('0x8')](_0xae61('0x9'),attributes,{'tableName':_0xae61('0xa'),'paranoid':![],'indexes':[{'name':_0xae61('0xb'),'fields':['idField',_0xae61('0xc')],'unique':!![]}],'timestamps':!![]});};