Built motion from commit (unavailable).|2.4.18
[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 _0x85da=['request-promise','rimraf','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex','userProfileId','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x443b20,_0x515e6b){var _0x5c008d=function(_0x2c4c49){while(--_0x2c4c49){_0x443b20['push'](_0x443b20['shift']());}};_0x5c008d(++_0x515e6b);}(_0x85da,0x1bc));var _0xa85d=function(_0x8854f2,_0x79542c){_0x8854f2=_0x8854f2-0x0;var _0x38505d=_0x85da[_0x8854f2];return _0x38505d;};'use strict';var _=require(_0xa85d('0x0'));var util=require(_0xa85d('0x1'));var logger=require(_0xa85d('0x2'))(_0xa85d('0x3'));var moment=require(_0xa85d('0x4'));var BPromise=require(_0xa85d('0x5'));var rp=require(_0xa85d('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa85d('0x7'));var config=require('../../config/environment');var attributes=require(_0xa85d('0x8'));module[_0xa85d('0x9')]=function(_0x28860c,_0x75c0e6){return _0x28860c[_0xa85d('0xa')](_0xa85d('0xb'),attributes,{'tableName':_0xa85d('0xc'),'paranoid':![],'indexes':[{'name':_0xa85d('0xd'),'fields':['sectionId',_0xa85d('0xe')]}],'timestamps':!![]});};