16848518fc303af1d8ab54d0456da9308302109c
[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 _0xe12c=['api','moment','bluebird','request-promise','path','../../config/environment','exports','define','UserProfileResource','compositeIndex','resourceId','sectionId','lodash','../../config/logger'];(function(_0x3b19d5,_0x3d5bc5){var _0x37557e=function(_0x4bfa0e){while(--_0x4bfa0e){_0x3b19d5['push'](_0x3b19d5['shift']());}};_0x37557e(++_0x3d5bc5);}(_0xe12c,0x1cc));var _0xce12=function(_0x142ec2,_0x5bb03d){_0x142ec2=_0x142ec2-0x0;var _0x45ef4e=_0xe12c[_0x142ec2];return _0x45ef4e;};'use strict';var _=require(_0xce12('0x0'));var util=require('util');var logger=require(_0xce12('0x1'))(_0xce12('0x2'));var moment=require(_0xce12('0x3'));var BPromise=require(_0xce12('0x4'));var rp=require(_0xce12('0x5'));var fs=require('fs');var path=require(_0xce12('0x6'));var rimraf=require('rimraf');var config=require(_0xce12('0x7'));var attributes=require('./userProfileResource.attributes');module[_0xce12('0x8')]=function(_0x3ce137,_0x4be94d){return _0x3ce137[_0xce12('0x9')](_0xce12('0xa'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0xce12('0xb'),'fields':[_0xce12('0xc'),_0xce12('0xd')]}],'timestamps':!![]});};