26bcdb122127a37929164f819a5e504ff951e4f0
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.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 _0x3609=['idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./intFreshsalesField.attributes','define','FreshsalesField','freshsales_unique_index'];(function(_0x841f9b,_0x5ad0d8){var _0x2a445f=function(_0x2618c8){while(--_0x2618c8){_0x841f9b['push'](_0x841f9b['shift']());}};_0x2a445f(++_0x5ad0d8);}(_0x3609,0x101));var _0x9360=function(_0x3da2c6,_0x5dfc9a){_0x3da2c6=_0x3da2c6-0x0;var _0x7b5350=_0x3609[_0x3da2c6];return _0x7b5350;};'use strict';var _=require(_0x9360('0x0'));var util=require(_0x9360('0x1'));var logger=require(_0x9360('0x2'))(_0x9360('0x3'));var moment=require(_0x9360('0x4'));var BPromise=require(_0x9360('0x5'));var rp=require(_0x9360('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x9360('0x7'));var config=require(_0x9360('0x8'));var attributes=require(_0x9360('0x9'));module['exports']=function(_0x5548c1,_0x48aeae){return _0x5548c1[_0x9360('0xa')](_0x9360('0xb'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0x9360('0xc'),'fields':[_0x9360('0xd'),_0x9360('0xe')],'unique':!![]}],'timestamps':!![]});};