a2ae52331991fa00714e196446cf1b0a88f703a1
[motion2.git] / server / api / intZendeskField / intZendeskField.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 _0xfe9f=['util','../../config/logger','api','moment','request-promise','rimraf','../../config/environment','./intZendeskField.attributes','exports','ZendeskField','int_zendesk_fields','zendesk_unique_index','FieldId','lodash'];(function(_0x3fb506,_0x1ff530){var _0x512e17=function(_0x3792e9){while(--_0x3792e9){_0x3fb506['push'](_0x3fb506['shift']());}};_0x512e17(++_0x1ff530);}(_0xfe9f,0xb5));var _0xffe9=function(_0x33c315,_0x1fb576){_0x33c315=_0x33c315-0x0;var _0x3bdbc6=_0xfe9f[_0x33c315];return _0x3bdbc6;};'use strict';var _=require(_0xffe9('0x0'));var util=require(_0xffe9('0x1'));var logger=require(_0xffe9('0x2'))(_0xffe9('0x3'));var moment=require(_0xffe9('0x4'));var BPromise=require('bluebird');var rp=require(_0xffe9('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xffe9('0x6'));var config=require(_0xffe9('0x7'));var attributes=require(_0xffe9('0x8'));module[_0xffe9('0x9')]=function(_0x14e15b,_0x58e5d0){return _0x14e15b['define'](_0xffe9('0xa'),attributes,{'tableName':_0xffe9('0xb'),'paranoid':![],'indexes':[{'name':_0xffe9('0xc'),'fields':['idField',_0xffe9('0xd')],'unique':!![]}],'timestamps':!![]});};