Built motion from commit (unavailable).|2.5.22
[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 _0x0d6e=['api','bluebird','request-promise','path','rimraf','./userProfileSection.attributes','user_profile_has_sections','compositeIndex','lodash','util','../../config/logger'];(function(_0x160c73,_0x2ee678){var _0xd9302=function(_0x169454){while(--_0x169454){_0x160c73['push'](_0x160c73['shift']());}};_0xd9302(++_0x2ee678);}(_0x0d6e,0xc3));var _0xe0d6=function(_0x3086cf,_0x13a69b){_0x3086cf=_0x3086cf-0x0;var _0x10f8c4=_0x0d6e[_0x3086cf];return _0x10f8c4;};'use strict';var _=require(_0xe0d6('0x0'));var util=require(_0xe0d6('0x1'));var logger=require(_0xe0d6('0x2'))(_0xe0d6('0x3'));var moment=require('moment');var BPromise=require(_0xe0d6('0x4'));var rp=require(_0xe0d6('0x5'));var fs=require('fs');var path=require(_0xe0d6('0x6'));var rimraf=require(_0xe0d6('0x7'));var config=require('../../config/environment');var attributes=require(_0xe0d6('0x8'));module['exports']=function(_0x1c4dbe,_0x40f626){return _0x1c4dbe['define']('UserProfileSection',attributes,{'tableName':_0xe0d6('0x9'),'paranoid':![],'indexes':[{'name':_0xe0d6('0xa'),'fields':['sectionId','userProfileId']}],'timestamps':!![]});};