63f3a663ed43d908deca20ebbc2fb2c40c7e396e
[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 _0x1bdd=['../../config/environment','./intFreshdeskField.attributes','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','lodash','util','../../config/logger','api','request-promise','path','rimraf'];(function(_0x2c6028,_0x236c9b){var _0x4520d0=function(_0x41d0c3){while(--_0x41d0c3){_0x2c6028['push'](_0x2c6028['shift']());}};_0x4520d0(++_0x236c9b);}(_0x1bdd,0x143));var _0xd1bd=function(_0x248ef7,_0x5cf848){_0x248ef7=_0x248ef7-0x0;var _0x5bad0b=_0x1bdd[_0x248ef7];return _0x5bad0b;};'use strict';var _=require(_0xd1bd('0x0'));var util=require(_0xd1bd('0x1'));var logger=require(_0xd1bd('0x2'))(_0xd1bd('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xd1bd('0x4'));var fs=require('fs');var path=require(_0xd1bd('0x5'));var rimraf=require(_0xd1bd('0x6'));var config=require(_0xd1bd('0x7'));var attributes=require(_0xd1bd('0x8'));module['exports']=function(_0x23db60,_0x2fc380){return _0x23db60[_0xd1bd('0x9')](_0xd1bd('0xa'),attributes,{'tableName':_0xd1bd('0xb'),'paranoid':![],'indexes':[{'name':_0xd1bd('0xc'),'fields':[_0xd1bd('0xd'),_0xd1bd('0xe')],'unique':!![]}],'timestamps':!![]});};