328ff507dcdb416b4a5e88cfee7d77c0b41add20
[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 _0xb2f4=['DeskField','desk_unique_index','idField','FieldId','util','../../config/logger','path','rimraf','../../config/environment','./intDeskField.attributes','exports','define'];(function(_0x28c78e,_0x58ae1b){var _0x221be5=function(_0x2fd685){while(--_0x2fd685){_0x28c78e['push'](_0x28c78e['shift']());}};_0x221be5(++_0x58ae1b);}(_0xb2f4,0x184));var _0x4b2f=function(_0x476c6c,_0x434db8){_0x476c6c=_0x476c6c-0x0;var _0xbb94db=_0xb2f4[_0x476c6c];return _0xbb94db;};'use strict';var _=require('lodash');var util=require(_0x4b2f('0x0'));var logger=require(_0x4b2f('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x4b2f('0x2'));var rimraf=require(_0x4b2f('0x3'));var config=require(_0x4b2f('0x4'));var attributes=require(_0x4b2f('0x5'));module[_0x4b2f('0x6')]=function(_0x199227,_0x5a8752){return _0x199227[_0x4b2f('0x7')](_0x4b2f('0x8'),attributes,{'tableName':'int_desk_fields','paranoid':![],'indexes':[{'name':_0x4b2f('0x9'),'fields':[_0x4b2f('0xa'),_0x4b2f('0xb')],'unique':!![]}],'timestamps':!![]});};