9815bce98eaadfe72fd2215ac70c88e9819c7faa
[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 _0x3f8a=['../../config/environment','exports','define','DeskField','int_desk_fields','desk_unique_index','FieldId','lodash','util','api','moment','bluebird','request-promise','path'];(function(_0x54e719,_0xdecc5f){var _0x269f52=function(_0x1e923a){while(--_0x1e923a){_0x54e719['push'](_0x54e719['shift']());}};_0x269f52(++_0xdecc5f);}(_0x3f8a,0xa1));var _0xa3f8=function(_0x4d830b,_0x27f78d){_0x4d830b=_0x4d830b-0x0;var _0x238c89=_0x3f8a[_0x4d830b];return _0x238c89;};'use strict';var _=require(_0xa3f8('0x0'));var util=require(_0xa3f8('0x1'));var logger=require('../../config/logger')(_0xa3f8('0x2'));var moment=require(_0xa3f8('0x3'));var BPromise=require(_0xa3f8('0x4'));var rp=require(_0xa3f8('0x5'));var fs=require('fs');var path=require(_0xa3f8('0x6'));var rimraf=require('rimraf');var config=require(_0xa3f8('0x7'));var attributes=require('./intDeskField.attributes');module[_0xa3f8('0x8')]=function(_0x4438fc,_0x32ac16){return _0x4438fc[_0xa3f8('0x9')](_0xa3f8('0xa'),attributes,{'tableName':_0xa3f8('0xb'),'paranoid':![],'indexes':[{'name':_0xa3f8('0xc'),'fields':['idField',_0xa3f8('0xd')],'unique':!![]}],'timestamps':!![]});};