574c85a6e0538eb7835a8b24f0631ba1eba91a89
[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 _0xce62=['exports','define','FreshsalesField','freshsales_unique_index','idField','lodash','util','api','moment','bluebird','request-promise','path','rimraf','./intFreshsalesField.attributes'];(function(_0x55d911,_0x2b768c){var _0x3104c2=function(_0x1b4386){while(--_0x1b4386){_0x55d911['push'](_0x55d911['shift']());}};_0x3104c2(++_0x2b768c);}(_0xce62,0x83));var _0x2ce6=function(_0x4d97da,_0x1e17bb){_0x4d97da=_0x4d97da-0x0;var _0x4e0e8b=_0xce62[_0x4d97da];return _0x4e0e8b;};'use strict';var _=require(_0x2ce6('0x0'));var util=require(_0x2ce6('0x1'));var logger=require('../../config/logger')(_0x2ce6('0x2'));var moment=require(_0x2ce6('0x3'));var BPromise=require(_0x2ce6('0x4'));var rp=require(_0x2ce6('0x5'));var fs=require('fs');var path=require(_0x2ce6('0x6'));var rimraf=require(_0x2ce6('0x7'));var config=require('../../config/environment');var attributes=require(_0x2ce6('0x8'));module[_0x2ce6('0x9')]=function(_0x422f72,_0x9bbac8){return _0x422f72[_0x2ce6('0xa')](_0x2ce6('0xb'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0x2ce6('0xc'),'fields':[_0x2ce6('0xd'),'FieldId'],'unique':!![]}],'timestamps':!![]});};