c5b36350f8698a50aabb6e73adbfbcf0fa03f8d0
[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 _0x9af2=['idField','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./intDeskField.attributes','exports','define','DeskField','int_desk_fields','desk_unique_index'];(function(_0x5495fc,_0x268c40){var _0x1c549e=function(_0x11ccb8){while(--_0x11ccb8){_0x5495fc['push'](_0x5495fc['shift']());}};_0x1c549e(++_0x268c40);}(_0x9af2,0x1eb));var _0x29af=function(_0x713928,_0x35b800){_0x713928=_0x713928-0x0;var _0xea9b39=_0x9af2[_0x713928];return _0xea9b39;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x29af('0x0'))(_0x29af('0x1'));var moment=require(_0x29af('0x2'));var BPromise=require(_0x29af('0x3'));var rp=require(_0x29af('0x4'));var fs=require('fs');var path=require(_0x29af('0x5'));var rimraf=require('rimraf');var config=require(_0x29af('0x6'));var attributes=require(_0x29af('0x7'));module[_0x29af('0x8')]=function(_0x11b08f,_0x4e7a7c){return _0x11b08f[_0x29af('0x9')](_0x29af('0xa'),attributes,{'tableName':_0x29af('0xb'),'paranoid':![],'indexes':[{'name':_0x29af('0xc'),'fields':[_0x29af('0xd'),'FieldId'],'unique':!![]}],'timestamps':!![]});};