36626c3b368faeafe1fb1f75a23170ce907bc559
[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 _0x04ea=['DeskField','int_desk_fields','desk_unique_index','idField','FieldId','util','../../config/logger','api','moment','request-promise','path','./intDeskField.attributes','exports','define'];(function(_0xe616b6,_0x1bf3de){var _0x1e4ec1=function(_0x43d940){while(--_0x43d940){_0xe616b6['push'](_0xe616b6['shift']());}};_0x1e4ec1(++_0x1bf3de);}(_0x04ea,0x1d3));var _0xa04e=function(_0x48d133,_0xecfe43){_0x48d133=_0x48d133-0x0;var _0x33758=_0x04ea[_0x48d133];return _0x33758;};'use strict';var _=require('lodash');var util=require(_0xa04e('0x0'));var logger=require(_0xa04e('0x1'))(_0xa04e('0x2'));var moment=require(_0xa04e('0x3'));var BPromise=require('bluebird');var rp=require(_0xa04e('0x4'));var fs=require('fs');var path=require(_0xa04e('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xa04e('0x6'));module[_0xa04e('0x7')]=function(_0x1223fa,_0x4d5bdc){return _0x1223fa[_0xa04e('0x8')](_0xa04e('0x9'),attributes,{'tableName':_0xa04e('0xa'),'paranoid':![],'indexes':[{'name':_0xa04e('0xb'),'fields':[_0xa04e('0xc'),_0xa04e('0xd')],'unique':!![]}],'timestamps':!![]});};