Built motion from commit f7863d46.|2.5.41
[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 _0x059e=['path','rimraf','../../config/environment','exports','ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','lodash','util','../../config/logger','moment','bluebird','request-promise'];(function(_0x530983,_0x5e55a3){var _0x499787=function(_0x2b91f5){while(--_0x2b91f5){_0x530983['push'](_0x530983['shift']());}};_0x499787(++_0x5e55a3);}(_0x059e,0xb0));var _0xe059=function(_0x4514b5,_0x26537f){_0x4514b5=_0x4514b5-0x0;var _0x302588=_0x059e[_0x4514b5];return _0x302588;};'use strict';var _=require(_0xe059('0x0'));var util=require(_0xe059('0x1'));var logger=require(_0xe059('0x2'))('api');var moment=require(_0xe059('0x3'));var BPromise=require(_0xe059('0x4'));var rp=require(_0xe059('0x5'));var fs=require('fs');var path=require(_0xe059('0x6'));var rimraf=require(_0xe059('0x7'));var config=require(_0xe059('0x8'));var attributes=require('./intZendeskField.attributes');module[_0xe059('0x9')]=function(_0x17afa3,_0x417640){return _0x17afa3['define'](_0xe059('0xa'),attributes,{'tableName':_0xe059('0xb'),'paranoid':![],'indexes':[{'name':_0xe059('0xc'),'fields':[_0xe059('0xd'),'FieldId'],'unique':!![]}],'timestamps':!![]});};