27111789881903e5d00eee45294e29fba1a5e76d
[motion2.git] / server / api / intDeskField / intDeskField.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 _0xb83c=['../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','define','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','lodash','util'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0xb83c,0x10e));var _0xcb83=function(_0x8743ed,_0x1fab22){_0x8743ed=_0x8743ed-0x0;var _0x28c95f=_0xb83c[_0x8743ed];return _0x28c95f;};'use strict';var _=require(_0xcb83('0x0'));var util=require(_0xcb83('0x1'));var logger=require(_0xcb83('0x2'))(_0xcb83('0x3'));var moment=require(_0xcb83('0x4'));var BPromise=require(_0xcb83('0x5'));var rp=require(_0xcb83('0x6'));var fs=require('fs');var path=require(_0xcb83('0x7'));var rimraf=require(_0xcb83('0x8'));var config=require(_0xcb83('0x9'));var attributes=require('./intDeskField.attributes');module['exports']=function(_0x1019fd,_0x2b0695){return _0x1019fd[_0xcb83('0xa')](_0xcb83('0xb'),attributes,{'tableName':_0xcb83('0xc'),'paranoid':![],'indexes':[{'name':_0xcb83('0xd'),'fields':[_0xcb83('0xe'),_0xcb83('0xf')],'unique':!![]}],'timestamps':!![]});};