38d8cb3605ab7028e6927d8503da5604a3876b55
[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 _0xf54c=['FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intZendeskField.attributes','exports','ZendeskField','int_zendesk_fields','zendesk_unique_index','idField'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xf54c,0x1bb));var _0xcf54=function(_0x250665,_0x464740){_0x250665=_0x250665-0x0;var _0x35734e=_0xf54c[_0x250665];return _0x35734e;};'use strict';var _=require(_0xcf54('0x0'));var util=require(_0xcf54('0x1'));var logger=require(_0xcf54('0x2'))(_0xcf54('0x3'));var moment=require(_0xcf54('0x4'));var BPromise=require(_0xcf54('0x5'));var rp=require(_0xcf54('0x6'));var fs=require('fs');var path=require(_0xcf54('0x7'));var rimraf=require(_0xcf54('0x8'));var config=require(_0xcf54('0x9'));var attributes=require(_0xcf54('0xa'));module[_0xcf54('0xb')]=function(_0x225218,_0x4785b0){return _0x225218['define'](_0xcf54('0xc'),attributes,{'tableName':_0xcf54('0xd'),'paranoid':![],'indexes':[{'name':_0xcf54('0xe'),'fields':[_0xcf54('0xf'),_0xcf54('0x10')],'unique':!![]}],'timestamps':!![]});};