Built motion from commit ddca4d0d.|2.5.47
[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 _0x001c=['util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./template.attributes','exports','Template','tools_templates','lodash'];(function(_0x5235e3,_0xcb2c0f){var _0x10f4b5=function(_0x37f5ba){while(--_0x37f5ba){_0x5235e3['push'](_0x5235e3['shift']());}};_0x10f4b5(++_0xcb2c0f);}(_0x001c,0xc3));var _0xc001=function(_0x3bbc0b,_0x442e24){_0x3bbc0b=_0x3bbc0b-0x0;var _0x2c0a39=_0x001c[_0x3bbc0b];return _0x2c0a39;};'use strict';var _=require(_0xc001('0x0'));var util=require(_0xc001('0x1'));var logger=require(_0xc001('0x2'))(_0xc001('0x3'));var moment=require(_0xc001('0x4'));var BPromise=require(_0xc001('0x5'));var rp=require(_0xc001('0x6'));var fs=require('fs');var path=require(_0xc001('0x7'));var rimraf=require(_0xc001('0x8'));var config=require(_0xc001('0x9'));var attributes=require(_0xc001('0xa'));module[_0xc001('0xb')]=function(_0x15426b,_0x21aeb9){return _0x15426b['define'](_0xc001('0xc'),attributes,{'tableName':_0xc001('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};