3d2b1731f02acc54984e3d022f170ed19f12af3d
[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 _0x0036=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','util','../../config/logger','api'];(function(_0xe25556,_0x5d2e45){var _0x184848=function(_0x5afa6d){while(--_0x5afa6d){_0xe25556['push'](_0xe25556['shift']());}};_0x184848(++_0x5d2e45);}(_0x0036,0x73));var _0x6003=function(_0x3c472a,_0xbe009d){_0x3c472a=_0x3c472a-0x0;var _0x25f0c2=_0x0036[_0x3c472a];return _0x25f0c2;};'use strict';var _=require(_0x6003('0x0'));var util=require(_0x6003('0x1'));var logger=require(_0x6003('0x2'))(_0x6003('0x3'));var moment=require(_0x6003('0x4'));var BPromise=require(_0x6003('0x5'));var rp=require(_0x6003('0x6'));var fs=require('fs');var path=require(_0x6003('0x7'));var rimraf=require(_0x6003('0x8'));var config=require(_0x6003('0x9'));var attributes=require(_0x6003('0xa'));module[_0x6003('0xb')]=function(_0x159d55,_0x23976c){return _0x159d55[_0x6003('0xc')]('UserProfileSection',attributes,{'tableName':_0x6003('0xd'),'paranoid':![],'indexes':[{'name':_0x6003('0xe'),'fields':[_0x6003('0xf'),_0x6003('0x10')]}],'timestamps':!![]});};