Built motion from commit 43538d75.|2.5.35
[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 _0xcef1=['request-promise','path','rimraf','./intFreshdeskField.attributes','define','FreshdeskField','int_freshdesk_fields','idField','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x8c652b,_0x47fc65){var _0x494497=function(_0x498ab4){while(--_0x498ab4){_0x8c652b['push'](_0x8c652b['shift']());}};_0x494497(++_0x47fc65);}(_0xcef1,0x1ac));var _0x1cef=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0xcef1[_0x59ee6f];return _0x4c0979;};'use strict';var _=require(_0x1cef('0x0'));var util=require(_0x1cef('0x1'));var logger=require(_0x1cef('0x2'))(_0x1cef('0x3'));var moment=require(_0x1cef('0x4'));var BPromise=require(_0x1cef('0x5'));var rp=require(_0x1cef('0x6'));var fs=require('fs');var path=require(_0x1cef('0x7'));var rimraf=require(_0x1cef('0x8'));var config=require('../../config/environment');var attributes=require(_0x1cef('0x9'));module['exports']=function(_0x514fbc,_0x25edd3){return _0x514fbc[_0x1cef('0xa')](_0x1cef('0xb'),attributes,{'tableName':_0x1cef('0xc'),'paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':[_0x1cef('0xd'),'FieldId'],'unique':!![]}],'timestamps':!![]});};