3be974d6ffdd79c3930b9f5a357efbe495c0ad2d
[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 _0xad74=['../../config/logger','api','moment','bluebird','../../config/environment','exports','UserProfileResource','user_profile_has_resources','resourceId','sectionId','lodash','util'];(function(_0x1b022d,_0x40a462){var _0x29f2f3=function(_0x53224f){while(--_0x53224f){_0x1b022d['push'](_0x1b022d['shift']());}};_0x29f2f3(++_0x40a462);}(_0xad74,0x172));var _0x4ad7=function(_0x18c66e,_0x3ea035){_0x18c66e=_0x18c66e-0x0;var _0x4d9841=_0xad74[_0x18c66e];return _0x4d9841;};'use strict';var _=require(_0x4ad7('0x0'));var util=require(_0x4ad7('0x1'));var logger=require(_0x4ad7('0x2'))(_0x4ad7('0x3'));var moment=require(_0x4ad7('0x4'));var BPromise=require(_0x4ad7('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x4ad7('0x6'));var attributes=require('./userProfileResource.attributes');module[_0x4ad7('0x7')]=function(_0x32fcdf,_0x10e134){return _0x32fcdf['define'](_0x4ad7('0x8'),attributes,{'tableName':_0x4ad7('0x9'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x4ad7('0xa'),_0x4ad7('0xb')]}],'timestamps':!![]});};