cddc9ed0eb4f9adadf6f878940e42be7687fe482
[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 _0x4c7a=['define','UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','util','../../config/logger','api','moment','bluebird','request-promise','../../config/environment','./userProfileResource.attributes','exports'];(function(_0x186376,_0x5d988a){var _0x2dbdd9=function(_0x96908e){while(--_0x96908e){_0x186376['push'](_0x186376['shift']());}};_0x2dbdd9(++_0x5d988a);}(_0x4c7a,0x11d));var _0xa4c7=function(_0x3c255f,_0x33c7e4){_0x3c255f=_0x3c255f-0x0;var _0x1467d0=_0x4c7a[_0x3c255f];return _0x1467d0;};'use strict';var _=require('lodash');var util=require(_0xa4c7('0x0'));var logger=require(_0xa4c7('0x1'))(_0xa4c7('0x2'));var moment=require(_0xa4c7('0x3'));var BPromise=require(_0xa4c7('0x4'));var rp=require(_0xa4c7('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xa4c7('0x6'));var attributes=require(_0xa4c7('0x7'));module[_0xa4c7('0x8')]=function(_0x234d6f,_0x473fd2){return _0x234d6f[_0xa4c7('0x9')](_0xa4c7('0xa'),attributes,{'tableName':_0xa4c7('0xb'),'paranoid':![],'indexes':[{'name':_0xa4c7('0xc'),'fields':['resourceId',_0xa4c7('0xd')]}],'timestamps':!![]});};