Built motion from commit f16df95f.|2.5.40
[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 _0x4b92=['rimraf','../../config/environment','./template.attributes','define','Template','tools_templates','lodash','../../config/logger','moment','request-promise','path'];(function(_0x106bf4,_0x37fb7c){var _0x276336=function(_0xd69c0b){while(--_0xd69c0b){_0x106bf4['push'](_0x106bf4['shift']());}};_0x276336(++_0x37fb7c);}(_0x4b92,0xe2));var _0x24b9=function(_0x13ea00,_0x12f610){_0x13ea00=_0x13ea00-0x0;var _0x1f7347=_0x4b92[_0x13ea00];return _0x1f7347;};'use strict';var _=require(_0x24b9('0x0'));var util=require('util');var logger=require(_0x24b9('0x1'))('api');var moment=require(_0x24b9('0x2'));var BPromise=require('bluebird');var rp=require(_0x24b9('0x3'));var fs=require('fs');var path=require(_0x24b9('0x4'));var rimraf=require(_0x24b9('0x5'));var config=require(_0x24b9('0x6'));var attributes=require(_0x24b9('0x7'));module['exports']=function(_0x3932b7,_0x2c412a){return _0x3932b7[_0x24b9('0x8')](_0x24b9('0x9'),attributes,{'tableName':_0x24b9('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};