Built motion from commit (unavailable).|2.4.17
[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 _0x8337=['request-promise','path','rimraf','exports','define','CmList','util','../../config/logger','moment'];(function(_0x565b61,_0x82f78){var _0x3cd0da=function(_0x250049){while(--_0x250049){_0x565b61['push'](_0x565b61['shift']());}};_0x3cd0da(++_0x82f78);}(_0x8337,0x192));var _0x7833=function(_0x5635b8,_0x47871e){_0x5635b8=_0x5635b8-0x0;var _0xae6c18=_0x8337[_0x5635b8];return _0xae6c18;};'use strict';var _=require('lodash');var util=require(_0x7833('0x0'));var logger=require(_0x7833('0x1'))('api');var moment=require(_0x7833('0x2'));var BPromise=require('bluebird');var rp=require(_0x7833('0x3'));var fs=require('fs');var path=require(_0x7833('0x4'));var rimraf=require(_0x7833('0x5'));var config=require('../../config/environment');var attributes=require('./cmList.attributes');module[_0x7833('0x6')]=function(_0x2c1d57,_0x557f99){return _0x2c1d57[_0x7833('0x7')](_0x7833('0x8'),attributes,{'tableName':'cm_lists','paranoid':![],'indexes':[],'timestamps':!![]});};