Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / template / template.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 _0x0a36=['rimraf','../../config/environment','./template.attributes','exports','define','Template','tools_templates','util','../../config/logger','api','request-promise','path'];(function(_0x2fdf82,_0x322e7c){var _0x2382f5=function(_0x4d6951){while(--_0x4d6951){_0x2fdf82['push'](_0x2fdf82['shift']());}};_0x2382f5(++_0x322e7c);}(_0x0a36,0x1f3));var _0x60a3=function(_0x4d8666,_0x2ff19d){_0x4d8666=_0x4d8666-0x0;var _0x37175b=_0x0a36[_0x4d8666];return _0x37175b;};'use strict';var _=require('lodash');var util=require(_0x60a3('0x0'));var logger=require(_0x60a3('0x1'))(_0x60a3('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x60a3('0x3'));var fs=require('fs');var path=require(_0x60a3('0x4'));var rimraf=require(_0x60a3('0x5'));var config=require(_0x60a3('0x6'));var attributes=require(_0x60a3('0x7'));module[_0x60a3('0x8')]=function(_0xb9f5ba,_0x370c0c){return _0xb9f5ba[_0x60a3('0x9')](_0x60a3('0xa'),attributes,{'tableName':_0x60a3('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};