Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / userProfileSection / userProfileSection.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 _0x5afe=['api','moment','bluebird','request-promise','path','../../config/environment','./userProfileSection.attributes','exports','define','user_profile_has_sections','compositeIndex','userProfileId','lodash','util'];(function(_0x55c64f,_0x334232){var _0x15fba4=function(_0x32daeb){while(--_0x32daeb){_0x55c64f['push'](_0x55c64f['shift']());}};_0x15fba4(++_0x334232);}(_0x5afe,0x1a2));var _0xe5af=function(_0x6362d0,_0x5400b4){_0x6362d0=_0x6362d0-0x0;var _0x19bbce=_0x5afe[_0x6362d0];return _0x19bbce;};'use strict';var _=require(_0xe5af('0x0'));var util=require(_0xe5af('0x1'));var logger=require('../../config/logger')(_0xe5af('0x2'));var moment=require(_0xe5af('0x3'));var BPromise=require(_0xe5af('0x4'));var rp=require(_0xe5af('0x5'));var fs=require('fs');var path=require(_0xe5af('0x6'));var rimraf=require('rimraf');var config=require(_0xe5af('0x7'));var attributes=require(_0xe5af('0x8'));module[_0xe5af('0x9')]=function(_0x49dc41,_0x768510){return _0x49dc41[_0xe5af('0xa')]('UserProfileSection',attributes,{'tableName':_0xe5af('0xb'),'paranoid':![],'indexes':[{'name':_0xe5af('0xc'),'fields':['sectionId',_0xe5af('0xd')]}],'timestamps':!![]});};