Built motion from commit f7863d46.|2.5.41
[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 _0x1b4b=['UserProfileResource','resourceId','sectionId','lodash','util','api','bluebird','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x3e2d69,_0x4be54d){var _0x5f1f43=function(_0x21d8c5){while(--_0x21d8c5){_0x3e2d69['push'](_0x3e2d69['shift']());}};_0x5f1f43(++_0x4be54d);}(_0x1b4b,0x12e));var _0xb1b4=function(_0x33cfb1,_0xe21f40){_0x33cfb1=_0x33cfb1-0x0;var _0x1a9ef3=_0x1b4b[_0x33cfb1];return _0x1a9ef3;};'use strict';var _=require(_0xb1b4('0x0'));var util=require(_0xb1b4('0x1'));var logger=require('../../config/logger')(_0xb1b4('0x2'));var moment=require('moment');var BPromise=require(_0xb1b4('0x3'));var rp=require(_0xb1b4('0x4'));var fs=require('fs');var path=require(_0xb1b4('0x5'));var rimraf=require(_0xb1b4('0x6'));var config=require(_0xb1b4('0x7'));var attributes=require('./userProfileResource.attributes');module[_0xb1b4('0x8')]=function(_0xae9fdf,_0x2b46b7){return _0xae9fdf[_0xb1b4('0x9')](_0xb1b4('0xa'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0xb1b4('0xb'),_0xb1b4('0xc')]}],'timestamps':!![]});};