c6e3e63e7c96ebf392745ad85574b8a32589e8f4
[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 _0x1193=['sectionId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./userProfileResource.attributes','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId'];(function(_0x4017b0,_0x4347db){var _0x5ed4f7=function(_0x706c26){while(--_0x706c26){_0x4017b0['push'](_0x4017b0['shift']());}};_0x5ed4f7(++_0x4347db);}(_0x1193,0x79));var _0x3119=function(_0x522e74,_0x3e5d2b){_0x522e74=_0x522e74-0x0;var _0x6e402c=_0x1193[_0x522e74];return _0x6e402c;};'use strict';var _=require(_0x3119('0x0'));var util=require(_0x3119('0x1'));var logger=require(_0x3119('0x2'))(_0x3119('0x3'));var moment=require(_0x3119('0x4'));var BPromise=require(_0x3119('0x5'));var rp=require(_0x3119('0x6'));var fs=require('fs');var path=require(_0x3119('0x7'));var rimraf=require('rimraf');var config=require(_0x3119('0x8'));var attributes=require(_0x3119('0x9'));module['exports']=function(_0xcb5e37,_0x35e8b0){return _0xcb5e37['define'](_0x3119('0xa'),attributes,{'tableName':_0x3119('0xb'),'paranoid':![],'indexes':[{'name':_0x3119('0xc'),'fields':[_0x3119('0xd'),_0x3119('0xe')]}],'timestamps':!![]});};