90d9a695269ea7f8c06455c125c5ab66ce0bc7d6
[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 _0x5f83=['freshsales_unique_index','idField','FieldId','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','FreshsalesField'];(function(_0x470d50,_0x4a7b8e){var _0x39c0dc=function(_0x2caec7){while(--_0x2caec7){_0x470d50['push'](_0x470d50['shift']());}};_0x39c0dc(++_0x4a7b8e);}(_0x5f83,0x120));var _0x35f8=function(_0x175be9,_0x27b297){_0x175be9=_0x175be9-0x0;var _0x5e7c98=_0x5f83[_0x175be9];return _0x5e7c98;};'use strict';var _=require(_0x35f8('0x0'));var util=require(_0x35f8('0x1'));var logger=require(_0x35f8('0x2'))(_0x35f8('0x3'));var moment=require(_0x35f8('0x4'));var BPromise=require('bluebird');var rp=require(_0x35f8('0x5'));var fs=require('fs');var path=require(_0x35f8('0x6'));var rimraf=require(_0x35f8('0x7'));var config=require(_0x35f8('0x8'));var attributes=require('./intFreshsalesField.attributes');module[_0x35f8('0x9')]=function(_0x2876b1,_0x243a2f){return _0x2876b1[_0x35f8('0xa')](_0x35f8('0xb'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0x35f8('0xc'),'fields':[_0x35f8('0xd'),_0x35f8('0xe')],'unique':!![]}],'timestamps':!![]});};