9c4d5dc1edcaa06f3ebd9f79676afc72020570cb
[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 _0x89e3=['define','freshdesk_unique_index','idField','util','../../config/logger','api','moment','request-promise','../../config/environment','./intFreshdeskField.attributes','exports'];(function(_0x331dc8,_0xb89dcc){var _0x565cbd=function(_0x2cbbcd){while(--_0x2cbbcd){_0x331dc8['push'](_0x331dc8['shift']());}};_0x565cbd(++_0xb89dcc);}(_0x89e3,0x66));var _0x389e=function(_0x49489d,_0x2e9121){_0x49489d=_0x49489d-0x0;var _0x1b3a5f=_0x89e3[_0x49489d];return _0x1b3a5f;};'use strict';var _=require('lodash');var util=require(_0x389e('0x0'));var logger=require(_0x389e('0x1'))(_0x389e('0x2'));var moment=require(_0x389e('0x3'));var BPromise=require('bluebird');var rp=require(_0x389e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x389e('0x5'));var attributes=require(_0x389e('0x6'));module[_0x389e('0x7')]=function(_0x78a400,_0x11f26d){return _0x78a400[_0x389e('0x8')]('FreshdeskField',attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x389e('0x9'),'fields':[_0x389e('0xa'),'FieldId'],'unique':!![]}],'timestamps':!![]});};