0135d174376af6bde2ea33b16f33cdd85404a8d1
[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 _0x083b=['UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','util','moment','path','rimraf','../../config/environment','exports'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x083b,0x144));var _0xb083=function(_0x28d18d,_0x55896b){_0x28d18d=_0x28d18d-0x0;var _0x470640=_0x083b[_0x28d18d];return _0x470640;};'use strict';var _=require('lodash');var util=require(_0xb083('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xb083('0x1'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xb083('0x2'));var rimraf=require(_0xb083('0x3'));var config=require(_0xb083('0x4'));var attributes=require('./userProfileResource.attributes');module[_0xb083('0x5')]=function(_0x10da1,_0x1461ad){return _0x10da1['define'](_0xb083('0x6'),attributes,{'tableName':_0xb083('0x7'),'paranoid':![],'indexes':[{'name':_0xb083('0x8'),'fields':['resourceId',_0xb083('0x9')]}],'timestamps':!![]});};