Built motion from commit (unavailable).|2.5.5
[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 _0x98f2=['idField','FieldId','lodash','../../config/logger','moment','request-promise','rimraf','../../config/environment','./intDeskField.attributes','define','int_desk_fields','desk_unique_index'];(function(_0x5cbf0e,_0x4cd140){var _0x1c76f8=function(_0xcc9be4){while(--_0xcc9be4){_0x5cbf0e['push'](_0x5cbf0e['shift']());}};_0x1c76f8(++_0x4cd140);}(_0x98f2,0x13a));var _0x298f=function(_0x376621,_0xb5ac30){_0x376621=_0x376621-0x0;var _0x4f4c6d=_0x98f2[_0x376621];return _0x4f4c6d;};'use strict';var _=require(_0x298f('0x0'));var util=require('util');var logger=require(_0x298f('0x1'))('api');var moment=require(_0x298f('0x2'));var BPromise=require('bluebird');var rp=require(_0x298f('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x298f('0x4'));var config=require(_0x298f('0x5'));var attributes=require(_0x298f('0x6'));module['exports']=function(_0x148394,_0x1645f3){return _0x148394[_0x298f('0x7')]('DeskField',attributes,{'tableName':_0x298f('0x8'),'paranoid':![],'indexes':[{'name':_0x298f('0x9'),'fields':[_0x298f('0xa'),_0x298f('0xb')],'unique':!![]}],'timestamps':!![]});};