afc73d2986d1d6b86cf65f911f1f4b2f6b62f26b
[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 _0xa7e3=['exports','define','sectionId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes'];(function(_0x47e455,_0x4fe7ce){var _0x1996a5=function(_0x56c5be){while(--_0x56c5be){_0x47e455['push'](_0x47e455['shift']());}};_0x1996a5(++_0x4fe7ce);}(_0xa7e3,0x129));var _0x3a7e=function(_0x2d47d7,_0x5ab8db){_0x2d47d7=_0x2d47d7-0x0;var _0x32ac35=_0xa7e3[_0x2d47d7];return _0x32ac35;};'use strict';var _=require(_0x3a7e('0x0'));var util=require(_0x3a7e('0x1'));var logger=require(_0x3a7e('0x2'))(_0x3a7e('0x3'));var moment=require(_0x3a7e('0x4'));var BPromise=require(_0x3a7e('0x5'));var rp=require(_0x3a7e('0x6'));var fs=require('fs');var path=require(_0x3a7e('0x7'));var rimraf=require(_0x3a7e('0x8'));var config=require(_0x3a7e('0x9'));var attributes=require(_0x3a7e('0xa'));module[_0x3a7e('0xb')]=function(_0x3bed89,_0x1441f3){return _0x3bed89[_0x3a7e('0xc')]('UserProfileResource',attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':'compositeIndex','fields':['resourceId',_0x3a7e('0xd')]}],'timestamps':!![]});};