d0602d2f9160e369a224c72aac0c1dc7a648cbb2
[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 _0x9e9b=['../../config/environment','exports','define','CmList','cm_lists','lodash','api','moment','bluebird','request-promise','rimraf'];(function(_0x358a0a,_0x4cffea){var _0x41a6ad=function(_0x3f78c0){while(--_0x3f78c0){_0x358a0a['push'](_0x358a0a['shift']());}};_0x41a6ad(++_0x4cffea);}(_0x9e9b,0x1a7));var _0xb9e9=function(_0x1177d5,_0x22b649){_0x1177d5=_0x1177d5-0x0;var _0xc3ddc2=_0x9e9b[_0x1177d5];return _0xc3ddc2;};'use strict';var _=require(_0xb9e9('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xb9e9('0x1'));var moment=require(_0xb9e9('0x2'));var BPromise=require(_0xb9e9('0x3'));var rp=require(_0xb9e9('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xb9e9('0x5'));var config=require(_0xb9e9('0x6'));var attributes=require('./cmList.attributes');module[_0xb9e9('0x7')]=function(_0x7b18d5,_0x3e4023){return _0x7b18d5[_0xb9e9('0x8')](_0xb9e9('0x9'),attributes,{'tableName':_0xb9e9('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};