a915b183838c02a1ff0be552347fb997346db406
[motion2.git] / server / api / userProfileResource / userProfileResource.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 _0xe2b1=['api','moment','bluebird','request-promise','path','rimraf','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','sectionId','lodash','../../config/logger'];(function(_0x2c8575,_0x2fb3c1){var _0x14982f=function(_0x310d00){while(--_0x310d00){_0x2c8575['push'](_0x2c8575['shift']());}};_0x14982f(++_0x2fb3c1);}(_0xe2b1,0x66));var _0x1e2b=function(_0x2e4d53,_0x409b7d){_0x2e4d53=_0x2e4d53-0x0;var _0x4fb6da=_0xe2b1[_0x2e4d53];return _0x4fb6da;};'use strict';var _=require(_0x1e2b('0x0'));var util=require('util');var logger=require(_0x1e2b('0x1'))(_0x1e2b('0x2'));var moment=require(_0x1e2b('0x3'));var BPromise=require(_0x1e2b('0x4'));var rp=require(_0x1e2b('0x5'));var fs=require('fs');var path=require(_0x1e2b('0x6'));var rimraf=require(_0x1e2b('0x7'));var config=require('../../config/environment');var attributes=require('./userProfileResource.attributes');module['exports']=function(_0x1e6296,_0x4184a4){return _0x1e6296['define'](_0x1e2b('0x8'),attributes,{'tableName':_0x1e2b('0x9'),'paranoid':![],'indexes':[{'name':_0x1e2b('0xa'),'fields':[_0x1e2b('0xb'),_0x1e2b('0xc')]}],'timestamps':!![]});};