bfa39e22bef43766880f46ff5101a5f332f33e99
[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 _0x0a46=['api','moment','request-promise','rimraf','../../config/environment','./template.attributes','exports','define','Template','tools_templates','../../config/logger'];(function(_0x17e7b7,_0x1a17de){var _0x5ca737=function(_0xef724b){while(--_0xef724b){_0x17e7b7['push'](_0x17e7b7['shift']());}};_0x5ca737(++_0x1a17de);}(_0x0a46,0x1ac));var _0x60a4=function(_0x383554,_0x1dc4d7){_0x383554=_0x383554-0x0;var _0x172c59=_0x0a46[_0x383554];return _0x172c59;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x60a4('0x0'))(_0x60a4('0x1'));var moment=require(_0x60a4('0x2'));var BPromise=require('bluebird');var rp=require(_0x60a4('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x60a4('0x4'));var config=require(_0x60a4('0x5'));var attributes=require(_0x60a4('0x6'));module[_0x60a4('0x7')]=function(_0x4a40ea,_0x4c75ee){return _0x4a40ea[_0x60a4('0x8')](_0x60a4('0x9'),attributes,{'tableName':_0x60a4('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};