05a4fd0a36e87259973d2b6de7396037d2d94b5d
[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 _0x175e=['define','ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','FieldId','lodash','util','../../config/logger','api','moment','path','rimraf','../../config/environment','./intZendeskField.attributes','exports'];(function(_0x4a26b9,_0x3b8dae){var _0x3e0f9c=function(_0x375471){while(--_0x375471){_0x4a26b9['push'](_0x4a26b9['shift']());}};_0x3e0f9c(++_0x3b8dae);}(_0x175e,0xe6));var _0xe175=function(_0x1829f7,_0x404ee5){_0x1829f7=_0x1829f7-0x0;var _0x45e140=_0x175e[_0x1829f7];return _0x45e140;};'use strict';var _=require(_0xe175('0x0'));var util=require(_0xe175('0x1'));var logger=require(_0xe175('0x2'))(_0xe175('0x3'));var moment=require(_0xe175('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xe175('0x5'));var rimraf=require(_0xe175('0x6'));var config=require(_0xe175('0x7'));var attributes=require(_0xe175('0x8'));module[_0xe175('0x9')]=function(_0x278a8d,_0x7eba){return _0x278a8d[_0xe175('0xa')](_0xe175('0xb'),attributes,{'tableName':_0xe175('0xc'),'paranoid':![],'indexes':[{'name':_0xe175('0xd'),'fields':[_0xe175('0xe'),_0xe175('0xf')],'unique':!![]}],'timestamps':!![]});};