1cee3a81590e78f6aae881f21d62e450cadbca62
[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 _0xefc2=['bluebird','request-promise','rimraf','./intFreshdeskField.attributes','define','FreshdeskField','freshdesk_unique_index','idField','lodash','util','../../config/logger','api','moment'];(function(_0x54dc18,_0x44b97c){var _0x35276c=function(_0x2288b5){while(--_0x2288b5){_0x54dc18['push'](_0x54dc18['shift']());}};_0x35276c(++_0x44b97c);}(_0xefc2,0x133));var _0x2efc=function(_0x24bb87,_0x351c2f){_0x24bb87=_0x24bb87-0x0;var _0x19ce76=_0xefc2[_0x24bb87];return _0x19ce76;};'use strict';var _=require(_0x2efc('0x0'));var util=require(_0x2efc('0x1'));var logger=require(_0x2efc('0x2'))(_0x2efc('0x3'));var moment=require(_0x2efc('0x4'));var BPromise=require(_0x2efc('0x5'));var rp=require(_0x2efc('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x2efc('0x7'));var config=require('../../config/environment');var attributes=require(_0x2efc('0x8'));module['exports']=function(_0x5395c6,_0x3fa1b6){return _0x5395c6[_0x2efc('0x9')](_0x2efc('0xa'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x2efc('0xb'),'fields':[_0x2efc('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};