df95d3f2f502ff2854432bdb7e14d769ca80fefd
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.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 _0x3c85=['FreshdeskField','freshdesk_unique_index','idField','FieldId','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./intFreshdeskField.attributes','exports'];(function(_0x39c734,_0x2f3e06){var _0xb2a2f9=function(_0x502f3f){while(--_0x502f3f){_0x39c734['push'](_0x39c734['shift']());}};_0xb2a2f9(++_0x2f3e06);}(_0x3c85,0xb8));var _0x53c8=function(_0x426113,_0x29a128){_0x426113=_0x426113-0x0;var _0x467dd9=_0x3c85[_0x426113];return _0x467dd9;};'use strict';var _=require(_0x53c8('0x0'));var util=require(_0x53c8('0x1'));var logger=require(_0x53c8('0x2'))(_0x53c8('0x3'));var moment=require('moment');var BPromise=require(_0x53c8('0x4'));var rp=require(_0x53c8('0x5'));var fs=require('fs');var path=require(_0x53c8('0x6'));var rimraf=require(_0x53c8('0x7'));var config=require(_0x53c8('0x8'));var attributes=require(_0x53c8('0x9'));module[_0x53c8('0xa')]=function(_0x1eea7b,_0x10bf07){return _0x1eea7b['define'](_0x53c8('0xb'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x53c8('0xc'),'fields':[_0x53c8('0xd'),_0x53c8('0xe')],'unique':!![]}],'timestamps':!![]});};