Built motion from commit 85328c08.|2.5.50
[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 _0x6e28=['lodash','util','../../config/logger','moment','request-promise','path','rimraf','define','Template','tools_templates'];(function(_0xcba371,_0x5ae6e4){var _0x1afb50=function(_0x21134e){while(--_0x21134e){_0xcba371['push'](_0xcba371['shift']());}};_0x1afb50(++_0x5ae6e4);}(_0x6e28,0x12c));var _0x86e2=function(_0x285a09,_0x6c5f6e){_0x285a09=_0x285a09-0x0;var _0x2da757=_0x6e28[_0x285a09];return _0x2da757;};'use strict';var _=require(_0x86e2('0x0'));var util=require(_0x86e2('0x1'));var logger=require(_0x86e2('0x2'))('api');var moment=require(_0x86e2('0x3'));var BPromise=require('bluebird');var rp=require(_0x86e2('0x4'));var fs=require('fs');var path=require(_0x86e2('0x5'));var rimraf=require(_0x86e2('0x6'));var config=require('../../config/environment');var attributes=require('./template.attributes');module['exports']=function(_0x16238e,_0x2a9120){return _0x16238e[_0x86e2('0x7')](_0x86e2('0x8'),attributes,{'tableName':_0x86e2('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};