1c8de170b22c8104e9430853fe3d5e4e9140b800
[motion2.git] / server / api / cmList / cmList.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 _0xdf0e=['bluebird','rimraf','./cmList.attributes','exports','define','CmList','cm_lists','lodash','../../config/logger','api'];(function(_0x469f1d,_0x9763d){var _0x2ac09b=function(_0x19ab4d){while(--_0x19ab4d){_0x469f1d['push'](_0x469f1d['shift']());}};_0x2ac09b(++_0x9763d);}(_0xdf0e,0xb1));var _0xedf0=function(_0x335d63,_0x5d8378){_0x335d63=_0x335d63-0x0;var _0x49bcda=_0xdf0e[_0x335d63];return _0x49bcda;};'use strict';var _=require(_0xedf0('0x0'));var util=require('util');var logger=require(_0xedf0('0x1'))(_0xedf0('0x2'));var moment=require('moment');var BPromise=require(_0xedf0('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xedf0('0x4'));var config=require('../../config/environment');var attributes=require(_0xedf0('0x5'));module[_0xedf0('0x6')]=function(_0xc14ee9,_0x24da6e){return _0xc14ee9[_0xedf0('0x7')](_0xedf0('0x8'),attributes,{'tableName':_0xedf0('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};