Built motion from commit 9d7072cc.|2.5.39
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0xe13a=['utf8mb4_unicode_ci','lodash','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers'];(function(_0x589616,_0x4bc578){var _0x4ea69f=function(_0x1048ac){while(--_0x1048ac){_0x589616['push'](_0x589616['shift']());}};_0x4ea69f(++_0x4bc578);}(_0xe13a,0x15f));var _0xae13=function(_0x4bc14a,_0x5df33c){_0x4bc14a=_0x4bc14a-0x0;var _0x36a516=_0xe13a[_0x4bc14a];return _0x36a516;};'use strict';var _=require(_0xae13('0x0'));var util=require('util');var logger=require(_0xae13('0x1'))(_0xae13('0x2'));var moment=require(_0xae13('0x3'));var BPromise=require(_0xae13('0x4'));var rp=require(_0xae13('0x5'));var fs=require('fs');var path=require(_0xae13('0x6'));var rimraf=require('rimraf');var config=require(_0xae13('0x7'));var attributes=require(_0xae13('0x8'));module[_0xae13('0x9')]=function(_0x48fa84,_0x54b435){return _0x48fa84[_0xae13('0xa')](_0xae13('0xb'),attributes,{'tableName':_0xae13('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0xae13('0xd')});};